index
int64
repo_id
string
file_path
string
content
string
0
java-sources/ai/genauth/genauth-java-sdk/3.1.11/ai/genauth/sdk/java
java-sources/ai/genauth/genauth-java-sdk/3.1.11/ai/genauth/sdk/java/model/ManagementClientOptions.java
package ai.genauth.sdk.java.model; import ai.genauth.sdk.java.enums.SignatureEnum; import ai.genauth.sdk.java.util.CommonUtils; import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.util.StrUtil; import cn.hutool.http.Method; import com.auth0.jwt.JWT; import com.auth0.jwt.interfaces.DecodedJWT; import ai.genauth.sdk.java.enums.LanguageEnum; import ai.genauth.sdk.java.util.HttpUtils; import ai.genauth.sdk.java.util.JsonUtils; import java.util.*; public class ManagementClientOptions extends AuthingClientOptions { private String websocketHost = "wss://openevent.authing.cn"; private String websocketEndpoint = "/events/v1/management/sub"; public String getWebsocketHost() { return websocketHost; } public void setWebsocketHost(String websocketHost) { this.websocketHost = websocketHost; } public String getWebsocketEndpoint() { return websocketEndpoint; } public void setWebsocketEndpoint(String websocketEndpoint) { this.websocketEndpoint = websocketEndpoint; } /** * 用户池 ID **/ private String accessKeyId; /** * 用户池/应用密钥 **/ private String accessKeySecret; /** * 租户 ID **/ private String tenantId; /** * 超时时间 */ private int timeout = 10000; /** * 语言 */ private LanguageEnum lang = LanguageEnum.CHINESE; /** * Authing 服务器地址 */ private String host = "https://core.authing.cn"; /** * 请求头 key,适用于去 Authing 品牌化场景 */ private Map<String, String> headers = new HashMap<>(); /** * x-authing-signature-nonce 随机字符串的长度 */ private static final int RANDOM_STRING_LENGTH = 16; public ManagementClientOptions() { } /** * 管理端 token 存储 **/ private final ManagementTokenProvider tokenProvider; { tokenProvider = new ManagementTokenProvider(this); } @Override public String doRequest(String url, String method, Map<String, String> headers, Object body) { if (headers == null) { headers = new HashMap<>(); } // put 签名所需的头部 headers.put("x-authing-lang", getLang().getValue()); headers.put("x-authing-sdk-version", "authing-java-sdk:3.1.4"); headers.put("x-authing-signature-method", SignatureEnum.X_AUTHING_SIGNATURE_METHOD.getValue()); headers.put("x-authing-signature-nonce", CommonUtils.createRandomString(RANDOM_STRING_LENGTH)); headers.put("x-authing-signature-version", SignatureEnum.X_AUTHING_SIGNATURE_VERSION.getValue()); String tenantId = getTenantId(); if (tenantId != null && !tenantId.trim().isEmpty()) { headers.put("x-authing-tenant-id", tenantId); } headers.put("date", String.valueOf(new Date().getTime())); //生成 Authorization headers.put("Authorization", this.tokenProvider.getAccessToken()); headers.put("x-authing-userpool-id", this.tokenProvider.getUserPoolId()); if (CollectionUtil.isNotEmpty(getHeaders())) { headers.putAll(getHeaders()); } //发送请求 return HttpUtils.request(getHost() + url, method, body, headers, getTimeout()); } public String getAccessKeyId() { return accessKeyId; } public void setAccessKeyId(String accessKeyId) { this.accessKeyId = accessKeyId; } public String getAccessKeySecret() { return accessKeySecret; } public void setAccessKeySecret(String accessKeySecret) { this.accessKeySecret = accessKeySecret; } public String getTenantId() { return tenantId; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } public int getTimeout() { return timeout; } public void setTimeout(int timeout) { this.timeout = timeout; } public LanguageEnum getLang() { return lang; } public void setLang(LanguageEnum lang) { this.lang = lang; } public String getHost() { return host; } public void setHost(String host) { this.host = host; } public Map<String, String> getHeaders() { return headers; } public void setHeaders(Map<String, String> headers) { this.headers = headers; } public static class ManagementTokenProvider { private final ManagementClientOptions options; private String accessToken; private long accessTokenExpiredAt = 0L; private String userPoolId; public ManagementTokenProvider(ManagementClientOptions options) { this.options = options; } public String getAccessToken() { checkLoginStatus(); return accessToken; } public String getUserPoolId() { checkLoginStatus(); return userPoolId; } private void checkLoginStatus() { if (StrUtil.isNotBlank(this.accessToken) && this.accessTokenExpiredAt > (System.currentTimeMillis() / 1000)) { return; } // token 失效, 登录 refreshManagementToken(); } private void refreshManagementToken() { Map<String, Object> body = new HashMap<>(); body.put("accessKeyId", options.getAccessKeyId()); body.put("accessKeySecret", options.getAccessKeySecret()); String response = HttpUtils.request(options.getHost() + "/api/v3/get-management-token", Method.POST.name(), body, null, options.getTimeout()); LoginResponse loginResponse = JsonUtils.deserialize(response, LoginResponse.class); if (loginResponse == null) { throw new IllegalStateException("response is null"); } if (loginResponse.statusCode != 200) { throw new RuntimeException(loginResponse.getMessage()); } // 重新存储 accessToken,过期时间 this.accessToken = loginResponse.getData().getAccess_token(); this.accessTokenExpiredAt = System.currentTimeMillis() / 1000 + loginResponse.getData().getExpires_in(); // 解析 token DecodedJWT decode = JWT.decode(this.accessToken); // 存储 token 中的 用户池 ID this.userPoolId = decode.getClaim("scoped_userpool_id").asString(); } public static class LoginResponse { private Integer statusCode; private String message; private Data data; public Integer getStatusCode() { return statusCode; } public void setStatusCode(Integer statusCode) { this.statusCode = statusCode; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public Data getData() { return data; } public void setData(Data data) { this.data = data; } @SuppressWarnings("all") public static class Data { private String access_token; private Long expires_in; public String getAccess_token() { return access_token; } public void setAccess_token(String access_token) { this.access_token = access_token; } public Long getExpires_in() { return expires_in; } public void setExpires_in(Long expires_in) { this.expires_in = expires_in; } } } } }
0
java-sources/ai/genauth/genauth-java-sdk/3.1.11/ai/genauth/sdk/java
java-sources/ai/genauth/genauth-java-sdk/3.1.11/ai/genauth/sdk/java/model/Receiver.java
package ai.genauth.sdk.java.model; public interface Receiver { void onReceiverMessage(String msg); }
0
java-sources/ai/genauth/genauth-java-sdk/3.1.11/ai/genauth/sdk/java
java-sources/ai/genauth/genauth-java-sdk/3.1.11/ai/genauth/sdk/java/util/CommonUtils.java
package ai.genauth.sdk.java.util; import java.util.Random; import java.util.concurrent.ThreadLocalRandom; public class CommonUtils { public static String createRandomString(int strLength) { Random rnd = ThreadLocalRandom.current(); StringBuilder ret = new StringBuilder(); for (int i = 0; i < strLength; i++) { boolean isChar = (rnd.nextInt(2) % 2 == 0);// 输出字母还是数字 if (isChar) { // 字符串 int choice = rnd.nextInt(2) % 2 == 0 ? 65 : 97; // 取得大写字母还是小写字母 ret.append((char) (choice + rnd.nextInt(26))); } else { // 数字 ret.append((rnd.nextInt(10))); } } return ret.toString(); } }
0
java-sources/ai/genauth/genauth-java-sdk/3.1.11/ai/genauth/sdk/java
java-sources/ai/genauth/genauth-java-sdk/3.1.11/ai/genauth/sdk/java/util/HttpUtils.java
package ai.genauth.sdk.java.util; import cn.hutool.http.HttpResponse; import cn.hutool.http.HttpUtil; import cn.hutool.http.Method; import cn.hutool.log.Log; import cn.hutool.log.LogFactory; import java.util.Map; import java.util.Set; /** * @author luojielin */ @SuppressWarnings("all") public class HttpUtils { private static final Log log = LogFactory.get("[Authing]"); public static String request(String url, String method, Object body, Map<String, String> headers, int timeout) { long start = System.currentTimeMillis(); HttpResponse httpResponse = null; switch (method) { case "GET": url = buildUrlWithQueryParams(url, JsonUtils.deserialize(JsonUtils.serialize(body), Map.class)); log.info("请求 url: {}", url); httpResponse = HttpUtil .createRequest(Method.valueOf(method), url) .setReadTimeout(timeout) .setConnectionTimeout(timeout) .headerMap(headers, true) .execute(); break; case "POST": String bodyString = JsonUtils.serialize(body); log.info("请求 url:{}, body: {}", url, bodyString); httpResponse = HttpUtil .createRequest(Method.valueOf(method), url) .setReadTimeout(timeout) .body(bodyString) .setConnectionTimeout(timeout) .headerMap(headers, true) .execute(); break; case "UrlencodedPOST": String urlencodedBodyString = buildQueryParams(JsonUtils.deserialize(JsonUtils.serialize(body), Map.class)); log.info("请求 url:{}, body: {}", url, urlencodedBodyString); httpResponse = HttpUtil .createRequest(Method.valueOf("POST"), url) .setReadTimeout(timeout) .body(urlencodedBodyString) .setConnectionTimeout(timeout) .headerMap(headers, true) .execute(); break; default: throw new IllegalArgumentException(); } if (httpResponse.isOk()) { String response = httpResponse.body(); log.info("响应:{}, 耗时:{} ms", response, (System.currentTimeMillis() - start)); return response; } else { throw new RuntimeException(httpResponse.body()); } } public static String buildUrlWithQueryParams(String url, Map<String, Object> params) { StringBuilder sb = new StringBuilder(url); if(params != null && !params.isEmpty()){ sb.append("?"); sb.append(buildQueryParams(params)); sb.deleteCharAt(sb.length()-1); } return sb.toString(); } public static String buildQueryParams(Map<String, Object> params) { StringBuilder sb = new StringBuilder(); if (params != null && !params.isEmpty()) { Set<Map.Entry<String, Object>> entries = params.entrySet(); for (Map.Entry<String, Object> entry : entries) { if (entry.getValue() != null) { sb.append(entry.getKey()).append("=").append(entry.getValue().toString()).append("&"); } } } return sb.toString(); } }
0
java-sources/ai/genauth/genauth-java-sdk/3.1.11/ai/genauth/sdk/java
java-sources/ai/genauth/genauth-java-sdk/3.1.11/ai/genauth/sdk/java/util/JsonUtils.java
package ai.genauth.sdk.java.util; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; /** * JsonUtils * * @author chho */ public class JsonUtils { private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); static { //属性为NULL不被序列化 OBJECT_MAPPER.setSerializationInclusion(JsonInclude.Include.NON_NULL); //反序列化的时候如果多了其他属性,不抛出异常 OBJECT_MAPPER.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); //如果是空对象的时候,不抛异常 OBJECT_MAPPER.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false); } public static <T> T deserialize(String content, Class<T> valueType) { try { return OBJECT_MAPPER.readValue(content, valueType); } catch (Exception e) { e.printStackTrace(); return null; } } public static String serialize(Object value) { try { return OBJECT_MAPPER.writeValueAsString(value); } catch (Exception e) { e.printStackTrace(); return null; } } }
0
java-sources/ai/genauth/genauth-java-sdk/3.1.11/ai/genauth/sdk/java/util
java-sources/ai/genauth/genauth-java-sdk/3.1.11/ai/genauth/sdk/java/util/signature/ISignatureComposer.java
package ai.genauth.sdk.java.util.signature; import java.util.Map; public interface ISignatureComposer { /** * 生成签名 * @param method * @param uri * @param headers * @param queries * @return */ String composeStringToSign(String method, String uri, Map<String, String> headers, Map<String, String> queries); /** * 获取 Authorization 的值 * @param accessKeyId * @param accessKeySecret * @param stringToSign * @return */ String getAuthorization(String accessKeyId, String accessKeySecret, String stringToSign); }
0
java-sources/ai/genauth/genauth-java-sdk/3.1.11/ai/genauth/sdk/java/util/signature
java-sources/ai/genauth/genauth-java-sdk/3.1.11/ai/genauth/sdk/java/util/signature/Impl/SignatureComposer.java
package ai.genauth.sdk.java.util.signature.Impl; import ai.genauth.sdk.java.util.signature.ISignatureComposer; import java.io.UnsupportedEncodingException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.util.List; import java.util.Map; import java.util.TreeMap; import java.util.stream.Collectors; import javax.crypto.Mac; import javax.crypto.spec.SecretKeySpec; import javax.xml.bind.DatatypeConverter; public class SignatureComposer implements ISignatureComposer { private final static String QUERY_SEPARATOR = "&"; private final static String HEADER_SEPARATOR = "\n"; private static ISignatureComposer composer = null; public static final String ENCODING = "UTF-8"; private static final String ALGORITHM_NAME = "HmacSHA1"; public static ISignatureComposer getComposer() { if (null == composer) { composer = new SignatureComposer(); } return composer; } @Override() public String composeStringToSign(String method, String uri, Map<String, String> headers, Map<String, String> queries) { StringBuilder sb = new StringBuilder(); sb.append(method).append(HEADER_SEPARATOR); List<String> list = headers.keySet().stream().sorted().collect(Collectors.toList()); for (String s : list) { sb.append(s).append(":").append(headers.get(s)).append(HEADER_SEPARATOR); } sb.append(buildQueryString(uri, queries)); return sb.toString(); } private String[] splitSubResource(String uri) { int queIndex = uri.indexOf("?"); String[] uriParts = new String[2]; if (-1 != queIndex) { uriParts[0] = uri.substring(0, queIndex); uriParts[1] = uri.substring(queIndex + 1); } else { uriParts[0] = uri; } return uriParts; } private String buildQueryString(String uri, Map<String, String> queries) { String[] uriParts = splitSubResource(uri); Map<String, String> sortMap = new TreeMap<>(queries); if (null != uriParts[1]) { sortMap.put(uriParts[1], null); } StringBuilder queryBuilder = new StringBuilder(uriParts[0]); if (0 < sortMap.size()) { queryBuilder.append("?"); } for (Map.Entry<String, String> e : sortMap.entrySet()) { queryBuilder.append(e.getKey()); String value = e.getValue(); if (value == null || value.isEmpty()) { queryBuilder.append(QUERY_SEPARATOR); continue; } queryBuilder.append("=").append(e.getValue()).append(QUERY_SEPARATOR); } String queryString = queryBuilder.toString(); if (queryString.endsWith(QUERY_SEPARATOR)) { queryString = queryString.substring(0, queryString.length() - 1); } return queryString; } @Override() public String getAuthorization(String accessKeyId, String accessKeySecret, String stringToSign) { String signature = signString(stringToSign, accessKeySecret); return "authing " + accessKeyId + ":" + signature; } private String signString(String stringToSign, String accessKeySecret) { try { Mac mac = Mac.getInstance(ALGORITHM_NAME); mac.init(new SecretKeySpec(accessKeySecret.getBytes(ENCODING), ALGORITHM_NAME)); byte[] signData = mac.doFinal(stringToSign.getBytes(ENCODING)); return DatatypeConverter.printBase64Binary(signData); } catch (NoSuchAlgorithmException | UnsupportedEncodingException | InvalidKeyException e) { throw new IllegalArgumentException(e.toString()); } } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/Vision.java
package glair.vision; import glair.vision.api.Config; import glair.vision.api.FaceBio; import glair.vision.api.Identity; import glair.vision.api.Ocr; import glair.vision.logger.Logger; import glair.vision.logger.LoggerConfig; import glair.vision.model.VisionSettings; /** * The main entry point for interacting with the Vision SDK. * This class provides access to various vision-related functionalities such as OCR, * face recognition, and identity verification. */ public class Vision { /** * Represents the version of the software/library. */ public static final String version = "0.0.1-beta.1"; private static final Logger logger = Logger.getInstance(); private final Config config; private final Ocr ocr; private final FaceBio faceBio; private final Identity identity; /** * Constructs a Vision instance with the given vision settings * * @param visionSettings The vision settings to configure the SDK. */ public Vision(VisionSettings visionSettings) { this(visionSettings, new LoggerConfig()); } /** * Constructs a Vision instance with the given vision settings and optional logger * configuration. * * @param visionSettings The vision settings to configure the SDK. * @param loggerConfig (Optional) The logger configuration for customizing logging * behavior. */ public Vision(VisionSettings visionSettings, LoggerConfig loggerConfig) { this.config = new Config(visionSettings); this.ocr = new Ocr(this.config); this.faceBio = new FaceBio(this.config); this.identity = new Identity(this.config); if (loggerConfig != null) { logger.setPattern(loggerConfig.getLogPattern()); logger.setLogLevel(loggerConfig.getLogLevel()); } } /** * Get the configuration settings for the Vision SDK. * * @return The configuration settings. */ public Config config() { return config; } /** * Get access to the OCR functionality of the Vision SDK. * * @return An OCR instance. */ public Ocr ocr() { return ocr; } /** * Get access to the FaceBio (Face Recognition) functionality of the Vision SDK. * * @return A FaceBio instance. */ public FaceBio faceBio() { return faceBio; } /** * Get access to the Identity functionality of the Vision SDK. * * @return An Identity instance. */ public Identity identity() { return identity; } /** * Print the current logger configuration to the standard output. */ public void printLoggerConfig() { System.out.println("Logger Config " + logger); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/api/Config.java
package glair.vision.api; import glair.vision.model.VisionSettings; import glair.vision.util.Json; import okhttp3.Credentials; import java.util.HashMap; /** * The Config class provides configuration settings for the Glair Vision API. */ public class Config { private static final String BASE_URL = "https://api.vision.glair.ai"; private static final String API_VERSION = "v1"; private static final String API_KEY = "default-api-key"; private static final String USERNAME = "default-username"; private static final String PASSWORD = "default-password"; private final String baseUrl; private final String apiVersion; private final String apiKey; private final String username; private final String password; private final VisionSettings visionSettings; private String basicAuth; /** * Constructs a Config instance based on the provided VisionSettings. * * @param config The VisionSettings to initialize the configuration. */ public Config(VisionSettings config) { this.baseUrl = config.getBaseUrl() == null ? BASE_URL : config.getBaseUrl(); this.apiVersion = config.getApiVersion() == null ? API_VERSION : config.getApiVersion(); this.apiKey = config.getApiKey() == null ? API_KEY : config.getApiKey(); this.username = config.getUsername() == null ? USERNAME : config.getUsername(); this.password = config.getPassword() == null ? PASSWORD : config.getPassword(); this.visionSettings = config; } /** * Gets the API key associated with the configuration. * * @return The API key. */ public String getApiKey() { return this.apiKey; } /** * Constructs a full URL by combining the base URL and the given path. * * @param path The path to append to the base URL. * @return The full URL. */ public String getUrl(String path) { return this.baseUrl + "/" + this.replaceVersion(path); } /** * Gets the Basic Authentication string for HTTP requests. * * @return The Basic Authentication string. */ public String getBasicAuth() { if (this.basicAuth == null) { String auth = Credentials.basic(username, password); this.basicAuth = auth; return auth; } return this.basicAuth; } /** * Gets a reference to the current Config instance. * * @return The Config instance. */ public Config getConfig() { return this; } /** * Gets a new Config instance with updated settings based on the provided * VisionSettings. * * @param newConfig The VisionSettings with updated settings. * @return A new Config instance with the updated settings. */ public Config getConfig(VisionSettings newConfig) { String baseUrl = newConfig.getBaseUrl() == null ? this.baseUrl : newConfig.getBaseUrl(); String apiVersion = newConfig.getApiVersion() == null ? this.apiVersion : newConfig.getApiVersion(); String apiKey = newConfig.getApiKey() == null ? this.apiKey : newConfig.getApiKey(); String username = newConfig.getUsername() == null ? this.username : newConfig.getUsername(); String password = newConfig.getPassword() == null ? this.password : newConfig.getPassword(); VisionSettings visionSettings = new VisionSettings.Builder() .baseUrl(baseUrl) .apiVersion(apiVersion) .apiKey(apiKey) .username(username) .password(password) .build(); return new Config(visionSettings); } /** * Gets the VisionSettings associated with the configuration. * * @return The VisionSettings. */ public VisionSettings getSettings() { return this.visionSettings; } /** * Replaces the ":version" placeholder in the given path with the API version. * * @param path The path containing the ":version" placeholder. * @return The path with the placeholder replaced by the API version. */ private String replaceVersion(String path) { return path.replaceAll(":version", this.apiVersion); } /** * Returns a JSON representation of the configuration. * * @return A JSON string representing the configuration settings. */ @Override public String toString() { HashMap<String, String> map = new HashMap<>(); map.put("baseUrl", this.baseUrl); map.put("apiVersion", this.apiVersion); map.put("apiKey", this.apiKey); map.put("username", this.username); map.put("password", this.password); return "Config " + Json.toJsonString(map, 2); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/api/FaceBio.java
package glair.vision.api; import glair.vision.api.sessions.ActiveLivenessSessions; import glair.vision.api.sessions.PassiveLivenessSessions; import glair.vision.logger.Logger; import glair.vision.model.Request; import glair.vision.model.VisionSettings; import glair.vision.model.param.ActiveLivenessParam; import glair.vision.model.param.FaceMatchParam; import glair.vision.util.Json; import glair.vision.util.Util; import okhttp3.MediaType; import okhttp3.MultipartBody; import okhttp3.RequestBody; import java.util.HashMap; /** * The FaceBio class provides methods for performing Face Biometric operations. */ public class FaceBio { private static final Logger logger = Logger.getInstance(); private final Config config; private final ActiveLivenessSessions activeLivenessSessions; private final PassiveLivenessSessions passiveLivenessSessions; /** * Constructs an FaceBio instance with the provided configuration. * * @param config The configuration settings to use for Face Biometric operations. */ public FaceBio(Config config) { this.config = config; this.activeLivenessSessions = new ActiveLivenessSessions(config); this.passiveLivenessSessions = new PassiveLivenessSessions(config); } /** * Get access to Active Liveness Sessions related operations. * * @return An instance of ActiveLivenessSessions for Active Liveness operations. */ public ActiveLivenessSessions activeLivenessSessions() { return this.activeLivenessSessions; } /** * Get access to Passive Liveness Sessions related operations. * * @return An instance of PassiveLivenessSessions for Passive Liveness operations. */ public PassiveLivenessSessions passiveLivenessSessions() { return this.passiveLivenessSessions; } /** * Performs Face Match using default configuration settings. * * @param param The FaceMatchParam object representing the candidate and stored faces. * @return The Face Match result. * @throws Exception If an error occurs during the detection process. */ public String match(FaceMatchParam param) throws Exception { return match(param, null); } /** * Performs Face Match using custom configuration settings. * * @param param The FaceMatchParam object representing the candidate and * stored faces. * @param newVisionSettings The custom vision settings to use. * @return The Face Match result. * @throws Exception If an error occurs during the detection process. */ public String match( FaceMatchParam param, VisionSettings newVisionSettings ) throws Exception { log("Match", param); Util.checkFileExist(param.getCapturedPath()); Util.checkFileExist(param.getStoredPath()); HashMap<String, String> map = new HashMap<>(); map.put("captured_image", Util.fileToBase64(param.getCapturedPath())); map.put("stored_image", Util.fileToBase64(param.getStoredPath())); RequestBody body = RequestBody.create(Json.toJsonString(map), MediaType.get("application/json; charset=utf-8") ); return fetch(body, "match", newVisionSettings); } /** * Perform Passive Liveness detection using default configuration settings. * * @param imagePath The path to the image file. * @return The result of Passive Liveness detection. * @throws Exception If an error occurs during the detection process. */ public String passiveLiveness(String imagePath) throws Exception { return passiveLiveness(imagePath, null); } /** * Perform Passive Liveness detection using custom configuration settings. * * @param imagePath The path to the image file. * @param newVisionSettings The custom vision settings to use. * @return The result of Passive Liveness detection. * @throws Exception If an error occurs during the detection process. */ public String passiveLiveness( String imagePath, VisionSettings newVisionSettings ) throws Exception { log("Passive Liveness", Json.toJsonString("image", imagePath)); Util.checkFileExist(imagePath); MultipartBody.Builder builder = Util.createFormData(); Util.addFileToFormData(builder, "image", imagePath); return fetch(builder.build(), "passive-liveness", newVisionSettings); } /** * Perform Active Liveness detection using default configuration settings. * * @param param The ActiveLivenessParam object representing the image and gesture code. * @return The result of Active Liveness detection. * @throws Exception If an error occurs during the detection process. */ public String activeLiveness(ActiveLivenessParam param) throws Exception { return activeLiveness(param, null); } /** * Perform Active Liveness detection using custom configuration settings. * * @param param The ActiveLivenessParam object representing the image and * gesture code. * @param newVisionSettings The custom vision settings to use. * @return The result of Active Liveness detection. * @throws Exception If an error occurs during the detection process. */ public String activeLiveness( ActiveLivenessParam param, VisionSettings newVisionSettings ) throws Exception { log("Active Liveness", param); Util.checkFileExist(param.getImagePath()); MultipartBody.Builder builder = Util.createFormData(); Util.addFileToFormData(builder, "image", param.getImagePath()); Util.addTextToFormData(builder, "gesture-code", param.getGestureCode().label); return fetch(builder.build(), "active-liveness", newVisionSettings); } /** * A private method to fetch Face Biometric data using an HTTP request. */ private String fetch( RequestBody body, String url, VisionSettings newVisionSettings ) throws Exception { VisionSettings settingsToUse = (newVisionSettings == null) ? this.config.getSettings() : newVisionSettings; String method = "POST"; String endpoint = "face/:version/" + url; Request request = new Request.RequestBuilder(endpoint, method).body(body).build(); return Util.visionFetch(this.config.getConfig(settingsToUse), request); } /** * Log information for a Face Biometric operation. */ private void log(String logTitle, Object param) { logger.info("Face Biometric -", logTitle); logger.debug("Param", param); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/api/Identity.java
package glair.vision.api; import glair.vision.logger.Logger; import glair.vision.model.Request; import glair.vision.model.VisionSettings; import glair.vision.model.param.IdentityFaceVerificationParam; import glair.vision.model.param.IdentityVerificationParam; import glair.vision.util.Util; import okhttp3.MultipartBody; import okhttp3.RequestBody; /** * The Identity class provides methods for performing Identity Verification operations. */ public class Identity { private static final Logger logger = Logger.getInstance(); private final Config config; /** * Constructs an Identity instance with the provided configuration. * * @param config The configuration settings to use for Identity operations. */ public Identity(Config config) { this.config = config; } /** * Performs basic identity verification using default configuration settings. * * @param param The identity verification parameters. * @return The verification result. * @throws Exception If an error occurs during the verification process. */ public String verification(IdentityVerificationParam param) throws Exception { return verification(param, null); } /** * Performs basic identity verification using custom configuration settings. * * @param param The identity verification parameters. * @param newVisionSettings The custom vision settings to use. * @return The verification result. * @throws Exception If an error occurs during the verification process. */ public String verification( IdentityVerificationParam param, VisionSettings newVisionSettings ) throws Exception { log("Basic Verification", param); MultipartBody.Builder bodyBuilder = Util.createFormData(); Util.addTextToFormData(bodyBuilder, "nik", param.getNik()); Util.addTextToFormData(bodyBuilder, "name", param.getName()); Util.addTextToFormData(bodyBuilder, "date_of_birth", param.getDateOfBirth()); return fetch(bodyBuilder, newVisionSettings, "verification"); } /** * Performs face verification using default configuration settings. * * @param param The face verification parameters. * @return The verification result. * @throws Exception If an error occurs during the verification process. */ public String faceVerification(IdentityFaceVerificationParam param) throws Exception { return faceVerification(param, null); } /** * Performs face verification using custom configuration settings. * * @param param The face verification parameters. * @param newVisionSettings The custom vision settings to use. * @return The verification result. * @throws Exception If an error occurs during the verification process. */ public String faceVerification( IdentityFaceVerificationParam param, VisionSettings newVisionSettings ) throws Exception { log("Face Verification", param); Util.checkFileExist(param.getFaceImagePath()); MultipartBody.Builder bodyBuilder = Util.createFormData(); Util.addTextToFormData(bodyBuilder, "nik", param.getNik()); Util.addTextToFormData(bodyBuilder, "name", param.getName()); Util.addTextToFormData(bodyBuilder, "date_of_birth", param.getDateOfBirth()); Util.addFileToFormData(bodyBuilder, "face_image", param.getFaceImagePath()); return fetch(bodyBuilder, newVisionSettings, "face-verification"); } /** * Performs identity verification with the specified parameters. * * @param bodyBuilder The builder for constructing the HTTP request body. * @param newVisionSettings The custom vision settings to use (can be null for * default settings). * @param endpoint The URL endpoint for the verification. * @return The verification result as a string. * @throws Exception If an error occurs during the verification process. */ private String fetch( MultipartBody.Builder bodyBuilder, VisionSettings newVisionSettings, String endpoint ) throws Exception { VisionSettings settingsToUse = (newVisionSettings == null) ? this.config.getSettings() : newVisionSettings; String url = "identity/:version/" + endpoint; String method = "POST"; RequestBody body = bodyBuilder.build(); Request request = new Request.RequestBuilder(url, method).body(body).build(); return Util.visionFetch(this.config.getConfig(settingsToUse), request); } /** * Log information for an Identity operation. * * @param logTitle The title of the Identity operation. * @param param The parameter to log. */ private void log(String logTitle, Object param) { logger.info("Identity -", logTitle); logger.debug("Param", param); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/api/Ocr.java
package glair.vision.api; import glair.vision.api.sessions.KtpSessions; import glair.vision.api.sessions.NpwpSessions; import glair.vision.logger.Logger; import glair.vision.model.Request; import glair.vision.model.VisionSettings; import glair.vision.model.param.BpkbParam; import glair.vision.model.param.KtpParam; import glair.vision.util.Json; import glair.vision.util.Util; import okhttp3.MultipartBody; import okhttp3.RequestBody; /** * The Ocr class provides methods for performing Optical Character Recognition (OCR) * operations. */ public class Ocr { private static final Logger logger = Logger.getInstance(); private final Config config; private final KtpSessions ktpSessions; private final NpwpSessions npwpSessions; /** * Constructs an Ocr instance with the provided configuration. * * @param config The configuration settings to use for OCR operations. */ public Ocr(Config config) { this.config = config; this.ktpSessions = new KtpSessions(config); this.npwpSessions = new NpwpSessions(config); } /** * Get access to KTP Sessions related operations. * * @return An instance of KtpSessions for KTP operations. */ public KtpSessions ktpSessions() { return this.ktpSessions; } /** * Get access to NPWP Sessions related operations. * * @return An instance of NpwpSessions for NPWP operations. */ public NpwpSessions npwpSessions() { return this.npwpSessions; } /** * Perform OCR on a KTP image using default configuration settings. * * @param param The OCR parameters, including the path to the KTP image file * and an optional qualities detector setting. * @return The OCR result for the KTP image. * @throws Exception If an error occurs during the OCR process. */ public String ktp(KtpParam param) throws Exception { return ktp(param, null); } /** * Perform OCR on a KTP image using custom configuration settings. * * @param param The OCR parameters, including the path to the KTP image file * and an optional qualities detector setting. * @param newVisionSettings The custom vision settings to use. * @return The OCR result for the KTP image. * @throws Exception If an error occurs during the OCR process. */ public String ktp(KtpParam param, VisionSettings newVisionSettings) throws Exception { log("KTP", param); Util.checkFileExist(param.getImagePath()); String endpoint = param.getQualitiesDetector() ? "ktp/qualities" : "ktp"; MultipartBody.Builder bodyBuilder = Util.createFormData(); Util.addFileToFormData(bodyBuilder, "image", param.getImagePath()); return fetch(bodyBuilder, newVisionSettings, endpoint); } /** * Perform OCR on an NPWP image using default configuration * settings. * * @param imagePath The path to the NPWP image file. * @return The OCR result for the NPWP image. * @throws Exception If an error occurs during the OCR process. */ public String npwp(String imagePath) throws Exception { return npwp(imagePath, null); } /** * Perform OCR on an NPWP image using custom configuration * settings. * * @param imagePath The path to the NPWP image file. * @param newVisionSettings The custom vision settings to use. * @return The OCR result for the NPWP image. * @throws Exception If an error occurs during the OCR process. */ public String npwp( String imagePath, VisionSettings newVisionSettings ) throws Exception { logSingle("NPWP", imagePath); return fetchSingle(imagePath, newVisionSettings, "npwp"); } /** * Perform OCR on an KK image using default configuration settings. * * @param imagePath The path to the KK image file. * @return The OCR result for the KK image. * @throws Exception If an error occurs during the OCR process. */ public String kk(String imagePath) throws Exception { return kk(imagePath, null); } /** * Perform OCR on an KK image using custom configuration settings. * * @param imagePath The path to the KK image file. * @param newVisionSettings The custom vision settings to use. * @return The OCR result for the KK image. * @throws Exception If an error occurs during the OCR process. */ public String kk(String imagePath, VisionSettings newVisionSettings) throws Exception { logSingle("KK", imagePath); return fetchSingle(imagePath, newVisionSettings, "kk"); } /** * Perform OCR on an STNK image using default configuration settings. * * @param imagePath The path to the STNK image file. * @return The OCR result for the STNK image. * @throws Exception If an error occurs during the OCR process. */ public String stnk(String imagePath) throws Exception { return stnk(imagePath, null); } /** * Perform OCR on an STNK image using custom configuration settings. * * @param imagePath The path to the STNK image file. * @param newVisionSettings The custom vision settings to use. * @return The OCR result for the STNK image. * @throws Exception If an error occurs during the OCR process. */ public String stnk( String imagePath, VisionSettings newVisionSettings ) throws Exception { logSingle("STNK", imagePath); return fetchSingle(imagePath, newVisionSettings, "stnk"); } /** * Perform OCR on a BPKB image using default configuration settings. * * @param param The parameters for OCR, including the path to the BPKB * image file and an optional page * number (1-4). * @return The OCR result for the BPKB image. * @throws Exception If an error occurs during the OCR process, such as if the file * does not exist. */ public String bpkb(BpkbParam param) throws Exception { return bpkb(param, null); } /** * Perform OCR on a BPKB image using custom configuration settings. * * @param param The parameters for OCR, including the path to the BPKB * image file and an optional page * number (1-4). * @param newVisionSettings The custom vision settings to use. * @return The OCR result for the BPKB image. * @throws Exception If an error occurs during the OCR process, such as if the file * does not exist. */ public String bpkb(BpkbParam param, VisionSettings newVisionSettings) throws Exception { log("BPKB", param); Util.checkFileExist(param.getImagePath()); MultipartBody.Builder bodyBuilder = Util.createFormData(); Util.addFileToFormData(bodyBuilder, "image", param.getImagePath()); if (param.getPage() >= 1 && param.getPage() <= 4) { Util.addTextToFormData(bodyBuilder, "page", Integer.toString(param.getPage())); } return fetch(bodyBuilder, newVisionSettings, "bpkb"); } /** * Perform OCR on a Passport image using default configuration settings. * * @param imagePath The path to the Passport image file. * @return The OCR result for the Passport image. * @throws Exception If an error occurs during the OCR process. */ public String passport(String imagePath) throws Exception { return passport(imagePath, null); } /** * Perform OCR on a Passport image using custom configuration settings. * * @param imagePath The path to the Passport image file. * @param newVisionSettings The custom vision settings to use. * @return The OCR result for the Passport image. * @throws Exception If an error occurs during the OCR process. */ public String passport( String imagePath, VisionSettings newVisionSettings ) throws Exception { logSingle("Passport", imagePath); return fetchSingle(imagePath, newVisionSettings, "passport"); } /** * Perform OCR on a License Plate image using default configuration settings. * * @param imagePath The path to the License Plate image file. * @return The OCR result for the License Plate image. * @throws Exception If an error occurs during the OCR process. */ public String licensePlate(String imagePath) throws Exception { return licensePlate(imagePath, null); } /** * Perform OCR on a License Plate image using custom configuration settings. * * @param imagePath The path to the License Plate image file. * @param newVisionSettings The custom vision settings to use. * @return The OCR result for the License Plate image. * @throws Exception If an error occurs during the OCR process. */ public String licensePlate( String imagePath, VisionSettings newVisionSettings ) throws Exception { logSingle("License Plate", imagePath); return fetchSingle(imagePath, newVisionSettings, "plate"); } /** * Perform OCR on a General Document image using default configuration settings. * * @param imagePath The path to the General Document image file. * @return The OCR result for the General Document image. * @throws Exception If an error occurs during the OCR process. */ public String generalDocument(String imagePath) throws Exception { return generalDocument(imagePath, null); } /** * Perform OCR on a General Document image using custom configuration settings. * * @param imagePath The path to the General Document image file. * @param newVisionSettings The custom vision settings to use. * @return The OCR result for the General Document image. * @throws Exception If an error occurs during the OCR process. */ public String generalDocument( String imagePath, VisionSettings newVisionSettings ) throws Exception { logSingle("General Document", imagePath); return fetchSingle(imagePath, newVisionSettings, "general-document"); } /** * Perform OCR on an Invoice image using default configuration settings. * * @param imagePath The path to the Invoice image file. * @return The OCR result for the Invoice image. * @throws Exception If an error occurs during the OCR process. */ public String invoice(String imagePath) throws Exception { return invoice(imagePath, null); } /** * Perform OCR on an Invoice image using custom configuration settings. * * @param imagePath The path to the Invoice image file. * @param newVisionSettings The custom vision settings to use. * @return The OCR result for the Invoice image. * @throws Exception If an error occurs during the OCR process. */ public String invoice( String imagePath, VisionSettings newVisionSettings ) throws Exception { logSingle("Invoice", imagePath); return fetchSingle(imagePath, newVisionSettings, "invoice"); } /** * Perform OCR on a Receipt image using default configuration settings. * * @param imagePath The path to the Receipt image file. * @return The OCR result for the Receipt image. * @throws Exception If an error occurs during the OCR process. */ public String receipt(String imagePath) throws Exception { return receipt(imagePath, null); } /** * Perform OCR on a Receipt image using custom configuration settings. * * @param imagePath The path to the Receipt image file. * @param newVisionSettings The custom vision settings to use. * @return The OCR result for the Receipt image. * @throws Exception If an error occurs during the OCR process. */ public String receipt( String imagePath, VisionSettings newVisionSettings ) throws Exception { logSingle("Receipt", imagePath); return fetchSingle(imagePath, newVisionSettings, "receipt"); } /** * Fetch OCR result for a single image using the provided settings. * * @param imagePath The path to the image file. * @param newVisionSettings The custom vision settings to use. * @param endpoint The OCR endpoint to use. * @return The OCR result for the image. * @throws Exception If an error occurs during the OCR process. */ private String fetchSingle( String imagePath, VisionSettings newVisionSettings, String endpoint ) throws Exception { Util.checkFileExist(imagePath); MultipartBody.Builder bodyBuilder = Util.createFormData(); Util.addFileToFormData(bodyBuilder, "image", imagePath); return fetch(bodyBuilder, newVisionSettings, endpoint); } /** * Fetch OCR result using the provided HTTP request body and settings. * * @param bodyBuilder The HTTP request body builder. * @param newVisionSettings The custom vision settings to use. * @param endpoint The OCR endpoint to use. * @return The OCR result for the image. * @throws Exception If an error occurs during the OCR process. */ private String fetch( MultipartBody.Builder bodyBuilder, VisionSettings newVisionSettings, String endpoint ) throws Exception { VisionSettings settingsToUse = (newVisionSettings == null) ? this.config.getSettings() : newVisionSettings; String url = "ocr/:version/" + endpoint; String method = "POST"; RequestBody body = bodyBuilder.build(); Request request = new Request.RequestBuilder(url, method).body(body).build(); return Util.visionFetch(this.config.getConfig(settingsToUse), request); } /** * Log information about a single OCR operation. * * @param logTitle The title of the OCR operation. * @param imagePath The path to the image file. */ private void logSingle(String logTitle, String imagePath) { log(logTitle, Json.toJsonString("image", imagePath)); } /** * Log information for an OCR operation. * * @param logTitle The title of the OCR operation. * @param param The parameter to log. */ private void log(String logTitle, Object param) { logger.info("OCR -", logTitle); logger.debug("Param", param); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/api
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/api/sessions/ActiveLivenessSessions.java
package glair.vision.api.sessions; import glair.vision.api.Config; import glair.vision.model.BaseSessions; import glair.vision.model.param.sessions.ActiveLivenessSessionsParam; import java.util.HashMap; /** * Represents a session for Active Liveness operations. * Extends the {@link BaseSessions} class with specific configuration and session * details for Active Liveness sessions. */ public class ActiveLivenessSessions extends BaseSessions<ActiveLivenessSessionsParam> { /** * Constructs an ActiveLivenessSessions instance with the provided configuration. * * @param config The configuration settings to use for Active Liveness sessions. */ public ActiveLivenessSessions(Config config) { super(config, "Active Liveness", "face/:version/active-liveness-sessions"); } @Override protected HashMap<String, String> createBody(ActiveLivenessSessionsParam param) { HashMap<String, String> map = super.createBody(param); map.put("number_of_gestures", Integer.toString(param.getNumberOfGestures())); return map; } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/api
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/api/sessions/KtpSessions.java
package glair.vision.api.sessions; import glair.vision.api.Config; import glair.vision.model.BaseSessions; import glair.vision.model.param.sessions.KtpSessionsParam; import java.util.HashMap; /** * Represents a session for KTP (Kartu Tanda Penduduk) operations. * Extends the {@link BaseSessions} class with specific configuration and session * details for KTP sessions. */ public class KtpSessions extends BaseSessions<KtpSessionsParam> { /** * Constructs a KtpSessions instance with the provided configuration. * * @param config The configuration settings to use for KTP sessions. */ public KtpSessions(Config config) { super(config, "KTP", "ocr/:version/ktp-sessions"); } @Override protected HashMap<String, String> createBody(KtpSessionsParam param) { HashMap<String, String> map = super.createBody(param); map.put("qualities_detector", String.valueOf(param.getQualitiesDetector())); return map; } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/api
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/api/sessions/NpwpSessions.java
package glair.vision.api.sessions; import glair.vision.api.Config; import glair.vision.model.BaseSessions; import glair.vision.model.param.sessions.BaseSessionsParam; /** * Represents a session for NPWP operations. * Extends the {@link BaseSessions} class with specific configuration and session * details for NPWP sessions. */ public class NpwpSessions extends BaseSessions<BaseSessionsParam> { /** * Represents a session for NPWP operations. * Extends the {@link BaseSessions} class with specific configuration and session * details. * * @param config The configuration settings to use for NPWP sessions. */ public NpwpSessions(Config config) { super(config, "NPWP", "ocr/:version/npwp-sessions"); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/api
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/api/sessions/PassiveLivenessSessions.java
package glair.vision.api.sessions; import glair.vision.api.Config; import glair.vision.model.BaseSessions; import glair.vision.model.param.sessions.BaseSessionsParam; /** * Represents a session for Passive Liveness operations. * Extends the {@link BaseSessions} class with specific configuration and session * details for Passive Liveness sessions. */ public class PassiveLivenessSessions extends BaseSessions<BaseSessionsParam> { /** * Represents a session for Passive Liveness operations. * Extends the {@link BaseSessions} class with specific configuration and session * details. * * @param config The configuration settings to use for Passive Liveness sessions. */ public PassiveLivenessSessions(Config config) { super(config, "Passive Liveness", "face/:version/passive-liveness-sessions"); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/enums/GestureCode.java
package glair.vision.enums; /** * Enum representing gesture codes. */ public enum GestureCode { /** * Represents a hand gesture with code HAND_00000. */ HAND_00000("HAND_00000"), /** * Represents a hand gesture with code HAND_01000. */ HAND_01000("HAND_01000"), /** * Represents a hand gesture with code HAND_01100. */ HAND_01100("HAND_01100"), /** * Represents a hand gesture with code HAND_01110. */ HAND_01110("HAND_01110"), /** * Represents a hand gesture with code HAND_01111. */ HAND_01111("HAND_01111"), /** * Represents a hand gesture with code HAND_10000. */ HAND_10000("HAND_10000"), /** * Represents a hand gesture with code HAND_11000. */ HAND_11000("HAND_11000"), /** * Represents a hand gesture with code HAND_11001. */ HAND_11001("HAND_11001"), /** * Represents a hand gesture with code HAND_11111. */ HAND_11111("HAND_11111"), /** * Represents a hand gesture with code HEAD_00. */ HEAD_00("HEAD_00"), /** * Represents a hand gesture with code HEAD_01. */ HEAD_01("HEAD_01"), /** * Represents a hand gesture with code HEAD_10. */ HEAD_10("HEAD_10"), /** * Represents a hand gesture with code HEAD_11. */ HEAD_11("HEAD_11"), /** * Represents a hand gesture with code HEAD_LEFT. */ HEAD_LEFT("HEAD_LEFT"), /** * Represents a hand gesture with code HEAD_OPEN_MOUTH. */ HEAD_OPEN_MOUTH("HEAD_OPEN_MOUTH"), /** * Represents a hand gesture with code HEAD_RIGHT. */ HEAD_RIGHT("HEAD_RIGHT"), /** * Represents a hand gesture with code HEAD_UP. */ HEAD_UP("HEAD_UP"), /** * Represents a hand gesture with code HEAD_CLOSE_MOUTH. */ HEAD_CLOSE_MOUTH("HEAD_CLOSE_MOUTH"), /** * Represents a hand gesture with code HEAD_DOWN. */ HEAD_DOWN("HEAD_DOWN"); /** * The label associated with the gesture code. */ public final String label; /** * Constructs a new GestureCode with the given label. * * @param label The label for the gesture code. */ GestureCode(String label) { this.label = label; } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/logger/Logger.java
package glair.vision.logger; import glair.vision.util.Json; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; /** * A simple logger class for logging messages with various log levels and a * customizable log pattern. */ public class Logger { private static Logger instance; private final String[] logLevelMapping = {"debug", "info ", "warn ", "error"}; private int logLevel; private String pattern; private Logger() {} /** * Get the singleton instance of the logger. * * @return The logger instance. */ public static synchronized Logger getInstance() { if (instance == null) { instance = new Logger(); } return instance; } /** * Get the current log level. * * @return The log level as a string. */ public String getLogLevel() { return logLevelMapping[logLevel].toUpperCase(); } /** * Set the log level. * * @param logLevel The log level to set. * Possible values:<br> * - {@link LoggerConfig#DEBUG} for debugging messages.<br> * - {@link LoggerConfig#INFO} for informational messages.<br> * - {@link LoggerConfig#WARN} for warning messages.<br> * - {@link LoggerConfig#ERROR} for error messages. */ public void setLogLevel(int logLevel) { this.logLevel = logLevel; } /** * Get the log pattern. * * @return The log pattern. */ public String getPattern() { return pattern; } /** * Set the log pattern. * * @param pattern The log pattern to set. */ public void setPattern(String pattern) { this.pattern = pattern; } /** * Log a debug message. * * @param args The objects to log. */ public void debug(Object... args) { log(LoggerConfig.DEBUG, args); } /** * Log an info message. * * @param args The objects to log. */ public void info(Object... args) { log(LoggerConfig.INFO, args); } /** * Log a warning message. * * @param args The objects to log. */ public void warn(Object... args) { log(LoggerConfig.WARN, args); } /** * Log an error message. * * @param args The objects to log. */ public void error(Object... args) { log(LoggerConfig.ERROR, args); } private void log(int logLevel, Object... args) { if (logLevel < this.logLevel) { return; } SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"); String now = dateFormat.format(new Date()); String level = logLevelMapping[logLevel]; StringBuilder messageBuilder = new StringBuilder(); for (Object arg : args) { messageBuilder.append(stringify(arg)).append(" "); } String message = messageBuilder.toString().trim(); String formattedLog = pattern .replace("{timestamp}", now) .replace("{level}", level.toUpperCase()) .replace("{message}", message); System.out.println(formattedLog); } private String stringify(Object obj) { if (obj instanceof String) { return (String) obj; } else { try { return obj.toString(); } catch (Exception e) { return "Failed to convert to JSON: " + obj; } } } /** * Get a string representation of the logger configuration. * * @return A JSON-formatted string representing the logger configuration. */ @Override public String toString() { HashMap<String, String> map = new HashMap<>(); map.put("Log Level", getLogLevel()); map.put("Log Pattern", getPattern()); return Json.toJsonString(map, 2); } /** * Main method for testing the logger. * * @param args Command-line arguments (not used). */ public static void main(String[] args) { Logger logger = new Logger(); logger.info("This is an info message.", 42, true); logger.debug("This is a debug message.", new int[]{1, 2, 3}); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/logger/LoggerConfig.java
package glair.vision.logger; /** * Configuration for the logger. */ public class LoggerConfig { /** * Represents the DEBUG log level. This level is used for fine-grained debugging * information. */ public static final int DEBUG = 0; /** * Represents the INFO log level. This level is used for general informational messages. */ public static final int INFO = 1; /** * Represents the WARN log level. This level is used for warning messages, indicating * potential issues. */ public static final int WARN = 2; /** * Represents the ERROR log level. This level is used for error messages, indicating * significant problems. */ public static final int ERROR = 3; private static final int DEFAULT_LOG_LEVEL = INFO; private static final String DEFAULT_LOG_PATTERN = "[{timestamp}] [{level}] GLAIR" + " Vision SDK: {message}"; private final int logLevel; private final String logPattern; /** * Constructs a new logger configuration with the default log level and pattern. */ public LoggerConfig() { this(DEFAULT_LOG_LEVEL, DEFAULT_LOG_PATTERN); } /** * Constructs a new logger configuration with a custom log level and the default log * pattern. * * @param logLevel The custom log level. */ public LoggerConfig(int logLevel) { this(logLevel, DEFAULT_LOG_PATTERN); } /** * Constructs a new logger configuration with a custom log pattern and the default * log level. * * @param logPattern The custom log pattern. */ public LoggerConfig(String logPattern) { this(DEFAULT_LOG_LEVEL, logPattern); } /** * Constructs a new logger configuration with custom log level and log pattern. * * @param logPattern The custom log pattern. * @param logLevel The custom log level. */ public LoggerConfig(String logPattern, int logLevel) { this(logLevel, logPattern); } /** * Constructs a new logger configuration with custom log level and log pattern. * * @param logLevel The custom log level. * @param logPattern The custom log pattern. */ public LoggerConfig(int logLevel, String logPattern) { this.logLevel = logLevel; this.logPattern = logPattern; } /** * Get the log level. * * @return The log level. */ public int getLogLevel() { return logLevel; } /** * Get the log pattern. * * @return The log pattern. */ public String getLogPattern() { return logPattern; } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model/BaseSessions.java
package glair.vision.model; import glair.vision.api.Config; import glair.vision.logger.Logger; import glair.vision.model.param.sessions.BaseSessionsParam; import glair.vision.util.Json; import glair.vision.util.Util; import okhttp3.MediaType; import okhttp3.RequestBody; import java.util.HashMap; /** * The base class for sessions handling, providing common functionality and * configurations for different session types. * * @param <T> The type of session parameters extending {@link BaseSessionsParam}. */ public class BaseSessions<T extends BaseSessionsParam> { /** * The logger instance used for logging within this class and its subclasses. */ protected static final Logger logger = Logger.getInstance(); /** * The configuration settings used for session operations. */ protected final Config config; /** * The type of the session, e.g., "KTP". */ protected final String sessionType; /** * The base URL for the session operations, e.g., "ocr/:version/ktp-sessions". */ protected final String baseUrl; /** * Constructs a BaseSessions instance with the specified configuration, session type, * and base URL. * * @param config The configuration settings to use for session operations. * @param sessionType The type of the session, e.g., "KTP" * @param baseUrl The base URL for the session operations, e.g., * "ocr/:version/ktp-sessions" */ protected BaseSessions(Config config, String sessionType, String baseUrl) { this.config = config; this.sessionType = sessionType; this.baseUrl = baseUrl; } /** * Gets the session type. * * @return The session type. */ public String getSessionType() { return sessionType; } /** * Gets the Base URL path. * * @return The Base URL path. */ public String getBaseUrl() { return baseUrl; } /** * Creates a session with the provided parameters using default configuration settings. * * @param param The session parameters. * @return The result of the session creation. * @throws Exception If an error occurs during the session creation. */ public String create(T param) throws Exception { return create(param, null); } /** * Creates a session with the provided parameters using custom configuration settings. * * @param param The session parameters. * @param newVisionSettings The custom vision settings to use. * @return The result of the session creation. * @throws Exception If an error occurs during the session creation. */ public String create(T param, VisionSettings newVisionSettings) throws Exception { log("Create", param); RequestBody body = RequestBody.create( Json.toJsonString(createBody(param)), MediaType.get("application/json; charset=utf-8") ); Request request = new Request.RequestBuilder(baseUrl, "POST").body(body).build(); return fetch(request, newVisionSettings); } /** * Retrieves a session with the specified session ID using default configuration * settings. * * @param sid The session ID to retrieve. * @return The result of the session retrieval. * @throws Exception If an error occurs during the session retrieval. */ public String retrieve(String sid) throws Exception { return retrieve(sid, null); } /** * Retrieves a session with the specified session ID using custom configuration * settings. * * @param sid The session ID to retrieve. * @param newVisionSettings The custom vision settings to use. * @return The result of the session retrieval. * @throws Exception If an error occurs during the session retrieval. */ public String retrieve(String sid, VisionSettings newVisionSettings) throws Exception { log("Retrieve", Json.toJsonString("sid", sid)); String url = baseUrl + "/" + sid; Request request = new Request.RequestBuilder(url, "GET").build(); return fetch(request, newVisionSettings); } /** * Creates the body of the session request based on the provided parameters. * * @param param The session parameters. * @return A map representing the session request body. */ protected HashMap<String, String> createBody(T param) { HashMap<String, String> map = new HashMap<>(); map.put("success_url", param.getSuccessUrl()); if (param.getCancelUrl() != null) { map.put("cancel_url", param.getCancelUrl()); } return map; } /** * Fetches data using the specified request and vision settings. * * @param request The request to fetch data. * @param visionSettings The vision settings to use. * @return The fetched data. * @throws Exception If an error occurs during the data fetch. */ private String fetch(Request request, VisionSettings visionSettings) throws Exception { VisionSettings settingsToUse = (visionSettings == null) ? this.config.getSettings() : visionSettings; return Util.visionFetch(this.config.getConfig(settingsToUse), request); } /** * Logs information about a session operation. * * @param type The type of the session operation, e.g., "Create" or "Retrieve". * @param param The parameter to log. */ private void log(String type, Object param) { logger.info(sessionType, "Sessions -", type); logger.debug("Param", param); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model/Request.java
package glair.vision.model; import okhttp3.RequestBody; /** * Represents an HTTP request configuration. */ public class Request { private final String path; private final String method; private final RequestBody body; /** * Constructs a new HTTP request using the provided builder. * * @param builder The builder used to construct this HTTP request. */ private Request(RequestBuilder builder) { this.path = builder.path; this.method = builder.method; this.body = builder.body; } /** * Gets the path of the HTTP request. * * @return The request path. */ public String getPath() { return path; } /** * Gets the HTTP method (e.g., GET, POST) of the request. * * @return The request method. */ public String getMethod() { return method; } /** * Gets the HTTP request body, if present. * * @return The request body as an HttpEntity. */ public RequestBody getBody() { return body; } /** * Builder class for creating instances of HTTP request configurations. */ public static class RequestBuilder { private final String path; private final String method; private RequestBody body; /** * Constructs a new request builder with the specified path and HTTP method. * * @param path The request path. * @param method The HTTP method (e.g., GET, POST). */ public RequestBuilder(String path, String method) { this.path = path; this.method = method; } /** * Sets the HTTP request body. * * @param body The request body as an HttpEntity. * @return The builder instance for method chaining. */ public RequestBuilder body(RequestBody body) { this.body = body; return this; } /** * Builds a new instance of an HTTP request with the configured options. * * @return The constructed Request instance. */ public Request build() { return new Request(this); } } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model/VisionSettings.java
package glair.vision.model; /** * Represents configuration settings for a vision-related service. */ public class VisionSettings { private final String baseUrl; private final String apiVersion; private final String apiKey; private final String username; private final String password; /** * Constructs a new instance of VisionSettings using the provided builder. * * @param builder The builder used to construct this VisionSettings instance. */ private VisionSettings(Builder builder) { this.baseUrl = builder.baseUrl; this.apiVersion = builder.apiVersion; this.apiKey = builder.apiKey; this.username = builder.username; this.password = builder.password; } /** * Gets the base URL for the vision-related service. * * @return The base URL. */ public String getBaseUrl() { return baseUrl; } /** * Gets the API version used for communication with the service. * * @return The API version. */ public String getApiVersion() { return apiVersion; } /** * Gets the API key used for authentication with the service. * * @return The API key. */ public String getApiKey() { return apiKey; } /** * Gets the username used for authentication with the service (if applicable). * * @return The username. */ public String getUsername() { return username; } /** * Gets the password used for authentication with the service (if applicable). * * @return The password. */ public String getPassword() { return password; } /** * A builder class for creating instances of VisionSettings with specific * configurations. */ public static class Builder { private String baseUrl; private String apiVersion; private String apiKey; private String username; private String password; /** * Sets the base URL for the vision-related service. * * @param baseUrl The base URL. * @return The builder instance for method chaining. */ public Builder baseUrl(String baseUrl) { this.baseUrl = baseUrl; return this; } /** * Sets the API version for communication with the service. * * @param apiVersion The API version. * @return The builder instance for method chaining. */ public Builder apiVersion(String apiVersion) { this.apiVersion = apiVersion; return this; } /** * Sets the API key for authentication with the service. * * @param apiKey The API key. * @return The builder instance for method chaining. */ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } /** * Sets the username for authentication with the service (if applicable). * * @param username The username. * @return The builder instance for method chaining. */ public Builder username(String username) { this.username = username; return this; } /** * Sets the password for authentication with the service (if applicable). * * @param password The password. * @return The builder instance for method chaining. */ public Builder password(String password) { this.password = password; return this; } /** * Builds a new instance of VisionSettings with the configured options. * * @return The constructed VisionSettings instance. */ public VisionSettings build() { return new VisionSettings(this); } } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model/param/ActiveLivenessParam.java
package glair.vision.model.param; import glair.vision.enums.GestureCode; import glair.vision.util.Json; import java.util.HashMap; /** * A record representing parameters for Active Liveness detection. */ public class ActiveLivenessParam { private final String imagePath; private final GestureCode gestureCode; /** * Constructs an ActiveLivenessParam object with the specified image path and gesture code. * * @param imagePath The file path of the image to be processed. * @param gestureCode The gesture code associated with the image. */ public ActiveLivenessParam(String imagePath, GestureCode gestureCode) { this.imagePath = imagePath; this.gestureCode = gestureCode; } /** * Gets the image path associated with the ActiveLivenessParam. * * @return The file path of the image. */ public String getImagePath() { return imagePath; } /** * Gets the gesture code associated with the ActiveLivenessParam. * * @return The gesture code. */ public GestureCode getGestureCode() { return gestureCode; } /** * Returns a JSON representation of the ActiveLivenessParam. * * @return A JSON string representing the image path and gesture code. */ @Override public String toString() { HashMap<String, String> map = new HashMap<>(); map.put("image", this.imagePath); map.put("gestureCode", this.gestureCode.label); return Json.toJsonString(map, 2); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model/param/BpkbParam.java
package glair.vision.model.param; import glair.vision.util.Json; import java.util.HashMap; /** * Represents parameters for a BPKB (Buku Pemilik Kendaraan Bermotor) operation. */ public class BpkbParam { private final String imagePath; private final int page; /** * Constructs a new BpkbParam object with the given image path and default page number. * * @param imagePath The path to the image. */ public BpkbParam(String imagePath) { this(imagePath, 0); } /** * Constructs a new BpkbParam object with the given image path and page number. * * @param imagePath The path to the image. * @param page The page number (1 - 4). */ public BpkbParam(String imagePath, int page) { this.imagePath = imagePath; this.page = page; } /** * Get the path to the image. * * @return The image path. */ public String getImagePath() { return imagePath; } /** * Get the page number. * * @return The page number. */ public int getPage() { return page; } /** * Generate a JSON representation of the parameter object. * * @return The JSON string. */ @Override public String toString() { HashMap<String, String> map = new HashMap<>(); map.put("image", imagePath); map.put("page", Integer.toString(page)); return Json.toJsonString(map, 2); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model/param/FaceMatchParam.java
package glair.vision.model.param; import glair.vision.util.Json; import java.util.HashMap; /** * A class representing parameters for Face Matching. */ public class FaceMatchParam { private final String capturedPath; private final String storedPath; /** * Constructs a FaceMatchParam object with the specified paths for the captured and stored images. * * @param capturedPath The file path of the captured image. * @param storedPath The file path of the stored image for comparison. */ public FaceMatchParam(String capturedPath, String storedPath) { this.capturedPath = capturedPath; this.storedPath = storedPath; } /** * Gets the file path of the captured image. * * @return The file path of the captured image. */ public String getCapturedPath() { return capturedPath; } /** * Gets the file path of the stored image for comparison. * * @return The file path of the stored image. */ public String getStoredPath() { return storedPath; } /** * Returns a JSON representation of the FaceMatchParam. * * @return A JSON string representing the captured and stored image paths. */ @Override public String toString() { HashMap<String, String> map = new HashMap<>(); map.put("Captured Image Path", this.capturedPath); map.put("Stored Image Path", this.storedPath); return Json.toJsonString(map, 2); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model/param/IdentityFaceVerificationParam.java
package glair.vision.model.param; import glair.vision.util.Json; import glair.vision.util.Util; import java.util.HashMap; /** * Represents parameters for performing identity verification with face image. */ public class IdentityFaceVerificationParam { private final String nik; private final String name; private final String dateOfBirth; private final String faceImagePath; /** * Constructs an instance of IdentityFaceVerificationParam. * * @param builder The builder instance used to construct the parameters. */ private IdentityFaceVerificationParam(Builder builder) { this.nik = builder.nik; this.name = builder.name; this.dateOfBirth = builder.dateOfBirth; this.faceImagePath = builder.faceImagePath; } /** * Gets the NIK (Nomor Induk Kependudukan). * * @return The NIK. */ public String getNik() { return nik; } /** * Gets the name of the individual. * * @return The name. */ public String getName() { return name; } /** * Gets the date of birth of the individual. * * @return The date of birth. */ public String getDateOfBirth() { return dateOfBirth; } /** * Gets the face image path data. * * @return The face image path data. */ public String getFaceImagePath() { return faceImagePath; } /** * Generates a JSON representation of the parameters. * * @return The JSON representation. */ @Override public String toString() { HashMap<String, String> map = new HashMap<>(); map.put("nik", nik); map.put("name", name); map.put("date_of_birth", dateOfBirth); map.put("face_image_path", faceImagePath); return Json.toJsonString(map, 2); } /** * Builder class for constructing IdentityFaceVerificationParam object. */ public static class Builder { private String nik; private String name; private String dateOfBirth; private String faceImagePath; /** * Sets the NIK (Nomor Induk Kependudukan). * * @param nik The NIK to set. * @return The Builder object. */ public Builder nik(String nik) { this.nik = nik; return this; } /** * Sets the name of the individual. * * @param name The name (spaces allowed). * @return The Builder object. */ public Builder name(String name) { this.name = name; return this; } /** * Sets the date of birth of the individual. * * @param dateOfBirth The date of birth in the format "dd-mm-yyyy". * @return The Builder object. */ public Builder dateOfBirth(String dateOfBirth) { this.dateOfBirth = dateOfBirth; return this; } /** * Sets the face image path data. * * @param faceImagePath The face image path data to set. * @return The Builder object. */ public Builder faceImagePath(String faceImagePath) { this.faceImagePath = faceImagePath; return this; } /** * Build an IdentityVerificationParam object. * * @return The constructed object. * @throws Exception If required fields are missing. */ public IdentityFaceVerificationParam build() throws Exception { Util.require("NIK", nik); Util.require("Name", name); Util.require("Date of Birth", dateOfBirth); Util.require("Face Image Path", faceImagePath); return new IdentityFaceVerificationParam(this); } } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model/param/IdentityVerificationParam.java
package glair.vision.model.param; import glair.vision.util.Json; import glair.vision.util.Util; import java.util.HashMap; /** * Represents parameters for identity verification. */ public class IdentityVerificationParam { private final String nik; private final String name; private final String dateOfBirth; /** * Constructs an instance of IdentityVerificationParam. * * @param builder The builder instance used to construct the parameters. */ private IdentityVerificationParam(Builder builder) { this.nik = builder.nik; this.name = builder.name; this.dateOfBirth = builder.dateOfBirth; } /** * Gets the NIK (Nomor Induk Kependudukan). * * @return The NIK. */ public String getNik() { return nik; } /** * Gets the name of the individual. * * @return The name. */ public String getName() { return name; } /** * Gets the date of birth of the individual. * * @return The date of birth. */ public String getDateOfBirth() { return dateOfBirth; } /** * Generate a JSON representation of the parameters. * * @return The JSON representation. */ @Override public String toString() { HashMap<String, String> map = new HashMap<>(); map.put("nik", nik); map.put("name", name); map.put("date_of_birth", dateOfBirth); return Json.toJsonString(map, 2); } /** * Builder class for constructing IdentityVerificationParam object. */ public static class Builder { private String nik; private String name; private String dateOfBirth; /** * Sets the NIK (Nomor Induk Kependudukan). * * @param nik The NIK to set. * @return The Builder object. */ public Builder nik(String nik) { this.nik = nik; return this; } /** * Sets the name of the individual. * * @param name The name (spaces allowed). * @return The Builder object. */ public Builder name(String name) { this.name = name; return this; } /** * Sets the date of birth of the individual. * * @param dateOfBirth The date of birth in the format "dd-mm-yyyy". * <br> (01-01-2000) * @return The Builder object. */ public Builder dateOfBirth(String dateOfBirth) { this.dateOfBirth = dateOfBirth; return this; } /** * Build an IdentityVerificationParam object. * * @return The constructed object. * @throws Exception If required fields are missing. */ public IdentityVerificationParam build() throws Exception { Util.require("NIK", nik); Util.require("Name", name); Util.require("Date of Birth", dateOfBirth); return new IdentityVerificationParam(this); } } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model/param/KtpParam.java
package glair.vision.model.param; import glair.vision.util.Json; import java.util.HashMap; /** * The `KtpParam` class represents parameters for processing a KTP. */ public class KtpParam { private final String imagePath; private final Boolean qualitiesDetector; /** * Constructs a `KtpParam` instance with the specified image path and default * qualities detector setting. * * @param imagePath The path to the KTP image. */ public KtpParam(String imagePath) { this(imagePath, false); } /** * Constructs a `KtpParam` instance with the specified image path and qualities * detector setting. * * @param imagePath The path to the KTP image. * @param qualitiesDetector A boolean flag indicating whether qualities detection * should be enabled. */ public KtpParam(String imagePath, Boolean qualitiesDetector) { this.imagePath = imagePath; this.qualitiesDetector = qualitiesDetector; } /** * Gets the qualities detector setting. * * @return The qualities detector setting, `true` if enabled, `false` otherwise. */ public Boolean getQualitiesDetector() { return qualitiesDetector; } /** * Gets the path to the KTP image. * * @return The path to the KTP image. */ public String getImagePath() { return imagePath; } /** * Returns a string representation of the `KtpParam` object. * * @return A string containing information about the image path and qualities * detector setting. */ @Override public String toString() { HashMap<String, String> map = new HashMap<>(); map.put("Image Path", this.imagePath); map.put("Qualities Detector", this.qualitiesDetector.toString()); return Json.toJsonString(map, 2); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model/param
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model/param/sessions/ActiveLivenessSessionsParam.java
package glair.vision.model.param.sessions; import glair.vision.util.Json; import java.util.HashMap; /** * Represents the parameters for an Active Liveness session. * This class extends the {@link BaseSessionsParam} class to include the number of * gestures. */ public class ActiveLivenessSessionsParam extends BaseSessionsParam { private int numberOfGestures = 1; /** * Constructs an ActiveLivenessSessionsParam instance with the specified success URL. * * @param successUrl The URL to redirect to upon successful session completion. */ public ActiveLivenessSessionsParam(String successUrl) { super(successUrl); } /** * Gets the number of gestures for the Active Liveness session. * * @return The number of gestures. */ public int getNumberOfGestures() { return numberOfGestures; } /** * Sets the number of gestures for the Active Liveness session. * * @param numberOfGestures The number of gestures to set. If not set, the default * will be 1. */ public void setNumberOfGestures(int numberOfGestures) { this.numberOfGestures = numberOfGestures; } /** * Returns a JSON representation of the Active Liveness session parameters. * * @return A JSON string representing the session parameters. */ @Override public String toString() { HashMap<String, String> map = new HashMap<>(); map.put("Success Url", super.getSuccessUrl()); map.put("Cancel Url", super.getCancelUrl()); map.put("Number of Gestures", Integer.toString(numberOfGestures)); return Json.toJsonString(map, 2); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model/param
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model/param/sessions/BaseSessionsParam.java
package glair.vision.model.param.sessions; import glair.vision.util.Json; import java.util.HashMap; /** * Represents the basic parameters for a session. * This class includes success and cancel URLs that can be set for the session. */ public class BaseSessionsParam { private final String successUrl; private String cancelUrl; /** * Constructs a BasicSessionsParam instance with the specified success URL. * * @param successUrl The URL to redirect to upon successful session completion. */ public BaseSessionsParam(String successUrl) { this.successUrl = successUrl; } /** * Gets the success URL for the session. * * @return The success URL. */ public String getSuccessUrl() { return successUrl; } /** * Gets the cancel URL for the session. * * @return The cancel URL. If set, GLAIR will show a back button on the prebuilt-UI, * and your user will be directed to this URL when the button is clicked. */ public String getCancelUrl() { return cancelUrl; } /** * Sets the cancel URL for the session. * * @param cancelUrl The URL to redirect to if the session is canceled. If set, GLAIR * will show a back button on the prebuilt-UI, and your user will be * directed to this URL when the button is clicked. */ public void setCancelUrl(String cancelUrl) { this.cancelUrl = cancelUrl; } /** * Returns a JSON representation of the session parameters. * * @return A JSON string representing the session parameters. */ @Override public String toString() { HashMap<String, String> map = new HashMap<>(); map.put("Success Url", this.successUrl); map.put("Cancel Url", this.cancelUrl); return Json.toJsonString(map, 2); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model/param
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/model/param/sessions/KtpSessionsParam.java
package glair.vision.model.param.sessions; import glair.vision.util.Json; import java.util.HashMap; /** * Represents the parameters for a KTP (Kartu Tanda Penduduk) session. * This class extends the {@link BaseSessionsParam} class to include additional options. */ public class KtpSessionsParam extends BaseSessionsParam { private boolean qualitiesDetector = false; /** * Constructs a KtpSessionsParam instance with the specified success URL. * * @param successUrl The URL to redirect to upon successful session completion. */ public KtpSessionsParam(String successUrl) { super(successUrl); } /** * Gets whether the image should be checked for quality during the KTP session. * * @return True if the image quality check is enabled, false otherwise. */ public boolean getQualitiesDetector() { return qualitiesDetector; } /** * Sets whether the image should be checked for quality during the KTP session. * * @param qualitiesDetector If set to true, the image will be checked for quality. * The default value is false. */ public void setQualitiesDetector(boolean qualitiesDetector) { this.qualitiesDetector = qualitiesDetector; } /** * Returns a JSON representation of the KTP session parameters. * * @return A JSON string representing the session parameters. */ @Override public String toString() { HashMap<String, String> map = new HashMap<>(); map.put("Success Url", super.getSuccessUrl()); map.put("Cancel Url", super.getCancelUrl()); map.put("Qualities Detector", String.valueOf(qualitiesDetector)); return Json.toJsonString(map, 2); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/util/Base64.java
package glair.vision.util; /* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import java.io.UnsupportedEncodingException; /** * Utilities for encoding and decoding the Base64 representation of * binary data. See RFCs <a * href="http://www.ietf.org/rfc/rfc2045.txt">2045</a> and <a * href="http://www.ietf.org/rfc/rfc3548.txt">3548</a>. */ public class Base64 { /** * Default values for encoder/decoder flags. */ public static final int DEFAULT = 0; /** * Encoder flag bit to omit the padding '=' characters at the end * of the output (if any). */ public static final int NO_PADDING = 1; /** * Encoder flag bit to omit all line terminators (i.e., the output * will be on one long line). */ public static final int NO_WRAP = 2; /** * Encoder flag bit to indicate lines should be terminated with a * CRLF pair instead of just an LF. Has no effect if {@code * NO_WRAP} is specified as well. */ public static final int CRLF = 4; /** * Encoder/decoder flag bit to indicate using the "URL and * filename safe" variant of Base64 (see RFC 3548 section 4) where * {@code -} and {@code _} are used in place of {@code +} and * {@code /}. */ public static final int URL_SAFE = 8; /** * Flag to pass to {Base64OutputStream} to indicate that it * should not close the output stream it is wrapping when it * itself is closed. */ public static final int NO_CLOSE = 16; // -------------------------------------------------------- // shared code // -------------------------------------------------------- /* package */ static abstract class Coder { public byte[] output; public int op; /** * Encode/decode another block of input data. this.output is * provided by the caller, and must be big enough to hold all * the coded data. On exit, this.opwill be set to the length * of the coded data. * * @param finish true if this is the final call to process for * this object. Will finalize the coder state and * include any final bytes in the output. * @return true if the input so far is good; false if some * error has been detected in the input stream.. */ public abstract boolean process(byte[] input, int offset, int len, boolean finish); /** * @return the maximum number of bytes a call to process() * could produce for the given number of input bytes. This may * be an overestimate. */ public abstract int maxOutputSize(int len); } // -------------------------------------------------------- // decoding // -------------------------------------------------------- /** * Decode the Base64-encoded data in input and return the data in * a new byte array. * * <p>The padding '=' characters at the end are considered optional, but * if any are present, there must be the correct number of them. * * @param str the input String to decode, which is converted to * bytes using the default charset * @param flags controls certain features of the decoded output. * Pass {@code DEFAULT} to decode standard Base64. * @return array of byte. * @throws IllegalArgumentException if the input contains * incorrect padding */ public static byte[] decode(String str, int flags) { return decode(str.getBytes(), flags); } /** * Decode the Base64-encoded data in input and return the data in * a new byte array. * * <p>The padding '=' characters at the end are considered optional, but * if any are present, there must be the correct number of them. * * @param input the input array to decode * @param flags controls certain features of the decoded output. * Pass {@code DEFAULT} to decode standard Base64. * @return array of byte. * @throws IllegalArgumentException if the input contains * incorrect padding */ public static byte[] decode(byte[] input, int flags) { return decode(input, 0, input.length, flags); } /** * Decode the Base64-encoded data in input and return the data in * a new byte array. * * <p>The padding '=' characters at the end are considered optional, but * if any are present, there must be the correct number of them. * * @param input the data to decode * @param offset the position within the input array at which to start * @param len the number of bytes of input to decode * @param flags controls certain features of the decoded output. * Pass {@code DEFAULT} to decode standard Base64. * @return array of byte. * @throws IllegalArgumentException if the input contains * incorrect padding */ public static byte[] decode(byte[] input, int offset, int len, int flags) { // Allocate space for the most data the input could represent. // (It could contain less if it contains whitespace, etc.) Decoder decoder = new Decoder(flags, new byte[len * 3 / 4]); if (!decoder.process(input, offset, len, true)) { throw new IllegalArgumentException("bad base-64"); } // Maybe we got lucky and allocated exactly enough output space. if (decoder.op == decoder.output.length) { return decoder.output; } // Need to shorten the array, so allocate a new one of the // right size and copy. byte[] temp = new byte[decoder.op]; System.arraycopy(decoder.output, 0, temp, 0, decoder.op); return temp; } /* package */ static class Decoder extends Coder { /** * Lookup table for turning bytes into their position in the * Base64 alphabet. */ private static final int DECODE[] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 , -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -2, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,}; /** * Decode lookup table for the "web safe" variant (RFC 3548 * sec. 4) where - and _ replace + and /. */ private static final int DECODE_WEBSAFE[] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1 , -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -2, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, 63, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,}; /** * Non-data values in the DECODE arrays. */ private static final int SKIP = -1; private static final int EQUALS = -2; /** * States 0-3 are reading through the next input tuple. * State 4 is having read one '=' and expecting exactly * one more. * State 5 is expecting no more data or padding characters * in the input. * State 6 is the error state; an error has been detected * in the input and no future input can "fix" it. */ private int state; // state number (0 to 6) private int value; final private int[] alphabet; public Decoder(int flags, byte[] output) { this.output = output; alphabet = ((flags & URL_SAFE) == 0) ? DECODE : DECODE_WEBSAFE; state = 0; value = 0; } /** * @return an overestimate for the number of bytes {@code * len} bytes could decode to. */ public int maxOutputSize(int len) { return len * 3 / 4 + 10; } /** * Decode another block of input data. * * @return true if the state machine is still healthy. false if * bad base-64 data has been detected in the input stream. */ public boolean process(byte[] input, int offset, int len, boolean finish) { if (this.state == 6) return false; int p = offset; len += offset; // Using local variables makes the decoder about 12% // faster than if we manipulate the member variables in // the loop. (Even alphabet makes a measurable // difference, which is somewhat surprising to me since // the member variable is final.) int state = this.state; int value = this.value; int op = 0; final byte[] output = this.output; final int[] alphabet = this.alphabet; while (p < len) { // Try the fast path: we're starting a new tuple and the // next four bytes of the input stream are all data // bytes. This corresponds to going through states // 0-1-2-3-0. We expect to use this method for most of // the data. // // If any of the next four bytes of input are non-data // (whitespace, etc.), value will end up negative. (All // the non-data values in decode are small negative // numbers, so shifting any of them up and or'ing them // together will result in a value with its top bit set.) // // You can remove this whole block and the output should // be the same, just slower. if (state == 0) { while (p + 4 <= len && (value = ((alphabet[input[p] & 0xff] << 18) | (alphabet[input[p + 1] & 0xff] << 12) | (alphabet[input[p + 2] & 0xff] << 6) | (alphabet[input[p + 3] & 0xff]))) >= 0) { output[op + 2] = (byte) value; output[op + 1] = (byte) (value >> 8); output[op] = (byte) (value >> 16); op += 3; p += 4; } if (p >= len) break; } // The fast path isn't available -- either we've read a // partial tuple, or the next four input bytes aren't all // data, or whatever. Fall back to the slower state // machine implementation. int d = alphabet[input[p++] & 0xff]; switch (state) { case 0: if (d >= 0) { value = d; ++state; } else if (d != SKIP) { this.state = 6; return false; } break; case 1: if (d >= 0) { value = (value << 6) | d; ++state; } else if (d != SKIP) { this.state = 6; return false; } break; case 2: if (d >= 0) { value = (value << 6) | d; ++state; } else if (d == EQUALS) { // Emit the last (partial) output tuple; // expect exactly one more padding character. output[op++] = (byte) (value >> 4); state = 4; } else if (d != SKIP) { this.state = 6; return false; } break; case 3: if (d >= 0) { // Emit the output triple and return to state 0. value = (value << 6) | d; output[op + 2] = (byte) value; output[op + 1] = (byte) (value >> 8); output[op] = (byte) (value >> 16); op += 3; state = 0; } else if (d == EQUALS) { // Emit the last (partial) output tuple; // expect no further data or padding characters. output[op + 1] = (byte) (value >> 2); output[op] = (byte) (value >> 10); op += 2; state = 5; } else if (d != SKIP) { this.state = 6; return false; } break; case 4: if (d == EQUALS) { ++state; } else if (d != SKIP) { this.state = 6; return false; } break; case 5: if (d != SKIP) { this.state = 6; return false; } break; } } if (!finish) { // We're out of input, but a future call could provide // more. this.state = state; this.value = value; this.op = op; return true; } // Done reading input. Now figure out where we are left in // the state machine and finish up. switch (state) { case 0: // Output length is a multiple of three. Fine. break; case 1: // Read one extra input byte, which isn't enough to // make another output byte. Illegal. this.state = 6; return false; case 2: // Read two extra input bytes, enough to emit 1 more // output byte. Fine. output[op++] = (byte) (value >> 4); break; case 3: // Read three extra input bytes, enough to emit 2 more // output bytes. Fine. output[op++] = (byte) (value >> 10); output[op++] = (byte) (value >> 2); break; case 4: // Read one padding '=' when we expected 2. Illegal. this.state = 6; return false; case 5: // Read all the padding '='s we expected and no more. // Fine. break; } this.state = state; this.op = op; return true; } } // -------------------------------------------------------- // encoding // -------------------------------------------------------- /** * Base64-encode the given data and return a newly allocated * String with the result. * * @param input the data to encode * @param flags controls certain features of the encoded output. * Passing {@code DEFAULT} results in output that * adheres to RFC 2045. * @return String. */ public static String encodeToString(byte[] input, int flags) { try { return new String(encode(input, flags), "US-ASCII"); } catch (UnsupportedEncodingException e) { // US-ASCII is guaranteed to be available. throw new AssertionError(e); } } /** * Base64-encode the given data and return a newly allocated * String with the result. * * @param input the data to encode * @param offset the position within the input array at which to * start * @param len the number of bytes of input to encode * @param flags controls certain features of the encoded output. * Passing {@code DEFAULT} results in output that * adheres to RFC 2045. * @return String. */ public static String encodeToString(byte[] input, int offset, int len, int flags) { try { return new String(encode(input, offset, len, flags), "US-ASCII"); } catch (UnsupportedEncodingException e) { // US-ASCII is guaranteed to be available. throw new AssertionError(e); } } /** * Base64-encode the given data and return a newly allocated * byte[] with the result. * * @param input the data to encode * @param flags controls certain features of the encoded output. * Passing {@code DEFAULT} results in output that * adheres to RFC 2045. * @return Array of byte. */ public static byte[] encode(byte[] input, int flags) { return encode(input, 0, input.length, flags); } /** * Base64-encode the given data and return a newly allocated * byte[] with the result. * * @param input the data to encode * @param offset the position within the input array at which to * start * @param len the number of bytes of input to encode * @param flags controls certain features of the encoded output. * Passing {@code DEFAULT} results in output that * adheres to RFC 2045. * @return Array of byte. */ public static byte[] encode(byte[] input, int offset, int len, int flags) { Encoder encoder = new Encoder(flags, null); // Compute the exact length of the array we will produce. int output_len = len / 3 * 4; // Account for the tail of the data and the padding bytes, if any. if (encoder.do_padding) { if (len % 3 > 0) { output_len += 4; } } else { switch (len % 3) { case 0: break; case 1: output_len += 2; break; case 2: output_len += 3; break; } } // Account for the newlines, if any. if (encoder.do_newline && len > 0) { output_len += (((len - 1) / (3 * Encoder.LINE_GROUPS)) + 1) * (encoder.do_cr ? 2 : 1); } encoder.output = new byte[output_len]; encoder.process(input, offset, len, true); assert encoder.op == output_len; return encoder.output; } /* package */ static class Encoder extends Coder { /** * Emit a new line every this many output tuples. Corresponds to * a 76-character line length (the maximum allowable according to * <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a>). */ public static final int LINE_GROUPS = 19; /** * Lookup table for turning Base64 alphabet positions (6 bits) * into output bytes. */ private static final byte ENCODE[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/',}; /** * Lookup table for turning Base64 alphabet positions (6 bits) * into output bytes. */ private static final byte ENCODE_WEBSAFE[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '_',}; final private byte[] tail; /* package */ int tailLen; private int count; final public boolean do_padding; final public boolean do_newline; final public boolean do_cr; final private byte[] alphabet; public Encoder(int flags, byte[] output) { this.output = output; do_padding = (flags & NO_PADDING) == 0; do_newline = false; // (flags & NO_WRAP) == 0; do_cr = (flags & CRLF) != 0; alphabet = ((flags & URL_SAFE) == 0) ? ENCODE : ENCODE_WEBSAFE; tail = new byte[2]; tailLen = 0; count = do_newline ? LINE_GROUPS : -1; } /** * @return an overestimate for the number of bytes {@code * len} bytes could encode to. */ public int maxOutputSize(int len) { return len * 8 / 5 + 10; } public boolean process(byte[] input, int offset, int len, boolean finish) { // Using local variables makes the encoder about 9% faster. final byte[] alphabet = this.alphabet; final byte[] output = this.output; int op = 0; int count = this.count; int p = offset; len += offset; int v = -1; // First we need to concatenate the tail of the previous call // with any input bytes available now and see if we can empty // the tail. switch (tailLen) { case 0: // There was no tail. break; case 1: if (p + 2 <= len) { // A 1-byte tail with at least 2 bytes of // input available now. v = ((tail[0] & 0xff) << 16) | ((input[p++] & 0xff) << 8) | (input[p++] & 0xff); tailLen = 0; } ; break; case 2: if (p + 1 <= len) { // A 2-byte tail with at least 1 byte of input. v = ((tail[0] & 0xff) << 16) | ((tail[1] & 0xff) << 8) | (input[p++] & 0xff); tailLen = 0; } break; } if (v != -1) { output[op++] = alphabet[(v >> 18) & 0x3f]; output[op++] = alphabet[(v >> 12) & 0x3f]; output[op++] = alphabet[(v >> 6) & 0x3f]; output[op++] = alphabet[v & 0x3f]; if (--count == 0) { if (do_cr) output[op++] = '\r'; output[op++] = '\n'; count = LINE_GROUPS; } } // At this point either there is no tail, or there are fewer // than 3 bytes of input available. // The main loop, turning 3 input bytes into 4 output bytes on // each iteration. while (p + 3 <= len) { v = ((input[p] & 0xff) << 16) | ((input[p + 1] & 0xff) << 8) | (input[p + 2] & 0xff); output[op] = alphabet[(v >> 18) & 0x3f]; output[op + 1] = alphabet[(v >> 12) & 0x3f]; output[op + 2] = alphabet[(v >> 6) & 0x3f]; output[op + 3] = alphabet[v & 0x3f]; p += 3; op += 4; if (--count == 0) { if (do_cr) output[op++] = '\r'; output[op++] = '\n'; count = LINE_GROUPS; } } if (finish) { // Finish up the tail of the input. Note that we need to // consume any bytes in tail before any bytes // remaining in input; there should be at most two bytes // total. if (p - tailLen == len - 1) { int t = 0; v = ((tailLen > 0 ? tail[t++] : input[p++]) & 0xff) << 4; tailLen -= t; output[op++] = alphabet[(v >> 6) & 0x3f]; output[op++] = alphabet[v & 0x3f]; if (do_padding) { output[op++] = '='; output[op++] = '='; } if (do_newline) { if (do_cr) output[op++] = '\r'; output[op++] = '\n'; } } else if (p - tailLen == len - 2) { int t = 0; v = (((tailLen > 1 ? tail[t++] : input[p++]) & 0xff) << 10) | (((tailLen > 0 ? tail[t++] : input[p++]) & 0xff) << 2); tailLen -= t; output[op++] = alphabet[(v >> 12) & 0x3f]; output[op++] = alphabet[(v >> 6) & 0x3f]; output[op++] = alphabet[v & 0x3f]; if (do_padding) { output[op++] = '='; } if (do_newline) { if (do_cr) output[op++] = '\r'; output[op++] = '\n'; } } else if (do_newline && op > 0 && count != LINE_GROUPS) { if (do_cr) output[op++] = '\r'; output[op++] = '\n'; } assert tailLen == 0; assert p == len; } else { // Save the leftovers in tail to be consumed on the next // call to encodeInternal. if (p == len - 1) { tail[tailLen++] = input[p]; } else if (p == len - 2) { tail[tailLen++] = input[p]; tail[tailLen++] = input[p + 1]; } } this.op = op; this.count = count; return true; } } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/util/Env.java
package glair.vision.util; import java.io.File; import java.io.FileInputStream; import java.util.Properties; /** * The `Env` class provides access to configuration properties loaded from a file. * It allows retrieving specific properties such as usernames, passwords, API keys, * and various document-related values. */ public class Env { /** * A `Properties` object to store the loaded properties. */ private final Properties properties = new Properties(); /** * Constructs an `Env` instance and loads configuration properties from the default * file. * * @throws Exception If an error occurs while loading the properties file. */ public Env() throws Exception { this("config.properties", false); } /** * Constructs an `Env` instance with the option to print the absolute path of the * properties file. * * @param propertiesPath Set the file path of the properties file. * @param debug Set to `true` to print the absolute path of the properties file. * @throws Exception If an error occurs while loading the properties file. */ public Env(String propertiesPath, boolean debug) throws Exception { try (FileInputStream fileInputStream = new FileInputStream(propertiesPath)) { properties.load(fileInputStream); } if (debug) { File file = new File(propertiesPath); System.out.println(file.getAbsolutePath()); } } /** * Retrieves a specific property value from the loaded configuration properties. * * @param key The key of the property to retrieve. * @return The value of the specified property or null if the property is not found. */ private String getProperty(String key) { return properties.getProperty(key); } /** * Retrieves the username from the configuration properties. * * @return The username. */ public String getUsername() { return getProperty("username"); } /** * Retrieves the password from the configuration properties. * * @return The password. */ public String getPassword() { return getProperty("password"); } /** * Retrieves the api key from the configuration properties. * * @return The api key. */ public String getApiKey() { return getProperty("apiKey"); } /** * Retrieves the KTP image path from the configuration properties. * * @return The KTP image path. */ public String getKtp() { return getProperty("ktp"); } /** * Retrieves the NPWP image path from the configuration properties. * * @return The NPWP image path. */ public String getNpwp() { return getProperty("npwp"); } /** * Retrieves the KK image path from the configuration properties. * * @return The KK image path. */ public String getKk() { return getProperty("kk"); } /** * Retrieves the STNK image path from the configuration properties. * * @return The STNK image path. */ public String getStnk() { return getProperty("stnk"); } /** * Retrieves the BPKB image path from the configuration properties. * * @return The BPKB image path. */ public String getBpkb() { return getProperty("bpkb"); } /** * Retrieves the Passport image path from the configuration properties. * * @return The Passport image path. */ public String getPassport() { return getProperty("passport"); } /** * Retrieves the License Plate image path from the configuration properties. * * @return The License Plate image path. */ public String getLicensePlate() { return getProperty("licensePlate"); } /** * Retrieves the General Document image path from the configuration properties. * * @return The General Document image path. */ public String getGeneralDocument() { return getProperty("generalDocument"); } /** * Retrieves the Invoice image path from the configuration properties. * * @return The Invoice image path. */ public String getInvoice() { return getProperty("invoice"); } /** * Retrieves the Receipt image path from the configuration properties. * * @return The Receipt image path. */ public String getReceipt() { return getProperty("receipt"); } /** * Retrieves the Identity verification data from the configuration properties. * * @return The Identity verification data. */ public String getIdentityBasicVerification() { return getProperty("identityBasicVerification"); } /** * Retrieves the Identity face image path from the configuration properties. * * @return The Identity face image path. */ public String getIdentityFaceVerification() { return getProperty("identityFaceVerification"); } /** * Retrieves the Face image path from the configuration properties. * * @return The Face image path. */ public String getFace() { return getProperty("face"); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/util/Json.java
package glair.vision.util; import java.util.HashMap; import java.util.Map; /** * Utility class for working with JSON data and formatting. */ public class Json { /** * Formats a single key-value pair as a JSON property. * * @param key The key. * @param value The value. * @return The formatted key-value string in JSON property format. */ private static String formatJsonProperty(String key, String value) { return "\"" + key + "\": \"" + value + "\""; } /** * Formats a single key-value pair into a JSON string. * * @param key The key. * @param value The value. * @return The formatted JSON object as a string. */ public static String toJsonString(String key, String value) { return "{" + formatJsonProperty(key, value) + "}"; } /** * Formats a map of key-value pairs into a JSON string. * * @param map The map containing key-value pairs. * @return The formatted JSON object as a string. */ public static String toJsonString(HashMap<String, String> map) { StringBuilder stringBuilder = new StringBuilder(); boolean first = true; stringBuilder.append("{"); for (Map.Entry<String, String> entry : map.entrySet()) { if (!first) { stringBuilder.append(", "); } stringBuilder.append(formatJsonProperty(entry.getKey(), entry.getValue())); first = false; } stringBuilder.append("}"); return stringBuilder.toString(); } /** * Formats a map of key-value pairs into a JSON string with indentation. * * @param map The map containing key-value pairs. * @param indent The number of spaces for indentation. * @return The formatted JSON object as a string. */ public static String toJsonString(HashMap<String, String> map, int indent) { String tab = createTab(indent); StringBuilder stringBuilder = new StringBuilder("{\n"); for (Map.Entry<String, String> entry : map.entrySet()) { stringBuilder .append(tab) .append(formatJsonProperty(entry.getKey(), entry.getValue())); if (!entry.equals(map.entrySet().iterator().next())) { stringBuilder.append(","); } stringBuilder.append("\n"); } stringBuilder.append("}"); return stringBuilder.toString(); } private static String createTab(int indent) { StringBuilder indentation = new StringBuilder(); for (int i = 0; i < indent; i++) { indentation.append(" "); } return indentation.toString(); } }
0
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision
java-sources/ai/glair/glair-vision/0.0.1-beta.1/glair/vision/util/Util.java
package glair.vision.util; import glair.vision.Vision; import glair.vision.api.Config; import glair.vision.logger.Logger; import glair.vision.model.Request; import okhttp3.MediaType; import okhttp3.MultipartBody; import okhttp3.OkHttpClient; import okhttp3.RequestBody; import okhttp3.Response; import java.io.File; import java.io.FileInputStream; import java.net.URLConnection; import java.util.concurrent.TimeUnit; /** * Utility class for common operations and HTTP requests. */ public class Util { private static final Logger logger = Logger.getInstance(); private static final OkHttpClient client = new OkHttpClient.Builder() .connectTimeout(5, TimeUnit.MINUTES) .writeTimeout(5, TimeUnit.MINUTES) .readTimeout(5, TimeUnit.MINUTES) .build(); /** * Performs an HTTP request and fetches data from a specified endpoint. * * @param config The configuration settings for the request. * @param request The HTTP request to be executed. * @return The response data from the HTTP request. * @throws Exception If an error occurs during the HTTP request or if the response * status is not OK (200). */ public static String visionFetch(Config config, Request request) throws Exception { String method = request.getMethod(); String apiEndpoint = config.getUrl(request.getPath()); logger.debug("URL", Json.toJsonString("url", apiEndpoint)); logger.debug(config); okhttp3.Request.Builder httpRequestBuilder = new okhttp3.Request.Builder() .header("Authorization", config.getBasicAuth()) .header("x-api-key", config.getApiKey()) .header("GLAIR-Vision-Java-SDK-Version", Vision.version) .url(apiEndpoint); if (method.equalsIgnoreCase("GET")) { httpRequestBuilder.get(); } else if (method.equalsIgnoreCase("POST")) { httpRequestBuilder.post(request.getBody()); } okhttp3.Request httpRequest = httpRequestBuilder.build(); try (Response response = client.newCall(httpRequest).execute()) { String body = response.body() != null ? response.body().string() : "null"; if (response.isSuccessful()) { return body; } else { throw new Exception(body); } } } /** * Creates and returns a new instance of {@link MultipartBody.Builder} configured for * forming HTTP multipart requests with form data. * * @return A {@link MultipartBody.Builder} configured for form data. */ public static MultipartBody.Builder createFormData() { return new MultipartBody.Builder().setType(MultipartBody.FORM); } /** * Adds a file to the specified {@link MultipartBody.Builder} as form data. * * @param builder The {@link MultipartBody.Builder} to which the file should be added. * @param fieldName The name of the form field for the file. * @param filePath The path to the file to be added. */ public static void addFileToFormData( MultipartBody.Builder builder, String fieldName, String filePath ) { File file = new File(filePath); RequestBody filePart = RequestBody.create(file, MediaType.parse(getMimeType(file))); builder.addFormDataPart(fieldName, file.getName(), filePart); } /** * Adds text data to the specified {@link MultipartBody.Builder} as form data. * * @param builder The {@link MultipartBody.Builder} to which the text data should * be added. * @param fieldName The name of the form field for the text data. * @param fieldValue The value of the text data. */ public static void addTextToFormData( MultipartBody.Builder builder, String fieldName, String fieldValue ) { builder.addFormDataPart(fieldName, fieldValue); } private static String getMimeType(File file) { return URLConnection.guessContentTypeFromName(file.getName()); } /** * Converts a file located at the specified path to a Base64-encoded string. * * @param filePath The path to the file to be converted to Base64. * @return A Base64-encoded string representing the content of the file. * @throws Exception If an error occurs during the file conversion process. */ public static String fileToBase64(String filePath) throws Exception { File file = new File(filePath); byte[] buffer = new byte[(int) file.length() + 100]; @SuppressWarnings("resource") int length = new FileInputStream(file).read(buffer); return Base64.encodeToString(buffer, 0, length, Base64.DEFAULT); } /** * Checks if a value is null and throws an exception if it is. * * @param key The key associated with the value. * @param value The value to check. * @throws Exception If the value is null. */ public static void require(String key, String value) throws Exception { if (value == null) { throw new Exception("Require " + key); } } /** * Removes all whitespace from a string. * * @param str The input string. * @return The string with all whitespace removed. */ public static String trimAll(String str) { return str.replaceAll("\\s+", ""); } /** * Checks if a file exists at the specified file path. * * @param filePath The path to the file to be checked. * @throws Exception If the file does not exist or an error occurs during the check. */ public static void checkFileExist(String filePath) throws Exception { File file = new File(filePath); if (!file.exists()) { throw new Exception("The file does not exist."); } } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/batch/BatchExecutorClient.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.batch; import ai.grakn.API; import ai.grakn.Keyspace; import ai.grakn.graql.Query; import ai.grakn.util.SimpleURI; import com.codahale.metrics.Meter; import com.codahale.metrics.MetricRegistry; import com.codahale.metrics.Timer; import com.codahale.metrics.Timer.Context; import com.github.rholder.retry.Attempt; import com.github.rholder.retry.RetryException; import com.github.rholder.retry.RetryListener; import com.github.rholder.retry.Retryer; import com.github.rholder.retry.RetryerBuilder; import com.github.rholder.retry.StopStrategies; import com.github.rholder.retry.WaitStrategies; import com.netflix.hystrix.HystrixCollapser; import com.netflix.hystrix.HystrixCollapserKey; import com.netflix.hystrix.HystrixCollapserProperties; import com.netflix.hystrix.HystrixCommand; import com.netflix.hystrix.HystrixCommandGroupKey; import com.netflix.hystrix.HystrixCommandProperties; import com.netflix.hystrix.HystrixThreadPoolProperties; import com.netflix.hystrix.strategy.concurrency.HystrixRequestContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import rx.Observable; import rx.Scheduler; import rx.schedulers.Schedulers; import javax.annotation.Nullable; import java.io.Closeable; import java.net.ConnectException; import java.util.Collection; import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Semaphore; import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.stream.Collectors; import static com.codahale.metrics.MetricRegistry.name; /** * Client to batch load qraql queries into Grakn that mutate the graph. * * Provides methods to batch load queries. Optionally can provide a consumer that will execute when * a batch finishes loading. BatchExecutorClient will block when the configured resources are being * used to execute tasks. * * @author Domenico Corapi */ public class BatchExecutorClient implements Closeable { private static final Logger LOG = LoggerFactory.getLogger(BatchExecutorClient.class); private final GraknClient graknClient; private final HystrixRequestContext context; // We only allow a certain number of queries to be waiting to execute at once for performance reasons private final Semaphore queryExecutionSemaphore; // Config private final int maxDelay; private final int maxRetries; private final int maxQueries; private final int threadPoolCoreSize; private final int timeoutMs; // Metrics private final MetricRegistry metricRegistry; private final Meter failureMeter; private final Timer addTimer; private final Scheduler scheduler; private final ExecutorService executor; private boolean requestLogEnabled; @Nullable private Consumer<? super QueryResponse> queryResponseHandler = null; @Nullable private Consumer<? super Exception> exceptionHandler = null; private final UUID id = UUID.randomUUID(); private BatchExecutorClient(Builder builder) { context = HystrixRequestContext.initializeContext(); graknClient = builder.graknClient; maxDelay = builder.maxDelay; maxRetries = builder.maxRetries; maxQueries = builder.maxQueries; metricRegistry = builder.metricRegistry; timeoutMs = builder.timeoutMs; threadPoolCoreSize = builder.threadPoolCoreSize; requestLogEnabled = builder.requestLogEnabled; // Note that the pool on which the observables run is different from the Hystrix pool // They need to be of comparable sizes and they should match the capabilities // of the server executor = Executors.newFixedThreadPool(threadPoolCoreSize); scheduler = Schedulers.from(executor); queryExecutionSemaphore = new Semaphore(maxQueries); addTimer = metricRegistry.timer(name(BatchExecutorClient.class, "add")); failureMeter = metricRegistry.meter(name(BatchExecutorClient.class, "failure")); } /** * Will block until there is space for the query to be submitted */ public void add(Query<?> query, Keyspace keyspace) { QueryRequest queryRequest = new QueryRequest(query); queryRequest.acquirePermit(); Context contextAddTimer = addTimer.time(); Observable<QueryResponse> observable = new QueriesObservableCollapser(queryRequest, keyspace) .observe() .doOnError(error -> failureMeter.mark()) .subscribeOn(scheduler) .doOnTerminate(contextAddTimer::close); // We have to subscribe to make the query start loading observable.subscribe(); } public void onNext(Consumer<? super QueryResponse> queryResponseHandler) { this.queryResponseHandler = queryResponseHandler; } public void onError(Consumer<? super Exception> exceptionHandler) { this.exceptionHandler = exceptionHandler; } /** * Will block until all submitted queries have executed */ @Override public void close() { LOG.debug("Closing BatchExecutorClient"); // Acquire ALL permits. Only possible when all the permits are released. // This means this method will only return when ALL the queries are completed. LOG.trace("Acquiring all {} permits ({} available)", maxQueries, queryExecutionSemaphore.availablePermits()); queryExecutionSemaphore.acquireUninterruptibly(maxQueries); LOG.trace("Acquired all {} permits ({} available)", maxQueries, queryExecutionSemaphore.availablePermits()); context.close(); executor.shutdownNow(); } public static Builder newBuilder() { return new Builder(); } @API public static Builder newBuilderforURI(SimpleURI simpleURI) { return new Builder().taskClient(GraknClient.of(simpleURI)); } /** * Builder * * @author Domenico Corapi */ public static final class Builder { private GraknClient graknClient; private int maxDelay = 50; private int maxRetries = 5; private int threadPoolCoreSize = 8; private int timeoutMs = 60_000; private int maxQueries = 10_000; private boolean requestLogEnabled = false; private MetricRegistry metricRegistry = new MetricRegistry(); private Builder() { } public Builder taskClient(GraknClient val) { graknClient = val; return this; } public Builder maxDelay(int val) { maxDelay = val; return this; } public Builder maxRetries(int val) { maxRetries = val; return this; } public Builder threadPoolCoreSize(int val) { threadPoolCoreSize = val; return this; } public Builder metricRegistry(MetricRegistry val) { metricRegistry = val; return this; } public Builder maxQueries(int val) { maxQueries = val; return this; } public Builder requestLogEnabled(boolean val) { requestLogEnabled = val; return this; } public BatchExecutorClient build() { return new BatchExecutorClient(this); } } /** * Used to make queries with the same text different. * We need this because we don't want to cache inserts. * * This is a non-static class so it can access all fields of {@link BatchExecutorClient}, such as the * {@link BatchExecutorClient#queryExecutionSemaphore}. This avoids bugs where Hystrix caches certain parameters * or properties like the semaphore: the request is linked directly to the {@link BatchExecutorClient} that * created it. */ private class QueryRequest { private Query<?> query; private UUID id; QueryRequest(Query<?> query) { this.query = query; this.id = UUID.randomUUID(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } QueryRequest that = (QueryRequest) o; return (query != null ? query.equals(that.query) : that.query == null) && (id != null ? id.equals(that.id) : that.id == null); } @Override public int hashCode() { int result = query != null ? query.hashCode() : 0; result = 31 * result + (id != null ? id.hashCode() : 0); return result; } @Override public String toString() { return "QueryRequest{" + "query=" + query + ", id=" + id + '}'; } public Query<?> getQuery() { return query; } void acquirePermit() { assert queryExecutionSemaphore.availablePermits() <= maxQueries : "Number of available permits should never exceed max queries"; // Acquire permission to execute a query - will block until a permit is available LOG.trace("Acquiring a permit for {} ({} available)", id, queryExecutionSemaphore.availablePermits()); queryExecutionSemaphore.acquireUninterruptibly(); LOG.trace("Acquired a permit for {} ({} available)", id, queryExecutionSemaphore.availablePermits()); } void releasePermit() { // Release a query execution permit, allowing a new query to execute queryExecutionSemaphore.release(); int availablePermits = queryExecutionSemaphore.availablePermits(); LOG.trace("Released a permit for {} ({} available)", id, availablePermits); } } // Internal commands /* * The Batch Executor client uses Hystrix to batch requests. As a positive side effect * we get the Hystrix circuit breaker too. * Hystrix wraps every thing that it does inside a Command. A Command defines what happens * when it's run, and optionally a fallback. Here in CommandQueries, we just define the run. * The batching is implemented using a Collapser, in our case * it's the QueriesObservableCollapser. * See the classes Javadocs for more info. */ /** * This is the hystrix command for the batch. If collapsing weren't performed * we would call this command directly passing a set of queries. * Within the collapsing logic, this command is called after a certain timeout * expires to batch requests together. * * @author Domenico Corapi */ private class CommandQueries extends HystrixCommand<List<QueryResponse>> { static final int QUEUE_MULTIPLIER = 1024; private final List<QueryRequest> queries; private final Keyspace keyspace; private final Timer graqlExecuteTimer; private final Meter attemptMeter; private final Retryer<List> retryer; CommandQueries(List<QueryRequest> queries, Keyspace keyspace) { super(Setter .withGroupKey(HystrixCommandGroupKey.Factory.asKey("BatchExecutor")) .andThreadPoolPropertiesDefaults( HystrixThreadPoolProperties.Setter() .withCoreSize(threadPoolCoreSize) // Sizing these two based on the thread pool core size .withQueueSizeRejectionThreshold( threadPoolCoreSize * QUEUE_MULTIPLIER) .withMaxQueueSize(threadPoolCoreSize * QUEUE_MULTIPLIER)) .andCommandPropertiesDefaults( HystrixCommandProperties.Setter() .withExecutionTimeoutEnabled(false) .withExecutionTimeoutInMilliseconds(timeoutMs) .withRequestLogEnabled(requestLogEnabled))); this.queries = queries; this.keyspace = keyspace; this.graqlExecuteTimer = metricRegistry.timer(name(this.getClass(), "execute")); this.attemptMeter = metricRegistry.meter(name(this.getClass(), "attempt")); this.retryer = RetryerBuilder.<List>newBuilder() .retryIfException(throwable -> throwable instanceof GraknClientException && ((GraknClientException) throwable).isRetriable()) .retryIfExceptionOfType(ConnectException.class) .withWaitStrategy(WaitStrategies.exponentialWait(10, 1, TimeUnit.MINUTES)) .withStopStrategy(StopStrategies.stopAfterAttempt(maxRetries + 1)) .withRetryListener(new RetryListener() { @Override public <V> void onRetry(Attempt<V> attempt) { attemptMeter.mark(); } }) .build(); } @Override protected List run() throws GraknClientException { List<Query<?>> queryList = queries.stream().map(QueryRequest::getQuery) .collect(Collectors.toList()); try { List<QueryResponse> responses = retryer.call(() -> { try (Context c = graqlExecuteTimer.time()) { return graknClient.graqlExecute(queryList, keyspace); } }); if (queryResponseHandler != null) { responses.forEach(queryResponseHandler); } return responses; } catch (RetryException | ExecutionException e) { Throwable cause = e.getCause(); if (cause instanceof GraknClientException) { if (exceptionHandler != null) { exceptionHandler.accept((GraknClientException) cause); } throw (GraknClientException) cause; } else { RuntimeException exception = new RuntimeException("Unexpected exception while retrying, " + queryList.size() + " queries failed.", e); if (exceptionHandler != null) { exceptionHandler.accept(exception); } throw exception; } } finally { queries.forEach(QueryRequest::releasePermit); } } } /** * This is the hystrix collapser. It's instantiated with a single query but * internally it waits until a timeout expires to batch the requests together. * * @author Domenico Corapi */ private class QueriesObservableCollapser extends HystrixCollapser<List<QueryResponse>, QueryResponse, QueryRequest> { private final QueryRequest query; private Keyspace keyspace; QueriesObservableCollapser(QueryRequest query, Keyspace keyspace) { super(Setter .withCollapserKey(hystrixCollapserKey(keyspace)) .andCollapserPropertiesDefaults( HystrixCollapserProperties.Setter() .withRequestCacheEnabled(false) .withTimerDelayInMilliseconds(maxDelay) ) ); this.query = query; this.keyspace = keyspace; } @Override public QueryRequest getRequestArgument() { return query; } /** * Logic to collapse requests into into CommandQueries * * @param collapsedRequests Set of requests being collapsed * @return returns a command that executed all the requests */ @Override protected HystrixCommand<List<QueryResponse>> createCommand( Collection<CollapsedRequest<QueryResponse, QueryRequest>> collapsedRequests) { List<QueryRequest> requests = collapsedRequests.stream().map(CollapsedRequest::getArgument).collect(Collectors.toList()); return new CommandQueries(requests, keyspace); } @Override protected void mapResponseToRequests(List<QueryResponse> batchResponse, Collection<CollapsedRequest<QueryResponse, QueryRequest>> collapsedRequests) { int count = 0; for (CollapsedRequest<QueryResponse, QueryRequest> request : collapsedRequests) { QueryResponse response = batchResponse.get(count++); request.setResponse(response); request.setComplete(); } metricRegistry.histogram(name(QueriesObservableCollapser.class, "batch", "size")).update(collapsedRequests.size()); } } private HystrixCollapserKey hystrixCollapserKey(Keyspace keyspace) { return HystrixCollapserKey.Factory.asKey(String.format("QueriesObservableCollapser_%s_%s", id, keyspace)); } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/batch/Client.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.batch; import ai.grakn.util.CommonUtil; import ai.grakn.util.REST; import ai.grakn.util.SimpleURI; import javax.ws.rs.core.UriBuilder; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.ProtocolException; import java.net.URL; /** * Providing useful methods for the user of the GraknEngine client * * @author alexandraorth */ public final class Client { /** * Check if Grakn Engine has been started * * @return true if Grakn Engine running, false otherwise */ public static boolean serverIsRunning(SimpleURI uri) { URL url; try { url = UriBuilder.fromUri(uri.toURI()).path(REST.WebPath.KB).build().toURL(); } catch (MalformedURLException e) { throw CommonUtil.unreachableStatement( "This will never throw because we're appending a known path to a valid URI", e ); } HttpURLConnection connection; try { connection = (HttpURLConnection) mapQuadZeroRouteToLocalhost(url).openConnection(); } catch (IOException e) { // If this fails, then the server is not reachable return false; } try { connection.setRequestMethod("GET"); } catch (ProtocolException e) { throw CommonUtil.unreachableStatement( "This will never throw because 'GET' is correct and the connection is not open yet", e ); } int available; try { connection.connect(); InputStream inputStream = connection.getInputStream(); available = inputStream.available(); } catch (IOException e) { // If this fails, then the server is not reachable return false; } return available != 0; } private static URL mapQuadZeroRouteToLocalhost(URL originalUrl) { final String QUAD_ZERO_ROUTE = "http://0.0.0.0"; URL mappedUrl; if ((originalUrl.getProtocol() + originalUrl.getHost()).equals(QUAD_ZERO_ROUTE)) { try { mappedUrl = new URL(originalUrl.getProtocol(), "localhost", originalUrl.getPort(), REST.WebPath.KB); } catch (MalformedURLException e) { throw CommonUtil.unreachableStatement( "This will never throw because the protocol is valid (because it came from another URL)", e ); } } else { mappedUrl = originalUrl; } return mappedUrl; } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/batch/GraknClient.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.batch; import ai.grakn.Keyspace; import ai.grakn.graql.Query; import ai.grakn.util.SimpleURI; import java.util.List; import java.util.Optional; /** * Grakn http client. Extend this for more http endpoint. * * @author Domenico Corapi */ public interface GraknClient { int CONNECT_TIMEOUT_MS = 30 * 1000; int DEFAULT_MAX_RETRY = 3; static GraknClient of(SimpleURI url) { return new GraknClientImpl(url); } List<QueryResponse> graqlExecute(List<Query<?>> queryList, Keyspace keyspace) throws GraknClientException; Optional<Keyspace> keyspace(String keyspace) throws GraknClientException; }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/batch/GraknClientException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.batch; import javax.ws.rs.core.Response.Status.Family; import javax.ws.rs.core.Response.StatusType; /** * Exceptions generated by the client * * @author Domenico Corapi */ public class GraknClientException extends Exception { private final boolean retriable; public GraknClientException(String s) { this(s, false); } public GraknClientException(String s, boolean retriable) { super(s); this.retriable = retriable; } public GraknClientException(String s, StatusType statusInfo) { this(s, statusInfo.getFamily().equals(Family.SERVER_ERROR)); } public boolean isRetriable() { return retriable; } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/batch/GraknClientImpl.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.batch; import ai.grakn.GraknTxType; import ai.grakn.Keyspace; import ai.grakn.graql.Query; import ai.grakn.util.REST; import ai.grakn.util.SimpleURI; import com.sun.jersey.api.client.Client; import com.sun.jersey.api.client.ClientResponse; import mjson.Json; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; import javax.ws.rs.core.Response.Status.Family; import javax.ws.rs.core.UriBuilder; import java.net.URI; import java.util.List; import java.util.Optional; import java.util.stream.Collectors; import static ai.grakn.util.REST.Request.Graql.ALLOW_MULTIPLE_QUERIES; import static ai.grakn.util.REST.Request.Graql.EXECUTE_WITH_INFERENCE; import static ai.grakn.util.REST.Request.Graql.LOADING_DATA; import static ai.grakn.util.REST.Request.Graql.TX_TYPE; import static ai.grakn.util.REST.Response.ContentType.APPLICATION_JSON; /** * Default implementation of {@link GraknClient}. * * @author Domenico Corapi */ public class GraknClientImpl implements GraknClient { private final Logger LOG = LoggerFactory.getLogger(GraknClientImpl.class); private final Client client; private final SimpleURI uri; GraknClientImpl(SimpleURI url) { this.client = Client.create(); this.client.setConnectTimeout(CONNECT_TIMEOUT_MS); this.client.setReadTimeout(CONNECT_TIMEOUT_MS * 2); this.uri = url; } @Override public List<QueryResponse> graqlExecute(List<Query<?>> queryList, Keyspace keyspace) throws GraknClientException { LOG.debug("Sending query list size {} to keyspace {}", queryList.size(), keyspace); String body = queryList.stream().map(Object::toString).reduce("; ", String::concat).substring(2); URI fullURI = UriBuilder.fromUri(uri.toURI()) .path(REST.resolveTemplate(REST.WebPath.KEYSPACE_GRAQL, keyspace.getValue())) .queryParam(ALLOW_MULTIPLE_QUERIES, true) .queryParam(EXECUTE_WITH_INFERENCE, false) //Making inference true could lead to non-deterministic loading of data .queryParam(LOADING_DATA, true) //Skip serialising responses for the sake of efficiency .queryParam(TX_TYPE, GraknTxType.BATCH) .build(); ClientResponse response = client.resource(fullURI) .accept(APPLICATION_JSON) .post(ClientResponse.class, body); try { Response.StatusType status = response.getStatusInfo(); String entity = response.getEntity(String.class); if (!status.getFamily().equals(Family.SUCCESSFUL)) { String queries = queryList.stream().map(Object::toString).collect(Collectors.joining("\n")); String error = Json.read(entity).at("exception").asString(); throw new GraknClientException("Failed graqlExecute. Error status: " + status.getStatusCode() + ", error info: " + error + "\nqueries: " + queries, response.getStatusInfo()); } LOG.debug("Received {}", status.getStatusCode()); return queryList.stream().map(q -> QueryResponse.INSTANCE).collect(Collectors.toList()); } finally { response.close(); } } @Override public Optional<Keyspace> keyspace(String keyspace) throws GraknClientException { URI fullURI = UriBuilder.fromUri(uri.toURI()) .path(REST.resolveTemplate(REST.WebPath.KB_KEYSPACE, keyspace)) .build(); ClientResponse response = client.resource(fullURI) .accept(APPLICATION_JSON) .get(ClientResponse.class); Response.StatusType status = response.getStatusInfo(); LOG.debug("Received {}", status.getStatusCode()); if (status.getStatusCode() == Status.NOT_FOUND.getStatusCode()) { return Optional.empty(); } String entity = response.getEntity(String.class); if (!status.getFamily().equals(Family.SUCCESSFUL)) { throw new GraknClientException("Failed keyspace. Error status: " + status.getStatusCode() + ", error info: " + entity, response.getStatusInfo()); } response.close(); return Optional.of(Keyspace.of(keyspace)); } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/batch/QueryResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.batch; /** * <p> * Simple class to encapsulate a query response. * This is required by the {@link com.netflix.hystrix.Hystrix} framework we use in {@link BatchExecutorClient} * </p> * * @author Filipe Peliz Pinto Teixeira */ public class QueryResponse { public static final QueryResponse INSTANCE = new QueryResponse(); private QueryResponse(){} }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/batch/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * The loader client - use this Java API to access the REST endpoint. */ package ai.grakn.batch;
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/Grakn.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client; import ai.grakn.GraknSession; import ai.grakn.GraknTx; import ai.grakn.GraknTxType; import ai.grakn.QueryExecutor; import ai.grakn.client.concept.RemoteConcept; import ai.grakn.client.executor.RemoteQueryExecutor; import ai.grakn.client.rpc.RequestBuilder; import ai.grakn.client.rpc.ResponseReader; import ai.grakn.client.rpc.Transceiver; import ai.grakn.concept.Attribute; import ai.grakn.concept.AttributeType; import ai.grakn.concept.Concept; import ai.grakn.concept.ConceptId; import ai.grakn.concept.EntityType; import ai.grakn.concept.Label; import ai.grakn.concept.RelationshipType; import ai.grakn.concept.Role; import ai.grakn.concept.Rule; import ai.grakn.concept.SchemaConcept; import ai.grakn.concept.Type; import ai.grakn.exception.GraknTxOperationException; import ai.grakn.exception.InvalidKBException; import ai.grakn.graql.Pattern; import ai.grakn.graql.Query; import ai.grakn.graql.QueryBuilder; import ai.grakn.graql.internal.query.QueryBuilderImpl; import ai.grakn.kb.admin.GraknAdmin; import ai.grakn.rpc.proto.ConceptProto; import ai.grakn.rpc.proto.KeyspaceProto; import ai.grakn.rpc.proto.KeyspaceServiceGrpc; import ai.grakn.rpc.proto.SessionProto; import ai.grakn.rpc.proto.SessionServiceGrpc; import ai.grakn.util.CommonUtil; import ai.grakn.util.SimpleURI; import com.google.common.collect.AbstractIterator; import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; import javax.annotation.Nullable; import java.util.Collection; import java.util.Objects; import java.util.function.Function; import java.util.stream.Stream; import java.util.stream.StreamSupport; import static ai.grakn.util.CommonUtil.toImmutableSet; /** * Entry-point which communicates with a running Grakn server using gRPC. * For now, only a subset of {@link GraknSession} and {@link ai.grakn.GraknTx} features are supported. */ public final class Grakn { @Deprecated public static final SimpleURI DEFAULT_HTTP_URI = new SimpleURI("localhost:4567"); private ManagedChannel channel; private KeyspaceServiceGrpc.KeyspaceServiceBlockingStub keyspaceBlockingStub; private Keyspace keyspace; private final OpenRequestBuilder openRequestBuilder; /** * Build an RPC Open request. * The Open request might need to be built in a different fashion (e.g. add authentication) */ interface OpenRequestBuilder { SessionProto.Transaction.Req build(GraknTxType type, ai.grakn.Keyspace keyspace); } public Grakn(SimpleURI uri) { channel = ManagedChannelBuilder.forAddress(uri.getHost(), uri.getPort()).usePlaintext(true).build(); keyspaceBlockingStub = KeyspaceServiceGrpc.newBlockingStub(channel); keyspace = new Keyspace(); openRequestBuilder = (type, keyspace) -> RequestBuilder.Transaction.open(keyspace, type); } Grakn (ManagedChannel channel, OpenRequestBuilder openRequestBuilder){ this.channel = channel; keyspaceBlockingStub = KeyspaceServiceGrpc.newBlockingStub(channel); keyspace = new Keyspace(); this.openRequestBuilder = openRequestBuilder; } public Grakn.Session session(ai.grakn.Keyspace keyspace) { return new Session(keyspace); } public Grakn.Keyspace keyspaces(){ return keyspace; } /** * Remote implementation of {@link GraknSession} that communicates with a Grakn server using gRPC. * * @see Transaction * @see Grakn */ public class Session implements GraknSession { private final ai.grakn.Keyspace keyspace; private Session(ai.grakn.Keyspace keyspace) { this.keyspace = keyspace; } SessionServiceGrpc.SessionServiceStub sessionStub() { return SessionServiceGrpc.newStub(channel); } KeyspaceServiceGrpc.KeyspaceServiceBlockingStub keyspaceBlockingStub() { return KeyspaceServiceGrpc.newBlockingStub(channel); } @Override public Grakn.Transaction transaction(GraknTxType type) { return new Transaction(this, type, openRequestBuilder.build(type, keyspace)); } @Override public void close() throws GraknTxOperationException { channel.shutdown(); } @Override public ai.grakn.Keyspace keyspace() { return keyspace; } } /** * Internal class used to handle keyspace related operations */ public final class Keyspace { public void delete(ai.grakn.Keyspace keyspace){ KeyspaceProto.Keyspace.Delete.Req request = RequestBuilder.Keyspace.delete(keyspace.getValue()); keyspaceBlockingStub.delete(request); } } /** * Remote implementation of {@link GraknTx} and {@link GraknAdmin} that communicates with a Grakn server using gRPC. */ public static final class Transaction implements GraknTx, GraknAdmin { private final Session session; private final GraknTxType type; private final Transceiver transceiver; private Transaction(Session session, GraknTxType type, SessionProto.Transaction.Req openRequest) { this.session = session; this.type = type; this.transceiver = Transceiver.create(session.sessionStub()); transceiver.send(openRequest); responseOrThrow(); } @Override public GraknAdmin admin() { return this; } @Override public GraknTxType txType() { return type; } @Override public GraknSession session() { return session; } @Override public void close() { transceiver.close(); } @Override public boolean isClosed() { return transceiver.isClosed(); } @Override public QueryBuilder graql() { return new QueryBuilderImpl(this); } @Override public QueryExecutor queryExecutor() { return RemoteQueryExecutor.create(this); } private SessionProto.Transaction.Res responseOrThrow() { Transceiver.Response response; try { response = transceiver.receive(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); // This is called from classes like Transaction, that impl methods which do not throw InterruptedException // Therefore, we have to wrap it in a RuntimeException. throw new RuntimeException(e); } switch (response.type()) { case OK: return response.ok(); case ERROR: throw new RuntimeException(response.error().getMessage()); case COMPLETED: default: throw CommonUtil.unreachableStatement("Unexpected response " + response); } } @Override public void commit() throws InvalidKBException { transceiver.send(RequestBuilder.Transaction.commit()); responseOrThrow(); close(); } public java.util.Iterator query(Query<?> query) { transceiver.send(RequestBuilder.Transaction.query(query.toString(), query.inferring())); SessionProto.Transaction.Res txResponse = responseOrThrow(); int iteratorId = txResponse.getQueryIter().getId(); return new Iterator<>( this, iteratorId, response -> ResponseReader.answer(response.getQueryIterRes().getAnswer(), this) ); } @Nullable @Override public <T extends Type> T getType(Label label) { SchemaConcept concept = getSchemaConcept(label); if (concept == null || !concept.isType()) return null; return (T) concept.asType(); } @Nullable @Override public EntityType getEntityType(String label) { SchemaConcept concept = getSchemaConcept(Label.of(label)); if (concept == null || !concept.isEntityType()) return null; return concept.asEntityType(); } @Nullable @Override public RelationshipType getRelationshipType(String label) { SchemaConcept concept = getSchemaConcept(Label.of(label)); if (concept == null || !concept.isRelationshipType()) return null; return concept.asRelationshipType(); } @Nullable @Override public <V> AttributeType<V> getAttributeType(String label) { SchemaConcept concept = getSchemaConcept(Label.of(label)); if (concept == null || !concept.isAttributeType()) return null; return concept.asAttributeType(); } @Nullable @Override public Role getRole(String label) { SchemaConcept concept = getSchemaConcept(Label.of(label)); if (concept == null || !concept.isRole()) return null; return concept.asRole(); } @Nullable @Override public Rule getRule(String label) { SchemaConcept concept = getSchemaConcept(Label.of(label)); if (concept == null || !concept.isRule()) return null; return concept.asRule(); } @Nullable @Override public <T extends SchemaConcept> T getSchemaConcept(Label label) { transceiver.send(RequestBuilder.Transaction.getSchemaConcept(label)); SessionProto.Transaction.Res response = responseOrThrow(); switch (response.getGetSchemaConceptRes().getResCase()) { case NULL: return null; default: return (T) RemoteConcept.of(response.getGetSchemaConceptRes().getSchemaConcept(), this).asSchemaConcept(); } } @Nullable @Override public <T extends Concept> T getConcept(ConceptId id) { transceiver.send(RequestBuilder.Transaction.getConcept(id)); SessionProto.Transaction.Res response = responseOrThrow(); switch (response.getGetConceptRes().getResCase()) { case NULL: return null; default: return (T) RemoteConcept.of(response.getGetConceptRes().getConcept(), this); } } @Override public <V> Collection<Attribute<V>> getAttributesByValue(V value) { transceiver.send(RequestBuilder.Transaction.getAttributes(value)); int iteratorId = responseOrThrow().getGetAttributesIter().getId(); Iterable<Concept> iterable = () -> new Iterator<>( this, iteratorId, response -> RemoteConcept.of(response.getGetAttributesIterRes().getAttribute(), this) ); return StreamSupport.stream(iterable.spliterator(), false).map(Concept::<V>asAttribute).collect(toImmutableSet()); } @Override public EntityType putEntityType(Label label) { transceiver.send(RequestBuilder.Transaction.putEntityType(label)); return RemoteConcept.of(responseOrThrow().getPutEntityTypeRes().getEntityType(), this).asEntityType(); } @Override public <V> AttributeType<V> putAttributeType(Label label, AttributeType.DataType<V> dataType) { transceiver.send(RequestBuilder.Transaction.putAttributeType(label, dataType)); return RemoteConcept.of(responseOrThrow().getPutAttributeTypeRes().getAttributeType(), this).asAttributeType(); } @Override public RelationshipType putRelationshipType(Label label) { transceiver.send(RequestBuilder.Transaction.putRelationshipType(label)); return RemoteConcept.of(responseOrThrow().getPutRelationTypeRes().getRelationType(), this).asRelationshipType(); } @Override public Role putRole(Label label) { transceiver.send(RequestBuilder.Transaction.putRole(label)); return RemoteConcept.of(responseOrThrow().getPutRoleRes().getRole(), this).asRole(); } @Override public Rule putRule(Label label, Pattern when, Pattern then) { transceiver.send(RequestBuilder.Transaction.putRule(label, when, then)); return RemoteConcept.of(responseOrThrow().getPutRuleRes().getRule(), this).asRule(); } @Override public Stream<SchemaConcept> sups(SchemaConcept schemaConcept) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setSchemaConceptSupsReq(ConceptProto.SchemaConcept.Sups.Req.getDefaultInstance()).build(); SessionProto.Transaction.Res response = runConceptMethod(schemaConcept.id(), method); int iteratorId = response.getConceptMethodRes().getResponse().getSchemaConceptSupsIter().getId(); Iterable<? extends Concept> iterable = () -> new Iterator<>( this, iteratorId, res -> RemoteConcept.of(res.getConceptMethodIterRes().getSchemaConceptSupsIterRes().getSchemaConcept(), this) ); Stream<? extends Concept> sups = StreamSupport.stream(iterable.spliterator(), false); return Objects.requireNonNull(sups).map(Concept::asSchemaConcept); } public SessionProto.Transaction.Res runConceptMethod(ConceptId id, ConceptProto.Method.Req method) { SessionProto.Transaction.ConceptMethod.Req conceptMethod = SessionProto.Transaction.ConceptMethod.Req.newBuilder() .setId(id.getValue()).setMethod(method).build(); SessionProto.Transaction.Req request = SessionProto.Transaction.Req.newBuilder().setConceptMethodReq(conceptMethod).build(); transceiver.send(request); return responseOrThrow(); } private SessionProto.Transaction.Iter.Res iterate(int iteratorId) { transceiver.send(RequestBuilder.Transaction.iterate(iteratorId)); return responseOrThrow().getIterateRes(); } /** * A client-side iterator over gRPC messages. Will send {@link SessionProto.Transaction.Iter.Req} messages until * {@link SessionProto.Transaction.Iter.Res} returns done as a message. * * @param <T> class type of objects being iterated */ public static class Iterator<T> extends AbstractIterator<T> { private final int iteratorId; private Transaction tx; private Function<SessionProto.Transaction.Iter.Res, T> responseReader; public Iterator(Transaction tx, int iteratorId, Function<SessionProto.Transaction.Iter.Res, T> responseReader) { this.tx = tx; this.iteratorId = iteratorId; this.responseReader = responseReader; } @Override protected final T computeNext() { SessionProto.Transaction.Iter.Res response = tx.iterate(iteratorId); switch (response.getResCase()) { case DONE: return endOfData(); case RES_NOT_SET: throw CommonUtil.unreachableStatement("Unexpected " + response); default: return responseReader.apply(response); } } } } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/AutoValue_RemoteAttribute.java
package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.concept.ConceptId; import javax.annotation.Generated; @Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_RemoteAttribute<D> extends RemoteAttribute<D> { private final Grakn.Transaction tx; private final ConceptId id; AutoValue_RemoteAttribute( Grakn.Transaction tx, ConceptId id) { if (tx == null) { throw new NullPointerException("Null tx"); } this.tx = tx; if (id == null) { throw new NullPointerException("Null id"); } this.id = id; } @Override Grakn.Transaction tx() { return tx; } @Override public ConceptId id() { return id; } @Override public String toString() { return "RemoteAttribute{" + "tx=" + tx + ", " + "id=" + id + "}"; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof RemoteAttribute) { RemoteAttribute<?> that = (RemoteAttribute<?>) o; return (this.tx.equals(that.tx())) && (this.id.equals(that.id())); } return false; } @Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.tx.hashCode(); h *= 1000003; h ^= this.id.hashCode(); return h; } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/AutoValue_RemoteAttributeType.java
package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.concept.ConceptId; import javax.annotation.Generated; @Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_RemoteAttributeType<D> extends RemoteAttributeType<D> { private final Grakn.Transaction tx; private final ConceptId id; AutoValue_RemoteAttributeType( Grakn.Transaction tx, ConceptId id) { if (tx == null) { throw new NullPointerException("Null tx"); } this.tx = tx; if (id == null) { throw new NullPointerException("Null id"); } this.id = id; } @Override Grakn.Transaction tx() { return tx; } @Override public ConceptId id() { return id; } @Override public String toString() { return "RemoteAttributeType{" + "tx=" + tx + ", " + "id=" + id + "}"; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof RemoteAttributeType) { RemoteAttributeType<?> that = (RemoteAttributeType<?>) o; return (this.tx.equals(that.tx())) && (this.id.equals(that.id())); } return false; } @Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.tx.hashCode(); h *= 1000003; h ^= this.id.hashCode(); return h; } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/AutoValue_RemoteEntity.java
package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.concept.ConceptId; import javax.annotation.Generated; @Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_RemoteEntity extends RemoteEntity { private final Grakn.Transaction tx; private final ConceptId id; AutoValue_RemoteEntity( Grakn.Transaction tx, ConceptId id) { if (tx == null) { throw new NullPointerException("Null tx"); } this.tx = tx; if (id == null) { throw new NullPointerException("Null id"); } this.id = id; } @Override Grakn.Transaction tx() { return tx; } @Override public ConceptId id() { return id; } @Override public String toString() { return "RemoteEntity{" + "tx=" + tx + ", " + "id=" + id + "}"; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof RemoteEntity) { RemoteEntity that = (RemoteEntity) o; return (this.tx.equals(that.tx())) && (this.id.equals(that.id())); } return false; } @Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.tx.hashCode(); h *= 1000003; h ^= this.id.hashCode(); return h; } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/AutoValue_RemoteEntityType.java
package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.concept.ConceptId; import javax.annotation.Generated; @Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_RemoteEntityType extends RemoteEntityType { private final Grakn.Transaction tx; private final ConceptId id; AutoValue_RemoteEntityType( Grakn.Transaction tx, ConceptId id) { if (tx == null) { throw new NullPointerException("Null tx"); } this.tx = tx; if (id == null) { throw new NullPointerException("Null id"); } this.id = id; } @Override Grakn.Transaction tx() { return tx; } @Override public ConceptId id() { return id; } @Override public String toString() { return "RemoteEntityType{" + "tx=" + tx + ", " + "id=" + id + "}"; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof RemoteEntityType) { RemoteEntityType that = (RemoteEntityType) o; return (this.tx.equals(that.tx())) && (this.id.equals(that.id())); } return false; } @Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.tx.hashCode(); h *= 1000003; h ^= this.id.hashCode(); return h; } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/AutoValue_RemoteMetaType.java
package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.concept.ConceptId; import javax.annotation.Generated; @Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_RemoteMetaType extends RemoteMetaType { private final Grakn.Transaction tx; private final ConceptId id; AutoValue_RemoteMetaType( Grakn.Transaction tx, ConceptId id) { if (tx == null) { throw new NullPointerException("Null tx"); } this.tx = tx; if (id == null) { throw new NullPointerException("Null id"); } this.id = id; } @Override Grakn.Transaction tx() { return tx; } @Override public ConceptId id() { return id; } @Override public String toString() { return "RemoteMetaType{" + "tx=" + tx + ", " + "id=" + id + "}"; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof RemoteMetaType) { RemoteMetaType that = (RemoteMetaType) o; return (this.tx.equals(that.tx())) && (this.id.equals(that.id())); } return false; } @Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.tx.hashCode(); h *= 1000003; h ^= this.id.hashCode(); return h; } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/AutoValue_RemoteRelationship.java
package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.concept.ConceptId; import javax.annotation.Generated; @Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_RemoteRelationship extends RemoteRelationship { private final Grakn.Transaction tx; private final ConceptId id; AutoValue_RemoteRelationship( Grakn.Transaction tx, ConceptId id) { if (tx == null) { throw new NullPointerException("Null tx"); } this.tx = tx; if (id == null) { throw new NullPointerException("Null id"); } this.id = id; } @Override Grakn.Transaction tx() { return tx; } @Override public ConceptId id() { return id; } @Override public String toString() { return "RemoteRelationship{" + "tx=" + tx + ", " + "id=" + id + "}"; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof RemoteRelationship) { RemoteRelationship that = (RemoteRelationship) o; return (this.tx.equals(that.tx())) && (this.id.equals(that.id())); } return false; } @Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.tx.hashCode(); h *= 1000003; h ^= this.id.hashCode(); return h; } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/AutoValue_RemoteRelationshipType.java
package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.concept.ConceptId; import javax.annotation.Generated; @Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_RemoteRelationshipType extends RemoteRelationshipType { private final Grakn.Transaction tx; private final ConceptId id; AutoValue_RemoteRelationshipType( Grakn.Transaction tx, ConceptId id) { if (tx == null) { throw new NullPointerException("Null tx"); } this.tx = tx; if (id == null) { throw new NullPointerException("Null id"); } this.id = id; } @Override Grakn.Transaction tx() { return tx; } @Override public ConceptId id() { return id; } @Override public String toString() { return "RemoteRelationshipType{" + "tx=" + tx + ", " + "id=" + id + "}"; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof RemoteRelationshipType) { RemoteRelationshipType that = (RemoteRelationshipType) o; return (this.tx.equals(that.tx())) && (this.id.equals(that.id())); } return false; } @Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.tx.hashCode(); h *= 1000003; h ^= this.id.hashCode(); return h; } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/AutoValue_RemoteRole.java
package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.concept.ConceptId; import javax.annotation.Generated; @Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_RemoteRole extends RemoteRole { private final Grakn.Transaction tx; private final ConceptId id; AutoValue_RemoteRole( Grakn.Transaction tx, ConceptId id) { if (tx == null) { throw new NullPointerException("Null tx"); } this.tx = tx; if (id == null) { throw new NullPointerException("Null id"); } this.id = id; } @Override Grakn.Transaction tx() { return tx; } @Override public ConceptId id() { return id; } @Override public String toString() { return "RemoteRole{" + "tx=" + tx + ", " + "id=" + id + "}"; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof RemoteRole) { RemoteRole that = (RemoteRole) o; return (this.tx.equals(that.tx())) && (this.id.equals(that.id())); } return false; } @Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.tx.hashCode(); h *= 1000003; h ^= this.id.hashCode(); return h; } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/AutoValue_RemoteRule.java
package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.concept.ConceptId; import javax.annotation.Generated; @Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_RemoteRule extends RemoteRule { private final Grakn.Transaction tx; private final ConceptId id; AutoValue_RemoteRule( Grakn.Transaction tx, ConceptId id) { if (tx == null) { throw new NullPointerException("Null tx"); } this.tx = tx; if (id == null) { throw new NullPointerException("Null id"); } this.id = id; } @Override Grakn.Transaction tx() { return tx; } @Override public ConceptId id() { return id; } @Override public String toString() { return "RemoteRule{" + "tx=" + tx + ", " + "id=" + id + "}"; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof RemoteRule) { RemoteRule that = (RemoteRule) o; return (this.tx.equals(that.tx())) && (this.id.equals(that.id())); } return false; } @Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.tx.hashCode(); h *= 1000003; h ^= this.id.hashCode(); return h; } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/RemoteAttribute.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.concept.Attribute; import ai.grakn.concept.AttributeType; import ai.grakn.concept.Concept; import ai.grakn.concept.ConceptId; import ai.grakn.concept.Thing; import ai.grakn.rpc.proto.ConceptProto; import com.google.auto.value.AutoValue; import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneId; import java.util.stream.Stream; /** * Client implementation of {@link ai.grakn.concept.Attribute} * * @param <D> The data type of this attribute */ @AutoValue public abstract class RemoteAttribute<D> extends RemoteThing<Attribute<D>, AttributeType<D>> implements Attribute<D> { static <D> RemoteAttribute<D> construct(Grakn.Transaction tx, ConceptId id) { return new AutoValue_RemoteAttribute<>(tx, id); } @Override public final D value() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setAttributeValueReq(ConceptProto.Attribute.Value.Req.getDefaultInstance()).build(); ConceptProto.ValueObject value = runMethod(method).getAttributeValueRes().getValue(); return castValue(value); } @SuppressWarnings("unchecked") private D castValue(ConceptProto.ValueObject value){ switch (value.getValueCase()){ case DATE: return (D) LocalDateTime.ofInstant(Instant.ofEpochMilli(value.getDate()), ZoneId.of("Z")); case STRING: return (D) value.getString(); case BOOLEAN: return (D) (Boolean) value.getBoolean(); case INTEGER: return (D) (Integer) value.getInteger(); case LONG: return (D) (Long) value.getLong(); case FLOAT: return (D) (Float) value.getFloat(); case DOUBLE: return (D) (Double) value.getDouble(); case VALUE_NOT_SET: return null; default: throw new IllegalArgumentException("Unexpected value for attribute: " + value); } } @Override public final Stream<Thing> owners() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setAttributeOwnersReq(ConceptProto.Attribute.Owners.Req.getDefaultInstance()).build(); int iteratorId = runMethod(method).getAttributeOwnersIter().getId(); return conceptStream(iteratorId, res -> res.getAttributeOwnersIterRes().getThing()).map(Concept::asThing); } @Override public final AttributeType.DataType<D> dataType() { return type().dataType(); } @Override final AttributeType<D> asCurrentType(Concept concept) { return concept.asAttributeType(); } @Override final Attribute<D> asCurrentBaseType(Concept other) { return other.asAttribute(); } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/RemoteAttributeType.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.client.rpc.RequestBuilder; import ai.grakn.concept.Attribute; import ai.grakn.concept.AttributeType; import ai.grakn.concept.Concept; import ai.grakn.concept.ConceptId; import ai.grakn.rpc.proto.ConceptProto; import ai.grakn.util.CommonUtil; import com.google.auto.value.AutoValue; import javax.annotation.Nullable; /** * Client implementation of {@link ai.grakn.concept.AttributeType} * * @param <D> The data type of this attribute type */ @AutoValue public abstract class RemoteAttributeType<D> extends RemoteType<AttributeType<D>, Attribute<D>> implements AttributeType<D> { static <D> RemoteAttributeType<D> construct(Grakn.Transaction tx, ConceptId id) { return new AutoValue_RemoteAttributeType<>(tx, id); } @Override public final Attribute<D> create(D value) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setAttributeTypeCreateReq(ConceptProto.AttributeType.Create.Req.newBuilder() .setValue(RequestBuilder.Concept.attributeValue(value))).build(); Concept concept = RemoteConcept.of(runMethod(method).getAttributeTypeCreateRes().getAttribute(), tx()); return asInstance(concept); } @Nullable @Override public final Attribute<D> attribute(D value) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setAttributeTypeAttributeReq(ConceptProto.AttributeType.Attribute.Req.newBuilder() .setValue(RequestBuilder.Concept.attributeValue(value))).build(); ConceptProto.AttributeType.Attribute.Res response = runMethod(method).getAttributeTypeAttributeRes(); switch (response.getResCase()) { case NULL: return null; case ATTRIBUTE: return RemoteConcept.of(response.getAttribute(), tx()).asAttribute(); default: throw CommonUtil.unreachableStatement("Unexpected response " + response); } } @Nullable @Override public final AttributeType.DataType<D> dataType() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setAttributeTypeDataTypeReq(ConceptProto.AttributeType.DataType.Req.getDefaultInstance()).build(); ConceptProto.AttributeType.DataType.Res response = runMethod(method).getAttributeTypeDataTypeRes(); switch (response.getResCase()) { case NULL: return null; case DATATYPE: return (AttributeType.DataType<D>) RequestBuilder.Concept.dataType(response.getDataType()); default: throw CommonUtil.unreachableStatement("Unexpected response " + response); } } @Nullable @Override public final String regex() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setAttributeTypeGetRegexReq(ConceptProto.AttributeType.GetRegex.Req.getDefaultInstance()).build(); String regex = runMethod(method).getAttributeTypeGetRegexRes().getRegex(); return regex.isEmpty() ? null : regex; } @Override public final AttributeType<D> regex(String regex) { if (regex == null) regex = ""; ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setAttributeTypeSetRegexReq(ConceptProto.AttributeType.SetRegex.Req.newBuilder() .setRegex(regex)).build(); runMethod(method); return asCurrentBaseType(this); } @Override final AttributeType<D> asCurrentBaseType(Concept other) { return other.asAttributeType(); } @Override final boolean equalsCurrentBaseType(Concept other) { return other.isAttributeType(); } @Override protected final Attribute<D> asInstance(Concept concept) { return concept.asAttribute(); } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/RemoteConcept.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.concept; import ai.grakn.Keyspace; import ai.grakn.client.Grakn; import ai.grakn.concept.Concept; import ai.grakn.concept.ConceptId; import ai.grakn.exception.GraknTxOperationException; import ai.grakn.rpc.proto.ConceptProto; import java.util.function.Function; import java.util.stream.Stream; import java.util.stream.StreamSupport; /** * Client implementation of {@link ai.grakn.concept.Concept} * * @param <SomeConcept> represents the actual class of object to downcast to */ public abstract class RemoteConcept<SomeConcept extends Concept> implements Concept { public static Concept of(ConceptProto.Concept concept, Grakn.Transaction tx) { ConceptId id = ConceptId.of(concept.getId()); switch (concept.getBaseType()) { case ENTITY: return RemoteEntity.construct(tx, id); case RELATION: return RemoteRelationship.construct(tx, id); case ATTRIBUTE: return RemoteAttribute.construct(tx, id); case ENTITY_TYPE: return RemoteEntityType.construct(tx, id); case RELATION_TYPE: return RemoteRelationshipType.construct(tx, id); case ATTRIBUTE_TYPE: return RemoteAttributeType.construct(tx, id); case ROLE: return RemoteRole.construct(tx, id); case RULE: return RemoteRule.construct(tx, id); case META_TYPE: return RemoteMetaType.construct(tx, id); default: case UNRECOGNIZED: throw new IllegalArgumentException("Unrecognised " + concept); } } abstract Grakn.Transaction tx(); @Override public abstract ConceptId id(); @Override public final Keyspace keyspace() { return tx().keyspace(); } @Override public final void delete() throws GraknTxOperationException { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setConceptDeleteReq(ConceptProto.Concept.Delete.Req.getDefaultInstance()) .build(); runMethod(method); } @Override public final boolean isDeleted() { return tx().getConcept(id()) == null; } protected final Stream<? extends Concept> conceptStream (int iteratorId, Function<ConceptProto.Method.Iter.Res, ConceptProto.Concept> conceptGetter) { Iterable<? extends Concept> iterable = () -> new Grakn.Transaction.Iterator<>( tx(), iteratorId, res -> of(conceptGetter.apply(res.getConceptMethodIterRes()), tx()) ); return StreamSupport.stream(iterable.spliterator(), false); } protected final ConceptProto.Method.Res runMethod(ConceptProto.Method.Req method) { return runMethod(id(), method); } protected final ConceptProto.Method.Res runMethod(ConceptId id, ConceptProto.Method.Req method) { return tx().runConceptMethod(id, method).getConceptMethodRes().getResponse(); } abstract SomeConcept asCurrentBaseType(Concept other); }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/RemoteEntity.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.concept.Concept; import ai.grakn.concept.ConceptId; import ai.grakn.concept.Entity; import ai.grakn.concept.EntityType; import com.google.auto.value.AutoValue; /** * Client implementation of {@link ai.grakn.concept.Entity} */ @AutoValue public abstract class RemoteEntity extends RemoteThing<Entity, EntityType> implements Entity { static RemoteEntity construct(Grakn.Transaction tx, ConceptId id) { return new AutoValue_RemoteEntity(tx, id); } @Override final EntityType asCurrentType(Concept concept) { return concept.asEntityType(); } @Override final Entity asCurrentBaseType(Concept other) { return other.asEntity(); } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/RemoteEntityType.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.concept.Concept; import ai.grakn.concept.ConceptId; import ai.grakn.concept.Entity; import ai.grakn.concept.EntityType; import ai.grakn.rpc.proto.ConceptProto; import com.google.auto.value.AutoValue; /** * Client implementation of a MetaType, a special type of {@link ai.grakn.concept.Type} * * TODO: This class is not defined in which is not defined in Core API, and at server side implementation. * TODO: we should remove this class, or implement properly on server side. */ @AutoValue public abstract class RemoteEntityType extends RemoteType<EntityType, Entity> implements EntityType { static RemoteEntityType construct(Grakn.Transaction tx, ConceptId id) { return new AutoValue_RemoteEntityType(tx, id); } @Override public final Entity create() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setEntityTypeCreateReq(ConceptProto.EntityType.Create.Req.getDefaultInstance()).build(); Concept concept = RemoteConcept.of(runMethod(method).getEntityTypeCreateRes().getEntity(), tx()); return asInstance(concept); } @Override final EntityType asCurrentBaseType(Concept other) { return other.asEntityType(); } @Override final boolean equalsCurrentBaseType(Concept other) { return other.isEntityType(); } @Override protected final Entity asInstance(Concept concept) { return concept.asEntity(); } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/RemoteMetaType.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.concept.Concept; import ai.grakn.concept.ConceptId; import ai.grakn.concept.Thing; import ai.grakn.concept.Type; import com.google.auto.value.AutoValue; /** * Client implementation of {@link ai.grakn.concept.Type} */ @AutoValue public abstract class RemoteMetaType extends RemoteType<Type, Thing> { static RemoteMetaType construct(Grakn.Transaction tx, ConceptId id) { return new AutoValue_RemoteMetaType(tx, id); } @Override final Type asCurrentBaseType(Concept other) { return other.asType(); } @Override boolean equalsCurrentBaseType(Concept other) { return other.isType(); } @Override protected final Thing asInstance(Concept concept) { return concept.asThing(); } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/RemoteRelationship.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.client.rpc.RequestBuilder; import ai.grakn.concept.Concept; import ai.grakn.concept.ConceptId; import ai.grakn.concept.Relationship; import ai.grakn.concept.RelationshipType; import ai.grakn.concept.Role; import ai.grakn.concept.Thing; import ai.grakn.rpc.proto.ConceptProto; import com.google.auto.value.AutoValue; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import java.util.stream.Stream; /** * Client implementation of {@link ai.grakn.concept.Relationship} */ @AutoValue public abstract class RemoteRelationship extends RemoteThing<Relationship, RelationshipType> implements Relationship { static RemoteRelationship construct(Grakn.Transaction tx, ConceptId id) { return new AutoValue_RemoteRelationship(tx, id); } @Override // TODO: Weird. Why is this not a stream, while other collections are returned as stream public final Map<Role, Set<Thing>> rolePlayersMap() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setRelationRolePlayersMapReq(ConceptProto.Relation.RolePlayersMap.Req.getDefaultInstance()).build(); int iteratorId = runMethod(method).getRelationRolePlayersMapIter().getId(); Iterable<ConceptProto.Relation.RolePlayersMap.Iter.Res> rolePlayers = () -> new Grakn.Transaction.Iterator<>( tx(), iteratorId, res -> res.getConceptMethodIterRes().getRelationRolePlayersMapIterRes() ); Map<Role, Set<Thing>> rolePlayerMap = new HashMap<>(); for (ConceptProto.Relation.RolePlayersMap.Iter.Res rolePlayer : rolePlayers) { Role role = RemoteConcept.of(rolePlayer.getRole(), tx()).asRole(); Thing player = RemoteConcept.of(rolePlayer.getPlayer(), tx()).asThing(); if (rolePlayerMap.containsKey(role)) { rolePlayerMap.get(role).add(player); } else { rolePlayerMap.put(role, new HashSet<>(Collections.singletonList(player))); } } return rolePlayerMap; } @Override public final Stream<Thing> rolePlayers(Role... roles) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setRelationRolePlayersReq(ConceptProto.Relation.RolePlayers.Req.newBuilder() .addAllRoles(RequestBuilder.Concept.concepts(Arrays.asList(roles)))).build(); int iteratorId = runMethod(method).getRelationRolePlayersIter().getId(); return conceptStream(iteratorId, res -> res.getRelationRolePlayersIterRes().getThing()).map(Concept::asThing); } @Override public final Relationship assign(Role role, Thing player) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setRelationAssignReq(ConceptProto.Relation.Assign.Req.newBuilder() .setRole(RequestBuilder.Concept.concept(role)) .setPlayer(RequestBuilder.Concept.concept(player))).build(); runMethod(method); return asCurrentBaseType(this); } @Override public final void unassign(Role role, Thing player) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setRelationUnassignReq(ConceptProto.Relation.Unassign.Req.newBuilder() .setRole(RequestBuilder.Concept.concept(role)) .setPlayer(RequestBuilder.Concept.concept(player))).build(); runMethod(method); } @Override final RelationshipType asCurrentType(Concept concept) { return concept.asRelationshipType(); } @Override final Relationship asCurrentBaseType(Concept other) { return other.asRelationship(); } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/RemoteRelationshipType.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.client.rpc.RequestBuilder; import ai.grakn.concept.Concept; import ai.grakn.concept.ConceptId; import ai.grakn.concept.Relationship; import ai.grakn.concept.RelationshipType; import ai.grakn.concept.Role; import ai.grakn.rpc.proto.ConceptProto; import com.google.auto.value.AutoValue; import java.util.stream.Stream; /** * Client implementation of {@link ai.grakn.concept.RelationshipType} */ @AutoValue public abstract class RemoteRelationshipType extends RemoteType<RelationshipType, Relationship> implements RelationshipType { static RemoteRelationshipType construct(Grakn.Transaction tx, ConceptId id) { return new AutoValue_RemoteRelationshipType(tx, id); } @Override public final Relationship create() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setRelationTypeCreateReq(ConceptProto.RelationType.Create.Req.getDefaultInstance()).build(); Concept concept = RemoteConcept.of(runMethod(method).getRelationTypeCreateRes().getRelation(), tx()); return asInstance(concept); } @Override public final Stream<Role> roles() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setRelationTypeRolesReq(ConceptProto.RelationType.Roles.Req.getDefaultInstance()).build(); int iteratorId = runMethod(method).getRelationTypeRolesIter().getId(); return conceptStream(iteratorId, res -> res.getRelationTypeRolesIterRes().getRole()).map(Concept::asRole); } @Override public final RelationshipType relates(Role role) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setRelationTypeRelatesReq(ConceptProto.RelationType.Relates.Req.newBuilder() .setRole(RequestBuilder.Concept.concept(role))).build(); runMethod(method); return asCurrentBaseType(this); } @Override public final RelationshipType unrelate(Role role) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setRelationTypeUnrelateReq(ConceptProto.RelationType.Unrelate.Req.newBuilder() .setRole(RequestBuilder.Concept.concept(role))).build(); runMethod(method); return asCurrentBaseType(this); } @Override final RelationshipType asCurrentBaseType(Concept other) { return other.asRelationshipType(); } @Override final boolean equalsCurrentBaseType(Concept other) { return other.isRelationshipType(); } @Override protected final Relationship asInstance(Concept concept) { return concept.asRelationship(); } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/RemoteRole.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.concept.Concept; import ai.grakn.concept.ConceptId; import ai.grakn.concept.RelationshipType; import ai.grakn.concept.Role; import ai.grakn.concept.Type; import ai.grakn.rpc.proto.ConceptProto; import com.google.auto.value.AutoValue; import java.util.stream.Stream; /** * Client implementation of {@link ai.grakn.concept.Role} */ @AutoValue public abstract class RemoteRole extends RemoteSchemaConcept<Role> implements Role { static RemoteRole construct(Grakn.Transaction tx, ConceptId id) { return new AutoValue_RemoteRole(tx, id); } @Override public final Stream<RelationshipType> relationships() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setRoleRelationsReq(ConceptProto.Role.Relations.Req.getDefaultInstance()).build(); int iteratorId = runMethod(method).getRoleRelationsIter().getId(); return conceptStream(iteratorId, res -> res.getRoleRelationsIterRes().getRelationType()).map(Concept::asRelationshipType); } @Override public final Stream<Type> players() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setRolePlayersReq(ConceptProto.Role.Players.Req.getDefaultInstance()).build(); int iteratorId = runMethod(method).getRolePlayersIter().getId(); return conceptStream(iteratorId, res -> res.getRolePlayersIterRes().getType()).map(Concept::asType); } @Override final Role asCurrentBaseType(Concept other) { return other.asRole(); } @Override final boolean equalsCurrentBaseType(Concept other) { return other.isRole(); } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/RemoteRule.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.concept; import ai.grakn.client.Grakn; import ai.grakn.concept.Concept; import ai.grakn.concept.ConceptId; import ai.grakn.concept.Rule; import ai.grakn.concept.Type; import ai.grakn.graql.Graql; import ai.grakn.graql.Pattern; import ai.grakn.rpc.proto.ConceptProto; import ai.grakn.util.CommonUtil; import com.google.auto.value.AutoValue; import javax.annotation.Nullable; import java.util.stream.Stream; /** * Client implementation of {@link ai.grakn.concept.Rule} */ @AutoValue public abstract class RemoteRule extends RemoteSchemaConcept<Rule> implements Rule { static RemoteRule construct(Grakn.Transaction tx, ConceptId id) { return new AutoValue_RemoteRule(tx, id); } @Nullable @Override public final Pattern when() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setRuleWhenReq(ConceptProto.Rule.When.Req.getDefaultInstance()).build(); ConceptProto.Rule.When.Res response = runMethod(method).getRuleWhenRes(); switch (response.getResCase()) { case NULL: return null; case PATTERN: return Graql.parser().parsePattern(response.getPattern()); default: throw CommonUtil.unreachableStatement("Unexpected response " + response); } } @Nullable @Override public final Pattern then() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setRuleThenReq(ConceptProto.Rule.Then.Req.getDefaultInstance()).build(); ConceptProto.Rule.Then.Res response = runMethod(method).getRuleThenRes(); switch (response.getResCase()) { case NULL: return null; case PATTERN: return Graql.parser().parsePattern(response.getPattern()); default: throw CommonUtil.unreachableStatement("Unexpected response " + response); } } @Override public final Stream<Type> whenTypes() { throw new UnsupportedOperationException(); // TODO: remove from API } @Override public final Stream<Type> thenTypes() { throw new UnsupportedOperationException(); // TODO: remove from API } @Override final Rule asCurrentBaseType(Concept other) { return other.asRule(); } @Override final boolean equalsCurrentBaseType(Concept other) { return other.isRule(); } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/RemoteSchemaConcept.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.concept; import ai.grakn.client.rpc.RequestBuilder; import ai.grakn.concept.Concept; import ai.grakn.concept.Label; import ai.grakn.concept.LabelId; import ai.grakn.concept.Rule; import ai.grakn.concept.SchemaConcept; import ai.grakn.rpc.proto.ConceptProto; import ai.grakn.util.CommonUtil; import javax.annotation.Nullable; import java.util.stream.Stream; /** * Client implementation of {@link ai.grakn.concept.SchemaConcept} * * @param <SomeSchemaConcept> The exact type of this class */ abstract class RemoteSchemaConcept<SomeSchemaConcept extends SchemaConcept> extends RemoteConcept<SomeSchemaConcept> implements SchemaConcept { public final SomeSchemaConcept sup(SomeSchemaConcept type) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setSchemaConceptSetSupReq(ConceptProto.SchemaConcept.SetSup.Req.newBuilder() .setSchemaConcept(RequestBuilder.Concept.concept(type))).build(); runMethod(method); return asCurrentBaseType(this); } @Override public final Label label() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setSchemaConceptGetLabelReq(ConceptProto.SchemaConcept.GetLabel.Req.getDefaultInstance()).build(); return Label.of(runMethod(method).getSchemaConceptGetLabelRes().getLabel()); } @Override public final Boolean isImplicit() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setSchemaConceptIsImplicitReq(ConceptProto.SchemaConcept.IsImplicit.Req.getDefaultInstance()).build(); return runMethod(method).getSchemaConceptIsImplicitRes().getImplicit(); } @Override public final SomeSchemaConcept label(Label label) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setSchemaConceptSetLabelReq(ConceptProto.SchemaConcept.SetLabel.Req.newBuilder() .setLabel(label.getValue())).build(); runMethod(method); return asCurrentBaseType(this); } @Nullable @Override public final SomeSchemaConcept sup() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setSchemaConceptGetSupReq(ConceptProto.SchemaConcept.GetSup.Req.getDefaultInstance()).build(); ConceptProto.SchemaConcept.GetSup.Res response = runMethod(method).getSchemaConceptGetSupRes(); switch (response.getResCase()) { case NULL: return null; case SCHEMACONCEPT: Concept concept = RemoteConcept.of(response.getSchemaConcept(), tx()); return equalsCurrentBaseType(concept) ? asCurrentBaseType(concept) : null; default: throw CommonUtil.unreachableStatement("Unexpected response " + response); } } @Override public final Stream<SomeSchemaConcept> sups() { return tx().admin().sups(this).filter(this::equalsCurrentBaseType).map(this::asCurrentBaseType); } @Override public final Stream<SomeSchemaConcept> subs() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setSchemaConceptSubsReq(ConceptProto.SchemaConcept.Subs.Req.getDefaultInstance()).build(); int iteratorId = runMethod(method).getSchemaConceptSubsIter().getId(); return conceptStream(iteratorId, res -> res.getSchemaConceptSubsIterRes().getSchemaConcept()).map(this::asCurrentBaseType); } @Override public final LabelId labelId() { throw new UnsupportedOperationException(); // TODO: remove from API } @Override public final Stream<Rule> whenRules() { throw new UnsupportedOperationException(); // TODO: remove from API } @Override public final Stream<Rule> thenRules() { throw new UnsupportedOperationException(); // TODO: remove from API } abstract boolean equalsCurrentBaseType(Concept other); }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/RemoteThing.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.concept; import ai.grakn.client.rpc.RequestBuilder; import ai.grakn.concept.Attribute; import ai.grakn.concept.AttributeType; import ai.grakn.concept.Concept; import ai.grakn.concept.Relationship; import ai.grakn.concept.Role; import ai.grakn.concept.Thing; import ai.grakn.concept.Type; import ai.grakn.rpc.proto.ConceptProto; import java.util.Arrays; import java.util.stream.Stream; /** * Client implementation of {@link ai.grakn.concept.Thing} * * @param <SomeThing> The exact type of this class * @param <SomeType> the type of an instance of this class */ abstract class RemoteThing<SomeThing extends Thing, SomeType extends Type> extends RemoteConcept<SomeThing> implements Thing { @Override public final SomeType type() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setThingTypeReq(ConceptProto.Thing.Type.Req.getDefaultInstance()).build(); Concept concept = RemoteConcept.of(runMethod(method).getThingTypeRes().getType(), tx()); return asCurrentType(concept); } @Override public final boolean isInferred() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setThingIsInferredReq(ConceptProto.Thing.IsInferred.Req.getDefaultInstance()).build(); return runMethod(method).getThingIsInferredRes().getInferred(); } @Override public final Stream<Attribute<?>> keys(AttributeType... attributeTypes) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setThingKeysReq(ConceptProto.Thing.Keys.Req.newBuilder() .addAllAttributeTypes(RequestBuilder.Concept.concepts(Arrays.asList(attributeTypes)))).build(); int iteratorId = runMethod(method).getThingKeysIter().getId(); return conceptStream(iteratorId, res -> res.getThingKeysIterRes().getAttribute()).map(Concept::asAttribute); } @Override public final Stream<Attribute<?>> attributes(AttributeType... attributeTypes) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setThingAttributesReq(ConceptProto.Thing.Attributes.Req.newBuilder() .addAllAttributeTypes(RequestBuilder.Concept.concepts(Arrays.asList(attributeTypes)))).build(); int iteratorId = runMethod(method).getThingAttributesIter().getId(); return conceptStream(iteratorId, res -> res.getThingAttributesIterRes().getAttribute()).map(Concept::asAttribute); } @Override public final Stream<Relationship> relationships(Role... roles) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setThingRelationsReq(ConceptProto.Thing.Relations.Req.newBuilder() .addAllRoles(RequestBuilder.Concept.concepts(Arrays.asList(roles)))).build(); int iteratorId = runMethod(method).getThingRelationsIter().getId(); return conceptStream(iteratorId, res -> res.getThingRelationsIterRes().getRelation()).map(Concept::asRelationship); } @Override public final Stream<Role> roles() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setThingRolesReq(ConceptProto.Thing.Roles.Req.getDefaultInstance()).build(); int iteratorId = runMethod(method).getThingRolesIter().getId(); return conceptStream(iteratorId, res -> res.getThingRolesIterRes().getRole()).map(Concept::asRole); } @Override public final SomeThing has(Attribute attribute) { relhas(attribute); return asCurrentBaseType(this); } @Override @Deprecated public final Relationship relhas(Attribute attribute) { // TODO: replace usage of this method as a getter, with relationships(Attribute attribute) // TODO: then remove this method altogether and just use has(Attribute attribute) ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setThingRelhasReq(ConceptProto.Thing.Relhas.Req.newBuilder() .setAttribute(RequestBuilder.Concept.concept(attribute))).build(); Concept concept = RemoteConcept.of(runMethod(method).getThingRelhasRes().getRelation(), tx()); return concept.asRelationship(); } @Override public final SomeThing unhas(Attribute attribute) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setThingUnhasReq(ConceptProto.Thing.Unhas.Req.newBuilder() .setAttribute(RequestBuilder.Concept.concept(attribute))).build(); runMethod(method); return asCurrentBaseType(this); } abstract SomeType asCurrentType(Concept concept); }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/concept/RemoteType.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.concept; import ai.grakn.client.rpc.RequestBuilder; import ai.grakn.concept.AttributeType; import ai.grakn.concept.Concept; import ai.grakn.concept.Role; import ai.grakn.concept.Thing; import ai.grakn.concept.Type; import ai.grakn.exception.GraknTxOperationException; import ai.grakn.rpc.proto.ConceptProto; import java.util.stream.Stream; /** * Client implementation of {@link ai.grakn.concept.Type} * * @param <SomeType> The exact type of this class * @param <SomeThing> the exact type of instances of this class */ abstract class RemoteType<SomeType extends Type, SomeThing extends Thing> extends RemoteSchemaConcept<SomeType> implements Type { @Override public final Stream<SomeThing> instances() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setTypeInstancesReq(ConceptProto.Type.Instances.Req.getDefaultInstance()).build(); int iteratorId = runMethod(method).getTypeInstancesIter().getId(); return conceptStream(iteratorId, res -> res.getTypeInstancesIterRes().getThing()).map(this::asInstance); } @Override public final Boolean isAbstract() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setTypeIsAbstractReq(ConceptProto.Type.IsAbstract.Req.getDefaultInstance()).build(); return runMethod(method).getTypeIsAbstractRes().getAbstract(); } @Override public final SomeType isAbstract(Boolean isAbstract) throws GraknTxOperationException { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setTypeSetAbstractReq(ConceptProto.Type.SetAbstract.Req.newBuilder() .setAbstract(isAbstract)).build(); runMethod(method); return asCurrentBaseType(this); } @Override public final Stream<AttributeType> keys() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setTypeKeysReq(ConceptProto.Type.Keys.Req.getDefaultInstance()).build(); int iteratorId = runMethod(method).getTypeKeysIter().getId(); return conceptStream(iteratorId, res -> res.getTypeKeysIterRes().getAttributeType()).map(Concept::asAttributeType); } @Override public final Stream<AttributeType> attributes() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setTypeAttributesReq(ConceptProto.Type.Attributes.Req.getDefaultInstance()).build(); int iteratorId = runMethod(method).getTypeAttributesIter().getId(); return conceptStream(iteratorId, res -> res.getTypeAttributesIterRes().getAttributeType()).map(Concept::asAttributeType); } @Override public final Stream<Role> playing() { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setTypePlayingReq(ConceptProto.Type.Playing.Req.getDefaultInstance()).build(); int iteratorId = runMethod(method).getTypePlayingIter().getId(); return conceptStream(iteratorId, res -> res.getTypePlayingIterRes().getRole()).map(Concept::asRole); } @Override public final SomeType key(AttributeType attributeType) throws GraknTxOperationException { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setTypeKeyReq(ConceptProto.Type.Key.Req.newBuilder() .setAttributeType(RequestBuilder.Concept.concept(attributeType))).build(); runMethod(method); return asCurrentBaseType(this); } @Override public final SomeType has(AttributeType attributeType) throws GraknTxOperationException { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setTypeHasReq(ConceptProto.Type.Has.Req.newBuilder() .setAttributeType(RequestBuilder.Concept.concept(attributeType))).build(); runMethod(method); return asCurrentBaseType(this); } @Override public final SomeType plays(Role role) throws GraknTxOperationException { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setTypePlaysReq(ConceptProto.Type.Plays.Req.newBuilder() .setRole(RequestBuilder.Concept.concept(role))).build(); runMethod(method); return asCurrentBaseType(this); } @Override public final SomeType unkey(AttributeType attributeType) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setTypeUnkeyReq(ConceptProto.Type.Unkey.Req.newBuilder() .setAttributeType(RequestBuilder.Concept.concept(attributeType))).build(); runMethod(method); return asCurrentBaseType(this); } @Override public final SomeType unhas(AttributeType attributeType) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setTypeUnhasReq(ConceptProto.Type.Unhas.Req.newBuilder() .setAttributeType(RequestBuilder.Concept.concept(attributeType))).build(); runMethod(method); return asCurrentBaseType(this); } @Override public final SomeType unplay(Role role) { ConceptProto.Method.Req method = ConceptProto.Method.Req.newBuilder() .setTypeUnplayReq(ConceptProto.Type.Unplay.Req.newBuilder() .setRole(RequestBuilder.Concept.concept(role))).build(); runMethod(method); return asCurrentBaseType(this); } protected abstract SomeThing asInstance(Concept concept); }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/executor/RemoteComputeExecutor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.executor; import ai.grakn.ComputeExecutor; import ai.grakn.graql.answer.Answer; import java.util.stream.Stream; /** * Represents a compute query executing on a gRPC server. */ final class RemoteComputeExecutor<T extends Answer> implements ComputeExecutor<T> { private final Stream<T> result; private RemoteComputeExecutor(Stream<T> result) { this.result = result; } public static <T extends Answer> RemoteComputeExecutor<T> of(Stream<T> result) { return new RemoteComputeExecutor<>(result); } @Override public Stream<T> stream() { return result; } @Override public void kill() { throw new UnsupportedOperationException(); } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/executor/RemoteQueryExecutor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.executor; import ai.grakn.ComputeExecutor; import ai.grakn.QueryExecutor; import ai.grakn.client.Grakn; import ai.grakn.graql.AggregateQuery; import ai.grakn.graql.ComputeQuery; import ai.grakn.graql.DefineQuery; import ai.grakn.graql.DeleteQuery; import ai.grakn.graql.GetQuery; import ai.grakn.graql.InsertQuery; import ai.grakn.graql.Query; import ai.grakn.graql.UndefineQuery; import ai.grakn.graql.answer.Answer; import ai.grakn.graql.answer.ConceptMap; import ai.grakn.graql.answer.ConceptSet; import java.util.stream.Stream; import java.util.stream.StreamSupport; /** * Remote implementation of {@link QueryExecutor} that communicates with a Grakn server using gRPC. */ public final class RemoteQueryExecutor implements QueryExecutor { private final Grakn.Transaction tx; private RemoteQueryExecutor(Grakn.Transaction tx) { this.tx = tx; } public static RemoteQueryExecutor create(Grakn.Transaction tx) { return new RemoteQueryExecutor(tx); } @Override public Stream<ConceptMap> run(DefineQuery query) { Iterable<ConceptMap> iterable = () -> tx.query(query); return StreamSupport.stream(iterable.spliterator(), false); } @Override public Stream<ConceptMap> run(UndefineQuery query) { return streamConceptMaps(query); } @Override public Stream<ConceptMap> run(GetQuery query) { return streamConceptMaps(query); } @Override public Stream<ConceptMap> run(InsertQuery query) { return streamConceptMaps(query); } @Override public Stream<ConceptSet> run(DeleteQuery query) { return streamConceptSets(query); } @Override public <T extends Answer> Stream<T> run(AggregateQuery<T> query) { Iterable<T> iterable = () -> tx.query(query); return StreamSupport.stream(iterable.spliterator(), false); } @Override public <T extends Answer> ComputeExecutor<T> run(ComputeQuery<T> query) { Iterable<T> iterable = () -> tx.query(query); Stream<T> stream = StreamSupport.stream(iterable.spliterator(), false); return RemoteComputeExecutor.of(stream); } // Helper methods private Stream<ConceptMap> streamConceptMaps(Query<ConceptMap> query) { Iterable<ConceptMap> iterable = () -> tx.query(query); return StreamSupport.stream(iterable.spliterator(), false); } private Stream<ConceptSet> streamConceptSets(Query<ConceptSet> query) { Iterable<ConceptSet> iterable = () -> tx.query(query); return StreamSupport.stream(iterable.spliterator(), false); } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/rpc/AutoValue_Transceiver_Response.java
package ai.grakn.client.rpc; import ai.grakn.rpc.proto.SessionProto; import io.grpc.StatusRuntimeException; import javax.annotation.Generated; import javax.annotation.Nullable; @Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_Transceiver_Response extends Transceiver.Response { private final SessionProto.Transaction.Res nullableOk; private final StatusRuntimeException nullableError; AutoValue_Transceiver_Response( @Nullable SessionProto.Transaction.Res nullableOk, @Nullable StatusRuntimeException nullableError) { this.nullableOk = nullableOk; this.nullableError = nullableError; } @Nullable @Override SessionProto.Transaction.Res nullableOk() { return nullableOk; } @Nullable @Override StatusRuntimeException nullableError() { return nullableError; } @Override public String toString() { return "Response{" + "nullableOk=" + nullableOk + ", " + "nullableError=" + nullableError + "}"; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof Transceiver.Response) { Transceiver.Response that = (Transceiver.Response) o; return ((this.nullableOk == null) ? (that.nullableOk() == null) : this.nullableOk.equals(that.nullableOk())) && ((this.nullableError == null) ? (that.nullableError() == null) : this.nullableError.equals(that.nullableError())); } return false; } @Override public int hashCode() { int h = 1; h *= 1000003; h ^= (nullableOk == null) ? 0 : this.nullableOk.hashCode(); h *= 1000003; h ^= (nullableError == null) ? 0 : this.nullableError.hashCode(); return h; } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/rpc/RequestBuilder.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.rpc; import ai.grakn.GraknTxType; import ai.grakn.concept.AttributeType; import ai.grakn.concept.ConceptId; import ai.grakn.concept.Label; import ai.grakn.graql.Pattern; import ai.grakn.graql.Query; import ai.grakn.rpc.proto.ConceptProto; import ai.grakn.rpc.proto.KeyspaceProto; import ai.grakn.rpc.proto.SessionProto; import ai.grakn.util.CommonUtil; import java.time.LocalDateTime; import java.time.ZoneId; import java.util.Collection; import static java.util.stream.Collectors.toList; /** * A utility class to build RPC Requests from a provided set of Grakn concepts. */ public class RequestBuilder { /** * An RPC Request Builder class for Transaction Service */ public static class Transaction { public static SessionProto.Transaction.Req open(ai.grakn.Keyspace keyspace, GraknTxType txType) { SessionProto.Transaction.Open.Req openRequest = SessionProto.Transaction.Open.Req.newBuilder() .setKeyspace(keyspace.getValue()) .setType(SessionProto.Transaction.Type.valueOf(txType.getId())) .build(); return SessionProto.Transaction.Req.newBuilder().setOpenReq(openRequest).build(); } public static SessionProto.Transaction.Req commit() { return SessionProto.Transaction.Req.newBuilder() .setCommitReq(SessionProto.Transaction.Commit.Req.getDefaultInstance()) .build(); } public static SessionProto.Transaction.Req query(Query<?> query) { return query(query.toString(), query.inferring()); } public static SessionProto.Transaction.Req query(String queryString) { return query(queryString, true); } public static SessionProto.Transaction.Req query(String queryString, boolean infer) { SessionProto.Transaction.Query.Req request = SessionProto.Transaction.Query.Req.newBuilder() .setQuery(queryString) .setInfer(infer ? SessionProto.Transaction.Query.INFER.TRUE : SessionProto.Transaction.Query.INFER.FALSE) .build(); return SessionProto.Transaction.Req.newBuilder().setQueryReq(request).build(); } public static SessionProto.Transaction.Req getSchemaConcept(Label label) { return SessionProto.Transaction.Req.newBuilder() .setGetSchemaConceptReq(SessionProto.Transaction.GetSchemaConcept.Req.newBuilder().setLabel(label.getValue())) .build(); } public static SessionProto.Transaction.Req getConcept(ConceptId id) { return SessionProto.Transaction.Req.newBuilder() .setGetConceptReq(SessionProto.Transaction.GetConcept.Req.newBuilder().setId(id.getValue())) .build(); } public static SessionProto.Transaction.Req getAttributes(Object value) { return SessionProto.Transaction.Req.newBuilder() .setGetAttributesReq(SessionProto.Transaction.GetAttributes.Req.newBuilder() .setValue(Concept.attributeValue(value)) ).build(); } public static SessionProto.Transaction.Req putEntityType(Label label) { return SessionProto.Transaction.Req.newBuilder() .setPutEntityTypeReq(SessionProto.Transaction.PutEntityType.Req.newBuilder().setLabel(label.getValue())) .build(); } public static SessionProto.Transaction.Req putAttributeType(Label label, AttributeType.DataType<?> dataType) { SessionProto.Transaction.PutAttributeType.Req request = SessionProto.Transaction.PutAttributeType.Req.newBuilder() .setLabel(label.getValue()) .setDataType(Concept.dataType(dataType)) .build(); return SessionProto.Transaction.Req.newBuilder().setPutAttributeTypeReq(request).build(); } public static SessionProto.Transaction.Req putRelationshipType(Label label) { SessionProto.Transaction.PutRelationType.Req request = SessionProto.Transaction.PutRelationType.Req.newBuilder() .setLabel(label.getValue()) .build(); return SessionProto.Transaction.Req.newBuilder().setPutRelationTypeReq(request).build(); } public static SessionProto.Transaction.Req putRole(Label label) { SessionProto.Transaction.PutRole.Req request = SessionProto.Transaction.PutRole.Req.newBuilder() .setLabel(label.getValue()) .build(); return SessionProto.Transaction.Req.newBuilder().setPutRoleReq(request).build(); } public static SessionProto.Transaction.Req putRule(Label label, Pattern when, Pattern then) { SessionProto.Transaction.PutRule.Req request = SessionProto.Transaction.PutRule.Req.newBuilder() .setLabel(label.getValue()) .setWhen(when.toString()) .setThen(then.toString()) .build(); return SessionProto.Transaction.Req.newBuilder().setPutRuleReq(request).build(); } public static SessionProto.Transaction.Req iterate(int iteratorId) { return SessionProto.Transaction.Req.newBuilder() .setIterateReq(SessionProto.Transaction.Iter.Req.newBuilder() .setId(iteratorId)).build(); } } /** * An RPC Request Builder class for Concept messages */ public static class Concept { public static ConceptProto.Concept concept(ai.grakn.concept.Concept concept) { return ConceptProto.Concept.newBuilder() .setId(concept.id().getValue()) .setBaseType(getBaseType(concept)) .build(); } private static ConceptProto.Concept.BASE_TYPE getBaseType(ai.grakn.concept.Concept concept) { if (concept.isEntityType()) { return ConceptProto.Concept.BASE_TYPE.ENTITY_TYPE; } else if (concept.isRelationshipType()) { return ConceptProto.Concept.BASE_TYPE.RELATION_TYPE; } else if (concept.isAttributeType()) { return ConceptProto.Concept.BASE_TYPE.ATTRIBUTE_TYPE; } else if (concept.isEntity()) { return ConceptProto.Concept.BASE_TYPE.ENTITY; } else if (concept.isRelationship()) { return ConceptProto.Concept.BASE_TYPE.RELATION; } else if (concept.isAttribute()) { return ConceptProto.Concept.BASE_TYPE.ATTRIBUTE; } else if (concept.isRole()) { return ConceptProto.Concept.BASE_TYPE.ROLE; } else if (concept.isRule()) { return ConceptProto.Concept.BASE_TYPE.RULE; } else if (concept.isType()) { return ConceptProto.Concept.BASE_TYPE.META_TYPE; } else { throw CommonUtil.unreachableStatement("Unrecognised concept " + concept); } } public static Collection<ConceptProto.Concept> concepts(Collection<ai.grakn.concept.Concept> concepts) { return concepts.stream().map(Concept::concept).collect(toList()); } public static ConceptProto.ValueObject attributeValue(Object value) { ConceptProto.ValueObject.Builder builder = ConceptProto.ValueObject.newBuilder(); if (value instanceof String) { builder.setString((String) value); } else if (value instanceof Boolean) { builder.setBoolean((boolean) value); } else if (value instanceof Integer) { builder.setInteger((int) value); } else if (value instanceof Long) { builder.setLong((long) value); } else if (value instanceof Float) { builder.setFloat((float) value); } else if (value instanceof Double) { builder.setDouble((double) value); } else if (value instanceof LocalDateTime) { builder.setDate(((LocalDateTime) value).atZone(ZoneId.of("Z")).toInstant().toEpochMilli()); } else { throw CommonUtil.unreachableStatement("Unrecognised " + value); } return builder.build(); } public static AttributeType.DataType<?> dataType(ConceptProto.AttributeType.DATA_TYPE dataType) { switch (dataType) { case STRING: return AttributeType.DataType.STRING; case BOOLEAN: return AttributeType.DataType.BOOLEAN; case INTEGER: return AttributeType.DataType.INTEGER; case LONG: return AttributeType.DataType.LONG; case FLOAT: return AttributeType.DataType.FLOAT; case DOUBLE: return AttributeType.DataType.DOUBLE; case DATE: return AttributeType.DataType.DATE; default: case UNRECOGNIZED: throw new IllegalArgumentException("Unrecognised " + dataType); } } static ConceptProto.AttributeType.DATA_TYPE dataType(AttributeType.DataType<?> dataType) { if (dataType.equals(AttributeType.DataType.STRING)) { return ConceptProto.AttributeType.DATA_TYPE.STRING; } else if (dataType.equals(AttributeType.DataType.BOOLEAN)) { return ConceptProto.AttributeType.DATA_TYPE.BOOLEAN; } else if (dataType.equals(AttributeType.DataType.INTEGER)) { return ConceptProto.AttributeType.DATA_TYPE.INTEGER; } else if (dataType.equals(AttributeType.DataType.LONG)) { return ConceptProto.AttributeType.DATA_TYPE.LONG; } else if (dataType.equals(AttributeType.DataType.FLOAT)) { return ConceptProto.AttributeType.DATA_TYPE.FLOAT; } else if (dataType.equals(AttributeType.DataType.DOUBLE)) { return ConceptProto.AttributeType.DATA_TYPE.DOUBLE; } else if (dataType.equals(AttributeType.DataType.DATE)) { return ConceptProto.AttributeType.DATA_TYPE.DATE; } else { throw CommonUtil.unreachableStatement("Unrecognised " + dataType); } } } /** * An RPC Request Builder class for Keyspace Service */ public static class Keyspace { public static KeyspaceProto.Keyspace.Delete.Req delete(String name) { return KeyspaceProto.Keyspace.Delete.Req.newBuilder().setName(name).build(); } } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/rpc/ResponseReader.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.rpc; import ai.grakn.client.Grakn; import ai.grakn.client.concept.RemoteConcept; import ai.grakn.concept.ConceptId; import ai.grakn.graql.Graql; import ai.grakn.graql.Var; import ai.grakn.graql.answer.Answer; import ai.grakn.graql.answer.AnswerGroup; import ai.grakn.graql.answer.ConceptList; import ai.grakn.graql.answer.ConceptMap; import ai.grakn.graql.answer.ConceptSet; import ai.grakn.graql.answer.ConceptSetMeasure; import ai.grakn.graql.answer.Value; import ai.grakn.graql.internal.query.answer.ConceptMapImpl; import ai.grakn.rpc.proto.AnswerProto; import com.google.common.collect.ImmutableMap; import java.text.NumberFormat; import java.text.ParseException; import static java.util.stream.Collectors.toList; import static java.util.stream.Collectors.toSet; /** * An RPC Response reader class to convert {@link AnswerProto} messages into Graql {@link Answer}s. */ public class ResponseReader { public static Answer answer(AnswerProto.Answer res, Grakn.Transaction tx) { switch (res.getAnswerCase()) { case ANSWERGROUP: return answerGroup(res.getAnswerGroup(), tx); case CONCEPTMAP: return conceptMap(res.getConceptMap(), tx); case CONCEPTLIST: return conceptList(res.getConceptList()); case CONCEPTSET: return conceptSet(res.getConceptSet()); case CONCEPTSETMEASURE: return conceptSetMeasure(res.getConceptSetMeasure()); case VALUE: return value(res.getValue()); default: case ANSWER_NOT_SET: throw new IllegalArgumentException("Unexpected " + res); } } static AnswerGroup<?> answerGroup(AnswerProto.AnswerGroup res, Grakn.Transaction tx) { return new AnswerGroup<>( RemoteConcept.of(res.getOwner(), tx), res.getAnswersList().stream().map(answer -> answer(answer, tx)).collect(toList()) ); } static ConceptMap conceptMap(AnswerProto.ConceptMap res, Grakn.Transaction tx) { ImmutableMap.Builder<Var, ai.grakn.concept.Concept> map = ImmutableMap.builder(); res.getMapMap().forEach((resVar, resConcept) -> { map.put(Graql.var(resVar), RemoteConcept.of(resConcept, tx)); }); return new ConceptMapImpl(map.build()); } static ConceptList conceptList(AnswerProto.ConceptList res) { return new ConceptList(res.getList().getIdsList().stream().map(ConceptId::of).collect(toList())); } static ConceptSet conceptSet(AnswerProto.ConceptSet res) { return new ConceptSet(res.getSet().getIdsList().stream().map(ConceptId::of).collect(toSet())); } static ConceptSetMeasure conceptSetMeasure(AnswerProto.ConceptSetMeasure res) { return new ConceptSetMeasure( res.getSet().getIdsList().stream().map(ConceptId::of).collect(toSet()), number(res.getMeasurement()) ); } static Value value(AnswerProto.Value res) { return new Value(number(res.getNumber())); } static Number number(AnswerProto.Number res) { try { return NumberFormat.getInstance().parse(res.getValue()); } catch (ParseException e) { throw new RuntimeException(e); } } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/client/rpc/Transceiver.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package ai.grakn.client.rpc; import ai.grakn.exception.GraknTxOperationException; import ai.grakn.rpc.proto.SessionProto.Transaction; import ai.grakn.rpc.proto.SessionServiceGrpc; import com.google.auto.value.AutoValue; import com.google.common.base.Preconditions; import io.grpc.StatusRuntimeException; import io.grpc.stub.StreamObserver; import javax.annotation.Nullable; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingDeque; import java.util.concurrent.atomic.AtomicBoolean; /** * Wrapper making transaction calls to the Grakn RPC Server - handles sending a stream of {@link Transaction.Req} and * receiving a stream of {@link Transaction.Res}. * * A request is sent with the {@link #send(Transaction.Req)}} method, and you can block for a response with the * {@link #receive()} method. * * {@code * try (Transceiver tx = Transceiver.create(stub) { * tx.send(openMessage); * Transaction.Res doneMessage = tx.receive().ok(); * tx.send(commitMessage); * StatusRuntimeException validationError = tx.receive.error(); * } * } */ public class Transceiver implements AutoCloseable { private final StreamObserver<Transaction.Req> requestSender; private final ResponseListener responseListener; private Transceiver(StreamObserver<Transaction.Req> requestSender, ResponseListener responseListener) { this.requestSender = requestSender; this.responseListener = responseListener; } public static Transceiver create(SessionServiceGrpc.SessionServiceStub stub) { ResponseListener responseListener = new ResponseListener(); StreamObserver<Transaction.Req> requestSender = stub.transaction(responseListener); return new Transceiver(requestSender, responseListener); } /** * Send a request and return immediately. * * This method is non-blocking - it returns immediately. */ public void send(Transaction.Req request) { if (responseListener.terminated.get()) { throw GraknTxOperationException.transactionClosed(null, "The gRPC connection closed"); } requestSender.onNext(request); } /** * Block until a response is returned. */ public Response receive() throws InterruptedException { Response response = responseListener.poll(); if (response.type() != Response.Type.OK) { close(); } return response; } @Override public void close() { try{ requestSender.onCompleted(); } catch (IllegalStateException e) { //IGNORED //This is needed to handle the fact that: //1. Commits can lead to transaction closures and //2. Error can lead to connection closures but the transaction may stay open //When this occurs a "half-closed" state is thrown which we can safely ignore } responseListener.close(); } public boolean isClosed(){ return responseListener.terminated.get(); } /** * A {@link StreamObserver} that stores all responses in a blocking queue. * * A response can be polled with the {@link #poll()} method. */ private static class ResponseListener implements StreamObserver<Transaction.Res>, AutoCloseable { private final BlockingQueue<Response> queue = new LinkedBlockingDeque<>(); private final AtomicBoolean terminated = new AtomicBoolean(false); @Override public void onNext(Transaction.Res value) { queue.add(Response.ok(value)); } @Override public void onError(Throwable throwable) { terminated.set(true); assert throwable instanceof StatusRuntimeException : "The server only yields these exceptions"; queue.add(Response.error((StatusRuntimeException) throwable)); } @Override public void onCompleted() { terminated.set(true); queue.add(Response.completed()); } Response poll() throws InterruptedException { // First check for a response without blocking Response response = queue.poll(); if (response != null) { return response; } // Only after checking for existing messages, we check if the connection was already terminated, so we don't // block for a response forever if (terminated.get()) { throw GraknTxOperationException.transactionClosed(null, "The gRPC connection closed"); } // Block for a response (because we are confident there are no responses and the connection has not closed) return queue.take(); } @Override public void close() { while (!terminated.get()) { try { poll(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } } } /** * A response from the gRPC server, that may be a successful response {@link #ok(Transaction.Res), an error * {@link #error(StatusRuntimeException)}} or a "completed" message {@link #completed()}. */ @AutoValue public abstract static class Response { abstract @Nullable Transaction.Res nullableOk(); abstract @Nullable StatusRuntimeException nullableError(); public final Type type() { if (nullableOk() != null) { return Type.OK; } else if (nullableError() != null) { return Type.ERROR; } else { return Type.COMPLETED; } } /** * Enum indicating the type of {@link Response}. */ public enum Type { OK, ERROR, COMPLETED; } /** * If this is a successful response, retrieve it. * * @throws IllegalStateException if this is not a successful response */ public final Transaction.Res ok() { Transaction.Res response = nullableOk(); if (response == null) { throw new IllegalStateException("Expected successful response not found: " + toString()); } else { return response; } } /** * If this is an error, retrieve it. * * @throws IllegalStateException if this is not an error */ public final StatusRuntimeException error() { StatusRuntimeException throwable = nullableError(); if (throwable == null) { throw new IllegalStateException("Expected error not found: " + toString()); } else { return throwable; } } private static Response create(@Nullable Transaction.Res response, @Nullable StatusRuntimeException error) { Preconditions.checkArgument(response == null || error == null); return new AutoValue_Transceiver_Response(response, error); } static Response completed() { return create(null, null); } static Response error(StatusRuntimeException error) { return create(null, error); } static Response ok(Transaction.Res response) { return create(response, null); } } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/rpc
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/rpc/proto/AnswerProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Answer.proto package ai.grakn.rpc.proto; public final class AnswerProto { private AnswerProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface AnswerOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Answer) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.AnswerGroup answerGroup = 1;</code> */ ai.grakn.rpc.proto.AnswerProto.AnswerGroup getAnswerGroup(); /** * <code>optional .session.AnswerGroup answerGroup = 1;</code> */ ai.grakn.rpc.proto.AnswerProto.AnswerGroupOrBuilder getAnswerGroupOrBuilder(); /** * <code>optional .session.ConceptMap conceptMap = 2;</code> */ ai.grakn.rpc.proto.AnswerProto.ConceptMap getConceptMap(); /** * <code>optional .session.ConceptMap conceptMap = 2;</code> */ ai.grakn.rpc.proto.AnswerProto.ConceptMapOrBuilder getConceptMapOrBuilder(); /** * <code>optional .session.ConceptList conceptList = 3;</code> */ ai.grakn.rpc.proto.AnswerProto.ConceptList getConceptList(); /** * <code>optional .session.ConceptList conceptList = 3;</code> */ ai.grakn.rpc.proto.AnswerProto.ConceptListOrBuilder getConceptListOrBuilder(); /** * <code>optional .session.ConceptSet conceptSet = 4;</code> */ ai.grakn.rpc.proto.AnswerProto.ConceptSet getConceptSet(); /** * <code>optional .session.ConceptSet conceptSet = 4;</code> */ ai.grakn.rpc.proto.AnswerProto.ConceptSetOrBuilder getConceptSetOrBuilder(); /** * <code>optional .session.ConceptSetMeasure conceptSetMeasure = 5;</code> */ ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure getConceptSetMeasure(); /** * <code>optional .session.ConceptSetMeasure conceptSetMeasure = 5;</code> */ ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasureOrBuilder getConceptSetMeasureOrBuilder(); /** * <code>optional .session.Value value = 6;</code> */ ai.grakn.rpc.proto.AnswerProto.Value getValue(); /** * <code>optional .session.Value value = 6;</code> */ ai.grakn.rpc.proto.AnswerProto.ValueOrBuilder getValueOrBuilder(); public ai.grakn.rpc.proto.AnswerProto.Answer.AnswerCase getAnswerCase(); } /** * Protobuf type {@code session.Answer} */ public static final class Answer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Answer) AnswerOrBuilder { // Use Answer.newBuilder() to construct. private Answer(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Answer() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Answer( 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.AnswerGroup.Builder subBuilder = null; if (answerCase_ == 1) { subBuilder = ((ai.grakn.rpc.proto.AnswerProto.AnswerGroup) answer_).toBuilder(); } answer_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.AnswerGroup.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.AnswerProto.AnswerGroup) answer_); answer_ = subBuilder.buildPartial(); } answerCase_ = 1; break; } case 18: { ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder subBuilder = null; if (answerCase_ == 2) { subBuilder = ((ai.grakn.rpc.proto.AnswerProto.ConceptMap) answer_).toBuilder(); } answer_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.ConceptMap.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.AnswerProto.ConceptMap) answer_); answer_ = subBuilder.buildPartial(); } answerCase_ = 2; break; } case 26: { ai.grakn.rpc.proto.AnswerProto.ConceptList.Builder subBuilder = null; if (answerCase_ == 3) { subBuilder = ((ai.grakn.rpc.proto.AnswerProto.ConceptList) answer_).toBuilder(); } answer_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.ConceptList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.AnswerProto.ConceptList) answer_); answer_ = subBuilder.buildPartial(); } answerCase_ = 3; break; } case 34: { ai.grakn.rpc.proto.AnswerProto.ConceptSet.Builder subBuilder = null; if (answerCase_ == 4) { subBuilder = ((ai.grakn.rpc.proto.AnswerProto.ConceptSet) answer_).toBuilder(); } answer_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.ConceptSet.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.AnswerProto.ConceptSet) answer_); answer_ = subBuilder.buildPartial(); } answerCase_ = 4; break; } case 42: { ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.Builder subBuilder = null; if (answerCase_ == 5) { subBuilder = ((ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure) answer_).toBuilder(); } answer_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure) answer_); answer_ = subBuilder.buildPartial(); } answerCase_ = 5; break; } case 50: { ai.grakn.rpc.proto.AnswerProto.Value.Builder subBuilder = null; if (answerCase_ == 6) { subBuilder = ((ai.grakn.rpc.proto.AnswerProto.Value) answer_).toBuilder(); } answer_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.AnswerProto.Value) answer_); answer_ = subBuilder.buildPartial(); } answerCase_ = 6; 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.AnswerProto.internal_static_session_Answer_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Answer_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.Answer.class, ai.grakn.rpc.proto.AnswerProto.Answer.Builder.class); } private int answerCase_ = 0; private java.lang.Object answer_; public enum AnswerCase implements com.google.protobuf.Internal.EnumLite { ANSWERGROUP(1), CONCEPTMAP(2), CONCEPTLIST(3), CONCEPTSET(4), CONCEPTSETMEASURE(5), VALUE(6), ANSWER_NOT_SET(0); private final int value; private AnswerCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AnswerCase valueOf(int value) { return forNumber(value); } public static AnswerCase forNumber(int value) { switch (value) { case 1: return ANSWERGROUP; case 2: return CONCEPTMAP; case 3: return CONCEPTLIST; case 4: return CONCEPTSET; case 5: return CONCEPTSETMEASURE; case 6: return VALUE; case 0: return ANSWER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public AnswerCase getAnswerCase() { return AnswerCase.forNumber( answerCase_); } public static final int ANSWERGROUP_FIELD_NUMBER = 1; /** * <code>optional .session.AnswerGroup answerGroup = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.AnswerGroup getAnswerGroup() { if (answerCase_ == 1) { return (ai.grakn.rpc.proto.AnswerProto.AnswerGroup) answer_; } return ai.grakn.rpc.proto.AnswerProto.AnswerGroup.getDefaultInstance(); } /** * <code>optional .session.AnswerGroup answerGroup = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.AnswerGroupOrBuilder getAnswerGroupOrBuilder() { if (answerCase_ == 1) { return (ai.grakn.rpc.proto.AnswerProto.AnswerGroup) answer_; } return ai.grakn.rpc.proto.AnswerProto.AnswerGroup.getDefaultInstance(); } public static final int CONCEPTMAP_FIELD_NUMBER = 2; /** * <code>optional .session.ConceptMap conceptMap = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptMap getConceptMap() { if (answerCase_ == 2) { return (ai.grakn.rpc.proto.AnswerProto.ConceptMap) answer_; } return ai.grakn.rpc.proto.AnswerProto.ConceptMap.getDefaultInstance(); } /** * <code>optional .session.ConceptMap conceptMap = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptMapOrBuilder getConceptMapOrBuilder() { if (answerCase_ == 2) { return (ai.grakn.rpc.proto.AnswerProto.ConceptMap) answer_; } return ai.grakn.rpc.proto.AnswerProto.ConceptMap.getDefaultInstance(); } public static final int CONCEPTLIST_FIELD_NUMBER = 3; /** * <code>optional .session.ConceptList conceptList = 3;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptList getConceptList() { if (answerCase_ == 3) { return (ai.grakn.rpc.proto.AnswerProto.ConceptList) answer_; } return ai.grakn.rpc.proto.AnswerProto.ConceptList.getDefaultInstance(); } /** * <code>optional .session.ConceptList conceptList = 3;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptListOrBuilder getConceptListOrBuilder() { if (answerCase_ == 3) { return (ai.grakn.rpc.proto.AnswerProto.ConceptList) answer_; } return ai.grakn.rpc.proto.AnswerProto.ConceptList.getDefaultInstance(); } public static final int CONCEPTSET_FIELD_NUMBER = 4; /** * <code>optional .session.ConceptSet conceptSet = 4;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptSet getConceptSet() { if (answerCase_ == 4) { return (ai.grakn.rpc.proto.AnswerProto.ConceptSet) answer_; } return ai.grakn.rpc.proto.AnswerProto.ConceptSet.getDefaultInstance(); } /** * <code>optional .session.ConceptSet conceptSet = 4;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptSetOrBuilder getConceptSetOrBuilder() { if (answerCase_ == 4) { return (ai.grakn.rpc.proto.AnswerProto.ConceptSet) answer_; } return ai.grakn.rpc.proto.AnswerProto.ConceptSet.getDefaultInstance(); } public static final int CONCEPTSETMEASURE_FIELD_NUMBER = 5; /** * <code>optional .session.ConceptSetMeasure conceptSetMeasure = 5;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure getConceptSetMeasure() { if (answerCase_ == 5) { return (ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure) answer_; } return ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.getDefaultInstance(); } /** * <code>optional .session.ConceptSetMeasure conceptSetMeasure = 5;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasureOrBuilder getConceptSetMeasureOrBuilder() { if (answerCase_ == 5) { return (ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure) answer_; } return ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.getDefaultInstance(); } public static final int VALUE_FIELD_NUMBER = 6; /** * <code>optional .session.Value value = 6;</code> */ public ai.grakn.rpc.proto.AnswerProto.Value getValue() { if (answerCase_ == 6) { return (ai.grakn.rpc.proto.AnswerProto.Value) answer_; } return ai.grakn.rpc.proto.AnswerProto.Value.getDefaultInstance(); } /** * <code>optional .session.Value value = 6;</code> */ public ai.grakn.rpc.proto.AnswerProto.ValueOrBuilder getValueOrBuilder() { if (answerCase_ == 6) { return (ai.grakn.rpc.proto.AnswerProto.Value) answer_; } return ai.grakn.rpc.proto.AnswerProto.Value.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 (answerCase_ == 1) { output.writeMessage(1, (ai.grakn.rpc.proto.AnswerProto.AnswerGroup) answer_); } if (answerCase_ == 2) { output.writeMessage(2, (ai.grakn.rpc.proto.AnswerProto.ConceptMap) answer_); } if (answerCase_ == 3) { output.writeMessage(3, (ai.grakn.rpc.proto.AnswerProto.ConceptList) answer_); } if (answerCase_ == 4) { output.writeMessage(4, (ai.grakn.rpc.proto.AnswerProto.ConceptSet) answer_); } if (answerCase_ == 5) { output.writeMessage(5, (ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure) answer_); } if (answerCase_ == 6) { output.writeMessage(6, (ai.grakn.rpc.proto.AnswerProto.Value) answer_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (answerCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (ai.grakn.rpc.proto.AnswerProto.AnswerGroup) answer_); } if (answerCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (ai.grakn.rpc.proto.AnswerProto.ConceptMap) answer_); } if (answerCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (ai.grakn.rpc.proto.AnswerProto.ConceptList) answer_); } if (answerCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (ai.grakn.rpc.proto.AnswerProto.ConceptSet) answer_); } if (answerCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure) answer_); } if (answerCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (ai.grakn.rpc.proto.AnswerProto.Value) answer_); } 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.AnswerProto.Answer)) { return super.equals(obj); } ai.grakn.rpc.proto.AnswerProto.Answer other = (ai.grakn.rpc.proto.AnswerProto.Answer) obj; boolean result = true; result = result && getAnswerCase().equals( other.getAnswerCase()); if (!result) return false; switch (answerCase_) { case 1: result = result && getAnswerGroup() .equals(other.getAnswerGroup()); break; case 2: result = result && getConceptMap() .equals(other.getConceptMap()); break; case 3: result = result && getConceptList() .equals(other.getConceptList()); break; case 4: result = result && getConceptSet() .equals(other.getConceptSet()); break; case 5: result = result && getConceptSetMeasure() .equals(other.getConceptSetMeasure()); break; case 6: result = result && getValue() .equals(other.getValue()); 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 (answerCase_) { case 1: hash = (37 * hash) + ANSWERGROUP_FIELD_NUMBER; hash = (53 * hash) + getAnswerGroup().hashCode(); break; case 2: hash = (37 * hash) + CONCEPTMAP_FIELD_NUMBER; hash = (53 * hash) + getConceptMap().hashCode(); break; case 3: hash = (37 * hash) + CONCEPTLIST_FIELD_NUMBER; hash = (53 * hash) + getConceptList().hashCode(); break; case 4: hash = (37 * hash) + CONCEPTSET_FIELD_NUMBER; hash = (53 * hash) + getConceptSet().hashCode(); break; case 5: hash = (37 * hash) + CONCEPTSETMEASURE_FIELD_NUMBER; hash = (53 * hash) + getConceptSetMeasure().hashCode(); break; case 6: hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.AnswerProto.Answer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.Answer 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.AnswerProto.Answer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.Answer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.AnswerProto.Answer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.Answer 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.AnswerProto.Answer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.Answer 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.AnswerProto.Answer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.Answer 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.AnswerProto.Answer 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.Answer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Answer) ai.grakn.rpc.proto.AnswerProto.AnswerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Answer_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Answer_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.Answer.class, ai.grakn.rpc.proto.AnswerProto.Answer.Builder.class); } // Construct using ai.grakn.rpc.proto.AnswerProto.Answer.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(); answerCase_ = 0; answer_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Answer_descriptor; } public ai.grakn.rpc.proto.AnswerProto.Answer getDefaultInstanceForType() { return ai.grakn.rpc.proto.AnswerProto.Answer.getDefaultInstance(); } public ai.grakn.rpc.proto.AnswerProto.Answer build() { ai.grakn.rpc.proto.AnswerProto.Answer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.AnswerProto.Answer buildPartial() { ai.grakn.rpc.proto.AnswerProto.Answer result = new ai.grakn.rpc.proto.AnswerProto.Answer(this); if (answerCase_ == 1) { if (answerGroupBuilder_ == null) { result.answer_ = answer_; } else { result.answer_ = answerGroupBuilder_.build(); } } if (answerCase_ == 2) { if (conceptMapBuilder_ == null) { result.answer_ = answer_; } else { result.answer_ = conceptMapBuilder_.build(); } } if (answerCase_ == 3) { if (conceptListBuilder_ == null) { result.answer_ = answer_; } else { result.answer_ = conceptListBuilder_.build(); } } if (answerCase_ == 4) { if (conceptSetBuilder_ == null) { result.answer_ = answer_; } else { result.answer_ = conceptSetBuilder_.build(); } } if (answerCase_ == 5) { if (conceptSetMeasureBuilder_ == null) { result.answer_ = answer_; } else { result.answer_ = conceptSetMeasureBuilder_.build(); } } if (answerCase_ == 6) { if (valueBuilder_ == null) { result.answer_ = answer_; } else { result.answer_ = valueBuilder_.build(); } } result.answerCase_ = answerCase_; 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.AnswerProto.Answer) { return mergeFrom((ai.grakn.rpc.proto.AnswerProto.Answer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.AnswerProto.Answer other) { if (other == ai.grakn.rpc.proto.AnswerProto.Answer.getDefaultInstance()) return this; switch (other.getAnswerCase()) { case ANSWERGROUP: { mergeAnswerGroup(other.getAnswerGroup()); break; } case CONCEPTMAP: { mergeConceptMap(other.getConceptMap()); break; } case CONCEPTLIST: { mergeConceptList(other.getConceptList()); break; } case CONCEPTSET: { mergeConceptSet(other.getConceptSet()); break; } case CONCEPTSETMEASURE: { mergeConceptSetMeasure(other.getConceptSetMeasure()); break; } case VALUE: { mergeValue(other.getValue()); break; } case ANSWER_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.AnswerProto.Answer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.AnswerProto.Answer) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int answerCase_ = 0; private java.lang.Object answer_; public AnswerCase getAnswerCase() { return AnswerCase.forNumber( answerCase_); } public Builder clearAnswer() { answerCase_ = 0; answer_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.AnswerGroup, ai.grakn.rpc.proto.AnswerProto.AnswerGroup.Builder, ai.grakn.rpc.proto.AnswerProto.AnswerGroupOrBuilder> answerGroupBuilder_; /** * <code>optional .session.AnswerGroup answerGroup = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.AnswerGroup getAnswerGroup() { if (answerGroupBuilder_ == null) { if (answerCase_ == 1) { return (ai.grakn.rpc.proto.AnswerProto.AnswerGroup) answer_; } return ai.grakn.rpc.proto.AnswerProto.AnswerGroup.getDefaultInstance(); } else { if (answerCase_ == 1) { return answerGroupBuilder_.getMessage(); } return ai.grakn.rpc.proto.AnswerProto.AnswerGroup.getDefaultInstance(); } } /** * <code>optional .session.AnswerGroup answerGroup = 1;</code> */ public Builder setAnswerGroup(ai.grakn.rpc.proto.AnswerProto.AnswerGroup value) { if (answerGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } answer_ = value; onChanged(); } else { answerGroupBuilder_.setMessage(value); } answerCase_ = 1; return this; } /** * <code>optional .session.AnswerGroup answerGroup = 1;</code> */ public Builder setAnswerGroup( ai.grakn.rpc.proto.AnswerProto.AnswerGroup.Builder builderForValue) { if (answerGroupBuilder_ == null) { answer_ = builderForValue.build(); onChanged(); } else { answerGroupBuilder_.setMessage(builderForValue.build()); } answerCase_ = 1; return this; } /** * <code>optional .session.AnswerGroup answerGroup = 1;</code> */ public Builder mergeAnswerGroup(ai.grakn.rpc.proto.AnswerProto.AnswerGroup value) { if (answerGroupBuilder_ == null) { if (answerCase_ == 1 && answer_ != ai.grakn.rpc.proto.AnswerProto.AnswerGroup.getDefaultInstance()) { answer_ = ai.grakn.rpc.proto.AnswerProto.AnswerGroup.newBuilder((ai.grakn.rpc.proto.AnswerProto.AnswerGroup) answer_) .mergeFrom(value).buildPartial(); } else { answer_ = value; } onChanged(); } else { if (answerCase_ == 1) { answerGroupBuilder_.mergeFrom(value); } answerGroupBuilder_.setMessage(value); } answerCase_ = 1; return this; } /** * <code>optional .session.AnswerGroup answerGroup = 1;</code> */ public Builder clearAnswerGroup() { if (answerGroupBuilder_ == null) { if (answerCase_ == 1) { answerCase_ = 0; answer_ = null; onChanged(); } } else { if (answerCase_ == 1) { answerCase_ = 0; answer_ = null; } answerGroupBuilder_.clear(); } return this; } /** * <code>optional .session.AnswerGroup answerGroup = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.AnswerGroup.Builder getAnswerGroupBuilder() { return getAnswerGroupFieldBuilder().getBuilder(); } /** * <code>optional .session.AnswerGroup answerGroup = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.AnswerGroupOrBuilder getAnswerGroupOrBuilder() { if ((answerCase_ == 1) && (answerGroupBuilder_ != null)) { return answerGroupBuilder_.getMessageOrBuilder(); } else { if (answerCase_ == 1) { return (ai.grakn.rpc.proto.AnswerProto.AnswerGroup) answer_; } return ai.grakn.rpc.proto.AnswerProto.AnswerGroup.getDefaultInstance(); } } /** * <code>optional .session.AnswerGroup answerGroup = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.AnswerGroup, ai.grakn.rpc.proto.AnswerProto.AnswerGroup.Builder, ai.grakn.rpc.proto.AnswerProto.AnswerGroupOrBuilder> getAnswerGroupFieldBuilder() { if (answerGroupBuilder_ == null) { if (!(answerCase_ == 1)) { answer_ = ai.grakn.rpc.proto.AnswerProto.AnswerGroup.getDefaultInstance(); } answerGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.AnswerGroup, ai.grakn.rpc.proto.AnswerProto.AnswerGroup.Builder, ai.grakn.rpc.proto.AnswerProto.AnswerGroupOrBuilder>( (ai.grakn.rpc.proto.AnswerProto.AnswerGroup) answer_, getParentForChildren(), isClean()); answer_ = null; } answerCase_ = 1; onChanged();; return answerGroupBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptMap, ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptMapOrBuilder> conceptMapBuilder_; /** * <code>optional .session.ConceptMap conceptMap = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptMap getConceptMap() { if (conceptMapBuilder_ == null) { if (answerCase_ == 2) { return (ai.grakn.rpc.proto.AnswerProto.ConceptMap) answer_; } return ai.grakn.rpc.proto.AnswerProto.ConceptMap.getDefaultInstance(); } else { if (answerCase_ == 2) { return conceptMapBuilder_.getMessage(); } return ai.grakn.rpc.proto.AnswerProto.ConceptMap.getDefaultInstance(); } } /** * <code>optional .session.ConceptMap conceptMap = 2;</code> */ public Builder setConceptMap(ai.grakn.rpc.proto.AnswerProto.ConceptMap value) { if (conceptMapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } answer_ = value; onChanged(); } else { conceptMapBuilder_.setMessage(value); } answerCase_ = 2; return this; } /** * <code>optional .session.ConceptMap conceptMap = 2;</code> */ public Builder setConceptMap( ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder builderForValue) { if (conceptMapBuilder_ == null) { answer_ = builderForValue.build(); onChanged(); } else { conceptMapBuilder_.setMessage(builderForValue.build()); } answerCase_ = 2; return this; } /** * <code>optional .session.ConceptMap conceptMap = 2;</code> */ public Builder mergeConceptMap(ai.grakn.rpc.proto.AnswerProto.ConceptMap value) { if (conceptMapBuilder_ == null) { if (answerCase_ == 2 && answer_ != ai.grakn.rpc.proto.AnswerProto.ConceptMap.getDefaultInstance()) { answer_ = ai.grakn.rpc.proto.AnswerProto.ConceptMap.newBuilder((ai.grakn.rpc.proto.AnswerProto.ConceptMap) answer_) .mergeFrom(value).buildPartial(); } else { answer_ = value; } onChanged(); } else { if (answerCase_ == 2) { conceptMapBuilder_.mergeFrom(value); } conceptMapBuilder_.setMessage(value); } answerCase_ = 2; return this; } /** * <code>optional .session.ConceptMap conceptMap = 2;</code> */ public Builder clearConceptMap() { if (conceptMapBuilder_ == null) { if (answerCase_ == 2) { answerCase_ = 0; answer_ = null; onChanged(); } } else { if (answerCase_ == 2) { answerCase_ = 0; answer_ = null; } conceptMapBuilder_.clear(); } return this; } /** * <code>optional .session.ConceptMap conceptMap = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder getConceptMapBuilder() { return getConceptMapFieldBuilder().getBuilder(); } /** * <code>optional .session.ConceptMap conceptMap = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptMapOrBuilder getConceptMapOrBuilder() { if ((answerCase_ == 2) && (conceptMapBuilder_ != null)) { return conceptMapBuilder_.getMessageOrBuilder(); } else { if (answerCase_ == 2) { return (ai.grakn.rpc.proto.AnswerProto.ConceptMap) answer_; } return ai.grakn.rpc.proto.AnswerProto.ConceptMap.getDefaultInstance(); } } /** * <code>optional .session.ConceptMap conceptMap = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptMap, ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptMapOrBuilder> getConceptMapFieldBuilder() { if (conceptMapBuilder_ == null) { if (!(answerCase_ == 2)) { answer_ = ai.grakn.rpc.proto.AnswerProto.ConceptMap.getDefaultInstance(); } conceptMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptMap, ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptMapOrBuilder>( (ai.grakn.rpc.proto.AnswerProto.ConceptMap) answer_, getParentForChildren(), isClean()); answer_ = null; } answerCase_ = 2; onChanged();; return conceptMapBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptList, ai.grakn.rpc.proto.AnswerProto.ConceptList.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptListOrBuilder> conceptListBuilder_; /** * <code>optional .session.ConceptList conceptList = 3;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptList getConceptList() { if (conceptListBuilder_ == null) { if (answerCase_ == 3) { return (ai.grakn.rpc.proto.AnswerProto.ConceptList) answer_; } return ai.grakn.rpc.proto.AnswerProto.ConceptList.getDefaultInstance(); } else { if (answerCase_ == 3) { return conceptListBuilder_.getMessage(); } return ai.grakn.rpc.proto.AnswerProto.ConceptList.getDefaultInstance(); } } /** * <code>optional .session.ConceptList conceptList = 3;</code> */ public Builder setConceptList(ai.grakn.rpc.proto.AnswerProto.ConceptList value) { if (conceptListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } answer_ = value; onChanged(); } else { conceptListBuilder_.setMessage(value); } answerCase_ = 3; return this; } /** * <code>optional .session.ConceptList conceptList = 3;</code> */ public Builder setConceptList( ai.grakn.rpc.proto.AnswerProto.ConceptList.Builder builderForValue) { if (conceptListBuilder_ == null) { answer_ = builderForValue.build(); onChanged(); } else { conceptListBuilder_.setMessage(builderForValue.build()); } answerCase_ = 3; return this; } /** * <code>optional .session.ConceptList conceptList = 3;</code> */ public Builder mergeConceptList(ai.grakn.rpc.proto.AnswerProto.ConceptList value) { if (conceptListBuilder_ == null) { if (answerCase_ == 3 && answer_ != ai.grakn.rpc.proto.AnswerProto.ConceptList.getDefaultInstance()) { answer_ = ai.grakn.rpc.proto.AnswerProto.ConceptList.newBuilder((ai.grakn.rpc.proto.AnswerProto.ConceptList) answer_) .mergeFrom(value).buildPartial(); } else { answer_ = value; } onChanged(); } else { if (answerCase_ == 3) { conceptListBuilder_.mergeFrom(value); } conceptListBuilder_.setMessage(value); } answerCase_ = 3; return this; } /** * <code>optional .session.ConceptList conceptList = 3;</code> */ public Builder clearConceptList() { if (conceptListBuilder_ == null) { if (answerCase_ == 3) { answerCase_ = 0; answer_ = null; onChanged(); } } else { if (answerCase_ == 3) { answerCase_ = 0; answer_ = null; } conceptListBuilder_.clear(); } return this; } /** * <code>optional .session.ConceptList conceptList = 3;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptList.Builder getConceptListBuilder() { return getConceptListFieldBuilder().getBuilder(); } /** * <code>optional .session.ConceptList conceptList = 3;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptListOrBuilder getConceptListOrBuilder() { if ((answerCase_ == 3) && (conceptListBuilder_ != null)) { return conceptListBuilder_.getMessageOrBuilder(); } else { if (answerCase_ == 3) { return (ai.grakn.rpc.proto.AnswerProto.ConceptList) answer_; } return ai.grakn.rpc.proto.AnswerProto.ConceptList.getDefaultInstance(); } } /** * <code>optional .session.ConceptList conceptList = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptList, ai.grakn.rpc.proto.AnswerProto.ConceptList.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptListOrBuilder> getConceptListFieldBuilder() { if (conceptListBuilder_ == null) { if (!(answerCase_ == 3)) { answer_ = ai.grakn.rpc.proto.AnswerProto.ConceptList.getDefaultInstance(); } conceptListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptList, ai.grakn.rpc.proto.AnswerProto.ConceptList.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptListOrBuilder>( (ai.grakn.rpc.proto.AnswerProto.ConceptList) answer_, getParentForChildren(), isClean()); answer_ = null; } answerCase_ = 3; onChanged();; return conceptListBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptSet, ai.grakn.rpc.proto.AnswerProto.ConceptSet.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptSetOrBuilder> conceptSetBuilder_; /** * <code>optional .session.ConceptSet conceptSet = 4;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptSet getConceptSet() { if (conceptSetBuilder_ == null) { if (answerCase_ == 4) { return (ai.grakn.rpc.proto.AnswerProto.ConceptSet) answer_; } return ai.grakn.rpc.proto.AnswerProto.ConceptSet.getDefaultInstance(); } else { if (answerCase_ == 4) { return conceptSetBuilder_.getMessage(); } return ai.grakn.rpc.proto.AnswerProto.ConceptSet.getDefaultInstance(); } } /** * <code>optional .session.ConceptSet conceptSet = 4;</code> */ public Builder setConceptSet(ai.grakn.rpc.proto.AnswerProto.ConceptSet value) { if (conceptSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } answer_ = value; onChanged(); } else { conceptSetBuilder_.setMessage(value); } answerCase_ = 4; return this; } /** * <code>optional .session.ConceptSet conceptSet = 4;</code> */ public Builder setConceptSet( ai.grakn.rpc.proto.AnswerProto.ConceptSet.Builder builderForValue) { if (conceptSetBuilder_ == null) { answer_ = builderForValue.build(); onChanged(); } else { conceptSetBuilder_.setMessage(builderForValue.build()); } answerCase_ = 4; return this; } /** * <code>optional .session.ConceptSet conceptSet = 4;</code> */ public Builder mergeConceptSet(ai.grakn.rpc.proto.AnswerProto.ConceptSet value) { if (conceptSetBuilder_ == null) { if (answerCase_ == 4 && answer_ != ai.grakn.rpc.proto.AnswerProto.ConceptSet.getDefaultInstance()) { answer_ = ai.grakn.rpc.proto.AnswerProto.ConceptSet.newBuilder((ai.grakn.rpc.proto.AnswerProto.ConceptSet) answer_) .mergeFrom(value).buildPartial(); } else { answer_ = value; } onChanged(); } else { if (answerCase_ == 4) { conceptSetBuilder_.mergeFrom(value); } conceptSetBuilder_.setMessage(value); } answerCase_ = 4; return this; } /** * <code>optional .session.ConceptSet conceptSet = 4;</code> */ public Builder clearConceptSet() { if (conceptSetBuilder_ == null) { if (answerCase_ == 4) { answerCase_ = 0; answer_ = null; onChanged(); } } else { if (answerCase_ == 4) { answerCase_ = 0; answer_ = null; } conceptSetBuilder_.clear(); } return this; } /** * <code>optional .session.ConceptSet conceptSet = 4;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptSet.Builder getConceptSetBuilder() { return getConceptSetFieldBuilder().getBuilder(); } /** * <code>optional .session.ConceptSet conceptSet = 4;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptSetOrBuilder getConceptSetOrBuilder() { if ((answerCase_ == 4) && (conceptSetBuilder_ != null)) { return conceptSetBuilder_.getMessageOrBuilder(); } else { if (answerCase_ == 4) { return (ai.grakn.rpc.proto.AnswerProto.ConceptSet) answer_; } return ai.grakn.rpc.proto.AnswerProto.ConceptSet.getDefaultInstance(); } } /** * <code>optional .session.ConceptSet conceptSet = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptSet, ai.grakn.rpc.proto.AnswerProto.ConceptSet.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptSetOrBuilder> getConceptSetFieldBuilder() { if (conceptSetBuilder_ == null) { if (!(answerCase_ == 4)) { answer_ = ai.grakn.rpc.proto.AnswerProto.ConceptSet.getDefaultInstance(); } conceptSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptSet, ai.grakn.rpc.proto.AnswerProto.ConceptSet.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptSetOrBuilder>( (ai.grakn.rpc.proto.AnswerProto.ConceptSet) answer_, getParentForChildren(), isClean()); answer_ = null; } answerCase_ = 4; onChanged();; return conceptSetBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure, ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasureOrBuilder> conceptSetMeasureBuilder_; /** * <code>optional .session.ConceptSetMeasure conceptSetMeasure = 5;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure getConceptSetMeasure() { if (conceptSetMeasureBuilder_ == null) { if (answerCase_ == 5) { return (ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure) answer_; } return ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.getDefaultInstance(); } else { if (answerCase_ == 5) { return conceptSetMeasureBuilder_.getMessage(); } return ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.getDefaultInstance(); } } /** * <code>optional .session.ConceptSetMeasure conceptSetMeasure = 5;</code> */ public Builder setConceptSetMeasure(ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure value) { if (conceptSetMeasureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } answer_ = value; onChanged(); } else { conceptSetMeasureBuilder_.setMessage(value); } answerCase_ = 5; return this; } /** * <code>optional .session.ConceptSetMeasure conceptSetMeasure = 5;</code> */ public Builder setConceptSetMeasure( ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.Builder builderForValue) { if (conceptSetMeasureBuilder_ == null) { answer_ = builderForValue.build(); onChanged(); } else { conceptSetMeasureBuilder_.setMessage(builderForValue.build()); } answerCase_ = 5; return this; } /** * <code>optional .session.ConceptSetMeasure conceptSetMeasure = 5;</code> */ public Builder mergeConceptSetMeasure(ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure value) { if (conceptSetMeasureBuilder_ == null) { if (answerCase_ == 5 && answer_ != ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.getDefaultInstance()) { answer_ = ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.newBuilder((ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure) answer_) .mergeFrom(value).buildPartial(); } else { answer_ = value; } onChanged(); } else { if (answerCase_ == 5) { conceptSetMeasureBuilder_.mergeFrom(value); } conceptSetMeasureBuilder_.setMessage(value); } answerCase_ = 5; return this; } /** * <code>optional .session.ConceptSetMeasure conceptSetMeasure = 5;</code> */ public Builder clearConceptSetMeasure() { if (conceptSetMeasureBuilder_ == null) { if (answerCase_ == 5) { answerCase_ = 0; answer_ = null; onChanged(); } } else { if (answerCase_ == 5) { answerCase_ = 0; answer_ = null; } conceptSetMeasureBuilder_.clear(); } return this; } /** * <code>optional .session.ConceptSetMeasure conceptSetMeasure = 5;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.Builder getConceptSetMeasureBuilder() { return getConceptSetMeasureFieldBuilder().getBuilder(); } /** * <code>optional .session.ConceptSetMeasure conceptSetMeasure = 5;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasureOrBuilder getConceptSetMeasureOrBuilder() { if ((answerCase_ == 5) && (conceptSetMeasureBuilder_ != null)) { return conceptSetMeasureBuilder_.getMessageOrBuilder(); } else { if (answerCase_ == 5) { return (ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure) answer_; } return ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.getDefaultInstance(); } } /** * <code>optional .session.ConceptSetMeasure conceptSetMeasure = 5;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure, ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasureOrBuilder> getConceptSetMeasureFieldBuilder() { if (conceptSetMeasureBuilder_ == null) { if (!(answerCase_ == 5)) { answer_ = ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.getDefaultInstance(); } conceptSetMeasureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure, ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasureOrBuilder>( (ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure) answer_, getParentForChildren(), isClean()); answer_ = null; } answerCase_ = 5; onChanged();; return conceptSetMeasureBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Value, ai.grakn.rpc.proto.AnswerProto.Value.Builder, ai.grakn.rpc.proto.AnswerProto.ValueOrBuilder> valueBuilder_; /** * <code>optional .session.Value value = 6;</code> */ public ai.grakn.rpc.proto.AnswerProto.Value getValue() { if (valueBuilder_ == null) { if (answerCase_ == 6) { return (ai.grakn.rpc.proto.AnswerProto.Value) answer_; } return ai.grakn.rpc.proto.AnswerProto.Value.getDefaultInstance(); } else { if (answerCase_ == 6) { return valueBuilder_.getMessage(); } return ai.grakn.rpc.proto.AnswerProto.Value.getDefaultInstance(); } } /** * <code>optional .session.Value value = 6;</code> */ public Builder setValue(ai.grakn.rpc.proto.AnswerProto.Value value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } answer_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } answerCase_ = 6; return this; } /** * <code>optional .session.Value value = 6;</code> */ public Builder setValue( ai.grakn.rpc.proto.AnswerProto.Value.Builder builderForValue) { if (valueBuilder_ == null) { answer_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } answerCase_ = 6; return this; } /** * <code>optional .session.Value value = 6;</code> */ public Builder mergeValue(ai.grakn.rpc.proto.AnswerProto.Value value) { if (valueBuilder_ == null) { if (answerCase_ == 6 && answer_ != ai.grakn.rpc.proto.AnswerProto.Value.getDefaultInstance()) { answer_ = ai.grakn.rpc.proto.AnswerProto.Value.newBuilder((ai.grakn.rpc.proto.AnswerProto.Value) answer_) .mergeFrom(value).buildPartial(); } else { answer_ = value; } onChanged(); } else { if (answerCase_ == 6) { valueBuilder_.mergeFrom(value); } valueBuilder_.setMessage(value); } answerCase_ = 6; return this; } /** * <code>optional .session.Value value = 6;</code> */ public Builder clearValue() { if (valueBuilder_ == null) { if (answerCase_ == 6) { answerCase_ = 0; answer_ = null; onChanged(); } } else { if (answerCase_ == 6) { answerCase_ = 0; answer_ = null; } valueBuilder_.clear(); } return this; } /** * <code>optional .session.Value value = 6;</code> */ public ai.grakn.rpc.proto.AnswerProto.Value.Builder getValueBuilder() { return getValueFieldBuilder().getBuilder(); } /** * <code>optional .session.Value value = 6;</code> */ public ai.grakn.rpc.proto.AnswerProto.ValueOrBuilder getValueOrBuilder() { if ((answerCase_ == 6) && (valueBuilder_ != null)) { return valueBuilder_.getMessageOrBuilder(); } else { if (answerCase_ == 6) { return (ai.grakn.rpc.proto.AnswerProto.Value) answer_; } return ai.grakn.rpc.proto.AnswerProto.Value.getDefaultInstance(); } } /** * <code>optional .session.Value value = 6;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Value, ai.grakn.rpc.proto.AnswerProto.Value.Builder, ai.grakn.rpc.proto.AnswerProto.ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { if (!(answerCase_ == 6)) { answer_ = ai.grakn.rpc.proto.AnswerProto.Value.getDefaultInstance(); } valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Value, ai.grakn.rpc.proto.AnswerProto.Value.Builder, ai.grakn.rpc.proto.AnswerProto.ValueOrBuilder>( (ai.grakn.rpc.proto.AnswerProto.Value) answer_, getParentForChildren(), isClean()); answer_ = null; } answerCase_ = 6; onChanged();; 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.Answer) } // @@protoc_insertion_point(class_scope:session.Answer) private static final ai.grakn.rpc.proto.AnswerProto.Answer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.AnswerProto.Answer(); } public static ai.grakn.rpc.proto.AnswerProto.Answer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Answer> PARSER = new com.google.protobuf.AbstractParser<Answer>() { public Answer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Answer(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Answer> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Answer> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.AnswerProto.Answer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExplanationOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Explanation) com.google.protobuf.MessageOrBuilder { /** * <code>optional string pattern = 1;</code> */ java.lang.String getPattern(); /** * <code>optional string pattern = 1;</code> */ com.google.protobuf.ByteString getPatternBytes(); /** * <code>repeated .session.ConceptMap answers = 2;</code> */ java.util.List<ai.grakn.rpc.proto.AnswerProto.ConceptMap> getAnswersList(); /** * <code>repeated .session.ConceptMap answers = 2;</code> */ ai.grakn.rpc.proto.AnswerProto.ConceptMap getAnswers(int index); /** * <code>repeated .session.ConceptMap answers = 2;</code> */ int getAnswersCount(); /** * <code>repeated .session.ConceptMap answers = 2;</code> */ java.util.List<? extends ai.grakn.rpc.proto.AnswerProto.ConceptMapOrBuilder> getAnswersOrBuilderList(); /** * <code>repeated .session.ConceptMap answers = 2;</code> */ ai.grakn.rpc.proto.AnswerProto.ConceptMapOrBuilder getAnswersOrBuilder( int index); } /** * Protobuf type {@code session.Explanation} */ public static final class Explanation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Explanation) ExplanationOrBuilder { // Use Explanation.newBuilder() to construct. private Explanation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Explanation() { pattern_ = ""; answers_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Explanation( 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(); pattern_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { answers_ = new java.util.ArrayList<ai.grakn.rpc.proto.AnswerProto.ConceptMap>(); mutable_bitField0_ |= 0x00000002; } answers_.add( input.readMessage(ai.grakn.rpc.proto.AnswerProto.ConceptMap.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { answers_ = java.util.Collections.unmodifiableList(answers_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Explanation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Explanation_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.Explanation.class, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder.class); } private int bitField0_; public static final int PATTERN_FIELD_NUMBER = 1; private volatile java.lang.Object pattern_; /** * <code>optional string pattern = 1;</code> */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; 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(); pattern_ = s; return s; } } /** * <code>optional string pattern = 1;</code> */ public com.google.protobuf.ByteString getPatternBytes() { java.lang.Object ref = pattern_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pattern_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ANSWERS_FIELD_NUMBER = 2; private java.util.List<ai.grakn.rpc.proto.AnswerProto.ConceptMap> answers_; /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public java.util.List<ai.grakn.rpc.proto.AnswerProto.ConceptMap> getAnswersList() { return answers_; } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public java.util.List<? extends ai.grakn.rpc.proto.AnswerProto.ConceptMapOrBuilder> getAnswersOrBuilderList() { return answers_; } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public int getAnswersCount() { return answers_.size(); } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptMap getAnswers(int index) { return answers_.get(index); } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptMapOrBuilder getAnswersOrBuilder( int index) { return answers_.get(index); } 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 (!getPatternBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pattern_); } for (int i = 0; i < answers_.size(); i++) { output.writeMessage(2, answers_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getPatternBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pattern_); } for (int i = 0; i < answers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, answers_.get(i)); } 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.AnswerProto.Explanation)) { return super.equals(obj); } ai.grakn.rpc.proto.AnswerProto.Explanation other = (ai.grakn.rpc.proto.AnswerProto.Explanation) obj; boolean result = true; result = result && getPattern() .equals(other.getPattern()); result = result && getAnswersList() .equals(other.getAnswersList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PATTERN_FIELD_NUMBER; hash = (53 * hash) + getPattern().hashCode(); if (getAnswersCount() > 0) { hash = (37 * hash) + ANSWERS_FIELD_NUMBER; hash = (53 * hash) + getAnswersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.AnswerProto.Explanation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.Explanation 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.AnswerProto.Explanation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.Explanation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.AnswerProto.Explanation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.Explanation 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.AnswerProto.Explanation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.Explanation 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.AnswerProto.Explanation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.Explanation 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.AnswerProto.Explanation 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.Explanation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Explanation) ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Explanation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Explanation_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.Explanation.class, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder.class); } // Construct using ai.grakn.rpc.proto.AnswerProto.Explanation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAnswersFieldBuilder(); } } public Builder clear() { super.clear(); pattern_ = ""; if (answersBuilder_ == null) { answers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { answersBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Explanation_descriptor; } public ai.grakn.rpc.proto.AnswerProto.Explanation getDefaultInstanceForType() { return ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance(); } public ai.grakn.rpc.proto.AnswerProto.Explanation build() { ai.grakn.rpc.proto.AnswerProto.Explanation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.AnswerProto.Explanation buildPartial() { ai.grakn.rpc.proto.AnswerProto.Explanation result = new ai.grakn.rpc.proto.AnswerProto.Explanation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.pattern_ = pattern_; if (answersBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { answers_ = java.util.Collections.unmodifiableList(answers_); bitField0_ = (bitField0_ & ~0x00000002); } result.answers_ = answers_; } else { result.answers_ = answersBuilder_.build(); } result.bitField0_ = to_bitField0_; 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.AnswerProto.Explanation) { return mergeFrom((ai.grakn.rpc.proto.AnswerProto.Explanation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.AnswerProto.Explanation other) { if (other == ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance()) return this; if (!other.getPattern().isEmpty()) { pattern_ = other.pattern_; onChanged(); } if (answersBuilder_ == null) { if (!other.answers_.isEmpty()) { if (answers_.isEmpty()) { answers_ = other.answers_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAnswersIsMutable(); answers_.addAll(other.answers_); } onChanged(); } } else { if (!other.answers_.isEmpty()) { if (answersBuilder_.isEmpty()) { answersBuilder_.dispose(); answersBuilder_ = null; answers_ = other.answers_; bitField0_ = (bitField0_ & ~0x00000002); answersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAnswersFieldBuilder() : null; } else { answersBuilder_.addAllMessages(other.answers_); } } } 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.AnswerProto.Explanation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.AnswerProto.Explanation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object pattern_ = ""; /** * <code>optional string pattern = 1;</code> */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pattern_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string pattern = 1;</code> */ public com.google.protobuf.ByteString getPatternBytes() { java.lang.Object ref = pattern_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pattern_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string pattern = 1;</code> */ public Builder setPattern( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pattern_ = value; onChanged(); return this; } /** * <code>optional string pattern = 1;</code> */ public Builder clearPattern() { pattern_ = getDefaultInstance().getPattern(); onChanged(); return this; } /** * <code>optional string pattern = 1;</code> */ public Builder setPatternBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pattern_ = value; onChanged(); return this; } private java.util.List<ai.grakn.rpc.proto.AnswerProto.ConceptMap> answers_ = java.util.Collections.emptyList(); private void ensureAnswersIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { answers_ = new java.util.ArrayList<ai.grakn.rpc.proto.AnswerProto.ConceptMap>(answers_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptMap, ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptMapOrBuilder> answersBuilder_; /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public java.util.List<ai.grakn.rpc.proto.AnswerProto.ConceptMap> getAnswersList() { if (answersBuilder_ == null) { return java.util.Collections.unmodifiableList(answers_); } else { return answersBuilder_.getMessageList(); } } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public int getAnswersCount() { if (answersBuilder_ == null) { return answers_.size(); } else { return answersBuilder_.getCount(); } } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptMap getAnswers(int index) { if (answersBuilder_ == null) { return answers_.get(index); } else { return answersBuilder_.getMessage(index); } } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public Builder setAnswers( int index, ai.grakn.rpc.proto.AnswerProto.ConceptMap value) { if (answersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnswersIsMutable(); answers_.set(index, value); onChanged(); } else { answersBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public Builder setAnswers( int index, ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder builderForValue) { if (answersBuilder_ == null) { ensureAnswersIsMutable(); answers_.set(index, builderForValue.build()); onChanged(); } else { answersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public Builder addAnswers(ai.grakn.rpc.proto.AnswerProto.ConceptMap value) { if (answersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnswersIsMutable(); answers_.add(value); onChanged(); } else { answersBuilder_.addMessage(value); } return this; } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public Builder addAnswers( int index, ai.grakn.rpc.proto.AnswerProto.ConceptMap value) { if (answersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnswersIsMutable(); answers_.add(index, value); onChanged(); } else { answersBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public Builder addAnswers( ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder builderForValue) { if (answersBuilder_ == null) { ensureAnswersIsMutable(); answers_.add(builderForValue.build()); onChanged(); } else { answersBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public Builder addAnswers( int index, ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder builderForValue) { if (answersBuilder_ == null) { ensureAnswersIsMutable(); answers_.add(index, builderForValue.build()); onChanged(); } else { answersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public Builder addAllAnswers( java.lang.Iterable<? extends ai.grakn.rpc.proto.AnswerProto.ConceptMap> values) { if (answersBuilder_ == null) { ensureAnswersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, answers_); onChanged(); } else { answersBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public Builder clearAnswers() { if (answersBuilder_ == null) { answers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { answersBuilder_.clear(); } return this; } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public Builder removeAnswers(int index) { if (answersBuilder_ == null) { ensureAnswersIsMutable(); answers_.remove(index); onChanged(); } else { answersBuilder_.remove(index); } return this; } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder getAnswersBuilder( int index) { return getAnswersFieldBuilder().getBuilder(index); } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptMapOrBuilder getAnswersOrBuilder( int index) { if (answersBuilder_ == null) { return answers_.get(index); } else { return answersBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public java.util.List<? extends ai.grakn.rpc.proto.AnswerProto.ConceptMapOrBuilder> getAnswersOrBuilderList() { if (answersBuilder_ != null) { return answersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(answers_); } } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder addAnswersBuilder() { return getAnswersFieldBuilder().addBuilder( ai.grakn.rpc.proto.AnswerProto.ConceptMap.getDefaultInstance()); } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder addAnswersBuilder( int index) { return getAnswersFieldBuilder().addBuilder( index, ai.grakn.rpc.proto.AnswerProto.ConceptMap.getDefaultInstance()); } /** * <code>repeated .session.ConceptMap answers = 2;</code> */ public java.util.List<ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder> getAnswersBuilderList() { return getAnswersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptMap, ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptMapOrBuilder> getAnswersFieldBuilder() { if (answersBuilder_ == null) { answersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptMap, ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptMapOrBuilder>( answers_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); answers_ = null; } return answersBuilder_; } 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.Explanation) } // @@protoc_insertion_point(class_scope:session.Explanation) private static final ai.grakn.rpc.proto.AnswerProto.Explanation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.AnswerProto.Explanation(); } public static ai.grakn.rpc.proto.AnswerProto.Explanation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Explanation> PARSER = new com.google.protobuf.AbstractParser<Explanation>() { public Explanation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Explanation(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Explanation> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Explanation> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.AnswerProto.Explanation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AnswerGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AnswerGroup) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept owner = 1;</code> */ boolean hasOwner(); /** * <code>optional .session.Concept owner = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getOwner(); /** * <code>optional .session.Concept owner = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getOwnerOrBuilder(); /** * <code>repeated .session.Answer answers = 2;</code> */ java.util.List<ai.grakn.rpc.proto.AnswerProto.Answer> getAnswersList(); /** * <code>repeated .session.Answer answers = 2;</code> */ ai.grakn.rpc.proto.AnswerProto.Answer getAnswers(int index); /** * <code>repeated .session.Answer answers = 2;</code> */ int getAnswersCount(); /** * <code>repeated .session.Answer answers = 2;</code> */ java.util.List<? extends ai.grakn.rpc.proto.AnswerProto.AnswerOrBuilder> getAnswersOrBuilderList(); /** * <code>repeated .session.Answer answers = 2;</code> */ ai.grakn.rpc.proto.AnswerProto.AnswerOrBuilder getAnswersOrBuilder( int index); /** * <code>optional .session.Explanation explanation = 3;</code> */ boolean hasExplanation(); /** * <code>optional .session.Explanation explanation = 3;</code> */ ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation(); /** * <code>optional .session.Explanation explanation = 3;</code> */ ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder(); } /** * Protobuf type {@code session.AnswerGroup} */ public static final class AnswerGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AnswerGroup) AnswerGroupOrBuilder { // Use AnswerGroup.newBuilder() to construct. private AnswerGroup(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private AnswerGroup() { answers_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private AnswerGroup( 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 (owner_ != null) { subBuilder = owner_.toBuilder(); } owner_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(owner_); owner_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { answers_ = new java.util.ArrayList<ai.grakn.rpc.proto.AnswerProto.Answer>(); mutable_bitField0_ |= 0x00000002; } answers_.add( input.readMessage(ai.grakn.rpc.proto.AnswerProto.Answer.parser(), extensionRegistry)); break; } case 26: { ai.grakn.rpc.proto.AnswerProto.Explanation.Builder subBuilder = null; if (explanation_ != null) { subBuilder = explanation_.toBuilder(); } explanation_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.Explanation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(explanation_); explanation_ = 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 { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { answers_ = java.util.Collections.unmodifiableList(answers_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_AnswerGroup_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_AnswerGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.AnswerGroup.class, ai.grakn.rpc.proto.AnswerProto.AnswerGroup.Builder.class); } private int bitField0_; public static final int OWNER_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept owner_; /** * <code>optional .session.Concept owner = 1;</code> */ public boolean hasOwner() { return owner_ != null; } /** * <code>optional .session.Concept owner = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getOwner() { return owner_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : owner_; } /** * <code>optional .session.Concept owner = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getOwnerOrBuilder() { return getOwner(); } public static final int ANSWERS_FIELD_NUMBER = 2; private java.util.List<ai.grakn.rpc.proto.AnswerProto.Answer> answers_; /** * <code>repeated .session.Answer answers = 2;</code> */ public java.util.List<ai.grakn.rpc.proto.AnswerProto.Answer> getAnswersList() { return answers_; } /** * <code>repeated .session.Answer answers = 2;</code> */ public java.util.List<? extends ai.grakn.rpc.proto.AnswerProto.AnswerOrBuilder> getAnswersOrBuilderList() { return answers_; } /** * <code>repeated .session.Answer answers = 2;</code> */ public int getAnswersCount() { return answers_.size(); } /** * <code>repeated .session.Answer answers = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Answer getAnswers(int index) { return answers_.get(index); } /** * <code>repeated .session.Answer answers = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.AnswerOrBuilder getAnswersOrBuilder( int index) { return answers_.get(index); } public static final int EXPLANATION_FIELD_NUMBER = 3; private ai.grakn.rpc.proto.AnswerProto.Explanation explanation_; /** * <code>optional .session.Explanation explanation = 3;</code> */ public boolean hasExplanation() { return explanation_ != null; } /** * <code>optional .session.Explanation explanation = 3;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation() { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } /** * <code>optional .session.Explanation explanation = 3;</code> */ public ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder() { return getExplanation(); } 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 (owner_ != null) { output.writeMessage(1, getOwner()); } for (int i = 0; i < answers_.size(); i++) { output.writeMessage(2, answers_.get(i)); } if (explanation_ != null) { output.writeMessage(3, getExplanation()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (owner_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOwner()); } for (int i = 0; i < answers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, answers_.get(i)); } if (explanation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getExplanation()); } 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.AnswerProto.AnswerGroup)) { return super.equals(obj); } ai.grakn.rpc.proto.AnswerProto.AnswerGroup other = (ai.grakn.rpc.proto.AnswerProto.AnswerGroup) obj; boolean result = true; result = result && (hasOwner() == other.hasOwner()); if (hasOwner()) { result = result && getOwner() .equals(other.getOwner()); } result = result && getAnswersList() .equals(other.getAnswersList()); result = result && (hasExplanation() == other.hasExplanation()); if (hasExplanation()) { result = result && getExplanation() .equals(other.getExplanation()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasOwner()) { hash = (37 * hash) + OWNER_FIELD_NUMBER; hash = (53 * hash) + getOwner().hashCode(); } if (getAnswersCount() > 0) { hash = (37 * hash) + ANSWERS_FIELD_NUMBER; hash = (53 * hash) + getAnswersList().hashCode(); } if (hasExplanation()) { hash = (37 * hash) + EXPLANATION_FIELD_NUMBER; hash = (53 * hash) + getExplanation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.AnswerProto.AnswerGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.AnswerGroup 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.AnswerProto.AnswerGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.AnswerGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.AnswerProto.AnswerGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.AnswerGroup 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.AnswerProto.AnswerGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.AnswerGroup 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.AnswerProto.AnswerGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.AnswerGroup 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.AnswerProto.AnswerGroup 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.AnswerGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AnswerGroup) ai.grakn.rpc.proto.AnswerProto.AnswerGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_AnswerGroup_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_AnswerGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.AnswerGroup.class, ai.grakn.rpc.proto.AnswerProto.AnswerGroup.Builder.class); } // Construct using ai.grakn.rpc.proto.AnswerProto.AnswerGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAnswersFieldBuilder(); } } public Builder clear() { super.clear(); if (ownerBuilder_ == null) { owner_ = null; } else { owner_ = null; ownerBuilder_ = null; } if (answersBuilder_ == null) { answers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { answersBuilder_.clear(); } if (explanationBuilder_ == null) { explanation_ = null; } else { explanation_ = null; explanationBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_AnswerGroup_descriptor; } public ai.grakn.rpc.proto.AnswerProto.AnswerGroup getDefaultInstanceForType() { return ai.grakn.rpc.proto.AnswerProto.AnswerGroup.getDefaultInstance(); } public ai.grakn.rpc.proto.AnswerProto.AnswerGroup build() { ai.grakn.rpc.proto.AnswerProto.AnswerGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.AnswerProto.AnswerGroup buildPartial() { ai.grakn.rpc.proto.AnswerProto.AnswerGroup result = new ai.grakn.rpc.proto.AnswerProto.AnswerGroup(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (ownerBuilder_ == null) { result.owner_ = owner_; } else { result.owner_ = ownerBuilder_.build(); } if (answersBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { answers_ = java.util.Collections.unmodifiableList(answers_); bitField0_ = (bitField0_ & ~0x00000002); } result.answers_ = answers_; } else { result.answers_ = answersBuilder_.build(); } if (explanationBuilder_ == null) { result.explanation_ = explanation_; } else { result.explanation_ = explanationBuilder_.build(); } result.bitField0_ = to_bitField0_; 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.AnswerProto.AnswerGroup) { return mergeFrom((ai.grakn.rpc.proto.AnswerProto.AnswerGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.AnswerProto.AnswerGroup other) { if (other == ai.grakn.rpc.proto.AnswerProto.AnswerGroup.getDefaultInstance()) return this; if (other.hasOwner()) { mergeOwner(other.getOwner()); } if (answersBuilder_ == null) { if (!other.answers_.isEmpty()) { if (answers_.isEmpty()) { answers_ = other.answers_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAnswersIsMutable(); answers_.addAll(other.answers_); } onChanged(); } } else { if (!other.answers_.isEmpty()) { if (answersBuilder_.isEmpty()) { answersBuilder_.dispose(); answersBuilder_ = null; answers_ = other.answers_; bitField0_ = (bitField0_ & ~0x00000002); answersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAnswersFieldBuilder() : null; } else { answersBuilder_.addAllMessages(other.answers_); } } } if (other.hasExplanation()) { mergeExplanation(other.getExplanation()); } 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.AnswerProto.AnswerGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.AnswerProto.AnswerGroup) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private ai.grakn.rpc.proto.ConceptProto.Concept owner_ = 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> ownerBuilder_; /** * <code>optional .session.Concept owner = 1;</code> */ public boolean hasOwner() { return ownerBuilder_ != null || owner_ != null; } /** * <code>optional .session.Concept owner = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getOwner() { if (ownerBuilder_ == null) { return owner_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : owner_; } else { return ownerBuilder_.getMessage(); } } /** * <code>optional .session.Concept owner = 1;</code> */ public Builder setOwner(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (ownerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } owner_ = value; onChanged(); } else { ownerBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Concept owner = 1;</code> */ public Builder setOwner( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (ownerBuilder_ == null) { owner_ = builderForValue.build(); onChanged(); } else { ownerBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Concept owner = 1;</code> */ public Builder mergeOwner(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (ownerBuilder_ == null) { if (owner_ != null) { owner_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(owner_).mergeFrom(value).buildPartial(); } else { owner_ = value; } onChanged(); } else { ownerBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Concept owner = 1;</code> */ public Builder clearOwner() { if (ownerBuilder_ == null) { owner_ = null; onChanged(); } else { owner_ = null; ownerBuilder_ = null; } return this; } /** * <code>optional .session.Concept owner = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getOwnerBuilder() { onChanged(); return getOwnerFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept owner = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getOwnerOrBuilder() { if (ownerBuilder_ != null) { return ownerBuilder_.getMessageOrBuilder(); } else { return owner_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : owner_; } } /** * <code>optional .session.Concept owner = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getOwnerFieldBuilder() { if (ownerBuilder_ == null) { ownerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( getOwner(), getParentForChildren(), isClean()); owner_ = null; } return ownerBuilder_; } private java.util.List<ai.grakn.rpc.proto.AnswerProto.Answer> answers_ = java.util.Collections.emptyList(); private void ensureAnswersIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { answers_ = new java.util.ArrayList<ai.grakn.rpc.proto.AnswerProto.Answer>(answers_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Answer, ai.grakn.rpc.proto.AnswerProto.Answer.Builder, ai.grakn.rpc.proto.AnswerProto.AnswerOrBuilder> answersBuilder_; /** * <code>repeated .session.Answer answers = 2;</code> */ public java.util.List<ai.grakn.rpc.proto.AnswerProto.Answer> getAnswersList() { if (answersBuilder_ == null) { return java.util.Collections.unmodifiableList(answers_); } else { return answersBuilder_.getMessageList(); } } /** * <code>repeated .session.Answer answers = 2;</code> */ public int getAnswersCount() { if (answersBuilder_ == null) { return answers_.size(); } else { return answersBuilder_.getCount(); } } /** * <code>repeated .session.Answer answers = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Answer getAnswers(int index) { if (answersBuilder_ == null) { return answers_.get(index); } else { return answersBuilder_.getMessage(index); } } /** * <code>repeated .session.Answer answers = 2;</code> */ public Builder setAnswers( int index, ai.grakn.rpc.proto.AnswerProto.Answer value) { if (answersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnswersIsMutable(); answers_.set(index, value); onChanged(); } else { answersBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .session.Answer answers = 2;</code> */ public Builder setAnswers( int index, ai.grakn.rpc.proto.AnswerProto.Answer.Builder builderForValue) { if (answersBuilder_ == null) { ensureAnswersIsMutable(); answers_.set(index, builderForValue.build()); onChanged(); } else { answersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .session.Answer answers = 2;</code> */ public Builder addAnswers(ai.grakn.rpc.proto.AnswerProto.Answer value) { if (answersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnswersIsMutable(); answers_.add(value); onChanged(); } else { answersBuilder_.addMessage(value); } return this; } /** * <code>repeated .session.Answer answers = 2;</code> */ public Builder addAnswers( int index, ai.grakn.rpc.proto.AnswerProto.Answer value) { if (answersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnswersIsMutable(); answers_.add(index, value); onChanged(); } else { answersBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .session.Answer answers = 2;</code> */ public Builder addAnswers( ai.grakn.rpc.proto.AnswerProto.Answer.Builder builderForValue) { if (answersBuilder_ == null) { ensureAnswersIsMutable(); answers_.add(builderForValue.build()); onChanged(); } else { answersBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .session.Answer answers = 2;</code> */ public Builder addAnswers( int index, ai.grakn.rpc.proto.AnswerProto.Answer.Builder builderForValue) { if (answersBuilder_ == null) { ensureAnswersIsMutable(); answers_.add(index, builderForValue.build()); onChanged(); } else { answersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .session.Answer answers = 2;</code> */ public Builder addAllAnswers( java.lang.Iterable<? extends ai.grakn.rpc.proto.AnswerProto.Answer> values) { if (answersBuilder_ == null) { ensureAnswersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, answers_); onChanged(); } else { answersBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .session.Answer answers = 2;</code> */ public Builder clearAnswers() { if (answersBuilder_ == null) { answers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { answersBuilder_.clear(); } return this; } /** * <code>repeated .session.Answer answers = 2;</code> */ public Builder removeAnswers(int index) { if (answersBuilder_ == null) { ensureAnswersIsMutable(); answers_.remove(index); onChanged(); } else { answersBuilder_.remove(index); } return this; } /** * <code>repeated .session.Answer answers = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Answer.Builder getAnswersBuilder( int index) { return getAnswersFieldBuilder().getBuilder(index); } /** * <code>repeated .session.Answer answers = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.AnswerOrBuilder getAnswersOrBuilder( int index) { if (answersBuilder_ == null) { return answers_.get(index); } else { return answersBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .session.Answer answers = 2;</code> */ public java.util.List<? extends ai.grakn.rpc.proto.AnswerProto.AnswerOrBuilder> getAnswersOrBuilderList() { if (answersBuilder_ != null) { return answersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(answers_); } } /** * <code>repeated .session.Answer answers = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Answer.Builder addAnswersBuilder() { return getAnswersFieldBuilder().addBuilder( ai.grakn.rpc.proto.AnswerProto.Answer.getDefaultInstance()); } /** * <code>repeated .session.Answer answers = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Answer.Builder addAnswersBuilder( int index) { return getAnswersFieldBuilder().addBuilder( index, ai.grakn.rpc.proto.AnswerProto.Answer.getDefaultInstance()); } /** * <code>repeated .session.Answer answers = 2;</code> */ public java.util.List<ai.grakn.rpc.proto.AnswerProto.Answer.Builder> getAnswersBuilderList() { return getAnswersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Answer, ai.grakn.rpc.proto.AnswerProto.Answer.Builder, ai.grakn.rpc.proto.AnswerProto.AnswerOrBuilder> getAnswersFieldBuilder() { if (answersBuilder_ == null) { answersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Answer, ai.grakn.rpc.proto.AnswerProto.Answer.Builder, ai.grakn.rpc.proto.AnswerProto.AnswerOrBuilder>( answers_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); answers_ = null; } return answersBuilder_; } private ai.grakn.rpc.proto.AnswerProto.Explanation explanation_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder> explanationBuilder_; /** * <code>optional .session.Explanation explanation = 3;</code> */ public boolean hasExplanation() { return explanationBuilder_ != null || explanation_ != null; } /** * <code>optional .session.Explanation explanation = 3;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation() { if (explanationBuilder_ == null) { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } else { return explanationBuilder_.getMessage(); } } /** * <code>optional .session.Explanation explanation = 3;</code> */ public Builder setExplanation(ai.grakn.rpc.proto.AnswerProto.Explanation value) { if (explanationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } explanation_ = value; onChanged(); } else { explanationBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Explanation explanation = 3;</code> */ public Builder setExplanation( ai.grakn.rpc.proto.AnswerProto.Explanation.Builder builderForValue) { if (explanationBuilder_ == null) { explanation_ = builderForValue.build(); onChanged(); } else { explanationBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Explanation explanation = 3;</code> */ public Builder mergeExplanation(ai.grakn.rpc.proto.AnswerProto.Explanation value) { if (explanationBuilder_ == null) { if (explanation_ != null) { explanation_ = ai.grakn.rpc.proto.AnswerProto.Explanation.newBuilder(explanation_).mergeFrom(value).buildPartial(); } else { explanation_ = value; } onChanged(); } else { explanationBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Explanation explanation = 3;</code> */ public Builder clearExplanation() { if (explanationBuilder_ == null) { explanation_ = null; onChanged(); } else { explanation_ = null; explanationBuilder_ = null; } return this; } /** * <code>optional .session.Explanation explanation = 3;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation.Builder getExplanationBuilder() { onChanged(); return getExplanationFieldBuilder().getBuilder(); } /** * <code>optional .session.Explanation explanation = 3;</code> */ public ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder() { if (explanationBuilder_ != null) { return explanationBuilder_.getMessageOrBuilder(); } else { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } } /** * <code>optional .session.Explanation explanation = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder> getExplanationFieldBuilder() { if (explanationBuilder_ == null) { explanationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder>( getExplanation(), getParentForChildren(), isClean()); explanation_ = null; } return explanationBuilder_; } 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.AnswerGroup) } // @@protoc_insertion_point(class_scope:session.AnswerGroup) private static final ai.grakn.rpc.proto.AnswerProto.AnswerGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.AnswerProto.AnswerGroup(); } public static ai.grakn.rpc.proto.AnswerProto.AnswerGroup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<AnswerGroup> PARSER = new com.google.protobuf.AbstractParser<AnswerGroup>() { public AnswerGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AnswerGroup(input, extensionRegistry); } }; public static com.google.protobuf.Parser<AnswerGroup> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<AnswerGroup> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.AnswerProto.AnswerGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConceptMapOrBuilder extends // @@protoc_insertion_point(interface_extends:session.ConceptMap) com.google.protobuf.MessageOrBuilder { /** * <code>map&lt;string, .session.Concept&gt; map = 1;</code> */ int getMapCount(); /** * <code>map&lt;string, .session.Concept&gt; map = 1;</code> */ boolean containsMap( java.lang.String key); /** * Use {@link #getMapMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> getMap(); /** * <code>map&lt;string, .session.Concept&gt; map = 1;</code> */ java.util.Map<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> getMapMap(); /** * <code>map&lt;string, .session.Concept&gt; map = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getMapOrDefault( java.lang.String key, ai.grakn.rpc.proto.ConceptProto.Concept defaultValue); /** * <code>map&lt;string, .session.Concept&gt; map = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getMapOrThrow( java.lang.String key); /** * <code>optional .session.Explanation explanation = 2;</code> */ boolean hasExplanation(); /** * <code>optional .session.Explanation explanation = 2;</code> */ ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation(); /** * <code>optional .session.Explanation explanation = 2;</code> */ ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder(); } /** * Protobuf type {@code session.ConceptMap} */ public static final class ConceptMap extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.ConceptMap) ConceptMapOrBuilder { // Use ConceptMap.newBuilder() to construct. private ConceptMap(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ConceptMap() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ConceptMap( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { map_ = com.google.protobuf.MapField.newMapField( MapDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> map = input.readMessage( MapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); map_.getMutableMap().put(map.getKey(), map.getValue()); break; } case 18: { ai.grakn.rpc.proto.AnswerProto.Explanation.Builder subBuilder = null; if (explanation_ != null) { subBuilder = explanation_.toBuilder(); } explanation_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.Explanation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(explanation_); explanation_ = 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.AnswerProto.internal_static_session_ConceptMap_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptMap_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.ConceptMap.class, ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder.class); } private int bitField0_; public static final int MAP_FIELD_NUMBER = 1; private static final class MapDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept>newDefaultInstance( ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptMap_MapEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> map_; private com.google.protobuf.MapField<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> internalGetMap() { if (map_ == null) { return com.google.protobuf.MapField.emptyMapField( MapDefaultEntryHolder.defaultEntry); } return map_; } public int getMapCount() { return internalGetMap().getMap().size(); } /** * <code>map&lt;string, .session.Concept&gt; map = 1;</code> */ public boolean containsMap( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMap().getMap().containsKey(key); } /** * Use {@link #getMapMap()} instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> getMap() { return getMapMap(); } /** * <code>map&lt;string, .session.Concept&gt; map = 1;</code> */ public java.util.Map<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> getMapMap() { return internalGetMap().getMap(); } /** * <code>map&lt;string, .session.Concept&gt; map = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getMapOrDefault( java.lang.String key, ai.grakn.rpc.proto.ConceptProto.Concept defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> map = internalGetMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, .session.Concept&gt; map = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getMapOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> map = internalGetMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int EXPLANATION_FIELD_NUMBER = 2; private ai.grakn.rpc.proto.AnswerProto.Explanation explanation_; /** * <code>optional .session.Explanation explanation = 2;</code> */ public boolean hasExplanation() { return explanation_ != null; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation() { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder() { return getExplanation(); } 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 { for (java.util.Map.Entry<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> entry : internalGetMap().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> map = MapDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); output.writeMessage(1, map); } if (explanation_ != null) { output.writeMessage(2, getExplanation()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> entry : internalGetMap().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> map = MapDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, map); } if (explanation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExplanation()); } 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.AnswerProto.ConceptMap)) { return super.equals(obj); } ai.grakn.rpc.proto.AnswerProto.ConceptMap other = (ai.grakn.rpc.proto.AnswerProto.ConceptMap) obj; boolean result = true; result = result && internalGetMap().equals( other.internalGetMap()); result = result && (hasExplanation() == other.hasExplanation()); if (hasExplanation()) { result = result && getExplanation() .equals(other.getExplanation()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (!internalGetMap().getMap().isEmpty()) { hash = (37 * hash) + MAP_FIELD_NUMBER; hash = (53 * hash) + internalGetMap().hashCode(); } if (hasExplanation()) { hash = (37 * hash) + EXPLANATION_FIELD_NUMBER; hash = (53 * hash) + getExplanation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.AnswerProto.ConceptMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.ConceptMap 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.AnswerProto.ConceptMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.ConceptMap parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.AnswerProto.ConceptMap parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.ConceptMap 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.AnswerProto.ConceptMap parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.ConceptMap 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.AnswerProto.ConceptMap parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.ConceptMap 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.AnswerProto.ConceptMap 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.ConceptMap} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.ConceptMap) ai.grakn.rpc.proto.AnswerProto.ConceptMapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptMap_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptMap_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.ConceptMap.class, ai.grakn.rpc.proto.AnswerProto.ConceptMap.Builder.class); } // Construct using ai.grakn.rpc.proto.AnswerProto.ConceptMap.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(); internalGetMutableMap().clear(); if (explanationBuilder_ == null) { explanation_ = null; } else { explanation_ = null; explanationBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptMap_descriptor; } public ai.grakn.rpc.proto.AnswerProto.ConceptMap getDefaultInstanceForType() { return ai.grakn.rpc.proto.AnswerProto.ConceptMap.getDefaultInstance(); } public ai.grakn.rpc.proto.AnswerProto.ConceptMap build() { ai.grakn.rpc.proto.AnswerProto.ConceptMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.AnswerProto.ConceptMap buildPartial() { ai.grakn.rpc.proto.AnswerProto.ConceptMap result = new ai.grakn.rpc.proto.AnswerProto.ConceptMap(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.map_ = internalGetMap(); result.map_.makeImmutable(); if (explanationBuilder_ == null) { result.explanation_ = explanation_; } else { result.explanation_ = explanationBuilder_.build(); } result.bitField0_ = to_bitField0_; 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.AnswerProto.ConceptMap) { return mergeFrom((ai.grakn.rpc.proto.AnswerProto.ConceptMap)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.AnswerProto.ConceptMap other) { if (other == ai.grakn.rpc.proto.AnswerProto.ConceptMap.getDefaultInstance()) return this; internalGetMutableMap().mergeFrom( other.internalGetMap()); if (other.hasExplanation()) { mergeExplanation(other.getExplanation()); } 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.AnswerProto.ConceptMap parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.AnswerProto.ConceptMap) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> map_; private com.google.protobuf.MapField<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> internalGetMap() { if (map_ == null) { return com.google.protobuf.MapField.emptyMapField( MapDefaultEntryHolder.defaultEntry); } return map_; } private com.google.protobuf.MapField<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> internalGetMutableMap() { onChanged();; if (map_ == null) { map_ = com.google.protobuf.MapField.newMapField( MapDefaultEntryHolder.defaultEntry); } if (!map_.isMutable()) { map_ = map_.copy(); } return map_; } public int getMapCount() { return internalGetMap().getMap().size(); } /** * <code>map&lt;string, .session.Concept&gt; map = 1;</code> */ public boolean containsMap( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMap().getMap().containsKey(key); } /** * Use {@link #getMapMap()} instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> getMap() { return getMapMap(); } /** * <code>map&lt;string, .session.Concept&gt; map = 1;</code> */ public java.util.Map<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> getMapMap() { return internalGetMap().getMap(); } /** * <code>map&lt;string, .session.Concept&gt; map = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getMapOrDefault( java.lang.String key, ai.grakn.rpc.proto.ConceptProto.Concept defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> map = internalGetMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, .session.Concept&gt; map = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getMapOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> map = internalGetMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMap() { getMutableMap().clear(); return this; } /** * <code>map&lt;string, .session.Concept&gt; map = 1;</code> */ public Builder removeMap( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } getMutableMap().remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> getMutableMap() { return internalGetMutableMap().getMutableMap(); } /** * <code>map&lt;string, .session.Concept&gt; map = 1;</code> */ public Builder putMap( java.lang.String key, ai.grakn.rpc.proto.ConceptProto.Concept value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } getMutableMap().put(key, value); return this; } /** * <code>map&lt;string, .session.Concept&gt; map = 1;</code> */ public Builder putAllMap( java.util.Map<java.lang.String, ai.grakn.rpc.proto.ConceptProto.Concept> values) { getMutableMap().putAll(values); return this; } private ai.grakn.rpc.proto.AnswerProto.Explanation explanation_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder> explanationBuilder_; /** * <code>optional .session.Explanation explanation = 2;</code> */ public boolean hasExplanation() { return explanationBuilder_ != null || explanation_ != null; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation() { if (explanationBuilder_ == null) { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } else { return explanationBuilder_.getMessage(); } } /** * <code>optional .session.Explanation explanation = 2;</code> */ public Builder setExplanation(ai.grakn.rpc.proto.AnswerProto.Explanation value) { if (explanationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } explanation_ = value; onChanged(); } else { explanationBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public Builder setExplanation( ai.grakn.rpc.proto.AnswerProto.Explanation.Builder builderForValue) { if (explanationBuilder_ == null) { explanation_ = builderForValue.build(); onChanged(); } else { explanationBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public Builder mergeExplanation(ai.grakn.rpc.proto.AnswerProto.Explanation value) { if (explanationBuilder_ == null) { if (explanation_ != null) { explanation_ = ai.grakn.rpc.proto.AnswerProto.Explanation.newBuilder(explanation_).mergeFrom(value).buildPartial(); } else { explanation_ = value; } onChanged(); } else { explanationBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public Builder clearExplanation() { if (explanationBuilder_ == null) { explanation_ = null; onChanged(); } else { explanation_ = null; explanationBuilder_ = null; } return this; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation.Builder getExplanationBuilder() { onChanged(); return getExplanationFieldBuilder().getBuilder(); } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder() { if (explanationBuilder_ != null) { return explanationBuilder_.getMessageOrBuilder(); } else { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } } /** * <code>optional .session.Explanation explanation = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder> getExplanationFieldBuilder() { if (explanationBuilder_ == null) { explanationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder>( getExplanation(), getParentForChildren(), isClean()); explanation_ = null; } return explanationBuilder_; } 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.ConceptMap) } // @@protoc_insertion_point(class_scope:session.ConceptMap) private static final ai.grakn.rpc.proto.AnswerProto.ConceptMap DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.AnswerProto.ConceptMap(); } public static ai.grakn.rpc.proto.AnswerProto.ConceptMap getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ConceptMap> PARSER = new com.google.protobuf.AbstractParser<ConceptMap>() { public ConceptMap parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConceptMap(input, extensionRegistry); } }; public static com.google.protobuf.Parser<ConceptMap> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ConceptMap> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.AnswerProto.ConceptMap getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConceptListOrBuilder extends // @@protoc_insertion_point(interface_extends:session.ConceptList) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.ConceptIds list = 1;</code> */ boolean hasList(); /** * <code>optional .session.ConceptIds list = 1;</code> */ ai.grakn.rpc.proto.AnswerProto.ConceptIds getList(); /** * <code>optional .session.ConceptIds list = 1;</code> */ ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder getListOrBuilder(); /** * <code>optional .session.Explanation explanation = 2;</code> */ boolean hasExplanation(); /** * <code>optional .session.Explanation explanation = 2;</code> */ ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation(); /** * <code>optional .session.Explanation explanation = 2;</code> */ ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder(); } /** * Protobuf type {@code session.ConceptList} */ public static final class ConceptList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.ConceptList) ConceptListOrBuilder { // Use ConceptList.newBuilder() to construct. private ConceptList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ConceptList() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ConceptList( 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.ConceptIds.Builder subBuilder = null; if (list_ != null) { subBuilder = list_.toBuilder(); } list_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.ConceptIds.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(list_); list_ = subBuilder.buildPartial(); } break; } case 18: { ai.grakn.rpc.proto.AnswerProto.Explanation.Builder subBuilder = null; if (explanation_ != null) { subBuilder = explanation_.toBuilder(); } explanation_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.Explanation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(explanation_); explanation_ = 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.AnswerProto.internal_static_session_ConceptList_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptList_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.ConceptList.class, ai.grakn.rpc.proto.AnswerProto.ConceptList.Builder.class); } public static final int LIST_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.AnswerProto.ConceptIds list_; /** * <code>optional .session.ConceptIds list = 1;</code> */ public boolean hasList() { return list_ != null; } /** * <code>optional .session.ConceptIds list = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptIds getList() { return list_ == null ? ai.grakn.rpc.proto.AnswerProto.ConceptIds.getDefaultInstance() : list_; } /** * <code>optional .session.ConceptIds list = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder getListOrBuilder() { return getList(); } public static final int EXPLANATION_FIELD_NUMBER = 2; private ai.grakn.rpc.proto.AnswerProto.Explanation explanation_; /** * <code>optional .session.Explanation explanation = 2;</code> */ public boolean hasExplanation() { return explanation_ != null; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation() { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder() { return getExplanation(); } 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 (list_ != null) { output.writeMessage(1, getList()); } if (explanation_ != null) { output.writeMessage(2, getExplanation()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (list_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getList()); } if (explanation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExplanation()); } 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.AnswerProto.ConceptList)) { return super.equals(obj); } ai.grakn.rpc.proto.AnswerProto.ConceptList other = (ai.grakn.rpc.proto.AnswerProto.ConceptList) obj; boolean result = true; result = result && (hasList() == other.hasList()); if (hasList()) { result = result && getList() .equals(other.getList()); } result = result && (hasExplanation() == other.hasExplanation()); if (hasExplanation()) { result = result && getExplanation() .equals(other.getExplanation()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasList()) { hash = (37 * hash) + LIST_FIELD_NUMBER; hash = (53 * hash) + getList().hashCode(); } if (hasExplanation()) { hash = (37 * hash) + EXPLANATION_FIELD_NUMBER; hash = (53 * hash) + getExplanation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.AnswerProto.ConceptList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.ConceptList 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.AnswerProto.ConceptList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.ConceptList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.AnswerProto.ConceptList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.ConceptList 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.AnswerProto.ConceptList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.ConceptList 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.AnswerProto.ConceptList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.ConceptList 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.AnswerProto.ConceptList 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.ConceptList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.ConceptList) ai.grakn.rpc.proto.AnswerProto.ConceptListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptList_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptList_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.ConceptList.class, ai.grakn.rpc.proto.AnswerProto.ConceptList.Builder.class); } // Construct using ai.grakn.rpc.proto.AnswerProto.ConceptList.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 (listBuilder_ == null) { list_ = null; } else { list_ = null; listBuilder_ = null; } if (explanationBuilder_ == null) { explanation_ = null; } else { explanation_ = null; explanationBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptList_descriptor; } public ai.grakn.rpc.proto.AnswerProto.ConceptList getDefaultInstanceForType() { return ai.grakn.rpc.proto.AnswerProto.ConceptList.getDefaultInstance(); } public ai.grakn.rpc.proto.AnswerProto.ConceptList build() { ai.grakn.rpc.proto.AnswerProto.ConceptList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.AnswerProto.ConceptList buildPartial() { ai.grakn.rpc.proto.AnswerProto.ConceptList result = new ai.grakn.rpc.proto.AnswerProto.ConceptList(this); if (listBuilder_ == null) { result.list_ = list_; } else { result.list_ = listBuilder_.build(); } if (explanationBuilder_ == null) { result.explanation_ = explanation_; } else { result.explanation_ = explanationBuilder_.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.AnswerProto.ConceptList) { return mergeFrom((ai.grakn.rpc.proto.AnswerProto.ConceptList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.AnswerProto.ConceptList other) { if (other == ai.grakn.rpc.proto.AnswerProto.ConceptList.getDefaultInstance()) return this; if (other.hasList()) { mergeList(other.getList()); } if (other.hasExplanation()) { mergeExplanation(other.getExplanation()); } 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.AnswerProto.ConceptList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.AnswerProto.ConceptList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.AnswerProto.ConceptIds list_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptIds, ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder> listBuilder_; /** * <code>optional .session.ConceptIds list = 1;</code> */ public boolean hasList() { return listBuilder_ != null || list_ != null; } /** * <code>optional .session.ConceptIds list = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptIds getList() { if (listBuilder_ == null) { return list_ == null ? ai.grakn.rpc.proto.AnswerProto.ConceptIds.getDefaultInstance() : list_; } else { return listBuilder_.getMessage(); } } /** * <code>optional .session.ConceptIds list = 1;</code> */ public Builder setList(ai.grakn.rpc.proto.AnswerProto.ConceptIds value) { if (listBuilder_ == null) { if (value == null) { throw new NullPointerException(); } list_ = value; onChanged(); } else { listBuilder_.setMessage(value); } return this; } /** * <code>optional .session.ConceptIds list = 1;</code> */ public Builder setList( ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder builderForValue) { if (listBuilder_ == null) { list_ = builderForValue.build(); onChanged(); } else { listBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.ConceptIds list = 1;</code> */ public Builder mergeList(ai.grakn.rpc.proto.AnswerProto.ConceptIds value) { if (listBuilder_ == null) { if (list_ != null) { list_ = ai.grakn.rpc.proto.AnswerProto.ConceptIds.newBuilder(list_).mergeFrom(value).buildPartial(); } else { list_ = value; } onChanged(); } else { listBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.ConceptIds list = 1;</code> */ public Builder clearList() { if (listBuilder_ == null) { list_ = null; onChanged(); } else { list_ = null; listBuilder_ = null; } return this; } /** * <code>optional .session.ConceptIds list = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder getListBuilder() { onChanged(); return getListFieldBuilder().getBuilder(); } /** * <code>optional .session.ConceptIds list = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder getListOrBuilder() { if (listBuilder_ != null) { return listBuilder_.getMessageOrBuilder(); } else { return list_ == null ? ai.grakn.rpc.proto.AnswerProto.ConceptIds.getDefaultInstance() : list_; } } /** * <code>optional .session.ConceptIds list = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptIds, ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder> getListFieldBuilder() { if (listBuilder_ == null) { listBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptIds, ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder>( getList(), getParentForChildren(), isClean()); list_ = null; } return listBuilder_; } private ai.grakn.rpc.proto.AnswerProto.Explanation explanation_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder> explanationBuilder_; /** * <code>optional .session.Explanation explanation = 2;</code> */ public boolean hasExplanation() { return explanationBuilder_ != null || explanation_ != null; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation() { if (explanationBuilder_ == null) { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } else { return explanationBuilder_.getMessage(); } } /** * <code>optional .session.Explanation explanation = 2;</code> */ public Builder setExplanation(ai.grakn.rpc.proto.AnswerProto.Explanation value) { if (explanationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } explanation_ = value; onChanged(); } else { explanationBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public Builder setExplanation( ai.grakn.rpc.proto.AnswerProto.Explanation.Builder builderForValue) { if (explanationBuilder_ == null) { explanation_ = builderForValue.build(); onChanged(); } else { explanationBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public Builder mergeExplanation(ai.grakn.rpc.proto.AnswerProto.Explanation value) { if (explanationBuilder_ == null) { if (explanation_ != null) { explanation_ = ai.grakn.rpc.proto.AnswerProto.Explanation.newBuilder(explanation_).mergeFrom(value).buildPartial(); } else { explanation_ = value; } onChanged(); } else { explanationBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public Builder clearExplanation() { if (explanationBuilder_ == null) { explanation_ = null; onChanged(); } else { explanation_ = null; explanationBuilder_ = null; } return this; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation.Builder getExplanationBuilder() { onChanged(); return getExplanationFieldBuilder().getBuilder(); } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder() { if (explanationBuilder_ != null) { return explanationBuilder_.getMessageOrBuilder(); } else { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } } /** * <code>optional .session.Explanation explanation = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder> getExplanationFieldBuilder() { if (explanationBuilder_ == null) { explanationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder>( getExplanation(), getParentForChildren(), isClean()); explanation_ = null; } return explanationBuilder_; } 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.ConceptList) } // @@protoc_insertion_point(class_scope:session.ConceptList) private static final ai.grakn.rpc.proto.AnswerProto.ConceptList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.AnswerProto.ConceptList(); } public static ai.grakn.rpc.proto.AnswerProto.ConceptList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ConceptList> PARSER = new com.google.protobuf.AbstractParser<ConceptList>() { public ConceptList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConceptList(input, extensionRegistry); } }; public static com.google.protobuf.Parser<ConceptList> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ConceptList> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.AnswerProto.ConceptList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConceptSetOrBuilder extends // @@protoc_insertion_point(interface_extends:session.ConceptSet) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.ConceptIds set = 1;</code> */ boolean hasSet(); /** * <code>optional .session.ConceptIds set = 1;</code> */ ai.grakn.rpc.proto.AnswerProto.ConceptIds getSet(); /** * <code>optional .session.ConceptIds set = 1;</code> */ ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder getSetOrBuilder(); /** * <code>optional .session.Explanation explanation = 2;</code> */ boolean hasExplanation(); /** * <code>optional .session.Explanation explanation = 2;</code> */ ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation(); /** * <code>optional .session.Explanation explanation = 2;</code> */ ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder(); } /** * Protobuf type {@code session.ConceptSet} */ public static final class ConceptSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.ConceptSet) ConceptSetOrBuilder { // Use ConceptSet.newBuilder() to construct. private ConceptSet(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ConceptSet() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ConceptSet( 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.ConceptIds.Builder subBuilder = null; if (set_ != null) { subBuilder = set_.toBuilder(); } set_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.ConceptIds.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(set_); set_ = subBuilder.buildPartial(); } break; } case 18: { ai.grakn.rpc.proto.AnswerProto.Explanation.Builder subBuilder = null; if (explanation_ != null) { subBuilder = explanation_.toBuilder(); } explanation_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.Explanation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(explanation_); explanation_ = 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.AnswerProto.internal_static_session_ConceptSet_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptSet_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.ConceptSet.class, ai.grakn.rpc.proto.AnswerProto.ConceptSet.Builder.class); } public static final int SET_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.AnswerProto.ConceptIds set_; /** * <code>optional .session.ConceptIds set = 1;</code> */ public boolean hasSet() { return set_ != null; } /** * <code>optional .session.ConceptIds set = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptIds getSet() { return set_ == null ? ai.grakn.rpc.proto.AnswerProto.ConceptIds.getDefaultInstance() : set_; } /** * <code>optional .session.ConceptIds set = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder getSetOrBuilder() { return getSet(); } public static final int EXPLANATION_FIELD_NUMBER = 2; private ai.grakn.rpc.proto.AnswerProto.Explanation explanation_; /** * <code>optional .session.Explanation explanation = 2;</code> */ public boolean hasExplanation() { return explanation_ != null; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation() { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder() { return getExplanation(); } 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 (set_ != null) { output.writeMessage(1, getSet()); } if (explanation_ != null) { output.writeMessage(2, getExplanation()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (set_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSet()); } if (explanation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExplanation()); } 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.AnswerProto.ConceptSet)) { return super.equals(obj); } ai.grakn.rpc.proto.AnswerProto.ConceptSet other = (ai.grakn.rpc.proto.AnswerProto.ConceptSet) obj; boolean result = true; result = result && (hasSet() == other.hasSet()); if (hasSet()) { result = result && getSet() .equals(other.getSet()); } result = result && (hasExplanation() == other.hasExplanation()); if (hasExplanation()) { result = result && getExplanation() .equals(other.getExplanation()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSet()) { hash = (37 * hash) + SET_FIELD_NUMBER; hash = (53 * hash) + getSet().hashCode(); } if (hasExplanation()) { hash = (37 * hash) + EXPLANATION_FIELD_NUMBER; hash = (53 * hash) + getExplanation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.AnswerProto.ConceptSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.ConceptSet 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.AnswerProto.ConceptSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.ConceptSet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.AnswerProto.ConceptSet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.ConceptSet 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.AnswerProto.ConceptSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.ConceptSet 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.AnswerProto.ConceptSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.ConceptSet 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.AnswerProto.ConceptSet 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.ConceptSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.ConceptSet) ai.grakn.rpc.proto.AnswerProto.ConceptSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptSet_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptSet_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.ConceptSet.class, ai.grakn.rpc.proto.AnswerProto.ConceptSet.Builder.class); } // Construct using ai.grakn.rpc.proto.AnswerProto.ConceptSet.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 (setBuilder_ == null) { set_ = null; } else { set_ = null; setBuilder_ = null; } if (explanationBuilder_ == null) { explanation_ = null; } else { explanation_ = null; explanationBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptSet_descriptor; } public ai.grakn.rpc.proto.AnswerProto.ConceptSet getDefaultInstanceForType() { return ai.grakn.rpc.proto.AnswerProto.ConceptSet.getDefaultInstance(); } public ai.grakn.rpc.proto.AnswerProto.ConceptSet build() { ai.grakn.rpc.proto.AnswerProto.ConceptSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.AnswerProto.ConceptSet buildPartial() { ai.grakn.rpc.proto.AnswerProto.ConceptSet result = new ai.grakn.rpc.proto.AnswerProto.ConceptSet(this); if (setBuilder_ == null) { result.set_ = set_; } else { result.set_ = setBuilder_.build(); } if (explanationBuilder_ == null) { result.explanation_ = explanation_; } else { result.explanation_ = explanationBuilder_.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.AnswerProto.ConceptSet) { return mergeFrom((ai.grakn.rpc.proto.AnswerProto.ConceptSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.AnswerProto.ConceptSet other) { if (other == ai.grakn.rpc.proto.AnswerProto.ConceptSet.getDefaultInstance()) return this; if (other.hasSet()) { mergeSet(other.getSet()); } if (other.hasExplanation()) { mergeExplanation(other.getExplanation()); } 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.AnswerProto.ConceptSet parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.AnswerProto.ConceptSet) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.AnswerProto.ConceptIds set_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptIds, ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder> setBuilder_; /** * <code>optional .session.ConceptIds set = 1;</code> */ public boolean hasSet() { return setBuilder_ != null || set_ != null; } /** * <code>optional .session.ConceptIds set = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptIds getSet() { if (setBuilder_ == null) { return set_ == null ? ai.grakn.rpc.proto.AnswerProto.ConceptIds.getDefaultInstance() : set_; } else { return setBuilder_.getMessage(); } } /** * <code>optional .session.ConceptIds set = 1;</code> */ public Builder setSet(ai.grakn.rpc.proto.AnswerProto.ConceptIds value) { if (setBuilder_ == null) { if (value == null) { throw new NullPointerException(); } set_ = value; onChanged(); } else { setBuilder_.setMessage(value); } return this; } /** * <code>optional .session.ConceptIds set = 1;</code> */ public Builder setSet( ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder builderForValue) { if (setBuilder_ == null) { set_ = builderForValue.build(); onChanged(); } else { setBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.ConceptIds set = 1;</code> */ public Builder mergeSet(ai.grakn.rpc.proto.AnswerProto.ConceptIds value) { if (setBuilder_ == null) { if (set_ != null) { set_ = ai.grakn.rpc.proto.AnswerProto.ConceptIds.newBuilder(set_).mergeFrom(value).buildPartial(); } else { set_ = value; } onChanged(); } else { setBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.ConceptIds set = 1;</code> */ public Builder clearSet() { if (setBuilder_ == null) { set_ = null; onChanged(); } else { set_ = null; setBuilder_ = null; } return this; } /** * <code>optional .session.ConceptIds set = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder getSetBuilder() { onChanged(); return getSetFieldBuilder().getBuilder(); } /** * <code>optional .session.ConceptIds set = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder getSetOrBuilder() { if (setBuilder_ != null) { return setBuilder_.getMessageOrBuilder(); } else { return set_ == null ? ai.grakn.rpc.proto.AnswerProto.ConceptIds.getDefaultInstance() : set_; } } /** * <code>optional .session.ConceptIds set = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptIds, ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder> getSetFieldBuilder() { if (setBuilder_ == null) { setBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptIds, ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder>( getSet(), getParentForChildren(), isClean()); set_ = null; } return setBuilder_; } private ai.grakn.rpc.proto.AnswerProto.Explanation explanation_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder> explanationBuilder_; /** * <code>optional .session.Explanation explanation = 2;</code> */ public boolean hasExplanation() { return explanationBuilder_ != null || explanation_ != null; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation() { if (explanationBuilder_ == null) { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } else { return explanationBuilder_.getMessage(); } } /** * <code>optional .session.Explanation explanation = 2;</code> */ public Builder setExplanation(ai.grakn.rpc.proto.AnswerProto.Explanation value) { if (explanationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } explanation_ = value; onChanged(); } else { explanationBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public Builder setExplanation( ai.grakn.rpc.proto.AnswerProto.Explanation.Builder builderForValue) { if (explanationBuilder_ == null) { explanation_ = builderForValue.build(); onChanged(); } else { explanationBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public Builder mergeExplanation(ai.grakn.rpc.proto.AnswerProto.Explanation value) { if (explanationBuilder_ == null) { if (explanation_ != null) { explanation_ = ai.grakn.rpc.proto.AnswerProto.Explanation.newBuilder(explanation_).mergeFrom(value).buildPartial(); } else { explanation_ = value; } onChanged(); } else { explanationBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public Builder clearExplanation() { if (explanationBuilder_ == null) { explanation_ = null; onChanged(); } else { explanation_ = null; explanationBuilder_ = null; } return this; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation.Builder getExplanationBuilder() { onChanged(); return getExplanationFieldBuilder().getBuilder(); } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder() { if (explanationBuilder_ != null) { return explanationBuilder_.getMessageOrBuilder(); } else { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } } /** * <code>optional .session.Explanation explanation = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder> getExplanationFieldBuilder() { if (explanationBuilder_ == null) { explanationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder>( getExplanation(), getParentForChildren(), isClean()); explanation_ = null; } return explanationBuilder_; } 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.ConceptSet) } // @@protoc_insertion_point(class_scope:session.ConceptSet) private static final ai.grakn.rpc.proto.AnswerProto.ConceptSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.AnswerProto.ConceptSet(); } public static ai.grakn.rpc.proto.AnswerProto.ConceptSet getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ConceptSet> PARSER = new com.google.protobuf.AbstractParser<ConceptSet>() { public ConceptSet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConceptSet(input, extensionRegistry); } }; public static com.google.protobuf.Parser<ConceptSet> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ConceptSet> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.AnswerProto.ConceptSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConceptSetMeasureOrBuilder extends // @@protoc_insertion_point(interface_extends:session.ConceptSetMeasure) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.ConceptIds set = 1;</code> */ boolean hasSet(); /** * <code>optional .session.ConceptIds set = 1;</code> */ ai.grakn.rpc.proto.AnswerProto.ConceptIds getSet(); /** * <code>optional .session.ConceptIds set = 1;</code> */ ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder getSetOrBuilder(); /** * <code>optional .session.Number measurement = 2;</code> */ boolean hasMeasurement(); /** * <code>optional .session.Number measurement = 2;</code> */ ai.grakn.rpc.proto.AnswerProto.Number getMeasurement(); /** * <code>optional .session.Number measurement = 2;</code> */ ai.grakn.rpc.proto.AnswerProto.NumberOrBuilder getMeasurementOrBuilder(); /** * <code>optional .session.Explanation explanation = 3;</code> */ boolean hasExplanation(); /** * <code>optional .session.Explanation explanation = 3;</code> */ ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation(); /** * <code>optional .session.Explanation explanation = 3;</code> */ ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder(); } /** * Protobuf type {@code session.ConceptSetMeasure} */ public static final class ConceptSetMeasure extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.ConceptSetMeasure) ConceptSetMeasureOrBuilder { // Use ConceptSetMeasure.newBuilder() to construct. private ConceptSetMeasure(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ConceptSetMeasure() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ConceptSetMeasure( 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.ConceptIds.Builder subBuilder = null; if (set_ != null) { subBuilder = set_.toBuilder(); } set_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.ConceptIds.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(set_); set_ = subBuilder.buildPartial(); } break; } case 18: { ai.grakn.rpc.proto.AnswerProto.Number.Builder subBuilder = null; if (measurement_ != null) { subBuilder = measurement_.toBuilder(); } measurement_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.Number.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(measurement_); measurement_ = subBuilder.buildPartial(); } break; } case 26: { ai.grakn.rpc.proto.AnswerProto.Explanation.Builder subBuilder = null; if (explanation_ != null) { subBuilder = explanation_.toBuilder(); } explanation_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.Explanation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(explanation_); explanation_ = 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.AnswerProto.internal_static_session_ConceptSetMeasure_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptSetMeasure_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.class, ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.Builder.class); } public static final int SET_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.AnswerProto.ConceptIds set_; /** * <code>optional .session.ConceptIds set = 1;</code> */ public boolean hasSet() { return set_ != null; } /** * <code>optional .session.ConceptIds set = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptIds getSet() { return set_ == null ? ai.grakn.rpc.proto.AnswerProto.ConceptIds.getDefaultInstance() : set_; } /** * <code>optional .session.ConceptIds set = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder getSetOrBuilder() { return getSet(); } public static final int MEASUREMENT_FIELD_NUMBER = 2; private ai.grakn.rpc.proto.AnswerProto.Number measurement_; /** * <code>optional .session.Number measurement = 2;</code> */ public boolean hasMeasurement() { return measurement_ != null; } /** * <code>optional .session.Number measurement = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Number getMeasurement() { return measurement_ == null ? ai.grakn.rpc.proto.AnswerProto.Number.getDefaultInstance() : measurement_; } /** * <code>optional .session.Number measurement = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.NumberOrBuilder getMeasurementOrBuilder() { return getMeasurement(); } public static final int EXPLANATION_FIELD_NUMBER = 3; private ai.grakn.rpc.proto.AnswerProto.Explanation explanation_; /** * <code>optional .session.Explanation explanation = 3;</code> */ public boolean hasExplanation() { return explanation_ != null; } /** * <code>optional .session.Explanation explanation = 3;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation() { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } /** * <code>optional .session.Explanation explanation = 3;</code> */ public ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder() { return getExplanation(); } 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 (set_ != null) { output.writeMessage(1, getSet()); } if (measurement_ != null) { output.writeMessage(2, getMeasurement()); } if (explanation_ != null) { output.writeMessage(3, getExplanation()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (set_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSet()); } if (measurement_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMeasurement()); } if (explanation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getExplanation()); } 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.AnswerProto.ConceptSetMeasure)) { return super.equals(obj); } ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure other = (ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure) obj; boolean result = true; result = result && (hasSet() == other.hasSet()); if (hasSet()) { result = result && getSet() .equals(other.getSet()); } result = result && (hasMeasurement() == other.hasMeasurement()); if (hasMeasurement()) { result = result && getMeasurement() .equals(other.getMeasurement()); } result = result && (hasExplanation() == other.hasExplanation()); if (hasExplanation()) { result = result && getExplanation() .equals(other.getExplanation()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSet()) { hash = (37 * hash) + SET_FIELD_NUMBER; hash = (53 * hash) + getSet().hashCode(); } if (hasMeasurement()) { hash = (37 * hash) + MEASUREMENT_FIELD_NUMBER; hash = (53 * hash) + getMeasurement().hashCode(); } if (hasExplanation()) { hash = (37 * hash) + EXPLANATION_FIELD_NUMBER; hash = (53 * hash) + getExplanation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure 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.AnswerProto.ConceptSetMeasure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure 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.AnswerProto.ConceptSetMeasure parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure 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.AnswerProto.ConceptSetMeasure parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure 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.AnswerProto.ConceptSetMeasure 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.ConceptSetMeasure} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.ConceptSetMeasure) ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptSetMeasure_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptSetMeasure_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.class, ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.Builder.class); } // Construct using ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.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 (setBuilder_ == null) { set_ = null; } else { set_ = null; setBuilder_ = null; } if (measurementBuilder_ == null) { measurement_ = null; } else { measurement_ = null; measurementBuilder_ = null; } if (explanationBuilder_ == null) { explanation_ = null; } else { explanation_ = null; explanationBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptSetMeasure_descriptor; } public ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure getDefaultInstanceForType() { return ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.getDefaultInstance(); } public ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure build() { ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure buildPartial() { ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure result = new ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure(this); if (setBuilder_ == null) { result.set_ = set_; } else { result.set_ = setBuilder_.build(); } if (measurementBuilder_ == null) { result.measurement_ = measurement_; } else { result.measurement_ = measurementBuilder_.build(); } if (explanationBuilder_ == null) { result.explanation_ = explanation_; } else { result.explanation_ = explanationBuilder_.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.AnswerProto.ConceptSetMeasure) { return mergeFrom((ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure other) { if (other == ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure.getDefaultInstance()) return this; if (other.hasSet()) { mergeSet(other.getSet()); } if (other.hasMeasurement()) { mergeMeasurement(other.getMeasurement()); } if (other.hasExplanation()) { mergeExplanation(other.getExplanation()); } 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.AnswerProto.ConceptSetMeasure parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.AnswerProto.ConceptIds set_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptIds, ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder> setBuilder_; /** * <code>optional .session.ConceptIds set = 1;</code> */ public boolean hasSet() { return setBuilder_ != null || set_ != null; } /** * <code>optional .session.ConceptIds set = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptIds getSet() { if (setBuilder_ == null) { return set_ == null ? ai.grakn.rpc.proto.AnswerProto.ConceptIds.getDefaultInstance() : set_; } else { return setBuilder_.getMessage(); } } /** * <code>optional .session.ConceptIds set = 1;</code> */ public Builder setSet(ai.grakn.rpc.proto.AnswerProto.ConceptIds value) { if (setBuilder_ == null) { if (value == null) { throw new NullPointerException(); } set_ = value; onChanged(); } else { setBuilder_.setMessage(value); } return this; } /** * <code>optional .session.ConceptIds set = 1;</code> */ public Builder setSet( ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder builderForValue) { if (setBuilder_ == null) { set_ = builderForValue.build(); onChanged(); } else { setBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.ConceptIds set = 1;</code> */ public Builder mergeSet(ai.grakn.rpc.proto.AnswerProto.ConceptIds value) { if (setBuilder_ == null) { if (set_ != null) { set_ = ai.grakn.rpc.proto.AnswerProto.ConceptIds.newBuilder(set_).mergeFrom(value).buildPartial(); } else { set_ = value; } onChanged(); } else { setBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.ConceptIds set = 1;</code> */ public Builder clearSet() { if (setBuilder_ == null) { set_ = null; onChanged(); } else { set_ = null; setBuilder_ = null; } return this; } /** * <code>optional .session.ConceptIds set = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder getSetBuilder() { onChanged(); return getSetFieldBuilder().getBuilder(); } /** * <code>optional .session.ConceptIds set = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder getSetOrBuilder() { if (setBuilder_ != null) { return setBuilder_.getMessageOrBuilder(); } else { return set_ == null ? ai.grakn.rpc.proto.AnswerProto.ConceptIds.getDefaultInstance() : set_; } } /** * <code>optional .session.ConceptIds set = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptIds, ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder> getSetFieldBuilder() { if (setBuilder_ == null) { setBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.ConceptIds, ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder, ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder>( getSet(), getParentForChildren(), isClean()); set_ = null; } return setBuilder_; } private ai.grakn.rpc.proto.AnswerProto.Number measurement_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Number, ai.grakn.rpc.proto.AnswerProto.Number.Builder, ai.grakn.rpc.proto.AnswerProto.NumberOrBuilder> measurementBuilder_; /** * <code>optional .session.Number measurement = 2;</code> */ public boolean hasMeasurement() { return measurementBuilder_ != null || measurement_ != null; } /** * <code>optional .session.Number measurement = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Number getMeasurement() { if (measurementBuilder_ == null) { return measurement_ == null ? ai.grakn.rpc.proto.AnswerProto.Number.getDefaultInstance() : measurement_; } else { return measurementBuilder_.getMessage(); } } /** * <code>optional .session.Number measurement = 2;</code> */ public Builder setMeasurement(ai.grakn.rpc.proto.AnswerProto.Number value) { if (measurementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } measurement_ = value; onChanged(); } else { measurementBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Number measurement = 2;</code> */ public Builder setMeasurement( ai.grakn.rpc.proto.AnswerProto.Number.Builder builderForValue) { if (measurementBuilder_ == null) { measurement_ = builderForValue.build(); onChanged(); } else { measurementBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Number measurement = 2;</code> */ public Builder mergeMeasurement(ai.grakn.rpc.proto.AnswerProto.Number value) { if (measurementBuilder_ == null) { if (measurement_ != null) { measurement_ = ai.grakn.rpc.proto.AnswerProto.Number.newBuilder(measurement_).mergeFrom(value).buildPartial(); } else { measurement_ = value; } onChanged(); } else { measurementBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Number measurement = 2;</code> */ public Builder clearMeasurement() { if (measurementBuilder_ == null) { measurement_ = null; onChanged(); } else { measurement_ = null; measurementBuilder_ = null; } return this; } /** * <code>optional .session.Number measurement = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Number.Builder getMeasurementBuilder() { onChanged(); return getMeasurementFieldBuilder().getBuilder(); } /** * <code>optional .session.Number measurement = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.NumberOrBuilder getMeasurementOrBuilder() { if (measurementBuilder_ != null) { return measurementBuilder_.getMessageOrBuilder(); } else { return measurement_ == null ? ai.grakn.rpc.proto.AnswerProto.Number.getDefaultInstance() : measurement_; } } /** * <code>optional .session.Number measurement = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Number, ai.grakn.rpc.proto.AnswerProto.Number.Builder, ai.grakn.rpc.proto.AnswerProto.NumberOrBuilder> getMeasurementFieldBuilder() { if (measurementBuilder_ == null) { measurementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Number, ai.grakn.rpc.proto.AnswerProto.Number.Builder, ai.grakn.rpc.proto.AnswerProto.NumberOrBuilder>( getMeasurement(), getParentForChildren(), isClean()); measurement_ = null; } return measurementBuilder_; } private ai.grakn.rpc.proto.AnswerProto.Explanation explanation_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder> explanationBuilder_; /** * <code>optional .session.Explanation explanation = 3;</code> */ public boolean hasExplanation() { return explanationBuilder_ != null || explanation_ != null; } /** * <code>optional .session.Explanation explanation = 3;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation() { if (explanationBuilder_ == null) { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } else { return explanationBuilder_.getMessage(); } } /** * <code>optional .session.Explanation explanation = 3;</code> */ public Builder setExplanation(ai.grakn.rpc.proto.AnswerProto.Explanation value) { if (explanationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } explanation_ = value; onChanged(); } else { explanationBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Explanation explanation = 3;</code> */ public Builder setExplanation( ai.grakn.rpc.proto.AnswerProto.Explanation.Builder builderForValue) { if (explanationBuilder_ == null) { explanation_ = builderForValue.build(); onChanged(); } else { explanationBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Explanation explanation = 3;</code> */ public Builder mergeExplanation(ai.grakn.rpc.proto.AnswerProto.Explanation value) { if (explanationBuilder_ == null) { if (explanation_ != null) { explanation_ = ai.grakn.rpc.proto.AnswerProto.Explanation.newBuilder(explanation_).mergeFrom(value).buildPartial(); } else { explanation_ = value; } onChanged(); } else { explanationBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Explanation explanation = 3;</code> */ public Builder clearExplanation() { if (explanationBuilder_ == null) { explanation_ = null; onChanged(); } else { explanation_ = null; explanationBuilder_ = null; } return this; } /** * <code>optional .session.Explanation explanation = 3;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation.Builder getExplanationBuilder() { onChanged(); return getExplanationFieldBuilder().getBuilder(); } /** * <code>optional .session.Explanation explanation = 3;</code> */ public ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder() { if (explanationBuilder_ != null) { return explanationBuilder_.getMessageOrBuilder(); } else { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } } /** * <code>optional .session.Explanation explanation = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder> getExplanationFieldBuilder() { if (explanationBuilder_ == null) { explanationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder>( getExplanation(), getParentForChildren(), isClean()); explanation_ = null; } return explanationBuilder_; } 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.ConceptSetMeasure) } // @@protoc_insertion_point(class_scope:session.ConceptSetMeasure) private static final ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure(); } public static ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ConceptSetMeasure> PARSER = new com.google.protobuf.AbstractParser<ConceptSetMeasure>() { public ConceptSetMeasure parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConceptSetMeasure(input, extensionRegistry); } }; public static com.google.protobuf.Parser<ConceptSetMeasure> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ConceptSetMeasure> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.AnswerProto.ConceptSetMeasure getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValueOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Value) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Number number = 1;</code> */ boolean hasNumber(); /** * <code>optional .session.Number number = 1;</code> */ ai.grakn.rpc.proto.AnswerProto.Number getNumber(); /** * <code>optional .session.Number number = 1;</code> */ ai.grakn.rpc.proto.AnswerProto.NumberOrBuilder getNumberOrBuilder(); /** * <code>optional .session.Explanation explanation = 2;</code> */ boolean hasExplanation(); /** * <code>optional .session.Explanation explanation = 2;</code> */ ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation(); /** * <code>optional .session.Explanation explanation = 2;</code> */ ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder(); } /** * Protobuf type {@code session.Value} */ public static final class Value extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Value) ValueOrBuilder { // Use Value.newBuilder() to construct. private Value(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Value() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Value( 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.Number.Builder subBuilder = null; if (number_ != null) { subBuilder = number_.toBuilder(); } number_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.Number.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(number_); number_ = subBuilder.buildPartial(); } break; } case 18: { ai.grakn.rpc.proto.AnswerProto.Explanation.Builder subBuilder = null; if (explanation_ != null) { subBuilder = explanation_.toBuilder(); } explanation_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.Explanation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(explanation_); explanation_ = 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.AnswerProto.internal_static_session_Value_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.Value.class, ai.grakn.rpc.proto.AnswerProto.Value.Builder.class); } public static final int NUMBER_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.AnswerProto.Number number_; /** * <code>optional .session.Number number = 1;</code> */ public boolean hasNumber() { return number_ != null; } /** * <code>optional .session.Number number = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.Number getNumber() { return number_ == null ? ai.grakn.rpc.proto.AnswerProto.Number.getDefaultInstance() : number_; } /** * <code>optional .session.Number number = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.NumberOrBuilder getNumberOrBuilder() { return getNumber(); } public static final int EXPLANATION_FIELD_NUMBER = 2; private ai.grakn.rpc.proto.AnswerProto.Explanation explanation_; /** * <code>optional .session.Explanation explanation = 2;</code> */ public boolean hasExplanation() { return explanation_ != null; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation() { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder() { return getExplanation(); } 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 (number_ != null) { output.writeMessage(1, getNumber()); } if (explanation_ != null) { output.writeMessage(2, getExplanation()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (number_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNumber()); } if (explanation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExplanation()); } 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.AnswerProto.Value)) { return super.equals(obj); } ai.grakn.rpc.proto.AnswerProto.Value other = (ai.grakn.rpc.proto.AnswerProto.Value) obj; boolean result = true; result = result && (hasNumber() == other.hasNumber()); if (hasNumber()) { result = result && getNumber() .equals(other.getNumber()); } result = result && (hasExplanation() == other.hasExplanation()); if (hasExplanation()) { result = result && getExplanation() .equals(other.getExplanation()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasNumber()) { hash = (37 * hash) + NUMBER_FIELD_NUMBER; hash = (53 * hash) + getNumber().hashCode(); } if (hasExplanation()) { hash = (37 * hash) + EXPLANATION_FIELD_NUMBER; hash = (53 * hash) + getExplanation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.AnswerProto.Value parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.Value 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.AnswerProto.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.Value parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.AnswerProto.Value parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.Value 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.AnswerProto.Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.Value 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.AnswerProto.Value parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.Value 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.AnswerProto.Value 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.Value} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Value) ai.grakn.rpc.proto.AnswerProto.ValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Value_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.Value.class, ai.grakn.rpc.proto.AnswerProto.Value.Builder.class); } // Construct using ai.grakn.rpc.proto.AnswerProto.Value.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 (numberBuilder_ == null) { number_ = null; } else { number_ = null; numberBuilder_ = null; } if (explanationBuilder_ == null) { explanation_ = null; } else { explanation_ = null; explanationBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Value_descriptor; } public ai.grakn.rpc.proto.AnswerProto.Value getDefaultInstanceForType() { return ai.grakn.rpc.proto.AnswerProto.Value.getDefaultInstance(); } public ai.grakn.rpc.proto.AnswerProto.Value build() { ai.grakn.rpc.proto.AnswerProto.Value result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.AnswerProto.Value buildPartial() { ai.grakn.rpc.proto.AnswerProto.Value result = new ai.grakn.rpc.proto.AnswerProto.Value(this); if (numberBuilder_ == null) { result.number_ = number_; } else { result.number_ = numberBuilder_.build(); } if (explanationBuilder_ == null) { result.explanation_ = explanation_; } else { result.explanation_ = explanationBuilder_.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.AnswerProto.Value) { return mergeFrom((ai.grakn.rpc.proto.AnswerProto.Value)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.AnswerProto.Value other) { if (other == ai.grakn.rpc.proto.AnswerProto.Value.getDefaultInstance()) return this; if (other.hasNumber()) { mergeNumber(other.getNumber()); } if (other.hasExplanation()) { mergeExplanation(other.getExplanation()); } 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.AnswerProto.Value parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.AnswerProto.Value) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.AnswerProto.Number number_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Number, ai.grakn.rpc.proto.AnswerProto.Number.Builder, ai.grakn.rpc.proto.AnswerProto.NumberOrBuilder> numberBuilder_; /** * <code>optional .session.Number number = 1;</code> */ public boolean hasNumber() { return numberBuilder_ != null || number_ != null; } /** * <code>optional .session.Number number = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.Number getNumber() { if (numberBuilder_ == null) { return number_ == null ? ai.grakn.rpc.proto.AnswerProto.Number.getDefaultInstance() : number_; } else { return numberBuilder_.getMessage(); } } /** * <code>optional .session.Number number = 1;</code> */ public Builder setNumber(ai.grakn.rpc.proto.AnswerProto.Number value) { if (numberBuilder_ == null) { if (value == null) { throw new NullPointerException(); } number_ = value; onChanged(); } else { numberBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Number number = 1;</code> */ public Builder setNumber( ai.grakn.rpc.proto.AnswerProto.Number.Builder builderForValue) { if (numberBuilder_ == null) { number_ = builderForValue.build(); onChanged(); } else { numberBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Number number = 1;</code> */ public Builder mergeNumber(ai.grakn.rpc.proto.AnswerProto.Number value) { if (numberBuilder_ == null) { if (number_ != null) { number_ = ai.grakn.rpc.proto.AnswerProto.Number.newBuilder(number_).mergeFrom(value).buildPartial(); } else { number_ = value; } onChanged(); } else { numberBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Number number = 1;</code> */ public Builder clearNumber() { if (numberBuilder_ == null) { number_ = null; onChanged(); } else { number_ = null; numberBuilder_ = null; } return this; } /** * <code>optional .session.Number number = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.Number.Builder getNumberBuilder() { onChanged(); return getNumberFieldBuilder().getBuilder(); } /** * <code>optional .session.Number number = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.NumberOrBuilder getNumberOrBuilder() { if (numberBuilder_ != null) { return numberBuilder_.getMessageOrBuilder(); } else { return number_ == null ? ai.grakn.rpc.proto.AnswerProto.Number.getDefaultInstance() : number_; } } /** * <code>optional .session.Number number = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Number, ai.grakn.rpc.proto.AnswerProto.Number.Builder, ai.grakn.rpc.proto.AnswerProto.NumberOrBuilder> getNumberFieldBuilder() { if (numberBuilder_ == null) { numberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Number, ai.grakn.rpc.proto.AnswerProto.Number.Builder, ai.grakn.rpc.proto.AnswerProto.NumberOrBuilder>( getNumber(), getParentForChildren(), isClean()); number_ = null; } return numberBuilder_; } private ai.grakn.rpc.proto.AnswerProto.Explanation explanation_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder> explanationBuilder_; /** * <code>optional .session.Explanation explanation = 2;</code> */ public boolean hasExplanation() { return explanationBuilder_ != null || explanation_ != null; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation getExplanation() { if (explanationBuilder_ == null) { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } else { return explanationBuilder_.getMessage(); } } /** * <code>optional .session.Explanation explanation = 2;</code> */ public Builder setExplanation(ai.grakn.rpc.proto.AnswerProto.Explanation value) { if (explanationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } explanation_ = value; onChanged(); } else { explanationBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public Builder setExplanation( ai.grakn.rpc.proto.AnswerProto.Explanation.Builder builderForValue) { if (explanationBuilder_ == null) { explanation_ = builderForValue.build(); onChanged(); } else { explanationBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public Builder mergeExplanation(ai.grakn.rpc.proto.AnswerProto.Explanation value) { if (explanationBuilder_ == null) { if (explanation_ != null) { explanation_ = ai.grakn.rpc.proto.AnswerProto.Explanation.newBuilder(explanation_).mergeFrom(value).buildPartial(); } else { explanation_ = value; } onChanged(); } else { explanationBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public Builder clearExplanation() { if (explanationBuilder_ == null) { explanation_ = null; onChanged(); } else { explanation_ = null; explanationBuilder_ = null; } return this; } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.Explanation.Builder getExplanationBuilder() { onChanged(); return getExplanationFieldBuilder().getBuilder(); } /** * <code>optional .session.Explanation explanation = 2;</code> */ public ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder getExplanationOrBuilder() { if (explanationBuilder_ != null) { return explanationBuilder_.getMessageOrBuilder(); } else { return explanation_ == null ? ai.grakn.rpc.proto.AnswerProto.Explanation.getDefaultInstance() : explanation_; } } /** * <code>optional .session.Explanation explanation = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder> getExplanationFieldBuilder() { if (explanationBuilder_ == null) { explanationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.AnswerProto.Explanation, ai.grakn.rpc.proto.AnswerProto.Explanation.Builder, ai.grakn.rpc.proto.AnswerProto.ExplanationOrBuilder>( getExplanation(), getParentForChildren(), isClean()); explanation_ = null; } return explanationBuilder_; } 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.Value) } // @@protoc_insertion_point(class_scope:session.Value) private static final ai.grakn.rpc.proto.AnswerProto.Value DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.AnswerProto.Value(); } public static ai.grakn.rpc.proto.AnswerProto.Value getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Value> PARSER = new com.google.protobuf.AbstractParser<Value>() { public Value parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Value(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Value> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Value> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.AnswerProto.Value getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConceptIdsOrBuilder extends // @@protoc_insertion_point(interface_extends:session.ConceptIds) com.google.protobuf.MessageOrBuilder { /** * <code>repeated string ids = 1;</code> */ java.util.List<java.lang.String> getIdsList(); /** * <code>repeated string ids = 1;</code> */ int getIdsCount(); /** * <code>repeated string ids = 1;</code> */ java.lang.String getIds(int index); /** * <code>repeated string ids = 1;</code> */ com.google.protobuf.ByteString getIdsBytes(int index); } /** * Protobuf type {@code session.ConceptIds} */ public static final class ConceptIds extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.ConceptIds) ConceptIdsOrBuilder { // Use ConceptIds.newBuilder() to construct. private ConceptIds(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ConceptIds() { ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ConceptIds( 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(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { ids_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } ids_.add(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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { ids_ = ids_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptIds_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptIds_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.ConceptIds.class, ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder.class); } public static final int IDS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList ids_; /** * <code>repeated string ids = 1;</code> */ public com.google.protobuf.ProtocolStringList getIdsList() { return ids_; } /** * <code>repeated string ids = 1;</code> */ public int getIdsCount() { return ids_.size(); } /** * <code>repeated string ids = 1;</code> */ public java.lang.String getIds(int index) { return ids_.get(index); } /** * <code>repeated string ids = 1;</code> */ public com.google.protobuf.ByteString getIdsBytes(int index) { return ids_.getByteString(index); } 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 { for (int i = 0; i < ids_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ids_.getRaw(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < ids_.size(); i++) { dataSize += computeStringSizeNoTag(ids_.getRaw(i)); } size += dataSize; size += 1 * getIdsList().size(); } 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.AnswerProto.ConceptIds)) { return super.equals(obj); } ai.grakn.rpc.proto.AnswerProto.ConceptIds other = (ai.grakn.rpc.proto.AnswerProto.ConceptIds) obj; boolean result = true; result = result && getIdsList() .equals(other.getIdsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getIdsCount() > 0) { hash = (37 * hash) + IDS_FIELD_NUMBER; hash = (53 * hash) + getIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.AnswerProto.ConceptIds parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.ConceptIds 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.AnswerProto.ConceptIds parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.ConceptIds parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.AnswerProto.ConceptIds parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.ConceptIds 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.AnswerProto.ConceptIds parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.ConceptIds 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.AnswerProto.ConceptIds parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.ConceptIds 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.AnswerProto.ConceptIds 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.ConceptIds} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.ConceptIds) ai.grakn.rpc.proto.AnswerProto.ConceptIdsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptIds_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptIds_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.ConceptIds.class, ai.grakn.rpc.proto.AnswerProto.ConceptIds.Builder.class); } // Construct using ai.grakn.rpc.proto.AnswerProto.ConceptIds.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(); ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_ConceptIds_descriptor; } public ai.grakn.rpc.proto.AnswerProto.ConceptIds getDefaultInstanceForType() { return ai.grakn.rpc.proto.AnswerProto.ConceptIds.getDefaultInstance(); } public ai.grakn.rpc.proto.AnswerProto.ConceptIds build() { ai.grakn.rpc.proto.AnswerProto.ConceptIds result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.AnswerProto.ConceptIds buildPartial() { ai.grakn.rpc.proto.AnswerProto.ConceptIds result = new ai.grakn.rpc.proto.AnswerProto.ConceptIds(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { ids_ = ids_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.ids_ = ids_; 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.AnswerProto.ConceptIds) { return mergeFrom((ai.grakn.rpc.proto.AnswerProto.ConceptIds)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.AnswerProto.ConceptIds other) { if (other == ai.grakn.rpc.proto.AnswerProto.ConceptIds.getDefaultInstance()) return this; if (!other.ids_.isEmpty()) { if (ids_.isEmpty()) { ids_ = other.ids_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIdsIsMutable(); ids_.addAll(other.ids_); } 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.AnswerProto.ConceptIds parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.AnswerProto.ConceptIds) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIdsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { ids_ = new com.google.protobuf.LazyStringArrayList(ids_); bitField0_ |= 0x00000001; } } /** * <code>repeated string ids = 1;</code> */ public com.google.protobuf.ProtocolStringList getIdsList() { return ids_.getUnmodifiableView(); } /** * <code>repeated string ids = 1;</code> */ public int getIdsCount() { return ids_.size(); } /** * <code>repeated string ids = 1;</code> */ public java.lang.String getIds(int index) { return ids_.get(index); } /** * <code>repeated string ids = 1;</code> */ public com.google.protobuf.ByteString getIdsBytes(int index) { return ids_.getByteString(index); } /** * <code>repeated string ids = 1;</code> */ public Builder setIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureIdsIsMutable(); ids_.set(index, value); onChanged(); return this; } /** * <code>repeated string ids = 1;</code> */ public Builder addIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureIdsIsMutable(); ids_.add(value); onChanged(); return this; } /** * <code>repeated string ids = 1;</code> */ public Builder addAllIds( java.lang.Iterable<java.lang.String> values) { ensureIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ids_); onChanged(); return this; } /** * <code>repeated string ids = 1;</code> */ public Builder clearIds() { ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>repeated string ids = 1;</code> */ public Builder addIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureIdsIsMutable(); ids_.add(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.ConceptIds) } // @@protoc_insertion_point(class_scope:session.ConceptIds) private static final ai.grakn.rpc.proto.AnswerProto.ConceptIds DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.AnswerProto.ConceptIds(); } public static ai.grakn.rpc.proto.AnswerProto.ConceptIds getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ConceptIds> PARSER = new com.google.protobuf.AbstractParser<ConceptIds>() { public ConceptIds parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConceptIds(input, extensionRegistry); } }; public static com.google.protobuf.Parser<ConceptIds> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ConceptIds> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.AnswerProto.ConceptIds getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NumberOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Number) com.google.protobuf.MessageOrBuilder { /** * <pre> * We use a string to contain the full representation of a number * </pre> * * <code>optional string value = 1;</code> */ java.lang.String getValue(); /** * <pre> * We use a string to contain the full representation of a number * </pre> * * <code>optional string value = 1;</code> */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code session.Number} */ public static final class Number extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Number) NumberOrBuilder { // Use Number.newBuilder() to construct. private Number(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Number() { value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Number( 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(); value_ = 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.AnswerProto.internal_static_session_Number_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Number_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.Number.class, ai.grakn.rpc.proto.AnswerProto.Number.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** * <pre> * We use a string to contain the full representation of a number * </pre> * * <code>optional string value = 1;</code> */ public java.lang.String getValue() { java.lang.Object ref = value_; 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(); value_ = s; return s; } } /** * <pre> * We use a string to contain the full representation of a number * </pre> * * <code>optional string value = 1;</code> */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = 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 (!getValueBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getValueBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } 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.AnswerProto.Number)) { return super.equals(obj); } ai.grakn.rpc.proto.AnswerProto.Number other = (ai.grakn.rpc.proto.AnswerProto.Number) obj; boolean result = true; 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(); 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.AnswerProto.Number parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.Number 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.AnswerProto.Number parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.AnswerProto.Number parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.AnswerProto.Number parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.Number 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.AnswerProto.Number parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.Number 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.AnswerProto.Number parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.AnswerProto.Number 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.AnswerProto.Number 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.Number} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Number) ai.grakn.rpc.proto.AnswerProto.NumberOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Number_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Number_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.AnswerProto.Number.class, ai.grakn.rpc.proto.AnswerProto.Number.Builder.class); } // Construct using ai.grakn.rpc.proto.AnswerProto.Number.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(); value_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.AnswerProto.internal_static_session_Number_descriptor; } public ai.grakn.rpc.proto.AnswerProto.Number getDefaultInstanceForType() { return ai.grakn.rpc.proto.AnswerProto.Number.getDefaultInstance(); } public ai.grakn.rpc.proto.AnswerProto.Number build() { ai.grakn.rpc.proto.AnswerProto.Number result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.AnswerProto.Number buildPartial() { ai.grakn.rpc.proto.AnswerProto.Number result = new ai.grakn.rpc.proto.AnswerProto.Number(this); result.value_ = value_; 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.AnswerProto.Number) { return mergeFrom((ai.grakn.rpc.proto.AnswerProto.Number)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.AnswerProto.Number other) { if (other == ai.grakn.rpc.proto.AnswerProto.Number.getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; 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.AnswerProto.Number parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.AnswerProto.Number) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object value_ = ""; /** * <pre> * We use a string to contain the full representation of a number * </pre> * * <code>optional string value = 1;</code> */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * <pre> * We use a string to contain the full representation of a number * </pre> * * <code>optional string value = 1;</code> */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <pre> * We use a string to contain the full representation of a number * </pre> * * <code>optional string value = 1;</code> */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * <pre> * We use a string to contain the full representation of a number * </pre> * * <code>optional string value = 1;</code> */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * <pre> * We use a string to contain the full representation of a number * </pre> * * <code>optional string value = 1;</code> */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = 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.Number) } // @@protoc_insertion_point(class_scope:session.Number) private static final ai.grakn.rpc.proto.AnswerProto.Number DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.AnswerProto.Number(); } public static ai.grakn.rpc.proto.AnswerProto.Number getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Number> PARSER = new com.google.protobuf.AbstractParser<Number>() { public Number parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Number(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Number> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Number> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.AnswerProto.Number getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Answer_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Answer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Explanation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Explanation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AnswerGroup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AnswerGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_ConceptMap_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_ConceptMap_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_ConceptMap_MapEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_ConceptMap_MapEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_ConceptList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_ConceptList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_ConceptSet_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_ConceptSet_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_ConceptSetMeasure_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_ConceptSetMeasure_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Value_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Value_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_ConceptIds_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_ConceptIds_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Number_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Number_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\014Answer.proto\022\007session\032\rConcept.proto\"\234" + "\002\n\006Answer\022+\n\013answerGroup\030\001 \001(\0132\024.session" + ".AnswerGroupH\000\022)\n\nconceptMap\030\002 \001(\0132\023.ses" + "sion.ConceptMapH\000\022+\n\013conceptList\030\003 \001(\0132\024" + ".session.ConceptListH\000\022)\n\nconceptSet\030\004 \001" + "(\0132\023.session.ConceptSetH\000\0227\n\021conceptSetM" + "easure\030\005 \001(\0132\032.session.ConceptSetMeasure" + "H\000\022\037\n\005value\030\006 \001(\0132\016.session.ValueH\000B\010\n\006a" + "nswer\"D\n\013Explanation\022\017\n\007pattern\030\001 \001(\t\022$\n" + "\007answers\030\002 \003(\0132\023.session.ConceptMap\"{\n\013A", "nswerGroup\022\037\n\005owner\030\001 \001(\0132\020.session.Conc" + "ept\022 \n\007answers\030\002 \003(\0132\017.session.Answer\022)\n" + "\013explanation\030\003 \001(\0132\024.session.Explanation" + "\"\240\001\n\nConceptMap\022)\n\003map\030\001 \003(\0132\034.session.C" + "onceptMap.MapEntry\022)\n\013explanation\030\002 \001(\0132" + "\024.session.Explanation\032<\n\010MapEntry\022\013\n\003key" + "\030\001 \001(\t\022\037\n\005value\030\002 \001(\0132\020.session.Concept:" + "\0028\001\"[\n\013ConceptList\022!\n\004list\030\001 \001(\0132\023.sessi" + "on.ConceptIds\022)\n\013explanation\030\002 \001(\0132\024.ses" + "sion.Explanation\"Y\n\nConceptSet\022 \n\003set\030\001 ", "\001(\0132\023.session.ConceptIds\022)\n\013explanation\030" + "\002 \001(\0132\024.session.Explanation\"\206\001\n\021ConceptS" + "etMeasure\022 \n\003set\030\001 \001(\0132\023.session.Concept" + "Ids\022$\n\013measurement\030\002 \001(\0132\017.session.Numbe" + "r\022)\n\013explanation\030\003 \001(\0132\024.session.Explana" + "tion\"S\n\005Value\022\037\n\006number\030\001 \001(\0132\017.session." + "Number\022)\n\013explanation\030\002 \001(\0132\024.session.Ex" + "planation\"\031\n\nConceptIds\022\013\n\003ids\030\001 \003(\t\"\027\n\006" + "Number\022\r\n\005value\030\001 \001(\tB!\n\022ai.grakn.rpc.pr" + "otoB\013AnswerProtob\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { ai.grakn.rpc.proto.ConceptProto.getDescriptor(), }, assigner); internal_static_session_Answer_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_session_Answer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Answer_descriptor, new java.lang.String[] { "AnswerGroup", "ConceptMap", "ConceptList", "ConceptSet", "ConceptSetMeasure", "Value", "Answer", }); internal_static_session_Explanation_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_session_Explanation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Explanation_descriptor, new java.lang.String[] { "Pattern", "Answers", }); internal_static_session_AnswerGroup_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_session_AnswerGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AnswerGroup_descriptor, new java.lang.String[] { "Owner", "Answers", "Explanation", }); internal_static_session_ConceptMap_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_session_ConceptMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_ConceptMap_descriptor, new java.lang.String[] { "Map", "Explanation", }); internal_static_session_ConceptMap_MapEntry_descriptor = internal_static_session_ConceptMap_descriptor.getNestedTypes().get(0); internal_static_session_ConceptMap_MapEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_ConceptMap_MapEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_session_ConceptList_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_session_ConceptList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_ConceptList_descriptor, new java.lang.String[] { "List", "Explanation", }); internal_static_session_ConceptSet_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_session_ConceptSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_ConceptSet_descriptor, new java.lang.String[] { "Set", "Explanation", }); internal_static_session_ConceptSetMeasure_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_session_ConceptSetMeasure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_ConceptSetMeasure_descriptor, new java.lang.String[] { "Set", "Measurement", "Explanation", }); internal_static_session_Value_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_session_Value_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Value_descriptor, new java.lang.String[] { "Number", "Explanation", }); internal_static_session_ConceptIds_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_session_ConceptIds_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_ConceptIds_descriptor, new java.lang.String[] { "Ids", }); internal_static_session_Number_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_session_Number_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Number_descriptor, new java.lang.String[] { "Value", }); ai.grakn.rpc.proto.ConceptProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/rpc
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/rpc/proto/ConceptProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Concept.proto package ai.grakn.rpc.proto; public final class ConceptProto { private ConceptProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface MethodOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Method) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Method} */ public static final class Method extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Method) MethodOrBuilder { // Use Method.newBuilder() to construct. private Method(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Method() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Method( 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.ConceptProto.internal_static_session_Method_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Method.class, ai.grakn.rpc.proto.ConceptProto.Method.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Method.Req) com.google.protobuf.MessageOrBuilder { /** * <pre> * Concept method requests * </pre> * * <code>optional .session.Concept.Delete.Req concept_delete_req = 100;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req getConceptDeleteReq(); /** * <pre> * Concept method requests * </pre> * * <code>optional .session.Concept.Delete.Req concept_delete_req = 100;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept.Delete.ReqOrBuilder getConceptDeleteReqOrBuilder(); /** * <pre> * SchemaConcept method requests * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Req schemaConcept_isImplicit_req = 200;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req getSchemaConceptIsImplicitReq(); /** * <pre> * SchemaConcept method requests * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Req schemaConcept_isImplicit_req = 200;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.ReqOrBuilder getSchemaConceptIsImplicitReqOrBuilder(); /** * <code>optional .session.SchemaConcept.GetLabel.Req schemaConcept_getLabel_req = 201;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req getSchemaConceptGetLabelReq(); /** * <code>optional .session.SchemaConcept.GetLabel.Req schemaConcept_getLabel_req = 201;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.ReqOrBuilder getSchemaConceptGetLabelReqOrBuilder(); /** * <code>optional .session.SchemaConcept.SetLabel.Req schemaConcept_setLabel_req = 202;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req getSchemaConceptSetLabelReq(); /** * <code>optional .session.SchemaConcept.SetLabel.Req schemaConcept_setLabel_req = 202;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.ReqOrBuilder getSchemaConceptSetLabelReqOrBuilder(); /** * <code>optional .session.SchemaConcept.GetSup.Req schemaConcept_getSup_req = 203;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req getSchemaConceptGetSupReq(); /** * <code>optional .session.SchemaConcept.GetSup.Req schemaConcept_getSup_req = 203;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.ReqOrBuilder getSchemaConceptGetSupReqOrBuilder(); /** * <code>optional .session.SchemaConcept.SetSup.Req schemaConcept_setSup_req = 204;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req getSchemaConceptSetSupReq(); /** * <code>optional .session.SchemaConcept.SetSup.Req schemaConcept_setSup_req = 204;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.ReqOrBuilder getSchemaConceptSetSupReqOrBuilder(); /** * <code>optional .session.SchemaConcept.Sups.Req schemaConcept_sups_req = 205;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req getSchemaConceptSupsReq(); /** * <code>optional .session.SchemaConcept.Sups.Req schemaConcept_sups_req = 205;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.ReqOrBuilder getSchemaConceptSupsReqOrBuilder(); /** * <code>optional .session.SchemaConcept.Subs.Req schemaConcept_subs_req = 206;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req getSchemaConceptSubsReq(); /** * <code>optional .session.SchemaConcept.Subs.Req schemaConcept_subs_req = 206;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.ReqOrBuilder getSchemaConceptSubsReqOrBuilder(); /** * <pre> * Rule method requests * </pre> * * <code>optional .session.Rule.When.Req rule_when_req = 300;</code> */ ai.grakn.rpc.proto.ConceptProto.Rule.When.Req getRuleWhenReq(); /** * <pre> * Rule method requests * </pre> * * <code>optional .session.Rule.When.Req rule_when_req = 300;</code> */ ai.grakn.rpc.proto.ConceptProto.Rule.When.ReqOrBuilder getRuleWhenReqOrBuilder(); /** * <code>optional .session.Rule.Then.Req rule_then_req = 301;</code> */ ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req getRuleThenReq(); /** * <code>optional .session.Rule.Then.Req rule_then_req = 301;</code> */ ai.grakn.rpc.proto.ConceptProto.Rule.Then.ReqOrBuilder getRuleThenReqOrBuilder(); /** * <pre> * Role method requests * </pre> * * <code>optional .session.Role.Relations.Req role_relations_req = 401;</code> */ ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req getRoleRelationsReq(); /** * <pre> * Role method requests * </pre> * * <code>optional .session.Role.Relations.Req role_relations_req = 401;</code> */ ai.grakn.rpc.proto.ConceptProto.Role.Relations.ReqOrBuilder getRoleRelationsReqOrBuilder(); /** * <code>optional .session.Role.Players.Req role_players_req = 402;</code> */ ai.grakn.rpc.proto.ConceptProto.Role.Players.Req getRolePlayersReq(); /** * <code>optional .session.Role.Players.Req role_players_req = 402;</code> */ ai.grakn.rpc.proto.ConceptProto.Role.Players.ReqOrBuilder getRolePlayersReqOrBuilder(); /** * <pre> * Type method requests * </pre> * * <code>optional .session.Type.IsAbstract.Req type_isAbstract_req = 500;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req getTypeIsAbstractReq(); /** * <pre> * Type method requests * </pre> * * <code>optional .session.Type.IsAbstract.Req type_isAbstract_req = 500;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.ReqOrBuilder getTypeIsAbstractReqOrBuilder(); /** * <code>optional .session.Type.SetAbstract.Req type_setAbstract_req = 501;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req getTypeSetAbstractReq(); /** * <code>optional .session.Type.SetAbstract.Req type_setAbstract_req = 501;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.ReqOrBuilder getTypeSetAbstractReqOrBuilder(); /** * <code>optional .session.Type.Instances.Req type_instances_req = 502;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req getTypeInstancesReq(); /** * <code>optional .session.Type.Instances.Req type_instances_req = 502;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Instances.ReqOrBuilder getTypeInstancesReqOrBuilder(); /** * <code>optional .session.Type.Keys.Req type_keys_req = 503;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req getTypeKeysReq(); /** * <code>optional .session.Type.Keys.Req type_keys_req = 503;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Keys.ReqOrBuilder getTypeKeysReqOrBuilder(); /** * <code>optional .session.Type.Attributes.Req type_attributes_req = 504;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req getTypeAttributesReq(); /** * <code>optional .session.Type.Attributes.Req type_attributes_req = 504;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Attributes.ReqOrBuilder getTypeAttributesReqOrBuilder(); /** * <code>optional .session.Type.Playing.Req type_playing_req = 505;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req getTypePlayingReq(); /** * <code>optional .session.Type.Playing.Req type_playing_req = 505;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Playing.ReqOrBuilder getTypePlayingReqOrBuilder(); /** * <code>optional .session.Type.Has.Req type_has_req = 506;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Has.Req getTypeHasReq(); /** * <code>optional .session.Type.Has.Req type_has_req = 506;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Has.ReqOrBuilder getTypeHasReqOrBuilder(); /** * <code>optional .session.Type.Key.Req type_key_req = 507;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Key.Req getTypeKeyReq(); /** * <code>optional .session.Type.Key.Req type_key_req = 507;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Key.ReqOrBuilder getTypeKeyReqOrBuilder(); /** * <code>optional .session.Type.Plays.Req type_plays_req = 508;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req getTypePlaysReq(); /** * <code>optional .session.Type.Plays.Req type_plays_req = 508;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Plays.ReqOrBuilder getTypePlaysReqOrBuilder(); /** * <code>optional .session.Type.Unhas.Req type_unhas_req = 509;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req getTypeUnhasReq(); /** * <code>optional .session.Type.Unhas.Req type_unhas_req = 509;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Unhas.ReqOrBuilder getTypeUnhasReqOrBuilder(); /** * <code>optional .session.Type.Unkey.Req type_unkey_req = 510;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req getTypeUnkeyReq(); /** * <code>optional .session.Type.Unkey.Req type_unkey_req = 510;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Unkey.ReqOrBuilder getTypeUnkeyReqOrBuilder(); /** * <code>optional .session.Type.Unplay.Req type_unplay_req = 511;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req getTypeUnplayReq(); /** * <code>optional .session.Type.Unplay.Req type_unplay_req = 511;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Unplay.ReqOrBuilder getTypeUnplayReqOrBuilder(); /** * <pre> * EntityType method requests * </pre> * * <code>optional .session.EntityType.Create.Req entityType_create_req = 600;</code> */ ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req getEntityTypeCreateReq(); /** * <pre> * EntityType method requests * </pre> * * <code>optional .session.EntityType.Create.Req entityType_create_req = 600;</code> */ ai.grakn.rpc.proto.ConceptProto.EntityType.Create.ReqOrBuilder getEntityTypeCreateReqOrBuilder(); /** * <pre> * RelationType method requests * </pre> * * <code>optional .session.RelationType.Create.Req relationType_create_req = 700;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req getRelationTypeCreateReq(); /** * <pre> * RelationType method requests * </pre> * * <code>optional .session.RelationType.Create.Req relationType_create_req = 700;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Create.ReqOrBuilder getRelationTypeCreateReqOrBuilder(); /** * <code>optional .session.RelationType.Roles.Req relationType_roles_req = 701;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req getRelationTypeRolesReq(); /** * <code>optional .session.RelationType.Roles.Req relationType_roles_req = 701;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.ReqOrBuilder getRelationTypeRolesReqOrBuilder(); /** * <code>optional .session.RelationType.Relates.Req relationType_relates_req = 702;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req getRelationTypeRelatesReq(); /** * <code>optional .session.RelationType.Relates.Req relationType_relates_req = 702;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.ReqOrBuilder getRelationTypeRelatesReqOrBuilder(); /** * <code>optional .session.RelationType.Unrelate.Req relationType_unrelate_req = 703;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req getRelationTypeUnrelateReq(); /** * <code>optional .session.RelationType.Unrelate.Req relationType_unrelate_req = 703;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.ReqOrBuilder getRelationTypeUnrelateReqOrBuilder(); /** * <pre> * AttributeType method requests * </pre> * * <code>optional .session.AttributeType.Create.Req attributeType_create_req = 800;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req getAttributeTypeCreateReq(); /** * <pre> * AttributeType method requests * </pre> * * <code>optional .session.AttributeType.Create.Req attributeType_create_req = 800;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.ReqOrBuilder getAttributeTypeCreateReqOrBuilder(); /** * <code>optional .session.AttributeType.Attribute.Req attributeType_attribute_req = 801;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req getAttributeTypeAttributeReq(); /** * <code>optional .session.AttributeType.Attribute.Req attributeType_attribute_req = 801;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.ReqOrBuilder getAttributeTypeAttributeReqOrBuilder(); /** * <code>optional .session.AttributeType.DataType.Req attributeType_dataType_req = 802;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req getAttributeTypeDataTypeReq(); /** * <code>optional .session.AttributeType.DataType.Req attributeType_dataType_req = 802;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.ReqOrBuilder getAttributeTypeDataTypeReqOrBuilder(); /** * <code>optional .session.AttributeType.GetRegex.Req attributeType_getRegex_req = 803;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req getAttributeTypeGetRegexReq(); /** * <code>optional .session.AttributeType.GetRegex.Req attributeType_getRegex_req = 803;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.ReqOrBuilder getAttributeTypeGetRegexReqOrBuilder(); /** * <code>optional .session.AttributeType.SetRegex.Req attributeType_setRegex_req = 804;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req getAttributeTypeSetRegexReq(); /** * <code>optional .session.AttributeType.SetRegex.Req attributeType_setRegex_req = 804;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.ReqOrBuilder getAttributeTypeSetRegexReqOrBuilder(); /** * <pre> * Thing method requests * </pre> * * <code>optional .session.Thing.Type.Req thing_type_req = 900;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req getThingTypeReq(); /** * <pre> * Thing method requests * </pre> * * <code>optional .session.Thing.Type.Req thing_type_req = 900;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Type.ReqOrBuilder getThingTypeReqOrBuilder(); /** * <code>optional .session.Thing.IsInferred.Req thing_isInferred_req = 901;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req getThingIsInferredReq(); /** * <code>optional .session.Thing.IsInferred.Req thing_isInferred_req = 901;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.ReqOrBuilder getThingIsInferredReqOrBuilder(); /** * <code>optional .session.Thing.Keys.Req thing_keys_req = 902;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req getThingKeysReq(); /** * <code>optional .session.Thing.Keys.Req thing_keys_req = 902;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Keys.ReqOrBuilder getThingKeysReqOrBuilder(); /** * <code>optional .session.Thing.Attributes.Req thing_attributes_req = 903;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req getThingAttributesReq(); /** * <code>optional .session.Thing.Attributes.Req thing_attributes_req = 903;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.ReqOrBuilder getThingAttributesReqOrBuilder(); /** * <code>optional .session.Thing.Relations.Req thing_relations_req = 904;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req getThingRelationsReq(); /** * <code>optional .session.Thing.Relations.Req thing_relations_req = 904;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Relations.ReqOrBuilder getThingRelationsReqOrBuilder(); /** * <code>optional .session.Thing.Roles.Req thing_roles_req = 905;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req getThingRolesReq(); /** * <code>optional .session.Thing.Roles.Req thing_roles_req = 905;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Roles.ReqOrBuilder getThingRolesReqOrBuilder(); /** * <code>optional .session.Thing.Relhas.Req thing_relhas_req = 906;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req getThingRelhasReq(); /** * <code>optional .session.Thing.Relhas.Req thing_relhas_req = 906;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.ReqOrBuilder getThingRelhasReqOrBuilder(); /** * <code>optional .session.Thing.Unhas.Req thing_unhas_req = 907;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req getThingUnhasReq(); /** * <code>optional .session.Thing.Unhas.Req thing_unhas_req = 907;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.ReqOrBuilder getThingUnhasReqOrBuilder(); /** * <pre> * Relation method requests * </pre> * * <code>optional .session.Relation.RolePlayersMap.Req relation_rolePlayersMap_req = 1000;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req getRelationRolePlayersMapReq(); /** * <pre> * Relation method requests * </pre> * * <code>optional .session.Relation.RolePlayersMap.Req relation_rolePlayersMap_req = 1000;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.ReqOrBuilder getRelationRolePlayersMapReqOrBuilder(); /** * <code>optional .session.Relation.RolePlayers.Req relation_rolePlayers_req = 1001;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req getRelationRolePlayersReq(); /** * <code>optional .session.Relation.RolePlayers.Req relation_rolePlayers_req = 1001;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.ReqOrBuilder getRelationRolePlayersReqOrBuilder(); /** * <code>optional .session.Relation.Assign.Req relation_assign_req = 1002;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req getRelationAssignReq(); /** * <code>optional .session.Relation.Assign.Req relation_assign_req = 1002;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.Assign.ReqOrBuilder getRelationAssignReqOrBuilder(); /** * <code>optional .session.Relation.Unassign.Req relation_unassign_req = 1003;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req getRelationUnassignReq(); /** * <code>optional .session.Relation.Unassign.Req relation_unassign_req = 1003;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.ReqOrBuilder getRelationUnassignReqOrBuilder(); /** * <pre> * Attribute method requests * </pre> * * <code>optional .session.Attribute.Value.Req attribute_value_req = 1100;</code> */ ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req getAttributeValueReq(); /** * <pre> * Attribute method requests * </pre> * * <code>optional .session.Attribute.Value.Req attribute_value_req = 1100;</code> */ ai.grakn.rpc.proto.ConceptProto.Attribute.Value.ReqOrBuilder getAttributeValueReqOrBuilder(); /** * <code>optional .session.Attribute.Owners.Req attribute_owners_req = 1101;</code> */ ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req getAttributeOwnersReq(); /** * <code>optional .session.Attribute.Owners.Req attribute_owners_req = 1101;</code> */ ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.ReqOrBuilder getAttributeOwnersReqOrBuilder(); public ai.grakn.rpc.proto.ConceptProto.Method.Req.ReqCase getReqCase(); } /** * Protobuf type {@code session.Method.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Method.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; int mutable_bitField1_ = 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 802: { ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.Builder subBuilder = null; if (reqCase_ == 100) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 100; break; } case 1602: { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.Builder subBuilder = null; if (reqCase_ == 200) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 200; break; } case 1610: { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.Builder subBuilder = null; if (reqCase_ == 201) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 201; break; } case 1618: { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.Builder subBuilder = null; if (reqCase_ == 202) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 202; break; } case 1626: { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.Builder subBuilder = null; if (reqCase_ == 203) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 203; break; } case 1634: { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.Builder subBuilder = null; if (reqCase_ == 204) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 204; break; } case 1642: { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.Builder subBuilder = null; if (reqCase_ == 205) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 205; break; } case 1650: { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.Builder subBuilder = null; if (reqCase_ == 206) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 206; break; } case 2402: { ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.Builder subBuilder = null; if (reqCase_ == 300) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Rule.When.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Rule.When.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 300; break; } case 2410: { ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.Builder subBuilder = null; if (reqCase_ == 301) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 301; break; } case 3210: { ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.Builder subBuilder = null; if (reqCase_ == 401) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 401; break; } case 3218: { ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.Builder subBuilder = null; if (reqCase_ == 402) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Role.Players.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Role.Players.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 402; break; } case 4002: { ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.Builder subBuilder = null; if (reqCase_ == 500) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 500; break; } case 4010: { ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.Builder subBuilder = null; if (reqCase_ == 501) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 501; break; } case 4018: { ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.Builder subBuilder = null; if (reqCase_ == 502) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 502; break; } case 4026: { ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.Builder subBuilder = null; if (reqCase_ == 503) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 503; break; } case 4034: { ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.Builder subBuilder = null; if (reqCase_ == 504) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 504; break; } case 4042: { ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.Builder subBuilder = null; if (reqCase_ == 505) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 505; break; } case 4050: { ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.Builder subBuilder = null; if (reqCase_ == 506) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Has.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Has.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 506; break; } case 4058: { ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.Builder subBuilder = null; if (reqCase_ == 507) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Key.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Key.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 507; break; } case 4066: { ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.Builder subBuilder = null; if (reqCase_ == 508) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 508; break; } case 4074: { ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.Builder subBuilder = null; if (reqCase_ == 509) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 509; break; } case 4082: { ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.Builder subBuilder = null; if (reqCase_ == 510) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 510; break; } case 4090: { ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.Builder subBuilder = null; if (reqCase_ == 511) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 511; break; } case 4802: { ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.Builder subBuilder = null; if (reqCase_ == 600) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 600; break; } case 5602: { ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.Builder subBuilder = null; if (reqCase_ == 700) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 700; break; } case 5610: { ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.Builder subBuilder = null; if (reqCase_ == 701) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 701; break; } case 5618: { ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.Builder subBuilder = null; if (reqCase_ == 702) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 702; break; } case 5626: { ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.Builder subBuilder = null; if (reqCase_ == 703) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 703; break; } case 6402: { ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.Builder subBuilder = null; if (reqCase_ == 800) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 800; break; } case 6410: { ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.Builder subBuilder = null; if (reqCase_ == 801) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 801; break; } case 6418: { ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.Builder subBuilder = null; if (reqCase_ == 802) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 802; break; } case 6426: { ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.Builder subBuilder = null; if (reqCase_ == 803) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 803; break; } case 6434: { ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.Builder subBuilder = null; if (reqCase_ == 804) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 804; break; } case 7202: { ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.Builder subBuilder = null; if (reqCase_ == 900) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 900; break; } case 7210: { ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.Builder subBuilder = null; if (reqCase_ == 901) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 901; break; } case 7218: { ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.Builder subBuilder = null; if (reqCase_ == 902) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 902; break; } case 7226: { ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.Builder subBuilder = null; if (reqCase_ == 903) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 903; break; } case 7234: { ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.Builder subBuilder = null; if (reqCase_ == 904) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 904; break; } case 7242: { ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.Builder subBuilder = null; if (reqCase_ == 905) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 905; break; } case 7250: { ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.Builder subBuilder = null; if (reqCase_ == 906) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 906; break; } case 7258: { ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.Builder subBuilder = null; if (reqCase_ == 907) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 907; break; } case 8002: { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.Builder subBuilder = null; if (reqCase_ == 1000) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 1000; break; } case 8010: { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.Builder subBuilder = null; if (reqCase_ == 1001) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 1001; break; } case 8018: { ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.Builder subBuilder = null; if (reqCase_ == 1002) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 1002; break; } case 8026: { ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.Builder subBuilder = null; if (reqCase_ == 1003) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 1003; break; } case 8802: { ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.Builder subBuilder = null; if (reqCase_ == 1100) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 1100; break; } case 8810: { ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.Builder subBuilder = null; if (reqCase_ == 1101) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 1101; 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.ConceptProto.internal_static_session_Method_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Method.Req.class, ai.grakn.rpc.proto.ConceptProto.Method.Req.Builder.class); } private int reqCase_ = 0; private java.lang.Object req_; public enum ReqCase implements com.google.protobuf.Internal.EnumLite { CONCEPT_DELETE_REQ(100), SCHEMACONCEPT_ISIMPLICIT_REQ(200), SCHEMACONCEPT_GETLABEL_REQ(201), SCHEMACONCEPT_SETLABEL_REQ(202), SCHEMACONCEPT_GETSUP_REQ(203), SCHEMACONCEPT_SETSUP_REQ(204), SCHEMACONCEPT_SUPS_REQ(205), SCHEMACONCEPT_SUBS_REQ(206), RULE_WHEN_REQ(300), RULE_THEN_REQ(301), ROLE_RELATIONS_REQ(401), ROLE_PLAYERS_REQ(402), TYPE_ISABSTRACT_REQ(500), TYPE_SETABSTRACT_REQ(501), TYPE_INSTANCES_REQ(502), TYPE_KEYS_REQ(503), TYPE_ATTRIBUTES_REQ(504), TYPE_PLAYING_REQ(505), TYPE_HAS_REQ(506), TYPE_KEY_REQ(507), TYPE_PLAYS_REQ(508), TYPE_UNHAS_REQ(509), TYPE_UNKEY_REQ(510), TYPE_UNPLAY_REQ(511), ENTITYTYPE_CREATE_REQ(600), RELATIONTYPE_CREATE_REQ(700), RELATIONTYPE_ROLES_REQ(701), RELATIONTYPE_RELATES_REQ(702), RELATIONTYPE_UNRELATE_REQ(703), ATTRIBUTETYPE_CREATE_REQ(800), ATTRIBUTETYPE_ATTRIBUTE_REQ(801), ATTRIBUTETYPE_DATATYPE_REQ(802), ATTRIBUTETYPE_GETREGEX_REQ(803), ATTRIBUTETYPE_SETREGEX_REQ(804), THING_TYPE_REQ(900), THING_ISINFERRED_REQ(901), THING_KEYS_REQ(902), THING_ATTRIBUTES_REQ(903), THING_RELATIONS_REQ(904), THING_ROLES_REQ(905), THING_RELHAS_REQ(906), THING_UNHAS_REQ(907), RELATION_ROLEPLAYERSMAP_REQ(1000), RELATION_ROLEPLAYERS_REQ(1001), RELATION_ASSIGN_REQ(1002), RELATION_UNASSIGN_REQ(1003), ATTRIBUTE_VALUE_REQ(1100), ATTRIBUTE_OWNERS_REQ(1101), REQ_NOT_SET(0); private final int value; private ReqCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ReqCase valueOf(int value) { return forNumber(value); } public static ReqCase forNumber(int value) { switch (value) { case 100: return CONCEPT_DELETE_REQ; case 200: return SCHEMACONCEPT_ISIMPLICIT_REQ; case 201: return SCHEMACONCEPT_GETLABEL_REQ; case 202: return SCHEMACONCEPT_SETLABEL_REQ; case 203: return SCHEMACONCEPT_GETSUP_REQ; case 204: return SCHEMACONCEPT_SETSUP_REQ; case 205: return SCHEMACONCEPT_SUPS_REQ; case 206: return SCHEMACONCEPT_SUBS_REQ; case 300: return RULE_WHEN_REQ; case 301: return RULE_THEN_REQ; case 401: return ROLE_RELATIONS_REQ; case 402: return ROLE_PLAYERS_REQ; case 500: return TYPE_ISABSTRACT_REQ; case 501: return TYPE_SETABSTRACT_REQ; case 502: return TYPE_INSTANCES_REQ; case 503: return TYPE_KEYS_REQ; case 504: return TYPE_ATTRIBUTES_REQ; case 505: return TYPE_PLAYING_REQ; case 506: return TYPE_HAS_REQ; case 507: return TYPE_KEY_REQ; case 508: return TYPE_PLAYS_REQ; case 509: return TYPE_UNHAS_REQ; case 510: return TYPE_UNKEY_REQ; case 511: return TYPE_UNPLAY_REQ; case 600: return ENTITYTYPE_CREATE_REQ; case 700: return RELATIONTYPE_CREATE_REQ; case 701: return RELATIONTYPE_ROLES_REQ; case 702: return RELATIONTYPE_RELATES_REQ; case 703: return RELATIONTYPE_UNRELATE_REQ; case 800: return ATTRIBUTETYPE_CREATE_REQ; case 801: return ATTRIBUTETYPE_ATTRIBUTE_REQ; case 802: return ATTRIBUTETYPE_DATATYPE_REQ; case 803: return ATTRIBUTETYPE_GETREGEX_REQ; case 804: return ATTRIBUTETYPE_SETREGEX_REQ; case 900: return THING_TYPE_REQ; case 901: return THING_ISINFERRED_REQ; case 902: return THING_KEYS_REQ; case 903: return THING_ATTRIBUTES_REQ; case 904: return THING_RELATIONS_REQ; case 905: return THING_ROLES_REQ; case 906: return THING_RELHAS_REQ; case 907: return THING_UNHAS_REQ; case 1000: return RELATION_ROLEPLAYERSMAP_REQ; case 1001: return RELATION_ROLEPLAYERS_REQ; case 1002: return RELATION_ASSIGN_REQ; case 1003: return RELATION_UNASSIGN_REQ; case 1100: return ATTRIBUTE_VALUE_REQ; case 1101: return ATTRIBUTE_OWNERS_REQ; case 0: return REQ_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ReqCase getReqCase() { return ReqCase.forNumber( reqCase_); } public static final int CONCEPT_DELETE_REQ_FIELD_NUMBER = 100; /** * <pre> * Concept method requests * </pre> * * <code>optional .session.Concept.Delete.Req concept_delete_req = 100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req getConceptDeleteReq() { if (reqCase_ == 100) { return (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.getDefaultInstance(); } /** * <pre> * Concept method requests * </pre> * * <code>optional .session.Concept.Delete.Req concept_delete_req = 100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.ReqOrBuilder getConceptDeleteReqOrBuilder() { if (reqCase_ == 100) { return (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.getDefaultInstance(); } public static final int SCHEMACONCEPT_ISIMPLICIT_REQ_FIELD_NUMBER = 200; /** * <pre> * SchemaConcept method requests * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Req schemaConcept_isImplicit_req = 200;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req getSchemaConceptIsImplicitReq() { if (reqCase_ == 200) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.getDefaultInstance(); } /** * <pre> * SchemaConcept method requests * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Req schemaConcept_isImplicit_req = 200;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.ReqOrBuilder getSchemaConceptIsImplicitReqOrBuilder() { if (reqCase_ == 200) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.getDefaultInstance(); } public static final int SCHEMACONCEPT_GETLABEL_REQ_FIELD_NUMBER = 201; /** * <code>optional .session.SchemaConcept.GetLabel.Req schemaConcept_getLabel_req = 201;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req getSchemaConceptGetLabelReq() { if (reqCase_ == 201) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.getDefaultInstance(); } /** * <code>optional .session.SchemaConcept.GetLabel.Req schemaConcept_getLabel_req = 201;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.ReqOrBuilder getSchemaConceptGetLabelReqOrBuilder() { if (reqCase_ == 201) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.getDefaultInstance(); } public static final int SCHEMACONCEPT_SETLABEL_REQ_FIELD_NUMBER = 202; /** * <code>optional .session.SchemaConcept.SetLabel.Req schemaConcept_setLabel_req = 202;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req getSchemaConceptSetLabelReq() { if (reqCase_ == 202) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.getDefaultInstance(); } /** * <code>optional .session.SchemaConcept.SetLabel.Req schemaConcept_setLabel_req = 202;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.ReqOrBuilder getSchemaConceptSetLabelReqOrBuilder() { if (reqCase_ == 202) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.getDefaultInstance(); } public static final int SCHEMACONCEPT_GETSUP_REQ_FIELD_NUMBER = 203; /** * <code>optional .session.SchemaConcept.GetSup.Req schemaConcept_getSup_req = 203;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req getSchemaConceptGetSupReq() { if (reqCase_ == 203) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.getDefaultInstance(); } /** * <code>optional .session.SchemaConcept.GetSup.Req schemaConcept_getSup_req = 203;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.ReqOrBuilder getSchemaConceptGetSupReqOrBuilder() { if (reqCase_ == 203) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.getDefaultInstance(); } public static final int SCHEMACONCEPT_SETSUP_REQ_FIELD_NUMBER = 204; /** * <code>optional .session.SchemaConcept.SetSup.Req schemaConcept_setSup_req = 204;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req getSchemaConceptSetSupReq() { if (reqCase_ == 204) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.getDefaultInstance(); } /** * <code>optional .session.SchemaConcept.SetSup.Req schemaConcept_setSup_req = 204;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.ReqOrBuilder getSchemaConceptSetSupReqOrBuilder() { if (reqCase_ == 204) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.getDefaultInstance(); } public static final int SCHEMACONCEPT_SUPS_REQ_FIELD_NUMBER = 205; /** * <code>optional .session.SchemaConcept.Sups.Req schemaConcept_sups_req = 205;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req getSchemaConceptSupsReq() { if (reqCase_ == 205) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.getDefaultInstance(); } /** * <code>optional .session.SchemaConcept.Sups.Req schemaConcept_sups_req = 205;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.ReqOrBuilder getSchemaConceptSupsReqOrBuilder() { if (reqCase_ == 205) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.getDefaultInstance(); } public static final int SCHEMACONCEPT_SUBS_REQ_FIELD_NUMBER = 206; /** * <code>optional .session.SchemaConcept.Subs.Req schemaConcept_subs_req = 206;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req getSchemaConceptSubsReq() { if (reqCase_ == 206) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.getDefaultInstance(); } /** * <code>optional .session.SchemaConcept.Subs.Req schemaConcept_subs_req = 206;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.ReqOrBuilder getSchemaConceptSubsReqOrBuilder() { if (reqCase_ == 206) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.getDefaultInstance(); } public static final int RULE_WHEN_REQ_FIELD_NUMBER = 300; /** * <pre> * Rule method requests * </pre> * * <code>optional .session.Rule.When.Req rule_when_req = 300;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.When.Req getRuleWhenReq() { if (reqCase_ == 300) { return (ai.grakn.rpc.proto.ConceptProto.Rule.When.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.getDefaultInstance(); } /** * <pre> * Rule method requests * </pre> * * <code>optional .session.Rule.When.Req rule_when_req = 300;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.When.ReqOrBuilder getRuleWhenReqOrBuilder() { if (reqCase_ == 300) { return (ai.grakn.rpc.proto.ConceptProto.Rule.When.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.getDefaultInstance(); } public static final int RULE_THEN_REQ_FIELD_NUMBER = 301; /** * <code>optional .session.Rule.Then.Req rule_then_req = 301;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req getRuleThenReq() { if (reqCase_ == 301) { return (ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.getDefaultInstance(); } /** * <code>optional .session.Rule.Then.Req rule_then_req = 301;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.Then.ReqOrBuilder getRuleThenReqOrBuilder() { if (reqCase_ == 301) { return (ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.getDefaultInstance(); } public static final int ROLE_RELATIONS_REQ_FIELD_NUMBER = 401; /** * <pre> * Role method requests * </pre> * * <code>optional .session.Role.Relations.Req role_relations_req = 401;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req getRoleRelationsReq() { if (reqCase_ == 401) { return (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.getDefaultInstance(); } /** * <pre> * Role method requests * </pre> * * <code>optional .session.Role.Relations.Req role_relations_req = 401;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Relations.ReqOrBuilder getRoleRelationsReqOrBuilder() { if (reqCase_ == 401) { return (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.getDefaultInstance(); } public static final int ROLE_PLAYERS_REQ_FIELD_NUMBER = 402; /** * <code>optional .session.Role.Players.Req role_players_req = 402;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Players.Req getRolePlayersReq() { if (reqCase_ == 402) { return (ai.grakn.rpc.proto.ConceptProto.Role.Players.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.getDefaultInstance(); } /** * <code>optional .session.Role.Players.Req role_players_req = 402;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Players.ReqOrBuilder getRolePlayersReqOrBuilder() { if (reqCase_ == 402) { return (ai.grakn.rpc.proto.ConceptProto.Role.Players.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.getDefaultInstance(); } public static final int TYPE_ISABSTRACT_REQ_FIELD_NUMBER = 500; /** * <pre> * Type method requests * </pre> * * <code>optional .session.Type.IsAbstract.Req type_isAbstract_req = 500;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req getTypeIsAbstractReq() { if (reqCase_ == 500) { return (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.getDefaultInstance(); } /** * <pre> * Type method requests * </pre> * * <code>optional .session.Type.IsAbstract.Req type_isAbstract_req = 500;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.ReqOrBuilder getTypeIsAbstractReqOrBuilder() { if (reqCase_ == 500) { return (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.getDefaultInstance(); } public static final int TYPE_SETABSTRACT_REQ_FIELD_NUMBER = 501; /** * <code>optional .session.Type.SetAbstract.Req type_setAbstract_req = 501;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req getTypeSetAbstractReq() { if (reqCase_ == 501) { return (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.getDefaultInstance(); } /** * <code>optional .session.Type.SetAbstract.Req type_setAbstract_req = 501;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.ReqOrBuilder getTypeSetAbstractReqOrBuilder() { if (reqCase_ == 501) { return (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.getDefaultInstance(); } public static final int TYPE_INSTANCES_REQ_FIELD_NUMBER = 502; /** * <code>optional .session.Type.Instances.Req type_instances_req = 502;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req getTypeInstancesReq() { if (reqCase_ == 502) { return (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.getDefaultInstance(); } /** * <code>optional .session.Type.Instances.Req type_instances_req = 502;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Instances.ReqOrBuilder getTypeInstancesReqOrBuilder() { if (reqCase_ == 502) { return (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.getDefaultInstance(); } public static final int TYPE_KEYS_REQ_FIELD_NUMBER = 503; /** * <code>optional .session.Type.Keys.Req type_keys_req = 503;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req getTypeKeysReq() { if (reqCase_ == 503) { return (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.getDefaultInstance(); } /** * <code>optional .session.Type.Keys.Req type_keys_req = 503;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Keys.ReqOrBuilder getTypeKeysReqOrBuilder() { if (reqCase_ == 503) { return (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.getDefaultInstance(); } public static final int TYPE_ATTRIBUTES_REQ_FIELD_NUMBER = 504; /** * <code>optional .session.Type.Attributes.Req type_attributes_req = 504;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req getTypeAttributesReq() { if (reqCase_ == 504) { return (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.getDefaultInstance(); } /** * <code>optional .session.Type.Attributes.Req type_attributes_req = 504;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.ReqOrBuilder getTypeAttributesReqOrBuilder() { if (reqCase_ == 504) { return (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.getDefaultInstance(); } public static final int TYPE_PLAYING_REQ_FIELD_NUMBER = 505; /** * <code>optional .session.Type.Playing.Req type_playing_req = 505;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req getTypePlayingReq() { if (reqCase_ == 505) { return (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.getDefaultInstance(); } /** * <code>optional .session.Type.Playing.Req type_playing_req = 505;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Playing.ReqOrBuilder getTypePlayingReqOrBuilder() { if (reqCase_ == 505) { return (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.getDefaultInstance(); } public static final int TYPE_HAS_REQ_FIELD_NUMBER = 506; /** * <code>optional .session.Type.Has.Req type_has_req = 506;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Has.Req getTypeHasReq() { if (reqCase_ == 506) { return (ai.grakn.rpc.proto.ConceptProto.Type.Has.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.getDefaultInstance(); } /** * <code>optional .session.Type.Has.Req type_has_req = 506;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Has.ReqOrBuilder getTypeHasReqOrBuilder() { if (reqCase_ == 506) { return (ai.grakn.rpc.proto.ConceptProto.Type.Has.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.getDefaultInstance(); } public static final int TYPE_KEY_REQ_FIELD_NUMBER = 507; /** * <code>optional .session.Type.Key.Req type_key_req = 507;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Key.Req getTypeKeyReq() { if (reqCase_ == 507) { return (ai.grakn.rpc.proto.ConceptProto.Type.Key.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.getDefaultInstance(); } /** * <code>optional .session.Type.Key.Req type_key_req = 507;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Key.ReqOrBuilder getTypeKeyReqOrBuilder() { if (reqCase_ == 507) { return (ai.grakn.rpc.proto.ConceptProto.Type.Key.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.getDefaultInstance(); } public static final int TYPE_PLAYS_REQ_FIELD_NUMBER = 508; /** * <code>optional .session.Type.Plays.Req type_plays_req = 508;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req getTypePlaysReq() { if (reqCase_ == 508) { return (ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.getDefaultInstance(); } /** * <code>optional .session.Type.Plays.Req type_plays_req = 508;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Plays.ReqOrBuilder getTypePlaysReqOrBuilder() { if (reqCase_ == 508) { return (ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.getDefaultInstance(); } public static final int TYPE_UNHAS_REQ_FIELD_NUMBER = 509; /** * <code>optional .session.Type.Unhas.Req type_unhas_req = 509;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req getTypeUnhasReq() { if (reqCase_ == 509) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.getDefaultInstance(); } /** * <code>optional .session.Type.Unhas.Req type_unhas_req = 509;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.ReqOrBuilder getTypeUnhasReqOrBuilder() { if (reqCase_ == 509) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.getDefaultInstance(); } public static final int TYPE_UNKEY_REQ_FIELD_NUMBER = 510; /** * <code>optional .session.Type.Unkey.Req type_unkey_req = 510;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req getTypeUnkeyReq() { if (reqCase_ == 510) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.getDefaultInstance(); } /** * <code>optional .session.Type.Unkey.Req type_unkey_req = 510;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.ReqOrBuilder getTypeUnkeyReqOrBuilder() { if (reqCase_ == 510) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.getDefaultInstance(); } public static final int TYPE_UNPLAY_REQ_FIELD_NUMBER = 511; /** * <code>optional .session.Type.Unplay.Req type_unplay_req = 511;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req getTypeUnplayReq() { if (reqCase_ == 511) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.getDefaultInstance(); } /** * <code>optional .session.Type.Unplay.Req type_unplay_req = 511;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.ReqOrBuilder getTypeUnplayReqOrBuilder() { if (reqCase_ == 511) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.getDefaultInstance(); } public static final int ENTITYTYPE_CREATE_REQ_FIELD_NUMBER = 600; /** * <pre> * EntityType method requests * </pre> * * <code>optional .session.EntityType.Create.Req entityType_create_req = 600;</code> */ public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req getEntityTypeCreateReq() { if (reqCase_ == 600) { return (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.getDefaultInstance(); } /** * <pre> * EntityType method requests * </pre> * * <code>optional .session.EntityType.Create.Req entityType_create_req = 600;</code> */ public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.ReqOrBuilder getEntityTypeCreateReqOrBuilder() { if (reqCase_ == 600) { return (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.getDefaultInstance(); } public static final int RELATIONTYPE_CREATE_REQ_FIELD_NUMBER = 700; /** * <pre> * RelationType method requests * </pre> * * <code>optional .session.RelationType.Create.Req relationType_create_req = 700;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req getRelationTypeCreateReq() { if (reqCase_ == 700) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.getDefaultInstance(); } /** * <pre> * RelationType method requests * </pre> * * <code>optional .session.RelationType.Create.Req relationType_create_req = 700;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.ReqOrBuilder getRelationTypeCreateReqOrBuilder() { if (reqCase_ == 700) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.getDefaultInstance(); } public static final int RELATIONTYPE_ROLES_REQ_FIELD_NUMBER = 701; /** * <code>optional .session.RelationType.Roles.Req relationType_roles_req = 701;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req getRelationTypeRolesReq() { if (reqCase_ == 701) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.getDefaultInstance(); } /** * <code>optional .session.RelationType.Roles.Req relationType_roles_req = 701;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.ReqOrBuilder getRelationTypeRolesReqOrBuilder() { if (reqCase_ == 701) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.getDefaultInstance(); } public static final int RELATIONTYPE_RELATES_REQ_FIELD_NUMBER = 702; /** * <code>optional .session.RelationType.Relates.Req relationType_relates_req = 702;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req getRelationTypeRelatesReq() { if (reqCase_ == 702) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.getDefaultInstance(); } /** * <code>optional .session.RelationType.Relates.Req relationType_relates_req = 702;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.ReqOrBuilder getRelationTypeRelatesReqOrBuilder() { if (reqCase_ == 702) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.getDefaultInstance(); } public static final int RELATIONTYPE_UNRELATE_REQ_FIELD_NUMBER = 703; /** * <code>optional .session.RelationType.Unrelate.Req relationType_unrelate_req = 703;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req getRelationTypeUnrelateReq() { if (reqCase_ == 703) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.getDefaultInstance(); } /** * <code>optional .session.RelationType.Unrelate.Req relationType_unrelate_req = 703;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.ReqOrBuilder getRelationTypeUnrelateReqOrBuilder() { if (reqCase_ == 703) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.getDefaultInstance(); } public static final int ATTRIBUTETYPE_CREATE_REQ_FIELD_NUMBER = 800; /** * <pre> * AttributeType method requests * </pre> * * <code>optional .session.AttributeType.Create.Req attributeType_create_req = 800;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req getAttributeTypeCreateReq() { if (reqCase_ == 800) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.getDefaultInstance(); } /** * <pre> * AttributeType method requests * </pre> * * <code>optional .session.AttributeType.Create.Req attributeType_create_req = 800;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.ReqOrBuilder getAttributeTypeCreateReqOrBuilder() { if (reqCase_ == 800) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.getDefaultInstance(); } public static final int ATTRIBUTETYPE_ATTRIBUTE_REQ_FIELD_NUMBER = 801; /** * <code>optional .session.AttributeType.Attribute.Req attributeType_attribute_req = 801;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req getAttributeTypeAttributeReq() { if (reqCase_ == 801) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.getDefaultInstance(); } /** * <code>optional .session.AttributeType.Attribute.Req attributeType_attribute_req = 801;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.ReqOrBuilder getAttributeTypeAttributeReqOrBuilder() { if (reqCase_ == 801) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.getDefaultInstance(); } public static final int ATTRIBUTETYPE_DATATYPE_REQ_FIELD_NUMBER = 802; /** * <code>optional .session.AttributeType.DataType.Req attributeType_dataType_req = 802;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req getAttributeTypeDataTypeReq() { if (reqCase_ == 802) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.getDefaultInstance(); } /** * <code>optional .session.AttributeType.DataType.Req attributeType_dataType_req = 802;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.ReqOrBuilder getAttributeTypeDataTypeReqOrBuilder() { if (reqCase_ == 802) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.getDefaultInstance(); } public static final int ATTRIBUTETYPE_GETREGEX_REQ_FIELD_NUMBER = 803; /** * <code>optional .session.AttributeType.GetRegex.Req attributeType_getRegex_req = 803;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req getAttributeTypeGetRegexReq() { if (reqCase_ == 803) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.getDefaultInstance(); } /** * <code>optional .session.AttributeType.GetRegex.Req attributeType_getRegex_req = 803;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.ReqOrBuilder getAttributeTypeGetRegexReqOrBuilder() { if (reqCase_ == 803) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.getDefaultInstance(); } public static final int ATTRIBUTETYPE_SETREGEX_REQ_FIELD_NUMBER = 804; /** * <code>optional .session.AttributeType.SetRegex.Req attributeType_setRegex_req = 804;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req getAttributeTypeSetRegexReq() { if (reqCase_ == 804) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.getDefaultInstance(); } /** * <code>optional .session.AttributeType.SetRegex.Req attributeType_setRegex_req = 804;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.ReqOrBuilder getAttributeTypeSetRegexReqOrBuilder() { if (reqCase_ == 804) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.getDefaultInstance(); } public static final int THING_TYPE_REQ_FIELD_NUMBER = 900; /** * <pre> * Thing method requests * </pre> * * <code>optional .session.Thing.Type.Req thing_type_req = 900;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req getThingTypeReq() { if (reqCase_ == 900) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.getDefaultInstance(); } /** * <pre> * Thing method requests * </pre> * * <code>optional .session.Thing.Type.Req thing_type_req = 900;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Type.ReqOrBuilder getThingTypeReqOrBuilder() { if (reqCase_ == 900) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.getDefaultInstance(); } public static final int THING_ISINFERRED_REQ_FIELD_NUMBER = 901; /** * <code>optional .session.Thing.IsInferred.Req thing_isInferred_req = 901;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req getThingIsInferredReq() { if (reqCase_ == 901) { return (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.getDefaultInstance(); } /** * <code>optional .session.Thing.IsInferred.Req thing_isInferred_req = 901;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.ReqOrBuilder getThingIsInferredReqOrBuilder() { if (reqCase_ == 901) { return (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.getDefaultInstance(); } public static final int THING_KEYS_REQ_FIELD_NUMBER = 902; /** * <code>optional .session.Thing.Keys.Req thing_keys_req = 902;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req getThingKeysReq() { if (reqCase_ == 902) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.getDefaultInstance(); } /** * <code>optional .session.Thing.Keys.Req thing_keys_req = 902;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.ReqOrBuilder getThingKeysReqOrBuilder() { if (reqCase_ == 902) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.getDefaultInstance(); } public static final int THING_ATTRIBUTES_REQ_FIELD_NUMBER = 903; /** * <code>optional .session.Thing.Attributes.Req thing_attributes_req = 903;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req getThingAttributesReq() { if (reqCase_ == 903) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.getDefaultInstance(); } /** * <code>optional .session.Thing.Attributes.Req thing_attributes_req = 903;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.ReqOrBuilder getThingAttributesReqOrBuilder() { if (reqCase_ == 903) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.getDefaultInstance(); } public static final int THING_RELATIONS_REQ_FIELD_NUMBER = 904; /** * <code>optional .session.Thing.Relations.Req thing_relations_req = 904;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req getThingRelationsReq() { if (reqCase_ == 904) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.getDefaultInstance(); } /** * <code>optional .session.Thing.Relations.Req thing_relations_req = 904;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.ReqOrBuilder getThingRelationsReqOrBuilder() { if (reqCase_ == 904) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.getDefaultInstance(); } public static final int THING_ROLES_REQ_FIELD_NUMBER = 905; /** * <code>optional .session.Thing.Roles.Req thing_roles_req = 905;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req getThingRolesReq() { if (reqCase_ == 905) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.getDefaultInstance(); } /** * <code>optional .session.Thing.Roles.Req thing_roles_req = 905;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.ReqOrBuilder getThingRolesReqOrBuilder() { if (reqCase_ == 905) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.getDefaultInstance(); } public static final int THING_RELHAS_REQ_FIELD_NUMBER = 906; /** * <code>optional .session.Thing.Relhas.Req thing_relhas_req = 906;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req getThingRelhasReq() { if (reqCase_ == 906) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.getDefaultInstance(); } /** * <code>optional .session.Thing.Relhas.Req thing_relhas_req = 906;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.ReqOrBuilder getThingRelhasReqOrBuilder() { if (reqCase_ == 906) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.getDefaultInstance(); } public static final int THING_UNHAS_REQ_FIELD_NUMBER = 907; /** * <code>optional .session.Thing.Unhas.Req thing_unhas_req = 907;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req getThingUnhasReq() { if (reqCase_ == 907) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.getDefaultInstance(); } /** * <code>optional .session.Thing.Unhas.Req thing_unhas_req = 907;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.ReqOrBuilder getThingUnhasReqOrBuilder() { if (reqCase_ == 907) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.getDefaultInstance(); } public static final int RELATION_ROLEPLAYERSMAP_REQ_FIELD_NUMBER = 1000; /** * <pre> * Relation method requests * </pre> * * <code>optional .session.Relation.RolePlayersMap.Req relation_rolePlayersMap_req = 1000;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req getRelationRolePlayersMapReq() { if (reqCase_ == 1000) { return (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.getDefaultInstance(); } /** * <pre> * Relation method requests * </pre> * * <code>optional .session.Relation.RolePlayersMap.Req relation_rolePlayersMap_req = 1000;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.ReqOrBuilder getRelationRolePlayersMapReqOrBuilder() { if (reqCase_ == 1000) { return (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.getDefaultInstance(); } public static final int RELATION_ROLEPLAYERS_REQ_FIELD_NUMBER = 1001; /** * <code>optional .session.Relation.RolePlayers.Req relation_rolePlayers_req = 1001;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req getRelationRolePlayersReq() { if (reqCase_ == 1001) { return (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.getDefaultInstance(); } /** * <code>optional .session.Relation.RolePlayers.Req relation_rolePlayers_req = 1001;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.ReqOrBuilder getRelationRolePlayersReqOrBuilder() { if (reqCase_ == 1001) { return (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.getDefaultInstance(); } public static final int RELATION_ASSIGN_REQ_FIELD_NUMBER = 1002; /** * <code>optional .session.Relation.Assign.Req relation_assign_req = 1002;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req getRelationAssignReq() { if (reqCase_ == 1002) { return (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.getDefaultInstance(); } /** * <code>optional .session.Relation.Assign.Req relation_assign_req = 1002;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.ReqOrBuilder getRelationAssignReqOrBuilder() { if (reqCase_ == 1002) { return (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.getDefaultInstance(); } public static final int RELATION_UNASSIGN_REQ_FIELD_NUMBER = 1003; /** * <code>optional .session.Relation.Unassign.Req relation_unassign_req = 1003;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req getRelationUnassignReq() { if (reqCase_ == 1003) { return (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.getDefaultInstance(); } /** * <code>optional .session.Relation.Unassign.Req relation_unassign_req = 1003;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.ReqOrBuilder getRelationUnassignReqOrBuilder() { if (reqCase_ == 1003) { return (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.getDefaultInstance(); } public static final int ATTRIBUTE_VALUE_REQ_FIELD_NUMBER = 1100; /** * <pre> * Attribute method requests * </pre> * * <code>optional .session.Attribute.Value.Req attribute_value_req = 1100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req getAttributeValueReq() { if (reqCase_ == 1100) { return (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.getDefaultInstance(); } /** * <pre> * Attribute method requests * </pre> * * <code>optional .session.Attribute.Value.Req attribute_value_req = 1100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.ReqOrBuilder getAttributeValueReqOrBuilder() { if (reqCase_ == 1100) { return (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.getDefaultInstance(); } public static final int ATTRIBUTE_OWNERS_REQ_FIELD_NUMBER = 1101; /** * <code>optional .session.Attribute.Owners.Req attribute_owners_req = 1101;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req getAttributeOwnersReq() { if (reqCase_ == 1101) { return (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.getDefaultInstance(); } /** * <code>optional .session.Attribute.Owners.Req attribute_owners_req = 1101;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.ReqOrBuilder getAttributeOwnersReqOrBuilder() { if (reqCase_ == 1101) { return (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (reqCase_ == 100) { output.writeMessage(100, (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req) req_); } if (reqCase_ == 200) { output.writeMessage(200, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req) req_); } if (reqCase_ == 201) { output.writeMessage(201, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req) req_); } if (reqCase_ == 202) { output.writeMessage(202, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req) req_); } if (reqCase_ == 203) { output.writeMessage(203, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req) req_); } if (reqCase_ == 204) { output.writeMessage(204, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req) req_); } if (reqCase_ == 205) { output.writeMessage(205, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req) req_); } if (reqCase_ == 206) { output.writeMessage(206, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req) req_); } if (reqCase_ == 300) { output.writeMessage(300, (ai.grakn.rpc.proto.ConceptProto.Rule.When.Req) req_); } if (reqCase_ == 301) { output.writeMessage(301, (ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req) req_); } if (reqCase_ == 401) { output.writeMessage(401, (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req) req_); } if (reqCase_ == 402) { output.writeMessage(402, (ai.grakn.rpc.proto.ConceptProto.Role.Players.Req) req_); } if (reqCase_ == 500) { output.writeMessage(500, (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req) req_); } if (reqCase_ == 501) { output.writeMessage(501, (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req) req_); } if (reqCase_ == 502) { output.writeMessage(502, (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req) req_); } if (reqCase_ == 503) { output.writeMessage(503, (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req) req_); } if (reqCase_ == 504) { output.writeMessage(504, (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req) req_); } if (reqCase_ == 505) { output.writeMessage(505, (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req) req_); } if (reqCase_ == 506) { output.writeMessage(506, (ai.grakn.rpc.proto.ConceptProto.Type.Has.Req) req_); } if (reqCase_ == 507) { output.writeMessage(507, (ai.grakn.rpc.proto.ConceptProto.Type.Key.Req) req_); } if (reqCase_ == 508) { output.writeMessage(508, (ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req) req_); } if (reqCase_ == 509) { output.writeMessage(509, (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req) req_); } if (reqCase_ == 510) { output.writeMessage(510, (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req) req_); } if (reqCase_ == 511) { output.writeMessage(511, (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req) req_); } if (reqCase_ == 600) { output.writeMessage(600, (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req) req_); } if (reqCase_ == 700) { output.writeMessage(700, (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req) req_); } if (reqCase_ == 701) { output.writeMessage(701, (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req) req_); } if (reqCase_ == 702) { output.writeMessage(702, (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req) req_); } if (reqCase_ == 703) { output.writeMessage(703, (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req) req_); } if (reqCase_ == 800) { output.writeMessage(800, (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req) req_); } if (reqCase_ == 801) { output.writeMessage(801, (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req) req_); } if (reqCase_ == 802) { output.writeMessage(802, (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req) req_); } if (reqCase_ == 803) { output.writeMessage(803, (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req) req_); } if (reqCase_ == 804) { output.writeMessage(804, (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req) req_); } if (reqCase_ == 900) { output.writeMessage(900, (ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req) req_); } if (reqCase_ == 901) { output.writeMessage(901, (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req) req_); } if (reqCase_ == 902) { output.writeMessage(902, (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req) req_); } if (reqCase_ == 903) { output.writeMessage(903, (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req) req_); } if (reqCase_ == 904) { output.writeMessage(904, (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req) req_); } if (reqCase_ == 905) { output.writeMessage(905, (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req) req_); } if (reqCase_ == 906) { output.writeMessage(906, (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req) req_); } if (reqCase_ == 907) { output.writeMessage(907, (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req) req_); } if (reqCase_ == 1000) { output.writeMessage(1000, (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req) req_); } if (reqCase_ == 1001) { output.writeMessage(1001, (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req) req_); } if (reqCase_ == 1002) { output.writeMessage(1002, (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req) req_); } if (reqCase_ == 1003) { output.writeMessage(1003, (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req) req_); } if (reqCase_ == 1100) { output.writeMessage(1100, (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req) req_); } if (reqCase_ == 1101) { output.writeMessage(1101, (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req) req_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (reqCase_ == 100) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(100, (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req) req_); } if (reqCase_ == 200) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(200, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req) req_); } if (reqCase_ == 201) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(201, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req) req_); } if (reqCase_ == 202) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(202, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req) req_); } if (reqCase_ == 203) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(203, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req) req_); } if (reqCase_ == 204) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(204, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req) req_); } if (reqCase_ == 205) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(205, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req) req_); } if (reqCase_ == 206) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(206, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req) req_); } if (reqCase_ == 300) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(300, (ai.grakn.rpc.proto.ConceptProto.Rule.When.Req) req_); } if (reqCase_ == 301) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(301, (ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req) req_); } if (reqCase_ == 401) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(401, (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req) req_); } if (reqCase_ == 402) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(402, (ai.grakn.rpc.proto.ConceptProto.Role.Players.Req) req_); } if (reqCase_ == 500) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(500, (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req) req_); } if (reqCase_ == 501) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(501, (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req) req_); } if (reqCase_ == 502) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(502, (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req) req_); } if (reqCase_ == 503) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(503, (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req) req_); } if (reqCase_ == 504) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(504, (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req) req_); } if (reqCase_ == 505) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(505, (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req) req_); } if (reqCase_ == 506) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(506, (ai.grakn.rpc.proto.ConceptProto.Type.Has.Req) req_); } if (reqCase_ == 507) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(507, (ai.grakn.rpc.proto.ConceptProto.Type.Key.Req) req_); } if (reqCase_ == 508) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(508, (ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req) req_); } if (reqCase_ == 509) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(509, (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req) req_); } if (reqCase_ == 510) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(510, (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req) req_); } if (reqCase_ == 511) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(511, (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req) req_); } if (reqCase_ == 600) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(600, (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req) req_); } if (reqCase_ == 700) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(700, (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req) req_); } if (reqCase_ == 701) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(701, (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req) req_); } if (reqCase_ == 702) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(702, (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req) req_); } if (reqCase_ == 703) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(703, (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req) req_); } if (reqCase_ == 800) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(800, (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req) req_); } if (reqCase_ == 801) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(801, (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req) req_); } if (reqCase_ == 802) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(802, (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req) req_); } if (reqCase_ == 803) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(803, (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req) req_); } if (reqCase_ == 804) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(804, (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req) req_); } if (reqCase_ == 900) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(900, (ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req) req_); } if (reqCase_ == 901) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(901, (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req) req_); } if (reqCase_ == 902) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(902, (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req) req_); } if (reqCase_ == 903) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(903, (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req) req_); } if (reqCase_ == 904) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(904, (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req) req_); } if (reqCase_ == 905) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(905, (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req) req_); } if (reqCase_ == 906) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(906, (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req) req_); } if (reqCase_ == 907) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(907, (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req) req_); } if (reqCase_ == 1000) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1000, (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req) req_); } if (reqCase_ == 1001) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1001, (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req) req_); } if (reqCase_ == 1002) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1002, (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req) req_); } if (reqCase_ == 1003) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1003, (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req) req_); } if (reqCase_ == 1100) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1100, (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req) req_); } if (reqCase_ == 1101) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1101, (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req) req_); } 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.ConceptProto.Method.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Method.Req other = (ai.grakn.rpc.proto.ConceptProto.Method.Req) obj; boolean result = true; result = result && getReqCase().equals( other.getReqCase()); if (!result) return false; switch (reqCase_) { case 100: result = result && getConceptDeleteReq() .equals(other.getConceptDeleteReq()); break; case 200: result = result && getSchemaConceptIsImplicitReq() .equals(other.getSchemaConceptIsImplicitReq()); break; case 201: result = result && getSchemaConceptGetLabelReq() .equals(other.getSchemaConceptGetLabelReq()); break; case 202: result = result && getSchemaConceptSetLabelReq() .equals(other.getSchemaConceptSetLabelReq()); break; case 203: result = result && getSchemaConceptGetSupReq() .equals(other.getSchemaConceptGetSupReq()); break; case 204: result = result && getSchemaConceptSetSupReq() .equals(other.getSchemaConceptSetSupReq()); break; case 205: result = result && getSchemaConceptSupsReq() .equals(other.getSchemaConceptSupsReq()); break; case 206: result = result && getSchemaConceptSubsReq() .equals(other.getSchemaConceptSubsReq()); break; case 300: result = result && getRuleWhenReq() .equals(other.getRuleWhenReq()); break; case 301: result = result && getRuleThenReq() .equals(other.getRuleThenReq()); break; case 401: result = result && getRoleRelationsReq() .equals(other.getRoleRelationsReq()); break; case 402: result = result && getRolePlayersReq() .equals(other.getRolePlayersReq()); break; case 500: result = result && getTypeIsAbstractReq() .equals(other.getTypeIsAbstractReq()); break; case 501: result = result && getTypeSetAbstractReq() .equals(other.getTypeSetAbstractReq()); break; case 502: result = result && getTypeInstancesReq() .equals(other.getTypeInstancesReq()); break; case 503: result = result && getTypeKeysReq() .equals(other.getTypeKeysReq()); break; case 504: result = result && getTypeAttributesReq() .equals(other.getTypeAttributesReq()); break; case 505: result = result && getTypePlayingReq() .equals(other.getTypePlayingReq()); break; case 506: result = result && getTypeHasReq() .equals(other.getTypeHasReq()); break; case 507: result = result && getTypeKeyReq() .equals(other.getTypeKeyReq()); break; case 508: result = result && getTypePlaysReq() .equals(other.getTypePlaysReq()); break; case 509: result = result && getTypeUnhasReq() .equals(other.getTypeUnhasReq()); break; case 510: result = result && getTypeUnkeyReq() .equals(other.getTypeUnkeyReq()); break; case 511: result = result && getTypeUnplayReq() .equals(other.getTypeUnplayReq()); break; case 600: result = result && getEntityTypeCreateReq() .equals(other.getEntityTypeCreateReq()); break; case 700: result = result && getRelationTypeCreateReq() .equals(other.getRelationTypeCreateReq()); break; case 701: result = result && getRelationTypeRolesReq() .equals(other.getRelationTypeRolesReq()); break; case 702: result = result && getRelationTypeRelatesReq() .equals(other.getRelationTypeRelatesReq()); break; case 703: result = result && getRelationTypeUnrelateReq() .equals(other.getRelationTypeUnrelateReq()); break; case 800: result = result && getAttributeTypeCreateReq() .equals(other.getAttributeTypeCreateReq()); break; case 801: result = result && getAttributeTypeAttributeReq() .equals(other.getAttributeTypeAttributeReq()); break; case 802: result = result && getAttributeTypeDataTypeReq() .equals(other.getAttributeTypeDataTypeReq()); break; case 803: result = result && getAttributeTypeGetRegexReq() .equals(other.getAttributeTypeGetRegexReq()); break; case 804: result = result && getAttributeTypeSetRegexReq() .equals(other.getAttributeTypeSetRegexReq()); break; case 900: result = result && getThingTypeReq() .equals(other.getThingTypeReq()); break; case 901: result = result && getThingIsInferredReq() .equals(other.getThingIsInferredReq()); break; case 902: result = result && getThingKeysReq() .equals(other.getThingKeysReq()); break; case 903: result = result && getThingAttributesReq() .equals(other.getThingAttributesReq()); break; case 904: result = result && getThingRelationsReq() .equals(other.getThingRelationsReq()); break; case 905: result = result && getThingRolesReq() .equals(other.getThingRolesReq()); break; case 906: result = result && getThingRelhasReq() .equals(other.getThingRelhasReq()); break; case 907: result = result && getThingUnhasReq() .equals(other.getThingUnhasReq()); break; case 1000: result = result && getRelationRolePlayersMapReq() .equals(other.getRelationRolePlayersMapReq()); break; case 1001: result = result && getRelationRolePlayersReq() .equals(other.getRelationRolePlayersReq()); break; case 1002: result = result && getRelationAssignReq() .equals(other.getRelationAssignReq()); break; case 1003: result = result && getRelationUnassignReq() .equals(other.getRelationUnassignReq()); break; case 1100: result = result && getAttributeValueReq() .equals(other.getAttributeValueReq()); break; case 1101: result = result && getAttributeOwnersReq() .equals(other.getAttributeOwnersReq()); 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 (reqCase_) { case 100: hash = (37 * hash) + CONCEPT_DELETE_REQ_FIELD_NUMBER; hash = (53 * hash) + getConceptDeleteReq().hashCode(); break; case 200: hash = (37 * hash) + SCHEMACONCEPT_ISIMPLICIT_REQ_FIELD_NUMBER; hash = (53 * hash) + getSchemaConceptIsImplicitReq().hashCode(); break; case 201: hash = (37 * hash) + SCHEMACONCEPT_GETLABEL_REQ_FIELD_NUMBER; hash = (53 * hash) + getSchemaConceptGetLabelReq().hashCode(); break; case 202: hash = (37 * hash) + SCHEMACONCEPT_SETLABEL_REQ_FIELD_NUMBER; hash = (53 * hash) + getSchemaConceptSetLabelReq().hashCode(); break; case 203: hash = (37 * hash) + SCHEMACONCEPT_GETSUP_REQ_FIELD_NUMBER; hash = (53 * hash) + getSchemaConceptGetSupReq().hashCode(); break; case 204: hash = (37 * hash) + SCHEMACONCEPT_SETSUP_REQ_FIELD_NUMBER; hash = (53 * hash) + getSchemaConceptSetSupReq().hashCode(); break; case 205: hash = (37 * hash) + SCHEMACONCEPT_SUPS_REQ_FIELD_NUMBER; hash = (53 * hash) + getSchemaConceptSupsReq().hashCode(); break; case 206: hash = (37 * hash) + SCHEMACONCEPT_SUBS_REQ_FIELD_NUMBER; hash = (53 * hash) + getSchemaConceptSubsReq().hashCode(); break; case 300: hash = (37 * hash) + RULE_WHEN_REQ_FIELD_NUMBER; hash = (53 * hash) + getRuleWhenReq().hashCode(); break; case 301: hash = (37 * hash) + RULE_THEN_REQ_FIELD_NUMBER; hash = (53 * hash) + getRuleThenReq().hashCode(); break; case 401: hash = (37 * hash) + ROLE_RELATIONS_REQ_FIELD_NUMBER; hash = (53 * hash) + getRoleRelationsReq().hashCode(); break; case 402: hash = (37 * hash) + ROLE_PLAYERS_REQ_FIELD_NUMBER; hash = (53 * hash) + getRolePlayersReq().hashCode(); break; case 500: hash = (37 * hash) + TYPE_ISABSTRACT_REQ_FIELD_NUMBER; hash = (53 * hash) + getTypeIsAbstractReq().hashCode(); break; case 501: hash = (37 * hash) + TYPE_SETABSTRACT_REQ_FIELD_NUMBER; hash = (53 * hash) + getTypeSetAbstractReq().hashCode(); break; case 502: hash = (37 * hash) + TYPE_INSTANCES_REQ_FIELD_NUMBER; hash = (53 * hash) + getTypeInstancesReq().hashCode(); break; case 503: hash = (37 * hash) + TYPE_KEYS_REQ_FIELD_NUMBER; hash = (53 * hash) + getTypeKeysReq().hashCode(); break; case 504: hash = (37 * hash) + TYPE_ATTRIBUTES_REQ_FIELD_NUMBER; hash = (53 * hash) + getTypeAttributesReq().hashCode(); break; case 505: hash = (37 * hash) + TYPE_PLAYING_REQ_FIELD_NUMBER; hash = (53 * hash) + getTypePlayingReq().hashCode(); break; case 506: hash = (37 * hash) + TYPE_HAS_REQ_FIELD_NUMBER; hash = (53 * hash) + getTypeHasReq().hashCode(); break; case 507: hash = (37 * hash) + TYPE_KEY_REQ_FIELD_NUMBER; hash = (53 * hash) + getTypeKeyReq().hashCode(); break; case 508: hash = (37 * hash) + TYPE_PLAYS_REQ_FIELD_NUMBER; hash = (53 * hash) + getTypePlaysReq().hashCode(); break; case 509: hash = (37 * hash) + TYPE_UNHAS_REQ_FIELD_NUMBER; hash = (53 * hash) + getTypeUnhasReq().hashCode(); break; case 510: hash = (37 * hash) + TYPE_UNKEY_REQ_FIELD_NUMBER; hash = (53 * hash) + getTypeUnkeyReq().hashCode(); break; case 511: hash = (37 * hash) + TYPE_UNPLAY_REQ_FIELD_NUMBER; hash = (53 * hash) + getTypeUnplayReq().hashCode(); break; case 600: hash = (37 * hash) + ENTITYTYPE_CREATE_REQ_FIELD_NUMBER; hash = (53 * hash) + getEntityTypeCreateReq().hashCode(); break; case 700: hash = (37 * hash) + RELATIONTYPE_CREATE_REQ_FIELD_NUMBER; hash = (53 * hash) + getRelationTypeCreateReq().hashCode(); break; case 701: hash = (37 * hash) + RELATIONTYPE_ROLES_REQ_FIELD_NUMBER; hash = (53 * hash) + getRelationTypeRolesReq().hashCode(); break; case 702: hash = (37 * hash) + RELATIONTYPE_RELATES_REQ_FIELD_NUMBER; hash = (53 * hash) + getRelationTypeRelatesReq().hashCode(); break; case 703: hash = (37 * hash) + RELATIONTYPE_UNRELATE_REQ_FIELD_NUMBER; hash = (53 * hash) + getRelationTypeUnrelateReq().hashCode(); break; case 800: hash = (37 * hash) + ATTRIBUTETYPE_CREATE_REQ_FIELD_NUMBER; hash = (53 * hash) + getAttributeTypeCreateReq().hashCode(); break; case 801: hash = (37 * hash) + ATTRIBUTETYPE_ATTRIBUTE_REQ_FIELD_NUMBER; hash = (53 * hash) + getAttributeTypeAttributeReq().hashCode(); break; case 802: hash = (37 * hash) + ATTRIBUTETYPE_DATATYPE_REQ_FIELD_NUMBER; hash = (53 * hash) + getAttributeTypeDataTypeReq().hashCode(); break; case 803: hash = (37 * hash) + ATTRIBUTETYPE_GETREGEX_REQ_FIELD_NUMBER; hash = (53 * hash) + getAttributeTypeGetRegexReq().hashCode(); break; case 804: hash = (37 * hash) + ATTRIBUTETYPE_SETREGEX_REQ_FIELD_NUMBER; hash = (53 * hash) + getAttributeTypeSetRegexReq().hashCode(); break; case 900: hash = (37 * hash) + THING_TYPE_REQ_FIELD_NUMBER; hash = (53 * hash) + getThingTypeReq().hashCode(); break; case 901: hash = (37 * hash) + THING_ISINFERRED_REQ_FIELD_NUMBER; hash = (53 * hash) + getThingIsInferredReq().hashCode(); break; case 902: hash = (37 * hash) + THING_KEYS_REQ_FIELD_NUMBER; hash = (53 * hash) + getThingKeysReq().hashCode(); break; case 903: hash = (37 * hash) + THING_ATTRIBUTES_REQ_FIELD_NUMBER; hash = (53 * hash) + getThingAttributesReq().hashCode(); break; case 904: hash = (37 * hash) + THING_RELATIONS_REQ_FIELD_NUMBER; hash = (53 * hash) + getThingRelationsReq().hashCode(); break; case 905: hash = (37 * hash) + THING_ROLES_REQ_FIELD_NUMBER; hash = (53 * hash) + getThingRolesReq().hashCode(); break; case 906: hash = (37 * hash) + THING_RELHAS_REQ_FIELD_NUMBER; hash = (53 * hash) + getThingRelhasReq().hashCode(); break; case 907: hash = (37 * hash) + THING_UNHAS_REQ_FIELD_NUMBER; hash = (53 * hash) + getThingUnhasReq().hashCode(); break; case 1000: hash = (37 * hash) + RELATION_ROLEPLAYERSMAP_REQ_FIELD_NUMBER; hash = (53 * hash) + getRelationRolePlayersMapReq().hashCode(); break; case 1001: hash = (37 * hash) + RELATION_ROLEPLAYERS_REQ_FIELD_NUMBER; hash = (53 * hash) + getRelationRolePlayersReq().hashCode(); break; case 1002: hash = (37 * hash) + RELATION_ASSIGN_REQ_FIELD_NUMBER; hash = (53 * hash) + getRelationAssignReq().hashCode(); break; case 1003: hash = (37 * hash) + RELATION_UNASSIGN_REQ_FIELD_NUMBER; hash = (53 * hash) + getRelationUnassignReq().hashCode(); break; case 1100: hash = (37 * hash) + ATTRIBUTE_VALUE_REQ_FIELD_NUMBER; hash = (53 * hash) + getAttributeValueReq().hashCode(); break; case 1101: hash = (37 * hash) + ATTRIBUTE_OWNERS_REQ_FIELD_NUMBER; hash = (53 * hash) + getAttributeOwnersReq().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Method.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.Method.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.Method.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.Method.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.Method.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.ConceptProto.Method.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.ConceptProto.Method.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.Method.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Method.Req) ai.grakn.rpc.proto.ConceptProto.Method.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Method.Req.class, ai.grakn.rpc.proto.ConceptProto.Method.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Method.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(); reqCase_ = 0; req_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Method.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Method.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Method.Req build() { ai.grakn.rpc.proto.ConceptProto.Method.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Method.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Method.Req result = new ai.grakn.rpc.proto.ConceptProto.Method.Req(this); if (reqCase_ == 100) { if (conceptDeleteReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = conceptDeleteReqBuilder_.build(); } } if (reqCase_ == 200) { if (schemaConceptIsImplicitReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = schemaConceptIsImplicitReqBuilder_.build(); } } if (reqCase_ == 201) { if (schemaConceptGetLabelReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = schemaConceptGetLabelReqBuilder_.build(); } } if (reqCase_ == 202) { if (schemaConceptSetLabelReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = schemaConceptSetLabelReqBuilder_.build(); } } if (reqCase_ == 203) { if (schemaConceptGetSupReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = schemaConceptGetSupReqBuilder_.build(); } } if (reqCase_ == 204) { if (schemaConceptSetSupReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = schemaConceptSetSupReqBuilder_.build(); } } if (reqCase_ == 205) { if (schemaConceptSupsReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = schemaConceptSupsReqBuilder_.build(); } } if (reqCase_ == 206) { if (schemaConceptSubsReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = schemaConceptSubsReqBuilder_.build(); } } if (reqCase_ == 300) { if (ruleWhenReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = ruleWhenReqBuilder_.build(); } } if (reqCase_ == 301) { if (ruleThenReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = ruleThenReqBuilder_.build(); } } if (reqCase_ == 401) { if (roleRelationsReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = roleRelationsReqBuilder_.build(); } } if (reqCase_ == 402) { if (rolePlayersReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = rolePlayersReqBuilder_.build(); } } if (reqCase_ == 500) { if (typeIsAbstractReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = typeIsAbstractReqBuilder_.build(); } } if (reqCase_ == 501) { if (typeSetAbstractReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = typeSetAbstractReqBuilder_.build(); } } if (reqCase_ == 502) { if (typeInstancesReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = typeInstancesReqBuilder_.build(); } } if (reqCase_ == 503) { if (typeKeysReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = typeKeysReqBuilder_.build(); } } if (reqCase_ == 504) { if (typeAttributesReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = typeAttributesReqBuilder_.build(); } } if (reqCase_ == 505) { if (typePlayingReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = typePlayingReqBuilder_.build(); } } if (reqCase_ == 506) { if (typeHasReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = typeHasReqBuilder_.build(); } } if (reqCase_ == 507) { if (typeKeyReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = typeKeyReqBuilder_.build(); } } if (reqCase_ == 508) { if (typePlaysReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = typePlaysReqBuilder_.build(); } } if (reqCase_ == 509) { if (typeUnhasReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = typeUnhasReqBuilder_.build(); } } if (reqCase_ == 510) { if (typeUnkeyReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = typeUnkeyReqBuilder_.build(); } } if (reqCase_ == 511) { if (typeUnplayReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = typeUnplayReqBuilder_.build(); } } if (reqCase_ == 600) { if (entityTypeCreateReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = entityTypeCreateReqBuilder_.build(); } } if (reqCase_ == 700) { if (relationTypeCreateReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = relationTypeCreateReqBuilder_.build(); } } if (reqCase_ == 701) { if (relationTypeRolesReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = relationTypeRolesReqBuilder_.build(); } } if (reqCase_ == 702) { if (relationTypeRelatesReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = relationTypeRelatesReqBuilder_.build(); } } if (reqCase_ == 703) { if (relationTypeUnrelateReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = relationTypeUnrelateReqBuilder_.build(); } } if (reqCase_ == 800) { if (attributeTypeCreateReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = attributeTypeCreateReqBuilder_.build(); } } if (reqCase_ == 801) { if (attributeTypeAttributeReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = attributeTypeAttributeReqBuilder_.build(); } } if (reqCase_ == 802) { if (attributeTypeDataTypeReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = attributeTypeDataTypeReqBuilder_.build(); } } if (reqCase_ == 803) { if (attributeTypeGetRegexReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = attributeTypeGetRegexReqBuilder_.build(); } } if (reqCase_ == 804) { if (attributeTypeSetRegexReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = attributeTypeSetRegexReqBuilder_.build(); } } if (reqCase_ == 900) { if (thingTypeReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = thingTypeReqBuilder_.build(); } } if (reqCase_ == 901) { if (thingIsInferredReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = thingIsInferredReqBuilder_.build(); } } if (reqCase_ == 902) { if (thingKeysReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = thingKeysReqBuilder_.build(); } } if (reqCase_ == 903) { if (thingAttributesReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = thingAttributesReqBuilder_.build(); } } if (reqCase_ == 904) { if (thingRelationsReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = thingRelationsReqBuilder_.build(); } } if (reqCase_ == 905) { if (thingRolesReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = thingRolesReqBuilder_.build(); } } if (reqCase_ == 906) { if (thingRelhasReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = thingRelhasReqBuilder_.build(); } } if (reqCase_ == 907) { if (thingUnhasReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = thingUnhasReqBuilder_.build(); } } if (reqCase_ == 1000) { if (relationRolePlayersMapReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = relationRolePlayersMapReqBuilder_.build(); } } if (reqCase_ == 1001) { if (relationRolePlayersReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = relationRolePlayersReqBuilder_.build(); } } if (reqCase_ == 1002) { if (relationAssignReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = relationAssignReqBuilder_.build(); } } if (reqCase_ == 1003) { if (relationUnassignReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = relationUnassignReqBuilder_.build(); } } if (reqCase_ == 1100) { if (attributeValueReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = attributeValueReqBuilder_.build(); } } if (reqCase_ == 1101) { if (attributeOwnersReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = attributeOwnersReqBuilder_.build(); } } result.reqCase_ = reqCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.grakn.rpc.proto.ConceptProto.Method.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Method.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Method.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Method.Req.getDefaultInstance()) return this; switch (other.getReqCase()) { case CONCEPT_DELETE_REQ: { mergeConceptDeleteReq(other.getConceptDeleteReq()); break; } case SCHEMACONCEPT_ISIMPLICIT_REQ: { mergeSchemaConceptIsImplicitReq(other.getSchemaConceptIsImplicitReq()); break; } case SCHEMACONCEPT_GETLABEL_REQ: { mergeSchemaConceptGetLabelReq(other.getSchemaConceptGetLabelReq()); break; } case SCHEMACONCEPT_SETLABEL_REQ: { mergeSchemaConceptSetLabelReq(other.getSchemaConceptSetLabelReq()); break; } case SCHEMACONCEPT_GETSUP_REQ: { mergeSchemaConceptGetSupReq(other.getSchemaConceptGetSupReq()); break; } case SCHEMACONCEPT_SETSUP_REQ: { mergeSchemaConceptSetSupReq(other.getSchemaConceptSetSupReq()); break; } case SCHEMACONCEPT_SUPS_REQ: { mergeSchemaConceptSupsReq(other.getSchemaConceptSupsReq()); break; } case SCHEMACONCEPT_SUBS_REQ: { mergeSchemaConceptSubsReq(other.getSchemaConceptSubsReq()); break; } case RULE_WHEN_REQ: { mergeRuleWhenReq(other.getRuleWhenReq()); break; } case RULE_THEN_REQ: { mergeRuleThenReq(other.getRuleThenReq()); break; } case ROLE_RELATIONS_REQ: { mergeRoleRelationsReq(other.getRoleRelationsReq()); break; } case ROLE_PLAYERS_REQ: { mergeRolePlayersReq(other.getRolePlayersReq()); break; } case TYPE_ISABSTRACT_REQ: { mergeTypeIsAbstractReq(other.getTypeIsAbstractReq()); break; } case TYPE_SETABSTRACT_REQ: { mergeTypeSetAbstractReq(other.getTypeSetAbstractReq()); break; } case TYPE_INSTANCES_REQ: { mergeTypeInstancesReq(other.getTypeInstancesReq()); break; } case TYPE_KEYS_REQ: { mergeTypeKeysReq(other.getTypeKeysReq()); break; } case TYPE_ATTRIBUTES_REQ: { mergeTypeAttributesReq(other.getTypeAttributesReq()); break; } case TYPE_PLAYING_REQ: { mergeTypePlayingReq(other.getTypePlayingReq()); break; } case TYPE_HAS_REQ: { mergeTypeHasReq(other.getTypeHasReq()); break; } case TYPE_KEY_REQ: { mergeTypeKeyReq(other.getTypeKeyReq()); break; } case TYPE_PLAYS_REQ: { mergeTypePlaysReq(other.getTypePlaysReq()); break; } case TYPE_UNHAS_REQ: { mergeTypeUnhasReq(other.getTypeUnhasReq()); break; } case TYPE_UNKEY_REQ: { mergeTypeUnkeyReq(other.getTypeUnkeyReq()); break; } case TYPE_UNPLAY_REQ: { mergeTypeUnplayReq(other.getTypeUnplayReq()); break; } case ENTITYTYPE_CREATE_REQ: { mergeEntityTypeCreateReq(other.getEntityTypeCreateReq()); break; } case RELATIONTYPE_CREATE_REQ: { mergeRelationTypeCreateReq(other.getRelationTypeCreateReq()); break; } case RELATIONTYPE_ROLES_REQ: { mergeRelationTypeRolesReq(other.getRelationTypeRolesReq()); break; } case RELATIONTYPE_RELATES_REQ: { mergeRelationTypeRelatesReq(other.getRelationTypeRelatesReq()); break; } case RELATIONTYPE_UNRELATE_REQ: { mergeRelationTypeUnrelateReq(other.getRelationTypeUnrelateReq()); break; } case ATTRIBUTETYPE_CREATE_REQ: { mergeAttributeTypeCreateReq(other.getAttributeTypeCreateReq()); break; } case ATTRIBUTETYPE_ATTRIBUTE_REQ: { mergeAttributeTypeAttributeReq(other.getAttributeTypeAttributeReq()); break; } case ATTRIBUTETYPE_DATATYPE_REQ: { mergeAttributeTypeDataTypeReq(other.getAttributeTypeDataTypeReq()); break; } case ATTRIBUTETYPE_GETREGEX_REQ: { mergeAttributeTypeGetRegexReq(other.getAttributeTypeGetRegexReq()); break; } case ATTRIBUTETYPE_SETREGEX_REQ: { mergeAttributeTypeSetRegexReq(other.getAttributeTypeSetRegexReq()); break; } case THING_TYPE_REQ: { mergeThingTypeReq(other.getThingTypeReq()); break; } case THING_ISINFERRED_REQ: { mergeThingIsInferredReq(other.getThingIsInferredReq()); break; } case THING_KEYS_REQ: { mergeThingKeysReq(other.getThingKeysReq()); break; } case THING_ATTRIBUTES_REQ: { mergeThingAttributesReq(other.getThingAttributesReq()); break; } case THING_RELATIONS_REQ: { mergeThingRelationsReq(other.getThingRelationsReq()); break; } case THING_ROLES_REQ: { mergeThingRolesReq(other.getThingRolesReq()); break; } case THING_RELHAS_REQ: { mergeThingRelhasReq(other.getThingRelhasReq()); break; } case THING_UNHAS_REQ: { mergeThingUnhasReq(other.getThingUnhasReq()); break; } case RELATION_ROLEPLAYERSMAP_REQ: { mergeRelationRolePlayersMapReq(other.getRelationRolePlayersMapReq()); break; } case RELATION_ROLEPLAYERS_REQ: { mergeRelationRolePlayersReq(other.getRelationRolePlayersReq()); break; } case RELATION_ASSIGN_REQ: { mergeRelationAssignReq(other.getRelationAssignReq()); break; } case RELATION_UNASSIGN_REQ: { mergeRelationUnassignReq(other.getRelationUnassignReq()); break; } case ATTRIBUTE_VALUE_REQ: { mergeAttributeValueReq(other.getAttributeValueReq()); break; } case ATTRIBUTE_OWNERS_REQ: { mergeAttributeOwnersReq(other.getAttributeOwnersReq()); break; } case REQ_NOT_SET: { break; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ai.grakn.rpc.proto.ConceptProto.Method.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Method.Req) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int reqCase_ = 0; private java.lang.Object req_; public ReqCase getReqCase() { return ReqCase.forNumber( reqCase_); } public Builder clearReq() { reqCase_ = 0; req_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.ReqOrBuilder> conceptDeleteReqBuilder_; /** * <pre> * Concept method requests * </pre> * * <code>optional .session.Concept.Delete.Req concept_delete_req = 100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req getConceptDeleteReq() { if (conceptDeleteReqBuilder_ == null) { if (reqCase_ == 100) { return (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.getDefaultInstance(); } else { if (reqCase_ == 100) { return conceptDeleteReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.getDefaultInstance(); } } /** * <pre> * Concept method requests * </pre> * * <code>optional .session.Concept.Delete.Req concept_delete_req = 100;</code> */ public Builder setConceptDeleteReq(ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req value) { if (conceptDeleteReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { conceptDeleteReqBuilder_.setMessage(value); } reqCase_ = 100; return this; } /** * <pre> * Concept method requests * </pre> * * <code>optional .session.Concept.Delete.Req concept_delete_req = 100;</code> */ public Builder setConceptDeleteReq( ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.Builder builderForValue) { if (conceptDeleteReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { conceptDeleteReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 100; return this; } /** * <pre> * Concept method requests * </pre> * * <code>optional .session.Concept.Delete.Req concept_delete_req = 100;</code> */ public Builder mergeConceptDeleteReq(ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req value) { if (conceptDeleteReqBuilder_ == null) { if (reqCase_ == 100 && req_ != ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 100) { conceptDeleteReqBuilder_.mergeFrom(value); } conceptDeleteReqBuilder_.setMessage(value); } reqCase_ = 100; return this; } /** * <pre> * Concept method requests * </pre> * * <code>optional .session.Concept.Delete.Req concept_delete_req = 100;</code> */ public Builder clearConceptDeleteReq() { if (conceptDeleteReqBuilder_ == null) { if (reqCase_ == 100) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 100) { reqCase_ = 0; req_ = null; } conceptDeleteReqBuilder_.clear(); } return this; } /** * <pre> * Concept method requests * </pre> * * <code>optional .session.Concept.Delete.Req concept_delete_req = 100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.Builder getConceptDeleteReqBuilder() { return getConceptDeleteReqFieldBuilder().getBuilder(); } /** * <pre> * Concept method requests * </pre> * * <code>optional .session.Concept.Delete.Req concept_delete_req = 100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.ReqOrBuilder getConceptDeleteReqOrBuilder() { if ((reqCase_ == 100) && (conceptDeleteReqBuilder_ != null)) { return conceptDeleteReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 100) { return (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.getDefaultInstance(); } } /** * <pre> * Concept method requests * </pre> * * <code>optional .session.Concept.Delete.Req concept_delete_req = 100;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.ReqOrBuilder> getConceptDeleteReqFieldBuilder() { if (conceptDeleteReqBuilder_ == null) { if (!(reqCase_ == 100)) { req_ = ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.getDefaultInstance(); } conceptDeleteReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 100; onChanged();; return conceptDeleteReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.ReqOrBuilder> schemaConceptIsImplicitReqBuilder_; /** * <pre> * SchemaConcept method requests * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Req schemaConcept_isImplicit_req = 200;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req getSchemaConceptIsImplicitReq() { if (schemaConceptIsImplicitReqBuilder_ == null) { if (reqCase_ == 200) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.getDefaultInstance(); } else { if (reqCase_ == 200) { return schemaConceptIsImplicitReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.getDefaultInstance(); } } /** * <pre> * SchemaConcept method requests * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Req schemaConcept_isImplicit_req = 200;</code> */ public Builder setSchemaConceptIsImplicitReq(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req value) { if (schemaConceptIsImplicitReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { schemaConceptIsImplicitReqBuilder_.setMessage(value); } reqCase_ = 200; return this; } /** * <pre> * SchemaConcept method requests * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Req schemaConcept_isImplicit_req = 200;</code> */ public Builder setSchemaConceptIsImplicitReq( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.Builder builderForValue) { if (schemaConceptIsImplicitReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { schemaConceptIsImplicitReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 200; return this; } /** * <pre> * SchemaConcept method requests * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Req schemaConcept_isImplicit_req = 200;</code> */ public Builder mergeSchemaConceptIsImplicitReq(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req value) { if (schemaConceptIsImplicitReqBuilder_ == null) { if (reqCase_ == 200 && req_ != ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 200) { schemaConceptIsImplicitReqBuilder_.mergeFrom(value); } schemaConceptIsImplicitReqBuilder_.setMessage(value); } reqCase_ = 200; return this; } /** * <pre> * SchemaConcept method requests * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Req schemaConcept_isImplicit_req = 200;</code> */ public Builder clearSchemaConceptIsImplicitReq() { if (schemaConceptIsImplicitReqBuilder_ == null) { if (reqCase_ == 200) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 200) { reqCase_ = 0; req_ = null; } schemaConceptIsImplicitReqBuilder_.clear(); } return this; } /** * <pre> * SchemaConcept method requests * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Req schemaConcept_isImplicit_req = 200;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.Builder getSchemaConceptIsImplicitReqBuilder() { return getSchemaConceptIsImplicitReqFieldBuilder().getBuilder(); } /** * <pre> * SchemaConcept method requests * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Req schemaConcept_isImplicit_req = 200;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.ReqOrBuilder getSchemaConceptIsImplicitReqOrBuilder() { if ((reqCase_ == 200) && (schemaConceptIsImplicitReqBuilder_ != null)) { return schemaConceptIsImplicitReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 200) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.getDefaultInstance(); } } /** * <pre> * SchemaConcept method requests * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Req schemaConcept_isImplicit_req = 200;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.ReqOrBuilder> getSchemaConceptIsImplicitReqFieldBuilder() { if (schemaConceptIsImplicitReqBuilder_ == null) { if (!(reqCase_ == 200)) { req_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.getDefaultInstance(); } schemaConceptIsImplicitReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 200; onChanged();; return schemaConceptIsImplicitReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.ReqOrBuilder> schemaConceptGetLabelReqBuilder_; /** * <code>optional .session.SchemaConcept.GetLabel.Req schemaConcept_getLabel_req = 201;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req getSchemaConceptGetLabelReq() { if (schemaConceptGetLabelReqBuilder_ == null) { if (reqCase_ == 201) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.getDefaultInstance(); } else { if (reqCase_ == 201) { return schemaConceptGetLabelReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.GetLabel.Req schemaConcept_getLabel_req = 201;</code> */ public Builder setSchemaConceptGetLabelReq(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req value) { if (schemaConceptGetLabelReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { schemaConceptGetLabelReqBuilder_.setMessage(value); } reqCase_ = 201; return this; } /** * <code>optional .session.SchemaConcept.GetLabel.Req schemaConcept_getLabel_req = 201;</code> */ public Builder setSchemaConceptGetLabelReq( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.Builder builderForValue) { if (schemaConceptGetLabelReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { schemaConceptGetLabelReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 201; return this; } /** * <code>optional .session.SchemaConcept.GetLabel.Req schemaConcept_getLabel_req = 201;</code> */ public Builder mergeSchemaConceptGetLabelReq(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req value) { if (schemaConceptGetLabelReqBuilder_ == null) { if (reqCase_ == 201 && req_ != ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 201) { schemaConceptGetLabelReqBuilder_.mergeFrom(value); } schemaConceptGetLabelReqBuilder_.setMessage(value); } reqCase_ = 201; return this; } /** * <code>optional .session.SchemaConcept.GetLabel.Req schemaConcept_getLabel_req = 201;</code> */ public Builder clearSchemaConceptGetLabelReq() { if (schemaConceptGetLabelReqBuilder_ == null) { if (reqCase_ == 201) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 201) { reqCase_ = 0; req_ = null; } schemaConceptGetLabelReqBuilder_.clear(); } return this; } /** * <code>optional .session.SchemaConcept.GetLabel.Req schemaConcept_getLabel_req = 201;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.Builder getSchemaConceptGetLabelReqBuilder() { return getSchemaConceptGetLabelReqFieldBuilder().getBuilder(); } /** * <code>optional .session.SchemaConcept.GetLabel.Req schemaConcept_getLabel_req = 201;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.ReqOrBuilder getSchemaConceptGetLabelReqOrBuilder() { if ((reqCase_ == 201) && (schemaConceptGetLabelReqBuilder_ != null)) { return schemaConceptGetLabelReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 201) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.GetLabel.Req schemaConcept_getLabel_req = 201;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.ReqOrBuilder> getSchemaConceptGetLabelReqFieldBuilder() { if (schemaConceptGetLabelReqBuilder_ == null) { if (!(reqCase_ == 201)) { req_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.getDefaultInstance(); } schemaConceptGetLabelReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 201; onChanged();; return schemaConceptGetLabelReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.ReqOrBuilder> schemaConceptSetLabelReqBuilder_; /** * <code>optional .session.SchemaConcept.SetLabel.Req schemaConcept_setLabel_req = 202;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req getSchemaConceptSetLabelReq() { if (schemaConceptSetLabelReqBuilder_ == null) { if (reqCase_ == 202) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.getDefaultInstance(); } else { if (reqCase_ == 202) { return schemaConceptSetLabelReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.SetLabel.Req schemaConcept_setLabel_req = 202;</code> */ public Builder setSchemaConceptSetLabelReq(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req value) { if (schemaConceptSetLabelReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { schemaConceptSetLabelReqBuilder_.setMessage(value); } reqCase_ = 202; return this; } /** * <code>optional .session.SchemaConcept.SetLabel.Req schemaConcept_setLabel_req = 202;</code> */ public Builder setSchemaConceptSetLabelReq( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.Builder builderForValue) { if (schemaConceptSetLabelReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { schemaConceptSetLabelReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 202; return this; } /** * <code>optional .session.SchemaConcept.SetLabel.Req schemaConcept_setLabel_req = 202;</code> */ public Builder mergeSchemaConceptSetLabelReq(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req value) { if (schemaConceptSetLabelReqBuilder_ == null) { if (reqCase_ == 202 && req_ != ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 202) { schemaConceptSetLabelReqBuilder_.mergeFrom(value); } schemaConceptSetLabelReqBuilder_.setMessage(value); } reqCase_ = 202; return this; } /** * <code>optional .session.SchemaConcept.SetLabel.Req schemaConcept_setLabel_req = 202;</code> */ public Builder clearSchemaConceptSetLabelReq() { if (schemaConceptSetLabelReqBuilder_ == null) { if (reqCase_ == 202) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 202) { reqCase_ = 0; req_ = null; } schemaConceptSetLabelReqBuilder_.clear(); } return this; } /** * <code>optional .session.SchemaConcept.SetLabel.Req schemaConcept_setLabel_req = 202;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.Builder getSchemaConceptSetLabelReqBuilder() { return getSchemaConceptSetLabelReqFieldBuilder().getBuilder(); } /** * <code>optional .session.SchemaConcept.SetLabel.Req schemaConcept_setLabel_req = 202;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.ReqOrBuilder getSchemaConceptSetLabelReqOrBuilder() { if ((reqCase_ == 202) && (schemaConceptSetLabelReqBuilder_ != null)) { return schemaConceptSetLabelReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 202) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.SetLabel.Req schemaConcept_setLabel_req = 202;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.ReqOrBuilder> getSchemaConceptSetLabelReqFieldBuilder() { if (schemaConceptSetLabelReqBuilder_ == null) { if (!(reqCase_ == 202)) { req_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.getDefaultInstance(); } schemaConceptSetLabelReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 202; onChanged();; return schemaConceptSetLabelReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.ReqOrBuilder> schemaConceptGetSupReqBuilder_; /** * <code>optional .session.SchemaConcept.GetSup.Req schemaConcept_getSup_req = 203;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req getSchemaConceptGetSupReq() { if (schemaConceptGetSupReqBuilder_ == null) { if (reqCase_ == 203) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.getDefaultInstance(); } else { if (reqCase_ == 203) { return schemaConceptGetSupReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.GetSup.Req schemaConcept_getSup_req = 203;</code> */ public Builder setSchemaConceptGetSupReq(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req value) { if (schemaConceptGetSupReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { schemaConceptGetSupReqBuilder_.setMessage(value); } reqCase_ = 203; return this; } /** * <code>optional .session.SchemaConcept.GetSup.Req schemaConcept_getSup_req = 203;</code> */ public Builder setSchemaConceptGetSupReq( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.Builder builderForValue) { if (schemaConceptGetSupReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { schemaConceptGetSupReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 203; return this; } /** * <code>optional .session.SchemaConcept.GetSup.Req schemaConcept_getSup_req = 203;</code> */ public Builder mergeSchemaConceptGetSupReq(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req value) { if (schemaConceptGetSupReqBuilder_ == null) { if (reqCase_ == 203 && req_ != ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 203) { schemaConceptGetSupReqBuilder_.mergeFrom(value); } schemaConceptGetSupReqBuilder_.setMessage(value); } reqCase_ = 203; return this; } /** * <code>optional .session.SchemaConcept.GetSup.Req schemaConcept_getSup_req = 203;</code> */ public Builder clearSchemaConceptGetSupReq() { if (schemaConceptGetSupReqBuilder_ == null) { if (reqCase_ == 203) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 203) { reqCase_ = 0; req_ = null; } schemaConceptGetSupReqBuilder_.clear(); } return this; } /** * <code>optional .session.SchemaConcept.GetSup.Req schemaConcept_getSup_req = 203;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.Builder getSchemaConceptGetSupReqBuilder() { return getSchemaConceptGetSupReqFieldBuilder().getBuilder(); } /** * <code>optional .session.SchemaConcept.GetSup.Req schemaConcept_getSup_req = 203;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.ReqOrBuilder getSchemaConceptGetSupReqOrBuilder() { if ((reqCase_ == 203) && (schemaConceptGetSupReqBuilder_ != null)) { return schemaConceptGetSupReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 203) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.GetSup.Req schemaConcept_getSup_req = 203;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.ReqOrBuilder> getSchemaConceptGetSupReqFieldBuilder() { if (schemaConceptGetSupReqBuilder_ == null) { if (!(reqCase_ == 203)) { req_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.getDefaultInstance(); } schemaConceptGetSupReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 203; onChanged();; return schemaConceptGetSupReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.ReqOrBuilder> schemaConceptSetSupReqBuilder_; /** * <code>optional .session.SchemaConcept.SetSup.Req schemaConcept_setSup_req = 204;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req getSchemaConceptSetSupReq() { if (schemaConceptSetSupReqBuilder_ == null) { if (reqCase_ == 204) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.getDefaultInstance(); } else { if (reqCase_ == 204) { return schemaConceptSetSupReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.SetSup.Req schemaConcept_setSup_req = 204;</code> */ public Builder setSchemaConceptSetSupReq(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req value) { if (schemaConceptSetSupReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { schemaConceptSetSupReqBuilder_.setMessage(value); } reqCase_ = 204; return this; } /** * <code>optional .session.SchemaConcept.SetSup.Req schemaConcept_setSup_req = 204;</code> */ public Builder setSchemaConceptSetSupReq( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.Builder builderForValue) { if (schemaConceptSetSupReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { schemaConceptSetSupReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 204; return this; } /** * <code>optional .session.SchemaConcept.SetSup.Req schemaConcept_setSup_req = 204;</code> */ public Builder mergeSchemaConceptSetSupReq(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req value) { if (schemaConceptSetSupReqBuilder_ == null) { if (reqCase_ == 204 && req_ != ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 204) { schemaConceptSetSupReqBuilder_.mergeFrom(value); } schemaConceptSetSupReqBuilder_.setMessage(value); } reqCase_ = 204; return this; } /** * <code>optional .session.SchemaConcept.SetSup.Req schemaConcept_setSup_req = 204;</code> */ public Builder clearSchemaConceptSetSupReq() { if (schemaConceptSetSupReqBuilder_ == null) { if (reqCase_ == 204) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 204) { reqCase_ = 0; req_ = null; } schemaConceptSetSupReqBuilder_.clear(); } return this; } /** * <code>optional .session.SchemaConcept.SetSup.Req schemaConcept_setSup_req = 204;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.Builder getSchemaConceptSetSupReqBuilder() { return getSchemaConceptSetSupReqFieldBuilder().getBuilder(); } /** * <code>optional .session.SchemaConcept.SetSup.Req schemaConcept_setSup_req = 204;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.ReqOrBuilder getSchemaConceptSetSupReqOrBuilder() { if ((reqCase_ == 204) && (schemaConceptSetSupReqBuilder_ != null)) { return schemaConceptSetSupReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 204) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.SetSup.Req schemaConcept_setSup_req = 204;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.ReqOrBuilder> getSchemaConceptSetSupReqFieldBuilder() { if (schemaConceptSetSupReqBuilder_ == null) { if (!(reqCase_ == 204)) { req_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.getDefaultInstance(); } schemaConceptSetSupReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 204; onChanged();; return schemaConceptSetSupReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.ReqOrBuilder> schemaConceptSupsReqBuilder_; /** * <code>optional .session.SchemaConcept.Sups.Req schemaConcept_sups_req = 205;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req getSchemaConceptSupsReq() { if (schemaConceptSupsReqBuilder_ == null) { if (reqCase_ == 205) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.getDefaultInstance(); } else { if (reqCase_ == 205) { return schemaConceptSupsReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.Sups.Req schemaConcept_sups_req = 205;</code> */ public Builder setSchemaConceptSupsReq(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req value) { if (schemaConceptSupsReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { schemaConceptSupsReqBuilder_.setMessage(value); } reqCase_ = 205; return this; } /** * <code>optional .session.SchemaConcept.Sups.Req schemaConcept_sups_req = 205;</code> */ public Builder setSchemaConceptSupsReq( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.Builder builderForValue) { if (schemaConceptSupsReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { schemaConceptSupsReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 205; return this; } /** * <code>optional .session.SchemaConcept.Sups.Req schemaConcept_sups_req = 205;</code> */ public Builder mergeSchemaConceptSupsReq(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req value) { if (schemaConceptSupsReqBuilder_ == null) { if (reqCase_ == 205 && req_ != ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 205) { schemaConceptSupsReqBuilder_.mergeFrom(value); } schemaConceptSupsReqBuilder_.setMessage(value); } reqCase_ = 205; return this; } /** * <code>optional .session.SchemaConcept.Sups.Req schemaConcept_sups_req = 205;</code> */ public Builder clearSchemaConceptSupsReq() { if (schemaConceptSupsReqBuilder_ == null) { if (reqCase_ == 205) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 205) { reqCase_ = 0; req_ = null; } schemaConceptSupsReqBuilder_.clear(); } return this; } /** * <code>optional .session.SchemaConcept.Sups.Req schemaConcept_sups_req = 205;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.Builder getSchemaConceptSupsReqBuilder() { return getSchemaConceptSupsReqFieldBuilder().getBuilder(); } /** * <code>optional .session.SchemaConcept.Sups.Req schemaConcept_sups_req = 205;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.ReqOrBuilder getSchemaConceptSupsReqOrBuilder() { if ((reqCase_ == 205) && (schemaConceptSupsReqBuilder_ != null)) { return schemaConceptSupsReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 205) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.Sups.Req schemaConcept_sups_req = 205;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.ReqOrBuilder> getSchemaConceptSupsReqFieldBuilder() { if (schemaConceptSupsReqBuilder_ == null) { if (!(reqCase_ == 205)) { req_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.getDefaultInstance(); } schemaConceptSupsReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 205; onChanged();; return schemaConceptSupsReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.ReqOrBuilder> schemaConceptSubsReqBuilder_; /** * <code>optional .session.SchemaConcept.Subs.Req schemaConcept_subs_req = 206;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req getSchemaConceptSubsReq() { if (schemaConceptSubsReqBuilder_ == null) { if (reqCase_ == 206) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.getDefaultInstance(); } else { if (reqCase_ == 206) { return schemaConceptSubsReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.Subs.Req schemaConcept_subs_req = 206;</code> */ public Builder setSchemaConceptSubsReq(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req value) { if (schemaConceptSubsReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { schemaConceptSubsReqBuilder_.setMessage(value); } reqCase_ = 206; return this; } /** * <code>optional .session.SchemaConcept.Subs.Req schemaConcept_subs_req = 206;</code> */ public Builder setSchemaConceptSubsReq( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.Builder builderForValue) { if (schemaConceptSubsReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { schemaConceptSubsReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 206; return this; } /** * <code>optional .session.SchemaConcept.Subs.Req schemaConcept_subs_req = 206;</code> */ public Builder mergeSchemaConceptSubsReq(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req value) { if (schemaConceptSubsReqBuilder_ == null) { if (reqCase_ == 206 && req_ != ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 206) { schemaConceptSubsReqBuilder_.mergeFrom(value); } schemaConceptSubsReqBuilder_.setMessage(value); } reqCase_ = 206; return this; } /** * <code>optional .session.SchemaConcept.Subs.Req schemaConcept_subs_req = 206;</code> */ public Builder clearSchemaConceptSubsReq() { if (schemaConceptSubsReqBuilder_ == null) { if (reqCase_ == 206) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 206) { reqCase_ = 0; req_ = null; } schemaConceptSubsReqBuilder_.clear(); } return this; } /** * <code>optional .session.SchemaConcept.Subs.Req schemaConcept_subs_req = 206;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.Builder getSchemaConceptSubsReqBuilder() { return getSchemaConceptSubsReqFieldBuilder().getBuilder(); } /** * <code>optional .session.SchemaConcept.Subs.Req schemaConcept_subs_req = 206;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.ReqOrBuilder getSchemaConceptSubsReqOrBuilder() { if ((reqCase_ == 206) && (schemaConceptSubsReqBuilder_ != null)) { return schemaConceptSubsReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 206) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.Subs.Req schemaConcept_subs_req = 206;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.ReqOrBuilder> getSchemaConceptSubsReqFieldBuilder() { if (schemaConceptSubsReqBuilder_ == null) { if (!(reqCase_ == 206)) { req_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.getDefaultInstance(); } schemaConceptSubsReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 206; onChanged();; return schemaConceptSubsReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Rule.When.Req, ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Rule.When.ReqOrBuilder> ruleWhenReqBuilder_; /** * <pre> * Rule method requests * </pre> * * <code>optional .session.Rule.When.Req rule_when_req = 300;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.When.Req getRuleWhenReq() { if (ruleWhenReqBuilder_ == null) { if (reqCase_ == 300) { return (ai.grakn.rpc.proto.ConceptProto.Rule.When.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.getDefaultInstance(); } else { if (reqCase_ == 300) { return ruleWhenReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.getDefaultInstance(); } } /** * <pre> * Rule method requests * </pre> * * <code>optional .session.Rule.When.Req rule_when_req = 300;</code> */ public Builder setRuleWhenReq(ai.grakn.rpc.proto.ConceptProto.Rule.When.Req value) { if (ruleWhenReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { ruleWhenReqBuilder_.setMessage(value); } reqCase_ = 300; return this; } /** * <pre> * Rule method requests * </pre> * * <code>optional .session.Rule.When.Req rule_when_req = 300;</code> */ public Builder setRuleWhenReq( ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.Builder builderForValue) { if (ruleWhenReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { ruleWhenReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 300; return this; } /** * <pre> * Rule method requests * </pre> * * <code>optional .session.Rule.When.Req rule_when_req = 300;</code> */ public Builder mergeRuleWhenReq(ai.grakn.rpc.proto.ConceptProto.Rule.When.Req value) { if (ruleWhenReqBuilder_ == null) { if (reqCase_ == 300 && req_ != ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Rule.When.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 300) { ruleWhenReqBuilder_.mergeFrom(value); } ruleWhenReqBuilder_.setMessage(value); } reqCase_ = 300; return this; } /** * <pre> * Rule method requests * </pre> * * <code>optional .session.Rule.When.Req rule_when_req = 300;</code> */ public Builder clearRuleWhenReq() { if (ruleWhenReqBuilder_ == null) { if (reqCase_ == 300) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 300) { reqCase_ = 0; req_ = null; } ruleWhenReqBuilder_.clear(); } return this; } /** * <pre> * Rule method requests * </pre> * * <code>optional .session.Rule.When.Req rule_when_req = 300;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.Builder getRuleWhenReqBuilder() { return getRuleWhenReqFieldBuilder().getBuilder(); } /** * <pre> * Rule method requests * </pre> * * <code>optional .session.Rule.When.Req rule_when_req = 300;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.When.ReqOrBuilder getRuleWhenReqOrBuilder() { if ((reqCase_ == 300) && (ruleWhenReqBuilder_ != null)) { return ruleWhenReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 300) { return (ai.grakn.rpc.proto.ConceptProto.Rule.When.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.getDefaultInstance(); } } /** * <pre> * Rule method requests * </pre> * * <code>optional .session.Rule.When.Req rule_when_req = 300;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Rule.When.Req, ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Rule.When.ReqOrBuilder> getRuleWhenReqFieldBuilder() { if (ruleWhenReqBuilder_ == null) { if (!(reqCase_ == 300)) { req_ = ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.getDefaultInstance(); } ruleWhenReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Rule.When.Req, ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Rule.When.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Rule.When.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 300; onChanged();; return ruleWhenReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req, ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Rule.Then.ReqOrBuilder> ruleThenReqBuilder_; /** * <code>optional .session.Rule.Then.Req rule_then_req = 301;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req getRuleThenReq() { if (ruleThenReqBuilder_ == null) { if (reqCase_ == 301) { return (ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.getDefaultInstance(); } else { if (reqCase_ == 301) { return ruleThenReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.getDefaultInstance(); } } /** * <code>optional .session.Rule.Then.Req rule_then_req = 301;</code> */ public Builder setRuleThenReq(ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req value) { if (ruleThenReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { ruleThenReqBuilder_.setMessage(value); } reqCase_ = 301; return this; } /** * <code>optional .session.Rule.Then.Req rule_then_req = 301;</code> */ public Builder setRuleThenReq( ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.Builder builderForValue) { if (ruleThenReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { ruleThenReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 301; return this; } /** * <code>optional .session.Rule.Then.Req rule_then_req = 301;</code> */ public Builder mergeRuleThenReq(ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req value) { if (ruleThenReqBuilder_ == null) { if (reqCase_ == 301 && req_ != ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 301) { ruleThenReqBuilder_.mergeFrom(value); } ruleThenReqBuilder_.setMessage(value); } reqCase_ = 301; return this; } /** * <code>optional .session.Rule.Then.Req rule_then_req = 301;</code> */ public Builder clearRuleThenReq() { if (ruleThenReqBuilder_ == null) { if (reqCase_ == 301) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 301) { reqCase_ = 0; req_ = null; } ruleThenReqBuilder_.clear(); } return this; } /** * <code>optional .session.Rule.Then.Req rule_then_req = 301;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.Builder getRuleThenReqBuilder() { return getRuleThenReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Rule.Then.Req rule_then_req = 301;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.Then.ReqOrBuilder getRuleThenReqOrBuilder() { if ((reqCase_ == 301) && (ruleThenReqBuilder_ != null)) { return ruleThenReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 301) { return (ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.getDefaultInstance(); } } /** * <code>optional .session.Rule.Then.Req rule_then_req = 301;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req, ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Rule.Then.ReqOrBuilder> getRuleThenReqFieldBuilder() { if (ruleThenReqBuilder_ == null) { if (!(reqCase_ == 301)) { req_ = ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.getDefaultInstance(); } ruleThenReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req, ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Rule.Then.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 301; onChanged();; return ruleThenReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Relations.ReqOrBuilder> roleRelationsReqBuilder_; /** * <pre> * Role method requests * </pre> * * <code>optional .session.Role.Relations.Req role_relations_req = 401;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req getRoleRelationsReq() { if (roleRelationsReqBuilder_ == null) { if (reqCase_ == 401) { return (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.getDefaultInstance(); } else { if (reqCase_ == 401) { return roleRelationsReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.getDefaultInstance(); } } /** * <pre> * Role method requests * </pre> * * <code>optional .session.Role.Relations.Req role_relations_req = 401;</code> */ public Builder setRoleRelationsReq(ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req value) { if (roleRelationsReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { roleRelationsReqBuilder_.setMessage(value); } reqCase_ = 401; return this; } /** * <pre> * Role method requests * </pre> * * <code>optional .session.Role.Relations.Req role_relations_req = 401;</code> */ public Builder setRoleRelationsReq( ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.Builder builderForValue) { if (roleRelationsReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { roleRelationsReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 401; return this; } /** * <pre> * Role method requests * </pre> * * <code>optional .session.Role.Relations.Req role_relations_req = 401;</code> */ public Builder mergeRoleRelationsReq(ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req value) { if (roleRelationsReqBuilder_ == null) { if (reqCase_ == 401 && req_ != ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 401) { roleRelationsReqBuilder_.mergeFrom(value); } roleRelationsReqBuilder_.setMessage(value); } reqCase_ = 401; return this; } /** * <pre> * Role method requests * </pre> * * <code>optional .session.Role.Relations.Req role_relations_req = 401;</code> */ public Builder clearRoleRelationsReq() { if (roleRelationsReqBuilder_ == null) { if (reqCase_ == 401) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 401) { reqCase_ = 0; req_ = null; } roleRelationsReqBuilder_.clear(); } return this; } /** * <pre> * Role method requests * </pre> * * <code>optional .session.Role.Relations.Req role_relations_req = 401;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.Builder getRoleRelationsReqBuilder() { return getRoleRelationsReqFieldBuilder().getBuilder(); } /** * <pre> * Role method requests * </pre> * * <code>optional .session.Role.Relations.Req role_relations_req = 401;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Relations.ReqOrBuilder getRoleRelationsReqOrBuilder() { if ((reqCase_ == 401) && (roleRelationsReqBuilder_ != null)) { return roleRelationsReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 401) { return (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.getDefaultInstance(); } } /** * <pre> * Role method requests * </pre> * * <code>optional .session.Role.Relations.Req role_relations_req = 401;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Relations.ReqOrBuilder> getRoleRelationsReqFieldBuilder() { if (roleRelationsReqBuilder_ == null) { if (!(reqCase_ == 401)) { req_ = ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.getDefaultInstance(); } roleRelationsReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Relations.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 401; onChanged();; return roleRelationsReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Players.Req, ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Players.ReqOrBuilder> rolePlayersReqBuilder_; /** * <code>optional .session.Role.Players.Req role_players_req = 402;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Players.Req getRolePlayersReq() { if (rolePlayersReqBuilder_ == null) { if (reqCase_ == 402) { return (ai.grakn.rpc.proto.ConceptProto.Role.Players.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.getDefaultInstance(); } else { if (reqCase_ == 402) { return rolePlayersReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.getDefaultInstance(); } } /** * <code>optional .session.Role.Players.Req role_players_req = 402;</code> */ public Builder setRolePlayersReq(ai.grakn.rpc.proto.ConceptProto.Role.Players.Req value) { if (rolePlayersReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { rolePlayersReqBuilder_.setMessage(value); } reqCase_ = 402; return this; } /** * <code>optional .session.Role.Players.Req role_players_req = 402;</code> */ public Builder setRolePlayersReq( ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.Builder builderForValue) { if (rolePlayersReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { rolePlayersReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 402; return this; } /** * <code>optional .session.Role.Players.Req role_players_req = 402;</code> */ public Builder mergeRolePlayersReq(ai.grakn.rpc.proto.ConceptProto.Role.Players.Req value) { if (rolePlayersReqBuilder_ == null) { if (reqCase_ == 402 && req_ != ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Role.Players.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 402) { rolePlayersReqBuilder_.mergeFrom(value); } rolePlayersReqBuilder_.setMessage(value); } reqCase_ = 402; return this; } /** * <code>optional .session.Role.Players.Req role_players_req = 402;</code> */ public Builder clearRolePlayersReq() { if (rolePlayersReqBuilder_ == null) { if (reqCase_ == 402) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 402) { reqCase_ = 0; req_ = null; } rolePlayersReqBuilder_.clear(); } return this; } /** * <code>optional .session.Role.Players.Req role_players_req = 402;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.Builder getRolePlayersReqBuilder() { return getRolePlayersReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Role.Players.Req role_players_req = 402;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Players.ReqOrBuilder getRolePlayersReqOrBuilder() { if ((reqCase_ == 402) && (rolePlayersReqBuilder_ != null)) { return rolePlayersReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 402) { return (ai.grakn.rpc.proto.ConceptProto.Role.Players.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.getDefaultInstance(); } } /** * <code>optional .session.Role.Players.Req role_players_req = 402;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Players.Req, ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Players.ReqOrBuilder> getRolePlayersReqFieldBuilder() { if (rolePlayersReqBuilder_ == null) { if (!(reqCase_ == 402)) { req_ = ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.getDefaultInstance(); } rolePlayersReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Players.Req, ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Players.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Role.Players.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 402; onChanged();; return rolePlayersReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.ReqOrBuilder> typeIsAbstractReqBuilder_; /** * <pre> * Type method requests * </pre> * * <code>optional .session.Type.IsAbstract.Req type_isAbstract_req = 500;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req getTypeIsAbstractReq() { if (typeIsAbstractReqBuilder_ == null) { if (reqCase_ == 500) { return (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.getDefaultInstance(); } else { if (reqCase_ == 500) { return typeIsAbstractReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.getDefaultInstance(); } } /** * <pre> * Type method requests * </pre> * * <code>optional .session.Type.IsAbstract.Req type_isAbstract_req = 500;</code> */ public Builder setTypeIsAbstractReq(ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req value) { if (typeIsAbstractReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { typeIsAbstractReqBuilder_.setMessage(value); } reqCase_ = 500; return this; } /** * <pre> * Type method requests * </pre> * * <code>optional .session.Type.IsAbstract.Req type_isAbstract_req = 500;</code> */ public Builder setTypeIsAbstractReq( ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.Builder builderForValue) { if (typeIsAbstractReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { typeIsAbstractReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 500; return this; } /** * <pre> * Type method requests * </pre> * * <code>optional .session.Type.IsAbstract.Req type_isAbstract_req = 500;</code> */ public Builder mergeTypeIsAbstractReq(ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req value) { if (typeIsAbstractReqBuilder_ == null) { if (reqCase_ == 500 && req_ != ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 500) { typeIsAbstractReqBuilder_.mergeFrom(value); } typeIsAbstractReqBuilder_.setMessage(value); } reqCase_ = 500; return this; } /** * <pre> * Type method requests * </pre> * * <code>optional .session.Type.IsAbstract.Req type_isAbstract_req = 500;</code> */ public Builder clearTypeIsAbstractReq() { if (typeIsAbstractReqBuilder_ == null) { if (reqCase_ == 500) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 500) { reqCase_ = 0; req_ = null; } typeIsAbstractReqBuilder_.clear(); } return this; } /** * <pre> * Type method requests * </pre> * * <code>optional .session.Type.IsAbstract.Req type_isAbstract_req = 500;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.Builder getTypeIsAbstractReqBuilder() { return getTypeIsAbstractReqFieldBuilder().getBuilder(); } /** * <pre> * Type method requests * </pre> * * <code>optional .session.Type.IsAbstract.Req type_isAbstract_req = 500;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.ReqOrBuilder getTypeIsAbstractReqOrBuilder() { if ((reqCase_ == 500) && (typeIsAbstractReqBuilder_ != null)) { return typeIsAbstractReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 500) { return (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.getDefaultInstance(); } } /** * <pre> * Type method requests * </pre> * * <code>optional .session.Type.IsAbstract.Req type_isAbstract_req = 500;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.ReqOrBuilder> getTypeIsAbstractReqFieldBuilder() { if (typeIsAbstractReqBuilder_ == null) { if (!(reqCase_ == 500)) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.getDefaultInstance(); } typeIsAbstractReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 500; onChanged();; return typeIsAbstractReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.ReqOrBuilder> typeSetAbstractReqBuilder_; /** * <code>optional .session.Type.SetAbstract.Req type_setAbstract_req = 501;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req getTypeSetAbstractReq() { if (typeSetAbstractReqBuilder_ == null) { if (reqCase_ == 501) { return (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.getDefaultInstance(); } else { if (reqCase_ == 501) { return typeSetAbstractReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.SetAbstract.Req type_setAbstract_req = 501;</code> */ public Builder setTypeSetAbstractReq(ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req value) { if (typeSetAbstractReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { typeSetAbstractReqBuilder_.setMessage(value); } reqCase_ = 501; return this; } /** * <code>optional .session.Type.SetAbstract.Req type_setAbstract_req = 501;</code> */ public Builder setTypeSetAbstractReq( ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.Builder builderForValue) { if (typeSetAbstractReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { typeSetAbstractReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 501; return this; } /** * <code>optional .session.Type.SetAbstract.Req type_setAbstract_req = 501;</code> */ public Builder mergeTypeSetAbstractReq(ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req value) { if (typeSetAbstractReqBuilder_ == null) { if (reqCase_ == 501 && req_ != ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 501) { typeSetAbstractReqBuilder_.mergeFrom(value); } typeSetAbstractReqBuilder_.setMessage(value); } reqCase_ = 501; return this; } /** * <code>optional .session.Type.SetAbstract.Req type_setAbstract_req = 501;</code> */ public Builder clearTypeSetAbstractReq() { if (typeSetAbstractReqBuilder_ == null) { if (reqCase_ == 501) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 501) { reqCase_ = 0; req_ = null; } typeSetAbstractReqBuilder_.clear(); } return this; } /** * <code>optional .session.Type.SetAbstract.Req type_setAbstract_req = 501;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.Builder getTypeSetAbstractReqBuilder() { return getTypeSetAbstractReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.SetAbstract.Req type_setAbstract_req = 501;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.ReqOrBuilder getTypeSetAbstractReqOrBuilder() { if ((reqCase_ == 501) && (typeSetAbstractReqBuilder_ != null)) { return typeSetAbstractReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 501) { return (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.SetAbstract.Req type_setAbstract_req = 501;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.ReqOrBuilder> getTypeSetAbstractReqFieldBuilder() { if (typeSetAbstractReqBuilder_ == null) { if (!(reqCase_ == 501)) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.getDefaultInstance(); } typeSetAbstractReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 501; onChanged();; return typeSetAbstractReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Instances.ReqOrBuilder> typeInstancesReqBuilder_; /** * <code>optional .session.Type.Instances.Req type_instances_req = 502;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req getTypeInstancesReq() { if (typeInstancesReqBuilder_ == null) { if (reqCase_ == 502) { return (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.getDefaultInstance(); } else { if (reqCase_ == 502) { return typeInstancesReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Instances.Req type_instances_req = 502;</code> */ public Builder setTypeInstancesReq(ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req value) { if (typeInstancesReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { typeInstancesReqBuilder_.setMessage(value); } reqCase_ = 502; return this; } /** * <code>optional .session.Type.Instances.Req type_instances_req = 502;</code> */ public Builder setTypeInstancesReq( ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.Builder builderForValue) { if (typeInstancesReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { typeInstancesReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 502; return this; } /** * <code>optional .session.Type.Instances.Req type_instances_req = 502;</code> */ public Builder mergeTypeInstancesReq(ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req value) { if (typeInstancesReqBuilder_ == null) { if (reqCase_ == 502 && req_ != ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 502) { typeInstancesReqBuilder_.mergeFrom(value); } typeInstancesReqBuilder_.setMessage(value); } reqCase_ = 502; return this; } /** * <code>optional .session.Type.Instances.Req type_instances_req = 502;</code> */ public Builder clearTypeInstancesReq() { if (typeInstancesReqBuilder_ == null) { if (reqCase_ == 502) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 502) { reqCase_ = 0; req_ = null; } typeInstancesReqBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Instances.Req type_instances_req = 502;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.Builder getTypeInstancesReqBuilder() { return getTypeInstancesReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Instances.Req type_instances_req = 502;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Instances.ReqOrBuilder getTypeInstancesReqOrBuilder() { if ((reqCase_ == 502) && (typeInstancesReqBuilder_ != null)) { return typeInstancesReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 502) { return (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Instances.Req type_instances_req = 502;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Instances.ReqOrBuilder> getTypeInstancesReqFieldBuilder() { if (typeInstancesReqBuilder_ == null) { if (!(reqCase_ == 502)) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.getDefaultInstance(); } typeInstancesReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Instances.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 502; onChanged();; return typeInstancesReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Keys.ReqOrBuilder> typeKeysReqBuilder_; /** * <code>optional .session.Type.Keys.Req type_keys_req = 503;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req getTypeKeysReq() { if (typeKeysReqBuilder_ == null) { if (reqCase_ == 503) { return (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.getDefaultInstance(); } else { if (reqCase_ == 503) { return typeKeysReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Keys.Req type_keys_req = 503;</code> */ public Builder setTypeKeysReq(ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req value) { if (typeKeysReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { typeKeysReqBuilder_.setMessage(value); } reqCase_ = 503; return this; } /** * <code>optional .session.Type.Keys.Req type_keys_req = 503;</code> */ public Builder setTypeKeysReq( ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.Builder builderForValue) { if (typeKeysReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { typeKeysReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 503; return this; } /** * <code>optional .session.Type.Keys.Req type_keys_req = 503;</code> */ public Builder mergeTypeKeysReq(ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req value) { if (typeKeysReqBuilder_ == null) { if (reqCase_ == 503 && req_ != ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 503) { typeKeysReqBuilder_.mergeFrom(value); } typeKeysReqBuilder_.setMessage(value); } reqCase_ = 503; return this; } /** * <code>optional .session.Type.Keys.Req type_keys_req = 503;</code> */ public Builder clearTypeKeysReq() { if (typeKeysReqBuilder_ == null) { if (reqCase_ == 503) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 503) { reqCase_ = 0; req_ = null; } typeKeysReqBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Keys.Req type_keys_req = 503;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.Builder getTypeKeysReqBuilder() { return getTypeKeysReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Keys.Req type_keys_req = 503;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Keys.ReqOrBuilder getTypeKeysReqOrBuilder() { if ((reqCase_ == 503) && (typeKeysReqBuilder_ != null)) { return typeKeysReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 503) { return (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Keys.Req type_keys_req = 503;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Keys.ReqOrBuilder> getTypeKeysReqFieldBuilder() { if (typeKeysReqBuilder_ == null) { if (!(reqCase_ == 503)) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.getDefaultInstance(); } typeKeysReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Keys.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 503; onChanged();; return typeKeysReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.ReqOrBuilder> typeAttributesReqBuilder_; /** * <code>optional .session.Type.Attributes.Req type_attributes_req = 504;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req getTypeAttributesReq() { if (typeAttributesReqBuilder_ == null) { if (reqCase_ == 504) { return (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.getDefaultInstance(); } else { if (reqCase_ == 504) { return typeAttributesReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Attributes.Req type_attributes_req = 504;</code> */ public Builder setTypeAttributesReq(ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req value) { if (typeAttributesReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { typeAttributesReqBuilder_.setMessage(value); } reqCase_ = 504; return this; } /** * <code>optional .session.Type.Attributes.Req type_attributes_req = 504;</code> */ public Builder setTypeAttributesReq( ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.Builder builderForValue) { if (typeAttributesReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { typeAttributesReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 504; return this; } /** * <code>optional .session.Type.Attributes.Req type_attributes_req = 504;</code> */ public Builder mergeTypeAttributesReq(ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req value) { if (typeAttributesReqBuilder_ == null) { if (reqCase_ == 504 && req_ != ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 504) { typeAttributesReqBuilder_.mergeFrom(value); } typeAttributesReqBuilder_.setMessage(value); } reqCase_ = 504; return this; } /** * <code>optional .session.Type.Attributes.Req type_attributes_req = 504;</code> */ public Builder clearTypeAttributesReq() { if (typeAttributesReqBuilder_ == null) { if (reqCase_ == 504) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 504) { reqCase_ = 0; req_ = null; } typeAttributesReqBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Attributes.Req type_attributes_req = 504;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.Builder getTypeAttributesReqBuilder() { return getTypeAttributesReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Attributes.Req type_attributes_req = 504;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.ReqOrBuilder getTypeAttributesReqOrBuilder() { if ((reqCase_ == 504) && (typeAttributesReqBuilder_ != null)) { return typeAttributesReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 504) { return (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Attributes.Req type_attributes_req = 504;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.ReqOrBuilder> getTypeAttributesReqFieldBuilder() { if (typeAttributesReqBuilder_ == null) { if (!(reqCase_ == 504)) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.getDefaultInstance(); } typeAttributesReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 504; onChanged();; return typeAttributesReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Playing.ReqOrBuilder> typePlayingReqBuilder_; /** * <code>optional .session.Type.Playing.Req type_playing_req = 505;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req getTypePlayingReq() { if (typePlayingReqBuilder_ == null) { if (reqCase_ == 505) { return (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.getDefaultInstance(); } else { if (reqCase_ == 505) { return typePlayingReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Playing.Req type_playing_req = 505;</code> */ public Builder setTypePlayingReq(ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req value) { if (typePlayingReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { typePlayingReqBuilder_.setMessage(value); } reqCase_ = 505; return this; } /** * <code>optional .session.Type.Playing.Req type_playing_req = 505;</code> */ public Builder setTypePlayingReq( ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.Builder builderForValue) { if (typePlayingReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { typePlayingReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 505; return this; } /** * <code>optional .session.Type.Playing.Req type_playing_req = 505;</code> */ public Builder mergeTypePlayingReq(ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req value) { if (typePlayingReqBuilder_ == null) { if (reqCase_ == 505 && req_ != ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 505) { typePlayingReqBuilder_.mergeFrom(value); } typePlayingReqBuilder_.setMessage(value); } reqCase_ = 505; return this; } /** * <code>optional .session.Type.Playing.Req type_playing_req = 505;</code> */ public Builder clearTypePlayingReq() { if (typePlayingReqBuilder_ == null) { if (reqCase_ == 505) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 505) { reqCase_ = 0; req_ = null; } typePlayingReqBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Playing.Req type_playing_req = 505;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.Builder getTypePlayingReqBuilder() { return getTypePlayingReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Playing.Req type_playing_req = 505;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Playing.ReqOrBuilder getTypePlayingReqOrBuilder() { if ((reqCase_ == 505) && (typePlayingReqBuilder_ != null)) { return typePlayingReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 505) { return (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Playing.Req type_playing_req = 505;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Playing.ReqOrBuilder> getTypePlayingReqFieldBuilder() { if (typePlayingReqBuilder_ == null) { if (!(reqCase_ == 505)) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.getDefaultInstance(); } typePlayingReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Playing.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 505; onChanged();; return typePlayingReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Has.Req, ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Has.ReqOrBuilder> typeHasReqBuilder_; /** * <code>optional .session.Type.Has.Req type_has_req = 506;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Has.Req getTypeHasReq() { if (typeHasReqBuilder_ == null) { if (reqCase_ == 506) { return (ai.grakn.rpc.proto.ConceptProto.Type.Has.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.getDefaultInstance(); } else { if (reqCase_ == 506) { return typeHasReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Has.Req type_has_req = 506;</code> */ public Builder setTypeHasReq(ai.grakn.rpc.proto.ConceptProto.Type.Has.Req value) { if (typeHasReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { typeHasReqBuilder_.setMessage(value); } reqCase_ = 506; return this; } /** * <code>optional .session.Type.Has.Req type_has_req = 506;</code> */ public Builder setTypeHasReq( ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.Builder builderForValue) { if (typeHasReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { typeHasReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 506; return this; } /** * <code>optional .session.Type.Has.Req type_has_req = 506;</code> */ public Builder mergeTypeHasReq(ai.grakn.rpc.proto.ConceptProto.Type.Has.Req value) { if (typeHasReqBuilder_ == null) { if (reqCase_ == 506 && req_ != ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Has.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 506) { typeHasReqBuilder_.mergeFrom(value); } typeHasReqBuilder_.setMessage(value); } reqCase_ = 506; return this; } /** * <code>optional .session.Type.Has.Req type_has_req = 506;</code> */ public Builder clearTypeHasReq() { if (typeHasReqBuilder_ == null) { if (reqCase_ == 506) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 506) { reqCase_ = 0; req_ = null; } typeHasReqBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Has.Req type_has_req = 506;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.Builder getTypeHasReqBuilder() { return getTypeHasReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Has.Req type_has_req = 506;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Has.ReqOrBuilder getTypeHasReqOrBuilder() { if ((reqCase_ == 506) && (typeHasReqBuilder_ != null)) { return typeHasReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 506) { return (ai.grakn.rpc.proto.ConceptProto.Type.Has.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Has.Req type_has_req = 506;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Has.Req, ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Has.ReqOrBuilder> getTypeHasReqFieldBuilder() { if (typeHasReqBuilder_ == null) { if (!(reqCase_ == 506)) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.getDefaultInstance(); } typeHasReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Has.Req, ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Has.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Has.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 506; onChanged();; return typeHasReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Key.Req, ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Key.ReqOrBuilder> typeKeyReqBuilder_; /** * <code>optional .session.Type.Key.Req type_key_req = 507;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Key.Req getTypeKeyReq() { if (typeKeyReqBuilder_ == null) { if (reqCase_ == 507) { return (ai.grakn.rpc.proto.ConceptProto.Type.Key.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.getDefaultInstance(); } else { if (reqCase_ == 507) { return typeKeyReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Key.Req type_key_req = 507;</code> */ public Builder setTypeKeyReq(ai.grakn.rpc.proto.ConceptProto.Type.Key.Req value) { if (typeKeyReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { typeKeyReqBuilder_.setMessage(value); } reqCase_ = 507; return this; } /** * <code>optional .session.Type.Key.Req type_key_req = 507;</code> */ public Builder setTypeKeyReq( ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.Builder builderForValue) { if (typeKeyReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { typeKeyReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 507; return this; } /** * <code>optional .session.Type.Key.Req type_key_req = 507;</code> */ public Builder mergeTypeKeyReq(ai.grakn.rpc.proto.ConceptProto.Type.Key.Req value) { if (typeKeyReqBuilder_ == null) { if (reqCase_ == 507 && req_ != ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Key.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 507) { typeKeyReqBuilder_.mergeFrom(value); } typeKeyReqBuilder_.setMessage(value); } reqCase_ = 507; return this; } /** * <code>optional .session.Type.Key.Req type_key_req = 507;</code> */ public Builder clearTypeKeyReq() { if (typeKeyReqBuilder_ == null) { if (reqCase_ == 507) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 507) { reqCase_ = 0; req_ = null; } typeKeyReqBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Key.Req type_key_req = 507;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.Builder getTypeKeyReqBuilder() { return getTypeKeyReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Key.Req type_key_req = 507;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Key.ReqOrBuilder getTypeKeyReqOrBuilder() { if ((reqCase_ == 507) && (typeKeyReqBuilder_ != null)) { return typeKeyReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 507) { return (ai.grakn.rpc.proto.ConceptProto.Type.Key.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Key.Req type_key_req = 507;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Key.Req, ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Key.ReqOrBuilder> getTypeKeyReqFieldBuilder() { if (typeKeyReqBuilder_ == null) { if (!(reqCase_ == 507)) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.getDefaultInstance(); } typeKeyReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Key.Req, ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Key.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Key.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 507; onChanged();; return typeKeyReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req, ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Plays.ReqOrBuilder> typePlaysReqBuilder_; /** * <code>optional .session.Type.Plays.Req type_plays_req = 508;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req getTypePlaysReq() { if (typePlaysReqBuilder_ == null) { if (reqCase_ == 508) { return (ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.getDefaultInstance(); } else { if (reqCase_ == 508) { return typePlaysReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Plays.Req type_plays_req = 508;</code> */ public Builder setTypePlaysReq(ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req value) { if (typePlaysReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { typePlaysReqBuilder_.setMessage(value); } reqCase_ = 508; return this; } /** * <code>optional .session.Type.Plays.Req type_plays_req = 508;</code> */ public Builder setTypePlaysReq( ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.Builder builderForValue) { if (typePlaysReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { typePlaysReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 508; return this; } /** * <code>optional .session.Type.Plays.Req type_plays_req = 508;</code> */ public Builder mergeTypePlaysReq(ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req value) { if (typePlaysReqBuilder_ == null) { if (reqCase_ == 508 && req_ != ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 508) { typePlaysReqBuilder_.mergeFrom(value); } typePlaysReqBuilder_.setMessage(value); } reqCase_ = 508; return this; } /** * <code>optional .session.Type.Plays.Req type_plays_req = 508;</code> */ public Builder clearTypePlaysReq() { if (typePlaysReqBuilder_ == null) { if (reqCase_ == 508) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 508) { reqCase_ = 0; req_ = null; } typePlaysReqBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Plays.Req type_plays_req = 508;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.Builder getTypePlaysReqBuilder() { return getTypePlaysReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Plays.Req type_plays_req = 508;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Plays.ReqOrBuilder getTypePlaysReqOrBuilder() { if ((reqCase_ == 508) && (typePlaysReqBuilder_ != null)) { return typePlaysReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 508) { return (ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Plays.Req type_plays_req = 508;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req, ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Plays.ReqOrBuilder> getTypePlaysReqFieldBuilder() { if (typePlaysReqBuilder_ == null) { if (!(reqCase_ == 508)) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.getDefaultInstance(); } typePlaysReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req, ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Plays.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 508; onChanged();; return typePlaysReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.ReqOrBuilder> typeUnhasReqBuilder_; /** * <code>optional .session.Type.Unhas.Req type_unhas_req = 509;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req getTypeUnhasReq() { if (typeUnhasReqBuilder_ == null) { if (reqCase_ == 509) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.getDefaultInstance(); } else { if (reqCase_ == 509) { return typeUnhasReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Unhas.Req type_unhas_req = 509;</code> */ public Builder setTypeUnhasReq(ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req value) { if (typeUnhasReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { typeUnhasReqBuilder_.setMessage(value); } reqCase_ = 509; return this; } /** * <code>optional .session.Type.Unhas.Req type_unhas_req = 509;</code> */ public Builder setTypeUnhasReq( ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.Builder builderForValue) { if (typeUnhasReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { typeUnhasReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 509; return this; } /** * <code>optional .session.Type.Unhas.Req type_unhas_req = 509;</code> */ public Builder mergeTypeUnhasReq(ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req value) { if (typeUnhasReqBuilder_ == null) { if (reqCase_ == 509 && req_ != ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 509) { typeUnhasReqBuilder_.mergeFrom(value); } typeUnhasReqBuilder_.setMessage(value); } reqCase_ = 509; return this; } /** * <code>optional .session.Type.Unhas.Req type_unhas_req = 509;</code> */ public Builder clearTypeUnhasReq() { if (typeUnhasReqBuilder_ == null) { if (reqCase_ == 509) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 509) { reqCase_ = 0; req_ = null; } typeUnhasReqBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Unhas.Req type_unhas_req = 509;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.Builder getTypeUnhasReqBuilder() { return getTypeUnhasReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Unhas.Req type_unhas_req = 509;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.ReqOrBuilder getTypeUnhasReqOrBuilder() { if ((reqCase_ == 509) && (typeUnhasReqBuilder_ != null)) { return typeUnhasReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 509) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Unhas.Req type_unhas_req = 509;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.ReqOrBuilder> getTypeUnhasReqFieldBuilder() { if (typeUnhasReqBuilder_ == null) { if (!(reqCase_ == 509)) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.getDefaultInstance(); } typeUnhasReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 509; onChanged();; return typeUnhasReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.ReqOrBuilder> typeUnkeyReqBuilder_; /** * <code>optional .session.Type.Unkey.Req type_unkey_req = 510;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req getTypeUnkeyReq() { if (typeUnkeyReqBuilder_ == null) { if (reqCase_ == 510) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.getDefaultInstance(); } else { if (reqCase_ == 510) { return typeUnkeyReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Unkey.Req type_unkey_req = 510;</code> */ public Builder setTypeUnkeyReq(ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req value) { if (typeUnkeyReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { typeUnkeyReqBuilder_.setMessage(value); } reqCase_ = 510; return this; } /** * <code>optional .session.Type.Unkey.Req type_unkey_req = 510;</code> */ public Builder setTypeUnkeyReq( ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.Builder builderForValue) { if (typeUnkeyReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { typeUnkeyReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 510; return this; } /** * <code>optional .session.Type.Unkey.Req type_unkey_req = 510;</code> */ public Builder mergeTypeUnkeyReq(ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req value) { if (typeUnkeyReqBuilder_ == null) { if (reqCase_ == 510 && req_ != ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 510) { typeUnkeyReqBuilder_.mergeFrom(value); } typeUnkeyReqBuilder_.setMessage(value); } reqCase_ = 510; return this; } /** * <code>optional .session.Type.Unkey.Req type_unkey_req = 510;</code> */ public Builder clearTypeUnkeyReq() { if (typeUnkeyReqBuilder_ == null) { if (reqCase_ == 510) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 510) { reqCase_ = 0; req_ = null; } typeUnkeyReqBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Unkey.Req type_unkey_req = 510;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.Builder getTypeUnkeyReqBuilder() { return getTypeUnkeyReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Unkey.Req type_unkey_req = 510;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.ReqOrBuilder getTypeUnkeyReqOrBuilder() { if ((reqCase_ == 510) && (typeUnkeyReqBuilder_ != null)) { return typeUnkeyReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 510) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Unkey.Req type_unkey_req = 510;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.ReqOrBuilder> getTypeUnkeyReqFieldBuilder() { if (typeUnkeyReqBuilder_ == null) { if (!(reqCase_ == 510)) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.getDefaultInstance(); } typeUnkeyReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 510; onChanged();; return typeUnkeyReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.ReqOrBuilder> typeUnplayReqBuilder_; /** * <code>optional .session.Type.Unplay.Req type_unplay_req = 511;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req getTypeUnplayReq() { if (typeUnplayReqBuilder_ == null) { if (reqCase_ == 511) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.getDefaultInstance(); } else { if (reqCase_ == 511) { return typeUnplayReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Unplay.Req type_unplay_req = 511;</code> */ public Builder setTypeUnplayReq(ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req value) { if (typeUnplayReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { typeUnplayReqBuilder_.setMessage(value); } reqCase_ = 511; return this; } /** * <code>optional .session.Type.Unplay.Req type_unplay_req = 511;</code> */ public Builder setTypeUnplayReq( ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.Builder builderForValue) { if (typeUnplayReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { typeUnplayReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 511; return this; } /** * <code>optional .session.Type.Unplay.Req type_unplay_req = 511;</code> */ public Builder mergeTypeUnplayReq(ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req value) { if (typeUnplayReqBuilder_ == null) { if (reqCase_ == 511 && req_ != ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 511) { typeUnplayReqBuilder_.mergeFrom(value); } typeUnplayReqBuilder_.setMessage(value); } reqCase_ = 511; return this; } /** * <code>optional .session.Type.Unplay.Req type_unplay_req = 511;</code> */ public Builder clearTypeUnplayReq() { if (typeUnplayReqBuilder_ == null) { if (reqCase_ == 511) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 511) { reqCase_ = 0; req_ = null; } typeUnplayReqBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Unplay.Req type_unplay_req = 511;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.Builder getTypeUnplayReqBuilder() { return getTypeUnplayReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Unplay.Req type_unplay_req = 511;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.ReqOrBuilder getTypeUnplayReqOrBuilder() { if ((reqCase_ == 511) && (typeUnplayReqBuilder_ != null)) { return typeUnplayReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 511) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.getDefaultInstance(); } } /** * <code>optional .session.Type.Unplay.Req type_unplay_req = 511;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.ReqOrBuilder> getTypeUnplayReqFieldBuilder() { if (typeUnplayReqBuilder_ == null) { if (!(reqCase_ == 511)) { req_ = ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.getDefaultInstance(); } typeUnplayReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 511; onChanged();; return typeUnplayReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.Builder, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.ReqOrBuilder> entityTypeCreateReqBuilder_; /** * <pre> * EntityType method requests * </pre> * * <code>optional .session.EntityType.Create.Req entityType_create_req = 600;</code> */ public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req getEntityTypeCreateReq() { if (entityTypeCreateReqBuilder_ == null) { if (reqCase_ == 600) { return (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.getDefaultInstance(); } else { if (reqCase_ == 600) { return entityTypeCreateReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.getDefaultInstance(); } } /** * <pre> * EntityType method requests * </pre> * * <code>optional .session.EntityType.Create.Req entityType_create_req = 600;</code> */ public Builder setEntityTypeCreateReq(ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req value) { if (entityTypeCreateReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { entityTypeCreateReqBuilder_.setMessage(value); } reqCase_ = 600; return this; } /** * <pre> * EntityType method requests * </pre> * * <code>optional .session.EntityType.Create.Req entityType_create_req = 600;</code> */ public Builder setEntityTypeCreateReq( ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.Builder builderForValue) { if (entityTypeCreateReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { entityTypeCreateReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 600; return this; } /** * <pre> * EntityType method requests * </pre> * * <code>optional .session.EntityType.Create.Req entityType_create_req = 600;</code> */ public Builder mergeEntityTypeCreateReq(ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req value) { if (entityTypeCreateReqBuilder_ == null) { if (reqCase_ == 600 && req_ != ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 600) { entityTypeCreateReqBuilder_.mergeFrom(value); } entityTypeCreateReqBuilder_.setMessage(value); } reqCase_ = 600; return this; } /** * <pre> * EntityType method requests * </pre> * * <code>optional .session.EntityType.Create.Req entityType_create_req = 600;</code> */ public Builder clearEntityTypeCreateReq() { if (entityTypeCreateReqBuilder_ == null) { if (reqCase_ == 600) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 600) { reqCase_ = 0; req_ = null; } entityTypeCreateReqBuilder_.clear(); } return this; } /** * <pre> * EntityType method requests * </pre> * * <code>optional .session.EntityType.Create.Req entityType_create_req = 600;</code> */ public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.Builder getEntityTypeCreateReqBuilder() { return getEntityTypeCreateReqFieldBuilder().getBuilder(); } /** * <pre> * EntityType method requests * </pre> * * <code>optional .session.EntityType.Create.Req entityType_create_req = 600;</code> */ public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.ReqOrBuilder getEntityTypeCreateReqOrBuilder() { if ((reqCase_ == 600) && (entityTypeCreateReqBuilder_ != null)) { return entityTypeCreateReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 600) { return (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.getDefaultInstance(); } } /** * <pre> * EntityType method requests * </pre> * * <code>optional .session.EntityType.Create.Req entityType_create_req = 600;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.Builder, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.ReqOrBuilder> getEntityTypeCreateReqFieldBuilder() { if (entityTypeCreateReqBuilder_ == null) { if (!(reqCase_ == 600)) { req_ = ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.getDefaultInstance(); } entityTypeCreateReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.Builder, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 600; onChanged();; return entityTypeCreateReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.ReqOrBuilder> relationTypeCreateReqBuilder_; /** * <pre> * RelationType method requests * </pre> * * <code>optional .session.RelationType.Create.Req relationType_create_req = 700;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req getRelationTypeCreateReq() { if (relationTypeCreateReqBuilder_ == null) { if (reqCase_ == 700) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.getDefaultInstance(); } else { if (reqCase_ == 700) { return relationTypeCreateReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.getDefaultInstance(); } } /** * <pre> * RelationType method requests * </pre> * * <code>optional .session.RelationType.Create.Req relationType_create_req = 700;</code> */ public Builder setRelationTypeCreateReq(ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req value) { if (relationTypeCreateReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { relationTypeCreateReqBuilder_.setMessage(value); } reqCase_ = 700; return this; } /** * <pre> * RelationType method requests * </pre> * * <code>optional .session.RelationType.Create.Req relationType_create_req = 700;</code> */ public Builder setRelationTypeCreateReq( ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.Builder builderForValue) { if (relationTypeCreateReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { relationTypeCreateReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 700; return this; } /** * <pre> * RelationType method requests * </pre> * * <code>optional .session.RelationType.Create.Req relationType_create_req = 700;</code> */ public Builder mergeRelationTypeCreateReq(ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req value) { if (relationTypeCreateReqBuilder_ == null) { if (reqCase_ == 700 && req_ != ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 700) { relationTypeCreateReqBuilder_.mergeFrom(value); } relationTypeCreateReqBuilder_.setMessage(value); } reqCase_ = 700; return this; } /** * <pre> * RelationType method requests * </pre> * * <code>optional .session.RelationType.Create.Req relationType_create_req = 700;</code> */ public Builder clearRelationTypeCreateReq() { if (relationTypeCreateReqBuilder_ == null) { if (reqCase_ == 700) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 700) { reqCase_ = 0; req_ = null; } relationTypeCreateReqBuilder_.clear(); } return this; } /** * <pre> * RelationType method requests * </pre> * * <code>optional .session.RelationType.Create.Req relationType_create_req = 700;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.Builder getRelationTypeCreateReqBuilder() { return getRelationTypeCreateReqFieldBuilder().getBuilder(); } /** * <pre> * RelationType method requests * </pre> * * <code>optional .session.RelationType.Create.Req relationType_create_req = 700;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.ReqOrBuilder getRelationTypeCreateReqOrBuilder() { if ((reqCase_ == 700) && (relationTypeCreateReqBuilder_ != null)) { return relationTypeCreateReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 700) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.getDefaultInstance(); } } /** * <pre> * RelationType method requests * </pre> * * <code>optional .session.RelationType.Create.Req relationType_create_req = 700;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.ReqOrBuilder> getRelationTypeCreateReqFieldBuilder() { if (relationTypeCreateReqBuilder_ == null) { if (!(reqCase_ == 700)) { req_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.getDefaultInstance(); } relationTypeCreateReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 700; onChanged();; return relationTypeCreateReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.ReqOrBuilder> relationTypeRolesReqBuilder_; /** * <code>optional .session.RelationType.Roles.Req relationType_roles_req = 701;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req getRelationTypeRolesReq() { if (relationTypeRolesReqBuilder_ == null) { if (reqCase_ == 701) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.getDefaultInstance(); } else { if (reqCase_ == 701) { return relationTypeRolesReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.getDefaultInstance(); } } /** * <code>optional .session.RelationType.Roles.Req relationType_roles_req = 701;</code> */ public Builder setRelationTypeRolesReq(ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req value) { if (relationTypeRolesReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { relationTypeRolesReqBuilder_.setMessage(value); } reqCase_ = 701; return this; } /** * <code>optional .session.RelationType.Roles.Req relationType_roles_req = 701;</code> */ public Builder setRelationTypeRolesReq( ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.Builder builderForValue) { if (relationTypeRolesReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { relationTypeRolesReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 701; return this; } /** * <code>optional .session.RelationType.Roles.Req relationType_roles_req = 701;</code> */ public Builder mergeRelationTypeRolesReq(ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req value) { if (relationTypeRolesReqBuilder_ == null) { if (reqCase_ == 701 && req_ != ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 701) { relationTypeRolesReqBuilder_.mergeFrom(value); } relationTypeRolesReqBuilder_.setMessage(value); } reqCase_ = 701; return this; } /** * <code>optional .session.RelationType.Roles.Req relationType_roles_req = 701;</code> */ public Builder clearRelationTypeRolesReq() { if (relationTypeRolesReqBuilder_ == null) { if (reqCase_ == 701) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 701) { reqCase_ = 0; req_ = null; } relationTypeRolesReqBuilder_.clear(); } return this; } /** * <code>optional .session.RelationType.Roles.Req relationType_roles_req = 701;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.Builder getRelationTypeRolesReqBuilder() { return getRelationTypeRolesReqFieldBuilder().getBuilder(); } /** * <code>optional .session.RelationType.Roles.Req relationType_roles_req = 701;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.ReqOrBuilder getRelationTypeRolesReqOrBuilder() { if ((reqCase_ == 701) && (relationTypeRolesReqBuilder_ != null)) { return relationTypeRolesReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 701) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.getDefaultInstance(); } } /** * <code>optional .session.RelationType.Roles.Req relationType_roles_req = 701;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.ReqOrBuilder> getRelationTypeRolesReqFieldBuilder() { if (relationTypeRolesReqBuilder_ == null) { if (!(reqCase_ == 701)) { req_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.getDefaultInstance(); } relationTypeRolesReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 701; onChanged();; return relationTypeRolesReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.ReqOrBuilder> relationTypeRelatesReqBuilder_; /** * <code>optional .session.RelationType.Relates.Req relationType_relates_req = 702;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req getRelationTypeRelatesReq() { if (relationTypeRelatesReqBuilder_ == null) { if (reqCase_ == 702) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.getDefaultInstance(); } else { if (reqCase_ == 702) { return relationTypeRelatesReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.getDefaultInstance(); } } /** * <code>optional .session.RelationType.Relates.Req relationType_relates_req = 702;</code> */ public Builder setRelationTypeRelatesReq(ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req value) { if (relationTypeRelatesReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { relationTypeRelatesReqBuilder_.setMessage(value); } reqCase_ = 702; return this; } /** * <code>optional .session.RelationType.Relates.Req relationType_relates_req = 702;</code> */ public Builder setRelationTypeRelatesReq( ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.Builder builderForValue) { if (relationTypeRelatesReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { relationTypeRelatesReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 702; return this; } /** * <code>optional .session.RelationType.Relates.Req relationType_relates_req = 702;</code> */ public Builder mergeRelationTypeRelatesReq(ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req value) { if (relationTypeRelatesReqBuilder_ == null) { if (reqCase_ == 702 && req_ != ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 702) { relationTypeRelatesReqBuilder_.mergeFrom(value); } relationTypeRelatesReqBuilder_.setMessage(value); } reqCase_ = 702; return this; } /** * <code>optional .session.RelationType.Relates.Req relationType_relates_req = 702;</code> */ public Builder clearRelationTypeRelatesReq() { if (relationTypeRelatesReqBuilder_ == null) { if (reqCase_ == 702) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 702) { reqCase_ = 0; req_ = null; } relationTypeRelatesReqBuilder_.clear(); } return this; } /** * <code>optional .session.RelationType.Relates.Req relationType_relates_req = 702;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.Builder getRelationTypeRelatesReqBuilder() { return getRelationTypeRelatesReqFieldBuilder().getBuilder(); } /** * <code>optional .session.RelationType.Relates.Req relationType_relates_req = 702;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.ReqOrBuilder getRelationTypeRelatesReqOrBuilder() { if ((reqCase_ == 702) && (relationTypeRelatesReqBuilder_ != null)) { return relationTypeRelatesReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 702) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.getDefaultInstance(); } } /** * <code>optional .session.RelationType.Relates.Req relationType_relates_req = 702;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.ReqOrBuilder> getRelationTypeRelatesReqFieldBuilder() { if (relationTypeRelatesReqBuilder_ == null) { if (!(reqCase_ == 702)) { req_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.getDefaultInstance(); } relationTypeRelatesReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 702; onChanged();; return relationTypeRelatesReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.ReqOrBuilder> relationTypeUnrelateReqBuilder_; /** * <code>optional .session.RelationType.Unrelate.Req relationType_unrelate_req = 703;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req getRelationTypeUnrelateReq() { if (relationTypeUnrelateReqBuilder_ == null) { if (reqCase_ == 703) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.getDefaultInstance(); } else { if (reqCase_ == 703) { return relationTypeUnrelateReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.getDefaultInstance(); } } /** * <code>optional .session.RelationType.Unrelate.Req relationType_unrelate_req = 703;</code> */ public Builder setRelationTypeUnrelateReq(ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req value) { if (relationTypeUnrelateReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { relationTypeUnrelateReqBuilder_.setMessage(value); } reqCase_ = 703; return this; } /** * <code>optional .session.RelationType.Unrelate.Req relationType_unrelate_req = 703;</code> */ public Builder setRelationTypeUnrelateReq( ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.Builder builderForValue) { if (relationTypeUnrelateReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { relationTypeUnrelateReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 703; return this; } /** * <code>optional .session.RelationType.Unrelate.Req relationType_unrelate_req = 703;</code> */ public Builder mergeRelationTypeUnrelateReq(ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req value) { if (relationTypeUnrelateReqBuilder_ == null) { if (reqCase_ == 703 && req_ != ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 703) { relationTypeUnrelateReqBuilder_.mergeFrom(value); } relationTypeUnrelateReqBuilder_.setMessage(value); } reqCase_ = 703; return this; } /** * <code>optional .session.RelationType.Unrelate.Req relationType_unrelate_req = 703;</code> */ public Builder clearRelationTypeUnrelateReq() { if (relationTypeUnrelateReqBuilder_ == null) { if (reqCase_ == 703) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 703) { reqCase_ = 0; req_ = null; } relationTypeUnrelateReqBuilder_.clear(); } return this; } /** * <code>optional .session.RelationType.Unrelate.Req relationType_unrelate_req = 703;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.Builder getRelationTypeUnrelateReqBuilder() { return getRelationTypeUnrelateReqFieldBuilder().getBuilder(); } /** * <code>optional .session.RelationType.Unrelate.Req relationType_unrelate_req = 703;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.ReqOrBuilder getRelationTypeUnrelateReqOrBuilder() { if ((reqCase_ == 703) && (relationTypeUnrelateReqBuilder_ != null)) { return relationTypeUnrelateReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 703) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.getDefaultInstance(); } } /** * <code>optional .session.RelationType.Unrelate.Req relationType_unrelate_req = 703;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.ReqOrBuilder> getRelationTypeUnrelateReqFieldBuilder() { if (relationTypeUnrelateReqBuilder_ == null) { if (!(reqCase_ == 703)) { req_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.getDefaultInstance(); } relationTypeUnrelateReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 703; onChanged();; return relationTypeUnrelateReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.ReqOrBuilder> attributeTypeCreateReqBuilder_; /** * <pre> * AttributeType method requests * </pre> * * <code>optional .session.AttributeType.Create.Req attributeType_create_req = 800;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req getAttributeTypeCreateReq() { if (attributeTypeCreateReqBuilder_ == null) { if (reqCase_ == 800) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.getDefaultInstance(); } else { if (reqCase_ == 800) { return attributeTypeCreateReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.getDefaultInstance(); } } /** * <pre> * AttributeType method requests * </pre> * * <code>optional .session.AttributeType.Create.Req attributeType_create_req = 800;</code> */ public Builder setAttributeTypeCreateReq(ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req value) { if (attributeTypeCreateReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { attributeTypeCreateReqBuilder_.setMessage(value); } reqCase_ = 800; return this; } /** * <pre> * AttributeType method requests * </pre> * * <code>optional .session.AttributeType.Create.Req attributeType_create_req = 800;</code> */ public Builder setAttributeTypeCreateReq( ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.Builder builderForValue) { if (attributeTypeCreateReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { attributeTypeCreateReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 800; return this; } /** * <pre> * AttributeType method requests * </pre> * * <code>optional .session.AttributeType.Create.Req attributeType_create_req = 800;</code> */ public Builder mergeAttributeTypeCreateReq(ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req value) { if (attributeTypeCreateReqBuilder_ == null) { if (reqCase_ == 800 && req_ != ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 800) { attributeTypeCreateReqBuilder_.mergeFrom(value); } attributeTypeCreateReqBuilder_.setMessage(value); } reqCase_ = 800; return this; } /** * <pre> * AttributeType method requests * </pre> * * <code>optional .session.AttributeType.Create.Req attributeType_create_req = 800;</code> */ public Builder clearAttributeTypeCreateReq() { if (attributeTypeCreateReqBuilder_ == null) { if (reqCase_ == 800) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 800) { reqCase_ = 0; req_ = null; } attributeTypeCreateReqBuilder_.clear(); } return this; } /** * <pre> * AttributeType method requests * </pre> * * <code>optional .session.AttributeType.Create.Req attributeType_create_req = 800;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.Builder getAttributeTypeCreateReqBuilder() { return getAttributeTypeCreateReqFieldBuilder().getBuilder(); } /** * <pre> * AttributeType method requests * </pre> * * <code>optional .session.AttributeType.Create.Req attributeType_create_req = 800;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.ReqOrBuilder getAttributeTypeCreateReqOrBuilder() { if ((reqCase_ == 800) && (attributeTypeCreateReqBuilder_ != null)) { return attributeTypeCreateReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 800) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.getDefaultInstance(); } } /** * <pre> * AttributeType method requests * </pre> * * <code>optional .session.AttributeType.Create.Req attributeType_create_req = 800;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.ReqOrBuilder> getAttributeTypeCreateReqFieldBuilder() { if (attributeTypeCreateReqBuilder_ == null) { if (!(reqCase_ == 800)) { req_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.getDefaultInstance(); } attributeTypeCreateReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 800; onChanged();; return attributeTypeCreateReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.ReqOrBuilder> attributeTypeAttributeReqBuilder_; /** * <code>optional .session.AttributeType.Attribute.Req attributeType_attribute_req = 801;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req getAttributeTypeAttributeReq() { if (attributeTypeAttributeReqBuilder_ == null) { if (reqCase_ == 801) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.getDefaultInstance(); } else { if (reqCase_ == 801) { return attributeTypeAttributeReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.getDefaultInstance(); } } /** * <code>optional .session.AttributeType.Attribute.Req attributeType_attribute_req = 801;</code> */ public Builder setAttributeTypeAttributeReq(ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req value) { if (attributeTypeAttributeReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { attributeTypeAttributeReqBuilder_.setMessage(value); } reqCase_ = 801; return this; } /** * <code>optional .session.AttributeType.Attribute.Req attributeType_attribute_req = 801;</code> */ public Builder setAttributeTypeAttributeReq( ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.Builder builderForValue) { if (attributeTypeAttributeReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { attributeTypeAttributeReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 801; return this; } /** * <code>optional .session.AttributeType.Attribute.Req attributeType_attribute_req = 801;</code> */ public Builder mergeAttributeTypeAttributeReq(ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req value) { if (attributeTypeAttributeReqBuilder_ == null) { if (reqCase_ == 801 && req_ != ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 801) { attributeTypeAttributeReqBuilder_.mergeFrom(value); } attributeTypeAttributeReqBuilder_.setMessage(value); } reqCase_ = 801; return this; } /** * <code>optional .session.AttributeType.Attribute.Req attributeType_attribute_req = 801;</code> */ public Builder clearAttributeTypeAttributeReq() { if (attributeTypeAttributeReqBuilder_ == null) { if (reqCase_ == 801) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 801) { reqCase_ = 0; req_ = null; } attributeTypeAttributeReqBuilder_.clear(); } return this; } /** * <code>optional .session.AttributeType.Attribute.Req attributeType_attribute_req = 801;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.Builder getAttributeTypeAttributeReqBuilder() { return getAttributeTypeAttributeReqFieldBuilder().getBuilder(); } /** * <code>optional .session.AttributeType.Attribute.Req attributeType_attribute_req = 801;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.ReqOrBuilder getAttributeTypeAttributeReqOrBuilder() { if ((reqCase_ == 801) && (attributeTypeAttributeReqBuilder_ != null)) { return attributeTypeAttributeReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 801) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.getDefaultInstance(); } } /** * <code>optional .session.AttributeType.Attribute.Req attributeType_attribute_req = 801;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.ReqOrBuilder> getAttributeTypeAttributeReqFieldBuilder() { if (attributeTypeAttributeReqBuilder_ == null) { if (!(reqCase_ == 801)) { req_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.getDefaultInstance(); } attributeTypeAttributeReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 801; onChanged();; return attributeTypeAttributeReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.ReqOrBuilder> attributeTypeDataTypeReqBuilder_; /** * <code>optional .session.AttributeType.DataType.Req attributeType_dataType_req = 802;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req getAttributeTypeDataTypeReq() { if (attributeTypeDataTypeReqBuilder_ == null) { if (reqCase_ == 802) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.getDefaultInstance(); } else { if (reqCase_ == 802) { return attributeTypeDataTypeReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.getDefaultInstance(); } } /** * <code>optional .session.AttributeType.DataType.Req attributeType_dataType_req = 802;</code> */ public Builder setAttributeTypeDataTypeReq(ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req value) { if (attributeTypeDataTypeReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { attributeTypeDataTypeReqBuilder_.setMessage(value); } reqCase_ = 802; return this; } /** * <code>optional .session.AttributeType.DataType.Req attributeType_dataType_req = 802;</code> */ public Builder setAttributeTypeDataTypeReq( ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.Builder builderForValue) { if (attributeTypeDataTypeReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { attributeTypeDataTypeReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 802; return this; } /** * <code>optional .session.AttributeType.DataType.Req attributeType_dataType_req = 802;</code> */ public Builder mergeAttributeTypeDataTypeReq(ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req value) { if (attributeTypeDataTypeReqBuilder_ == null) { if (reqCase_ == 802 && req_ != ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 802) { attributeTypeDataTypeReqBuilder_.mergeFrom(value); } attributeTypeDataTypeReqBuilder_.setMessage(value); } reqCase_ = 802; return this; } /** * <code>optional .session.AttributeType.DataType.Req attributeType_dataType_req = 802;</code> */ public Builder clearAttributeTypeDataTypeReq() { if (attributeTypeDataTypeReqBuilder_ == null) { if (reqCase_ == 802) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 802) { reqCase_ = 0; req_ = null; } attributeTypeDataTypeReqBuilder_.clear(); } return this; } /** * <code>optional .session.AttributeType.DataType.Req attributeType_dataType_req = 802;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.Builder getAttributeTypeDataTypeReqBuilder() { return getAttributeTypeDataTypeReqFieldBuilder().getBuilder(); } /** * <code>optional .session.AttributeType.DataType.Req attributeType_dataType_req = 802;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.ReqOrBuilder getAttributeTypeDataTypeReqOrBuilder() { if ((reqCase_ == 802) && (attributeTypeDataTypeReqBuilder_ != null)) { return attributeTypeDataTypeReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 802) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.getDefaultInstance(); } } /** * <code>optional .session.AttributeType.DataType.Req attributeType_dataType_req = 802;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.ReqOrBuilder> getAttributeTypeDataTypeReqFieldBuilder() { if (attributeTypeDataTypeReqBuilder_ == null) { if (!(reqCase_ == 802)) { req_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.getDefaultInstance(); } attributeTypeDataTypeReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 802; onChanged();; return attributeTypeDataTypeReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.ReqOrBuilder> attributeTypeGetRegexReqBuilder_; /** * <code>optional .session.AttributeType.GetRegex.Req attributeType_getRegex_req = 803;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req getAttributeTypeGetRegexReq() { if (attributeTypeGetRegexReqBuilder_ == null) { if (reqCase_ == 803) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.getDefaultInstance(); } else { if (reqCase_ == 803) { return attributeTypeGetRegexReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.getDefaultInstance(); } } /** * <code>optional .session.AttributeType.GetRegex.Req attributeType_getRegex_req = 803;</code> */ public Builder setAttributeTypeGetRegexReq(ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req value) { if (attributeTypeGetRegexReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { attributeTypeGetRegexReqBuilder_.setMessage(value); } reqCase_ = 803; return this; } /** * <code>optional .session.AttributeType.GetRegex.Req attributeType_getRegex_req = 803;</code> */ public Builder setAttributeTypeGetRegexReq( ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.Builder builderForValue) { if (attributeTypeGetRegexReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { attributeTypeGetRegexReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 803; return this; } /** * <code>optional .session.AttributeType.GetRegex.Req attributeType_getRegex_req = 803;</code> */ public Builder mergeAttributeTypeGetRegexReq(ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req value) { if (attributeTypeGetRegexReqBuilder_ == null) { if (reqCase_ == 803 && req_ != ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 803) { attributeTypeGetRegexReqBuilder_.mergeFrom(value); } attributeTypeGetRegexReqBuilder_.setMessage(value); } reqCase_ = 803; return this; } /** * <code>optional .session.AttributeType.GetRegex.Req attributeType_getRegex_req = 803;</code> */ public Builder clearAttributeTypeGetRegexReq() { if (attributeTypeGetRegexReqBuilder_ == null) { if (reqCase_ == 803) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 803) { reqCase_ = 0; req_ = null; } attributeTypeGetRegexReqBuilder_.clear(); } return this; } /** * <code>optional .session.AttributeType.GetRegex.Req attributeType_getRegex_req = 803;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.Builder getAttributeTypeGetRegexReqBuilder() { return getAttributeTypeGetRegexReqFieldBuilder().getBuilder(); } /** * <code>optional .session.AttributeType.GetRegex.Req attributeType_getRegex_req = 803;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.ReqOrBuilder getAttributeTypeGetRegexReqOrBuilder() { if ((reqCase_ == 803) && (attributeTypeGetRegexReqBuilder_ != null)) { return attributeTypeGetRegexReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 803) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.getDefaultInstance(); } } /** * <code>optional .session.AttributeType.GetRegex.Req attributeType_getRegex_req = 803;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.ReqOrBuilder> getAttributeTypeGetRegexReqFieldBuilder() { if (attributeTypeGetRegexReqBuilder_ == null) { if (!(reqCase_ == 803)) { req_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.getDefaultInstance(); } attributeTypeGetRegexReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 803; onChanged();; return attributeTypeGetRegexReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.ReqOrBuilder> attributeTypeSetRegexReqBuilder_; /** * <code>optional .session.AttributeType.SetRegex.Req attributeType_setRegex_req = 804;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req getAttributeTypeSetRegexReq() { if (attributeTypeSetRegexReqBuilder_ == null) { if (reqCase_ == 804) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.getDefaultInstance(); } else { if (reqCase_ == 804) { return attributeTypeSetRegexReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.getDefaultInstance(); } } /** * <code>optional .session.AttributeType.SetRegex.Req attributeType_setRegex_req = 804;</code> */ public Builder setAttributeTypeSetRegexReq(ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req value) { if (attributeTypeSetRegexReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { attributeTypeSetRegexReqBuilder_.setMessage(value); } reqCase_ = 804; return this; } /** * <code>optional .session.AttributeType.SetRegex.Req attributeType_setRegex_req = 804;</code> */ public Builder setAttributeTypeSetRegexReq( ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.Builder builderForValue) { if (attributeTypeSetRegexReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { attributeTypeSetRegexReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 804; return this; } /** * <code>optional .session.AttributeType.SetRegex.Req attributeType_setRegex_req = 804;</code> */ public Builder mergeAttributeTypeSetRegexReq(ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req value) { if (attributeTypeSetRegexReqBuilder_ == null) { if (reqCase_ == 804 && req_ != ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 804) { attributeTypeSetRegexReqBuilder_.mergeFrom(value); } attributeTypeSetRegexReqBuilder_.setMessage(value); } reqCase_ = 804; return this; } /** * <code>optional .session.AttributeType.SetRegex.Req attributeType_setRegex_req = 804;</code> */ public Builder clearAttributeTypeSetRegexReq() { if (attributeTypeSetRegexReqBuilder_ == null) { if (reqCase_ == 804) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 804) { reqCase_ = 0; req_ = null; } attributeTypeSetRegexReqBuilder_.clear(); } return this; } /** * <code>optional .session.AttributeType.SetRegex.Req attributeType_setRegex_req = 804;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.Builder getAttributeTypeSetRegexReqBuilder() { return getAttributeTypeSetRegexReqFieldBuilder().getBuilder(); } /** * <code>optional .session.AttributeType.SetRegex.Req attributeType_setRegex_req = 804;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.ReqOrBuilder getAttributeTypeSetRegexReqOrBuilder() { if ((reqCase_ == 804) && (attributeTypeSetRegexReqBuilder_ != null)) { return attributeTypeSetRegexReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 804) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.getDefaultInstance(); } } /** * <code>optional .session.AttributeType.SetRegex.Req attributeType_setRegex_req = 804;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.ReqOrBuilder> getAttributeTypeSetRegexReqFieldBuilder() { if (attributeTypeSetRegexReqBuilder_ == null) { if (!(reqCase_ == 804)) { req_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.getDefaultInstance(); } attributeTypeSetRegexReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 804; onChanged();; return attributeTypeSetRegexReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Type.ReqOrBuilder> thingTypeReqBuilder_; /** * <pre> * Thing method requests * </pre> * * <code>optional .session.Thing.Type.Req thing_type_req = 900;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req getThingTypeReq() { if (thingTypeReqBuilder_ == null) { if (reqCase_ == 900) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.getDefaultInstance(); } else { if (reqCase_ == 900) { return thingTypeReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.getDefaultInstance(); } } /** * <pre> * Thing method requests * </pre> * * <code>optional .session.Thing.Type.Req thing_type_req = 900;</code> */ public Builder setThingTypeReq(ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req value) { if (thingTypeReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { thingTypeReqBuilder_.setMessage(value); } reqCase_ = 900; return this; } /** * <pre> * Thing method requests * </pre> * * <code>optional .session.Thing.Type.Req thing_type_req = 900;</code> */ public Builder setThingTypeReq( ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.Builder builderForValue) { if (thingTypeReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { thingTypeReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 900; return this; } /** * <pre> * Thing method requests * </pre> * * <code>optional .session.Thing.Type.Req thing_type_req = 900;</code> */ public Builder mergeThingTypeReq(ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req value) { if (thingTypeReqBuilder_ == null) { if (reqCase_ == 900 && req_ != ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 900) { thingTypeReqBuilder_.mergeFrom(value); } thingTypeReqBuilder_.setMessage(value); } reqCase_ = 900; return this; } /** * <pre> * Thing method requests * </pre> * * <code>optional .session.Thing.Type.Req thing_type_req = 900;</code> */ public Builder clearThingTypeReq() { if (thingTypeReqBuilder_ == null) { if (reqCase_ == 900) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 900) { reqCase_ = 0; req_ = null; } thingTypeReqBuilder_.clear(); } return this; } /** * <pre> * Thing method requests * </pre> * * <code>optional .session.Thing.Type.Req thing_type_req = 900;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.Builder getThingTypeReqBuilder() { return getThingTypeReqFieldBuilder().getBuilder(); } /** * <pre> * Thing method requests * </pre> * * <code>optional .session.Thing.Type.Req thing_type_req = 900;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Type.ReqOrBuilder getThingTypeReqOrBuilder() { if ((reqCase_ == 900) && (thingTypeReqBuilder_ != null)) { return thingTypeReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 900) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.getDefaultInstance(); } } /** * <pre> * Thing method requests * </pre> * * <code>optional .session.Thing.Type.Req thing_type_req = 900;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Type.ReqOrBuilder> getThingTypeReqFieldBuilder() { if (thingTypeReqBuilder_ == null) { if (!(reqCase_ == 900)) { req_ = ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.getDefaultInstance(); } thingTypeReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Type.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 900; onChanged();; return thingTypeReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.ReqOrBuilder> thingIsInferredReqBuilder_; /** * <code>optional .session.Thing.IsInferred.Req thing_isInferred_req = 901;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req getThingIsInferredReq() { if (thingIsInferredReqBuilder_ == null) { if (reqCase_ == 901) { return (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.getDefaultInstance(); } else { if (reqCase_ == 901) { return thingIsInferredReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.getDefaultInstance(); } } /** * <code>optional .session.Thing.IsInferred.Req thing_isInferred_req = 901;</code> */ public Builder setThingIsInferredReq(ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req value) { if (thingIsInferredReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { thingIsInferredReqBuilder_.setMessage(value); } reqCase_ = 901; return this; } /** * <code>optional .session.Thing.IsInferred.Req thing_isInferred_req = 901;</code> */ public Builder setThingIsInferredReq( ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.Builder builderForValue) { if (thingIsInferredReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { thingIsInferredReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 901; return this; } /** * <code>optional .session.Thing.IsInferred.Req thing_isInferred_req = 901;</code> */ public Builder mergeThingIsInferredReq(ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req value) { if (thingIsInferredReqBuilder_ == null) { if (reqCase_ == 901 && req_ != ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 901) { thingIsInferredReqBuilder_.mergeFrom(value); } thingIsInferredReqBuilder_.setMessage(value); } reqCase_ = 901; return this; } /** * <code>optional .session.Thing.IsInferred.Req thing_isInferred_req = 901;</code> */ public Builder clearThingIsInferredReq() { if (thingIsInferredReqBuilder_ == null) { if (reqCase_ == 901) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 901) { reqCase_ = 0; req_ = null; } thingIsInferredReqBuilder_.clear(); } return this; } /** * <code>optional .session.Thing.IsInferred.Req thing_isInferred_req = 901;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.Builder getThingIsInferredReqBuilder() { return getThingIsInferredReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.IsInferred.Req thing_isInferred_req = 901;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.ReqOrBuilder getThingIsInferredReqOrBuilder() { if ((reqCase_ == 901) && (thingIsInferredReqBuilder_ != null)) { return thingIsInferredReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 901) { return (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.getDefaultInstance(); } } /** * <code>optional .session.Thing.IsInferred.Req thing_isInferred_req = 901;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.ReqOrBuilder> getThingIsInferredReqFieldBuilder() { if (thingIsInferredReqBuilder_ == null) { if (!(reqCase_ == 901)) { req_ = ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.getDefaultInstance(); } thingIsInferredReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 901; onChanged();; return thingIsInferredReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.ReqOrBuilder> thingKeysReqBuilder_; /** * <code>optional .session.Thing.Keys.Req thing_keys_req = 902;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req getThingKeysReq() { if (thingKeysReqBuilder_ == null) { if (reqCase_ == 902) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.getDefaultInstance(); } else { if (reqCase_ == 902) { return thingKeysReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.getDefaultInstance(); } } /** * <code>optional .session.Thing.Keys.Req thing_keys_req = 902;</code> */ public Builder setThingKeysReq(ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req value) { if (thingKeysReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { thingKeysReqBuilder_.setMessage(value); } reqCase_ = 902; return this; } /** * <code>optional .session.Thing.Keys.Req thing_keys_req = 902;</code> */ public Builder setThingKeysReq( ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.Builder builderForValue) { if (thingKeysReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { thingKeysReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 902; return this; } /** * <code>optional .session.Thing.Keys.Req thing_keys_req = 902;</code> */ public Builder mergeThingKeysReq(ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req value) { if (thingKeysReqBuilder_ == null) { if (reqCase_ == 902 && req_ != ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 902) { thingKeysReqBuilder_.mergeFrom(value); } thingKeysReqBuilder_.setMessage(value); } reqCase_ = 902; return this; } /** * <code>optional .session.Thing.Keys.Req thing_keys_req = 902;</code> */ public Builder clearThingKeysReq() { if (thingKeysReqBuilder_ == null) { if (reqCase_ == 902) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 902) { reqCase_ = 0; req_ = null; } thingKeysReqBuilder_.clear(); } return this; } /** * <code>optional .session.Thing.Keys.Req thing_keys_req = 902;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.Builder getThingKeysReqBuilder() { return getThingKeysReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.Keys.Req thing_keys_req = 902;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.ReqOrBuilder getThingKeysReqOrBuilder() { if ((reqCase_ == 902) && (thingKeysReqBuilder_ != null)) { return thingKeysReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 902) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.getDefaultInstance(); } } /** * <code>optional .session.Thing.Keys.Req thing_keys_req = 902;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.ReqOrBuilder> getThingKeysReqFieldBuilder() { if (thingKeysReqBuilder_ == null) { if (!(reqCase_ == 902)) { req_ = ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.getDefaultInstance(); } thingKeysReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 902; onChanged();; return thingKeysReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.ReqOrBuilder> thingAttributesReqBuilder_; /** * <code>optional .session.Thing.Attributes.Req thing_attributes_req = 903;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req getThingAttributesReq() { if (thingAttributesReqBuilder_ == null) { if (reqCase_ == 903) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.getDefaultInstance(); } else { if (reqCase_ == 903) { return thingAttributesReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.getDefaultInstance(); } } /** * <code>optional .session.Thing.Attributes.Req thing_attributes_req = 903;</code> */ public Builder setThingAttributesReq(ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req value) { if (thingAttributesReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { thingAttributesReqBuilder_.setMessage(value); } reqCase_ = 903; return this; } /** * <code>optional .session.Thing.Attributes.Req thing_attributes_req = 903;</code> */ public Builder setThingAttributesReq( ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.Builder builderForValue) { if (thingAttributesReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { thingAttributesReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 903; return this; } /** * <code>optional .session.Thing.Attributes.Req thing_attributes_req = 903;</code> */ public Builder mergeThingAttributesReq(ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req value) { if (thingAttributesReqBuilder_ == null) { if (reqCase_ == 903 && req_ != ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 903) { thingAttributesReqBuilder_.mergeFrom(value); } thingAttributesReqBuilder_.setMessage(value); } reqCase_ = 903; return this; } /** * <code>optional .session.Thing.Attributes.Req thing_attributes_req = 903;</code> */ public Builder clearThingAttributesReq() { if (thingAttributesReqBuilder_ == null) { if (reqCase_ == 903) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 903) { reqCase_ = 0; req_ = null; } thingAttributesReqBuilder_.clear(); } return this; } /** * <code>optional .session.Thing.Attributes.Req thing_attributes_req = 903;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.Builder getThingAttributesReqBuilder() { return getThingAttributesReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.Attributes.Req thing_attributes_req = 903;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.ReqOrBuilder getThingAttributesReqOrBuilder() { if ((reqCase_ == 903) && (thingAttributesReqBuilder_ != null)) { return thingAttributesReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 903) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.getDefaultInstance(); } } /** * <code>optional .session.Thing.Attributes.Req thing_attributes_req = 903;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.ReqOrBuilder> getThingAttributesReqFieldBuilder() { if (thingAttributesReqBuilder_ == null) { if (!(reqCase_ == 903)) { req_ = ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.getDefaultInstance(); } thingAttributesReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 903; onChanged();; return thingAttributesReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.ReqOrBuilder> thingRelationsReqBuilder_; /** * <code>optional .session.Thing.Relations.Req thing_relations_req = 904;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req getThingRelationsReq() { if (thingRelationsReqBuilder_ == null) { if (reqCase_ == 904) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.getDefaultInstance(); } else { if (reqCase_ == 904) { return thingRelationsReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.getDefaultInstance(); } } /** * <code>optional .session.Thing.Relations.Req thing_relations_req = 904;</code> */ public Builder setThingRelationsReq(ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req value) { if (thingRelationsReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { thingRelationsReqBuilder_.setMessage(value); } reqCase_ = 904; return this; } /** * <code>optional .session.Thing.Relations.Req thing_relations_req = 904;</code> */ public Builder setThingRelationsReq( ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.Builder builderForValue) { if (thingRelationsReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { thingRelationsReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 904; return this; } /** * <code>optional .session.Thing.Relations.Req thing_relations_req = 904;</code> */ public Builder mergeThingRelationsReq(ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req value) { if (thingRelationsReqBuilder_ == null) { if (reqCase_ == 904 && req_ != ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 904) { thingRelationsReqBuilder_.mergeFrom(value); } thingRelationsReqBuilder_.setMessage(value); } reqCase_ = 904; return this; } /** * <code>optional .session.Thing.Relations.Req thing_relations_req = 904;</code> */ public Builder clearThingRelationsReq() { if (thingRelationsReqBuilder_ == null) { if (reqCase_ == 904) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 904) { reqCase_ = 0; req_ = null; } thingRelationsReqBuilder_.clear(); } return this; } /** * <code>optional .session.Thing.Relations.Req thing_relations_req = 904;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.Builder getThingRelationsReqBuilder() { return getThingRelationsReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.Relations.Req thing_relations_req = 904;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.ReqOrBuilder getThingRelationsReqOrBuilder() { if ((reqCase_ == 904) && (thingRelationsReqBuilder_ != null)) { return thingRelationsReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 904) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.getDefaultInstance(); } } /** * <code>optional .session.Thing.Relations.Req thing_relations_req = 904;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.ReqOrBuilder> getThingRelationsReqFieldBuilder() { if (thingRelationsReqBuilder_ == null) { if (!(reqCase_ == 904)) { req_ = ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.getDefaultInstance(); } thingRelationsReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 904; onChanged();; return thingRelationsReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.ReqOrBuilder> thingRolesReqBuilder_; /** * <code>optional .session.Thing.Roles.Req thing_roles_req = 905;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req getThingRolesReq() { if (thingRolesReqBuilder_ == null) { if (reqCase_ == 905) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.getDefaultInstance(); } else { if (reqCase_ == 905) { return thingRolesReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.getDefaultInstance(); } } /** * <code>optional .session.Thing.Roles.Req thing_roles_req = 905;</code> */ public Builder setThingRolesReq(ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req value) { if (thingRolesReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { thingRolesReqBuilder_.setMessage(value); } reqCase_ = 905; return this; } /** * <code>optional .session.Thing.Roles.Req thing_roles_req = 905;</code> */ public Builder setThingRolesReq( ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.Builder builderForValue) { if (thingRolesReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { thingRolesReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 905; return this; } /** * <code>optional .session.Thing.Roles.Req thing_roles_req = 905;</code> */ public Builder mergeThingRolesReq(ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req value) { if (thingRolesReqBuilder_ == null) { if (reqCase_ == 905 && req_ != ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 905) { thingRolesReqBuilder_.mergeFrom(value); } thingRolesReqBuilder_.setMessage(value); } reqCase_ = 905; return this; } /** * <code>optional .session.Thing.Roles.Req thing_roles_req = 905;</code> */ public Builder clearThingRolesReq() { if (thingRolesReqBuilder_ == null) { if (reqCase_ == 905) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 905) { reqCase_ = 0; req_ = null; } thingRolesReqBuilder_.clear(); } return this; } /** * <code>optional .session.Thing.Roles.Req thing_roles_req = 905;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.Builder getThingRolesReqBuilder() { return getThingRolesReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.Roles.Req thing_roles_req = 905;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.ReqOrBuilder getThingRolesReqOrBuilder() { if ((reqCase_ == 905) && (thingRolesReqBuilder_ != null)) { return thingRolesReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 905) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.getDefaultInstance(); } } /** * <code>optional .session.Thing.Roles.Req thing_roles_req = 905;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.ReqOrBuilder> getThingRolesReqFieldBuilder() { if (thingRolesReqBuilder_ == null) { if (!(reqCase_ == 905)) { req_ = ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.getDefaultInstance(); } thingRolesReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 905; onChanged();; return thingRolesReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.ReqOrBuilder> thingRelhasReqBuilder_; /** * <code>optional .session.Thing.Relhas.Req thing_relhas_req = 906;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req getThingRelhasReq() { if (thingRelhasReqBuilder_ == null) { if (reqCase_ == 906) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.getDefaultInstance(); } else { if (reqCase_ == 906) { return thingRelhasReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.getDefaultInstance(); } } /** * <code>optional .session.Thing.Relhas.Req thing_relhas_req = 906;</code> */ public Builder setThingRelhasReq(ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req value) { if (thingRelhasReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { thingRelhasReqBuilder_.setMessage(value); } reqCase_ = 906; return this; } /** * <code>optional .session.Thing.Relhas.Req thing_relhas_req = 906;</code> */ public Builder setThingRelhasReq( ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.Builder builderForValue) { if (thingRelhasReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { thingRelhasReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 906; return this; } /** * <code>optional .session.Thing.Relhas.Req thing_relhas_req = 906;</code> */ public Builder mergeThingRelhasReq(ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req value) { if (thingRelhasReqBuilder_ == null) { if (reqCase_ == 906 && req_ != ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 906) { thingRelhasReqBuilder_.mergeFrom(value); } thingRelhasReqBuilder_.setMessage(value); } reqCase_ = 906; return this; } /** * <code>optional .session.Thing.Relhas.Req thing_relhas_req = 906;</code> */ public Builder clearThingRelhasReq() { if (thingRelhasReqBuilder_ == null) { if (reqCase_ == 906) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 906) { reqCase_ = 0; req_ = null; } thingRelhasReqBuilder_.clear(); } return this; } /** * <code>optional .session.Thing.Relhas.Req thing_relhas_req = 906;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.Builder getThingRelhasReqBuilder() { return getThingRelhasReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.Relhas.Req thing_relhas_req = 906;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.ReqOrBuilder getThingRelhasReqOrBuilder() { if ((reqCase_ == 906) && (thingRelhasReqBuilder_ != null)) { return thingRelhasReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 906) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.getDefaultInstance(); } } /** * <code>optional .session.Thing.Relhas.Req thing_relhas_req = 906;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.ReqOrBuilder> getThingRelhasReqFieldBuilder() { if (thingRelhasReqBuilder_ == null) { if (!(reqCase_ == 906)) { req_ = ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.getDefaultInstance(); } thingRelhasReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 906; onChanged();; return thingRelhasReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.ReqOrBuilder> thingUnhasReqBuilder_; /** * <code>optional .session.Thing.Unhas.Req thing_unhas_req = 907;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req getThingUnhasReq() { if (thingUnhasReqBuilder_ == null) { if (reqCase_ == 907) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.getDefaultInstance(); } else { if (reqCase_ == 907) { return thingUnhasReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.getDefaultInstance(); } } /** * <code>optional .session.Thing.Unhas.Req thing_unhas_req = 907;</code> */ public Builder setThingUnhasReq(ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req value) { if (thingUnhasReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { thingUnhasReqBuilder_.setMessage(value); } reqCase_ = 907; return this; } /** * <code>optional .session.Thing.Unhas.Req thing_unhas_req = 907;</code> */ public Builder setThingUnhasReq( ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.Builder builderForValue) { if (thingUnhasReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { thingUnhasReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 907; return this; } /** * <code>optional .session.Thing.Unhas.Req thing_unhas_req = 907;</code> */ public Builder mergeThingUnhasReq(ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req value) { if (thingUnhasReqBuilder_ == null) { if (reqCase_ == 907 && req_ != ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 907) { thingUnhasReqBuilder_.mergeFrom(value); } thingUnhasReqBuilder_.setMessage(value); } reqCase_ = 907; return this; } /** * <code>optional .session.Thing.Unhas.Req thing_unhas_req = 907;</code> */ public Builder clearThingUnhasReq() { if (thingUnhasReqBuilder_ == null) { if (reqCase_ == 907) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 907) { reqCase_ = 0; req_ = null; } thingUnhasReqBuilder_.clear(); } return this; } /** * <code>optional .session.Thing.Unhas.Req thing_unhas_req = 907;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.Builder getThingUnhasReqBuilder() { return getThingUnhasReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.Unhas.Req thing_unhas_req = 907;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.ReqOrBuilder getThingUnhasReqOrBuilder() { if ((reqCase_ == 907) && (thingUnhasReqBuilder_ != null)) { return thingUnhasReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 907) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.getDefaultInstance(); } } /** * <code>optional .session.Thing.Unhas.Req thing_unhas_req = 907;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.ReqOrBuilder> getThingUnhasReqFieldBuilder() { if (thingUnhasReqBuilder_ == null) { if (!(reqCase_ == 907)) { req_ = ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.getDefaultInstance(); } thingUnhasReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 907; onChanged();; return thingUnhasReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.ReqOrBuilder> relationRolePlayersMapReqBuilder_; /** * <pre> * Relation method requests * </pre> * * <code>optional .session.Relation.RolePlayersMap.Req relation_rolePlayersMap_req = 1000;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req getRelationRolePlayersMapReq() { if (relationRolePlayersMapReqBuilder_ == null) { if (reqCase_ == 1000) { return (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.getDefaultInstance(); } else { if (reqCase_ == 1000) { return relationRolePlayersMapReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.getDefaultInstance(); } } /** * <pre> * Relation method requests * </pre> * * <code>optional .session.Relation.RolePlayersMap.Req relation_rolePlayersMap_req = 1000;</code> */ public Builder setRelationRolePlayersMapReq(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req value) { if (relationRolePlayersMapReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { relationRolePlayersMapReqBuilder_.setMessage(value); } reqCase_ = 1000; return this; } /** * <pre> * Relation method requests * </pre> * * <code>optional .session.Relation.RolePlayersMap.Req relation_rolePlayersMap_req = 1000;</code> */ public Builder setRelationRolePlayersMapReq( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.Builder builderForValue) { if (relationRolePlayersMapReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { relationRolePlayersMapReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 1000; return this; } /** * <pre> * Relation method requests * </pre> * * <code>optional .session.Relation.RolePlayersMap.Req relation_rolePlayersMap_req = 1000;</code> */ public Builder mergeRelationRolePlayersMapReq(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req value) { if (relationRolePlayersMapReqBuilder_ == null) { if (reqCase_ == 1000 && req_ != ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 1000) { relationRolePlayersMapReqBuilder_.mergeFrom(value); } relationRolePlayersMapReqBuilder_.setMessage(value); } reqCase_ = 1000; return this; } /** * <pre> * Relation method requests * </pre> * * <code>optional .session.Relation.RolePlayersMap.Req relation_rolePlayersMap_req = 1000;</code> */ public Builder clearRelationRolePlayersMapReq() { if (relationRolePlayersMapReqBuilder_ == null) { if (reqCase_ == 1000) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 1000) { reqCase_ = 0; req_ = null; } relationRolePlayersMapReqBuilder_.clear(); } return this; } /** * <pre> * Relation method requests * </pre> * * <code>optional .session.Relation.RolePlayersMap.Req relation_rolePlayersMap_req = 1000;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.Builder getRelationRolePlayersMapReqBuilder() { return getRelationRolePlayersMapReqFieldBuilder().getBuilder(); } /** * <pre> * Relation method requests * </pre> * * <code>optional .session.Relation.RolePlayersMap.Req relation_rolePlayersMap_req = 1000;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.ReqOrBuilder getRelationRolePlayersMapReqOrBuilder() { if ((reqCase_ == 1000) && (relationRolePlayersMapReqBuilder_ != null)) { return relationRolePlayersMapReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 1000) { return (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.getDefaultInstance(); } } /** * <pre> * Relation method requests * </pre> * * <code>optional .session.Relation.RolePlayersMap.Req relation_rolePlayersMap_req = 1000;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.ReqOrBuilder> getRelationRolePlayersMapReqFieldBuilder() { if (relationRolePlayersMapReqBuilder_ == null) { if (!(reqCase_ == 1000)) { req_ = ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.getDefaultInstance(); } relationRolePlayersMapReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 1000; onChanged();; return relationRolePlayersMapReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.ReqOrBuilder> relationRolePlayersReqBuilder_; /** * <code>optional .session.Relation.RolePlayers.Req relation_rolePlayers_req = 1001;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req getRelationRolePlayersReq() { if (relationRolePlayersReqBuilder_ == null) { if (reqCase_ == 1001) { return (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.getDefaultInstance(); } else { if (reqCase_ == 1001) { return relationRolePlayersReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.getDefaultInstance(); } } /** * <code>optional .session.Relation.RolePlayers.Req relation_rolePlayers_req = 1001;</code> */ public Builder setRelationRolePlayersReq(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req value) { if (relationRolePlayersReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { relationRolePlayersReqBuilder_.setMessage(value); } reqCase_ = 1001; return this; } /** * <code>optional .session.Relation.RolePlayers.Req relation_rolePlayers_req = 1001;</code> */ public Builder setRelationRolePlayersReq( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.Builder builderForValue) { if (relationRolePlayersReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { relationRolePlayersReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 1001; return this; } /** * <code>optional .session.Relation.RolePlayers.Req relation_rolePlayers_req = 1001;</code> */ public Builder mergeRelationRolePlayersReq(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req value) { if (relationRolePlayersReqBuilder_ == null) { if (reqCase_ == 1001 && req_ != ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 1001) { relationRolePlayersReqBuilder_.mergeFrom(value); } relationRolePlayersReqBuilder_.setMessage(value); } reqCase_ = 1001; return this; } /** * <code>optional .session.Relation.RolePlayers.Req relation_rolePlayers_req = 1001;</code> */ public Builder clearRelationRolePlayersReq() { if (relationRolePlayersReqBuilder_ == null) { if (reqCase_ == 1001) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 1001) { reqCase_ = 0; req_ = null; } relationRolePlayersReqBuilder_.clear(); } return this; } /** * <code>optional .session.Relation.RolePlayers.Req relation_rolePlayers_req = 1001;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.Builder getRelationRolePlayersReqBuilder() { return getRelationRolePlayersReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Relation.RolePlayers.Req relation_rolePlayers_req = 1001;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.ReqOrBuilder getRelationRolePlayersReqOrBuilder() { if ((reqCase_ == 1001) && (relationRolePlayersReqBuilder_ != null)) { return relationRolePlayersReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 1001) { return (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.getDefaultInstance(); } } /** * <code>optional .session.Relation.RolePlayers.Req relation_rolePlayers_req = 1001;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.ReqOrBuilder> getRelationRolePlayersReqFieldBuilder() { if (relationRolePlayersReqBuilder_ == null) { if (!(reqCase_ == 1001)) { req_ = ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.getDefaultInstance(); } relationRolePlayersReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 1001; onChanged();; return relationRolePlayersReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.ReqOrBuilder> relationAssignReqBuilder_; /** * <code>optional .session.Relation.Assign.Req relation_assign_req = 1002;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req getRelationAssignReq() { if (relationAssignReqBuilder_ == null) { if (reqCase_ == 1002) { return (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.getDefaultInstance(); } else { if (reqCase_ == 1002) { return relationAssignReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.getDefaultInstance(); } } /** * <code>optional .session.Relation.Assign.Req relation_assign_req = 1002;</code> */ public Builder setRelationAssignReq(ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req value) { if (relationAssignReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { relationAssignReqBuilder_.setMessage(value); } reqCase_ = 1002; return this; } /** * <code>optional .session.Relation.Assign.Req relation_assign_req = 1002;</code> */ public Builder setRelationAssignReq( ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.Builder builderForValue) { if (relationAssignReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { relationAssignReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 1002; return this; } /** * <code>optional .session.Relation.Assign.Req relation_assign_req = 1002;</code> */ public Builder mergeRelationAssignReq(ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req value) { if (relationAssignReqBuilder_ == null) { if (reqCase_ == 1002 && req_ != ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 1002) { relationAssignReqBuilder_.mergeFrom(value); } relationAssignReqBuilder_.setMessage(value); } reqCase_ = 1002; return this; } /** * <code>optional .session.Relation.Assign.Req relation_assign_req = 1002;</code> */ public Builder clearRelationAssignReq() { if (relationAssignReqBuilder_ == null) { if (reqCase_ == 1002) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 1002) { reqCase_ = 0; req_ = null; } relationAssignReqBuilder_.clear(); } return this; } /** * <code>optional .session.Relation.Assign.Req relation_assign_req = 1002;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.Builder getRelationAssignReqBuilder() { return getRelationAssignReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Relation.Assign.Req relation_assign_req = 1002;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.ReqOrBuilder getRelationAssignReqOrBuilder() { if ((reqCase_ == 1002) && (relationAssignReqBuilder_ != null)) { return relationAssignReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 1002) { return (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.getDefaultInstance(); } } /** * <code>optional .session.Relation.Assign.Req relation_assign_req = 1002;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.ReqOrBuilder> getRelationAssignReqFieldBuilder() { if (relationAssignReqBuilder_ == null) { if (!(reqCase_ == 1002)) { req_ = ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.getDefaultInstance(); } relationAssignReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 1002; onChanged();; return relationAssignReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.ReqOrBuilder> relationUnassignReqBuilder_; /** * <code>optional .session.Relation.Unassign.Req relation_unassign_req = 1003;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req getRelationUnassignReq() { if (relationUnassignReqBuilder_ == null) { if (reqCase_ == 1003) { return (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.getDefaultInstance(); } else { if (reqCase_ == 1003) { return relationUnassignReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.getDefaultInstance(); } } /** * <code>optional .session.Relation.Unassign.Req relation_unassign_req = 1003;</code> */ public Builder setRelationUnassignReq(ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req value) { if (relationUnassignReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { relationUnassignReqBuilder_.setMessage(value); } reqCase_ = 1003; return this; } /** * <code>optional .session.Relation.Unassign.Req relation_unassign_req = 1003;</code> */ public Builder setRelationUnassignReq( ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.Builder builderForValue) { if (relationUnassignReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { relationUnassignReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 1003; return this; } /** * <code>optional .session.Relation.Unassign.Req relation_unassign_req = 1003;</code> */ public Builder mergeRelationUnassignReq(ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req value) { if (relationUnassignReqBuilder_ == null) { if (reqCase_ == 1003 && req_ != ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 1003) { relationUnassignReqBuilder_.mergeFrom(value); } relationUnassignReqBuilder_.setMessage(value); } reqCase_ = 1003; return this; } /** * <code>optional .session.Relation.Unassign.Req relation_unassign_req = 1003;</code> */ public Builder clearRelationUnassignReq() { if (relationUnassignReqBuilder_ == null) { if (reqCase_ == 1003) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 1003) { reqCase_ = 0; req_ = null; } relationUnassignReqBuilder_.clear(); } return this; } /** * <code>optional .session.Relation.Unassign.Req relation_unassign_req = 1003;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.Builder getRelationUnassignReqBuilder() { return getRelationUnassignReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Relation.Unassign.Req relation_unassign_req = 1003;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.ReqOrBuilder getRelationUnassignReqOrBuilder() { if ((reqCase_ == 1003) && (relationUnassignReqBuilder_ != null)) { return relationUnassignReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 1003) { return (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.getDefaultInstance(); } } /** * <code>optional .session.Relation.Unassign.Req relation_unassign_req = 1003;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.ReqOrBuilder> getRelationUnassignReqFieldBuilder() { if (relationUnassignReqBuilder_ == null) { if (!(reqCase_ == 1003)) { req_ = ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.getDefaultInstance(); } relationUnassignReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 1003; onChanged();; return relationUnassignReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.ReqOrBuilder> attributeValueReqBuilder_; /** * <pre> * Attribute method requests * </pre> * * <code>optional .session.Attribute.Value.Req attribute_value_req = 1100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req getAttributeValueReq() { if (attributeValueReqBuilder_ == null) { if (reqCase_ == 1100) { return (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.getDefaultInstance(); } else { if (reqCase_ == 1100) { return attributeValueReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.getDefaultInstance(); } } /** * <pre> * Attribute method requests * </pre> * * <code>optional .session.Attribute.Value.Req attribute_value_req = 1100;</code> */ public Builder setAttributeValueReq(ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req value) { if (attributeValueReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { attributeValueReqBuilder_.setMessage(value); } reqCase_ = 1100; return this; } /** * <pre> * Attribute method requests * </pre> * * <code>optional .session.Attribute.Value.Req attribute_value_req = 1100;</code> */ public Builder setAttributeValueReq( ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.Builder builderForValue) { if (attributeValueReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { attributeValueReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 1100; return this; } /** * <pre> * Attribute method requests * </pre> * * <code>optional .session.Attribute.Value.Req attribute_value_req = 1100;</code> */ public Builder mergeAttributeValueReq(ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req value) { if (attributeValueReqBuilder_ == null) { if (reqCase_ == 1100 && req_ != ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 1100) { attributeValueReqBuilder_.mergeFrom(value); } attributeValueReqBuilder_.setMessage(value); } reqCase_ = 1100; return this; } /** * <pre> * Attribute method requests * </pre> * * <code>optional .session.Attribute.Value.Req attribute_value_req = 1100;</code> */ public Builder clearAttributeValueReq() { if (attributeValueReqBuilder_ == null) { if (reqCase_ == 1100) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 1100) { reqCase_ = 0; req_ = null; } attributeValueReqBuilder_.clear(); } return this; } /** * <pre> * Attribute method requests * </pre> * * <code>optional .session.Attribute.Value.Req attribute_value_req = 1100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.Builder getAttributeValueReqBuilder() { return getAttributeValueReqFieldBuilder().getBuilder(); } /** * <pre> * Attribute method requests * </pre> * * <code>optional .session.Attribute.Value.Req attribute_value_req = 1100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.ReqOrBuilder getAttributeValueReqOrBuilder() { if ((reqCase_ == 1100) && (attributeValueReqBuilder_ != null)) { return attributeValueReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 1100) { return (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.getDefaultInstance(); } } /** * <pre> * Attribute method requests * </pre> * * <code>optional .session.Attribute.Value.Req attribute_value_req = 1100;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.ReqOrBuilder> getAttributeValueReqFieldBuilder() { if (attributeValueReqBuilder_ == null) { if (!(reqCase_ == 1100)) { req_ = ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.getDefaultInstance(); } attributeValueReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 1100; onChanged();; return attributeValueReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.ReqOrBuilder> attributeOwnersReqBuilder_; /** * <code>optional .session.Attribute.Owners.Req attribute_owners_req = 1101;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req getAttributeOwnersReq() { if (attributeOwnersReqBuilder_ == null) { if (reqCase_ == 1101) { return (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.getDefaultInstance(); } else { if (reqCase_ == 1101) { return attributeOwnersReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.getDefaultInstance(); } } /** * <code>optional .session.Attribute.Owners.Req attribute_owners_req = 1101;</code> */ public Builder setAttributeOwnersReq(ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req value) { if (attributeOwnersReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { attributeOwnersReqBuilder_.setMessage(value); } reqCase_ = 1101; return this; } /** * <code>optional .session.Attribute.Owners.Req attribute_owners_req = 1101;</code> */ public Builder setAttributeOwnersReq( ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.Builder builderForValue) { if (attributeOwnersReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { attributeOwnersReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 1101; return this; } /** * <code>optional .session.Attribute.Owners.Req attribute_owners_req = 1101;</code> */ public Builder mergeAttributeOwnersReq(ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req value) { if (attributeOwnersReqBuilder_ == null) { if (reqCase_ == 1101 && req_ != ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.newBuilder((ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 1101) { attributeOwnersReqBuilder_.mergeFrom(value); } attributeOwnersReqBuilder_.setMessage(value); } reqCase_ = 1101; return this; } /** * <code>optional .session.Attribute.Owners.Req attribute_owners_req = 1101;</code> */ public Builder clearAttributeOwnersReq() { if (attributeOwnersReqBuilder_ == null) { if (reqCase_ == 1101) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 1101) { reqCase_ = 0; req_ = null; } attributeOwnersReqBuilder_.clear(); } return this; } /** * <code>optional .session.Attribute.Owners.Req attribute_owners_req = 1101;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.Builder getAttributeOwnersReqBuilder() { return getAttributeOwnersReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Attribute.Owners.Req attribute_owners_req = 1101;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.ReqOrBuilder getAttributeOwnersReqOrBuilder() { if ((reqCase_ == 1101) && (attributeOwnersReqBuilder_ != null)) { return attributeOwnersReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 1101) { return (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req) req_; } return ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.getDefaultInstance(); } } /** * <code>optional .session.Attribute.Owners.Req attribute_owners_req = 1101;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.ReqOrBuilder> getAttributeOwnersReqFieldBuilder() { if (attributeOwnersReqBuilder_ == null) { if (!(reqCase_ == 1101)) { req_ = ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.getDefaultInstance(); } attributeOwnersReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.ReqOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 1101; onChanged();; return attributeOwnersReqBuilder_; } 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.Method.Req) } // @@protoc_insertion_point(class_scope:session.Method.Req) private static final ai.grakn.rpc.proto.ConceptProto.Method.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Method.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Method.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Method.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Method.Res) com.google.protobuf.MessageOrBuilder { /** * <pre> * Concept method responses * </pre> * * <code>optional .session.Concept.Delete.Res concept_delete_res = 100;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res getConceptDeleteRes(); /** * <pre> * Concept method responses * </pre> * * <code>optional .session.Concept.Delete.Res concept_delete_res = 100;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept.Delete.ResOrBuilder getConceptDeleteResOrBuilder(); /** * <pre> * SchemaConcept method responses * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Res schemaConcept_isImplicit_res = 200;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res getSchemaConceptIsImplicitRes(); /** * <pre> * SchemaConcept method responses * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Res schemaConcept_isImplicit_res = 200;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.ResOrBuilder getSchemaConceptIsImplicitResOrBuilder(); /** * <code>optional .session.SchemaConcept.GetLabel.Res schemaConcept_getLabel_res = 201;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res getSchemaConceptGetLabelRes(); /** * <code>optional .session.SchemaConcept.GetLabel.Res schemaConcept_getLabel_res = 201;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.ResOrBuilder getSchemaConceptGetLabelResOrBuilder(); /** * <code>optional .session.SchemaConcept.SetLabel.Res schemaConcept_setLabel_res = 202;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res getSchemaConceptSetLabelRes(); /** * <code>optional .session.SchemaConcept.SetLabel.Res schemaConcept_setLabel_res = 202;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.ResOrBuilder getSchemaConceptSetLabelResOrBuilder(); /** * <code>optional .session.SchemaConcept.GetSup.Res schemaConcept_getSup_res = 203;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res getSchemaConceptGetSupRes(); /** * <code>optional .session.SchemaConcept.GetSup.Res schemaConcept_getSup_res = 203;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.ResOrBuilder getSchemaConceptGetSupResOrBuilder(); /** * <code>optional .session.SchemaConcept.SetSup.Res schemaConcept_setSup_res = 204;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res getSchemaConceptSetSupRes(); /** * <code>optional .session.SchemaConcept.SetSup.Res schemaConcept_setSup_res = 204;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.ResOrBuilder getSchemaConceptSetSupResOrBuilder(); /** * <code>optional .session.SchemaConcept.Sups.Iter schemaConcept_sups_iter = 205;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter getSchemaConceptSupsIter(); /** * <code>optional .session.SchemaConcept.Sups.Iter schemaConcept_sups_iter = 205;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.IterOrBuilder getSchemaConceptSupsIterOrBuilder(); /** * <code>optional .session.SchemaConcept.Subs.Iter schemaConcept_subs_iter = 206;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter getSchemaConceptSubsIter(); /** * <code>optional .session.SchemaConcept.Subs.Iter schemaConcept_subs_iter = 206;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.IterOrBuilder getSchemaConceptSubsIterOrBuilder(); /** * <pre> * Rule method responses * </pre> * * <code>optional .session.Rule.When.Res rule_when_res = 300;</code> */ ai.grakn.rpc.proto.ConceptProto.Rule.When.Res getRuleWhenRes(); /** * <pre> * Rule method responses * </pre> * * <code>optional .session.Rule.When.Res rule_when_res = 300;</code> */ ai.grakn.rpc.proto.ConceptProto.Rule.When.ResOrBuilder getRuleWhenResOrBuilder(); /** * <code>optional .session.Rule.Then.Res rule_then_res = 301;</code> */ ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res getRuleThenRes(); /** * <code>optional .session.Rule.Then.Res rule_then_res = 301;</code> */ ai.grakn.rpc.proto.ConceptProto.Rule.Then.ResOrBuilder getRuleThenResOrBuilder(); /** * <pre> * Role method responses * </pre> * * <code>optional .session.Role.Relations.Iter role_relations_iter = 401;</code> */ ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter getRoleRelationsIter(); /** * <pre> * Role method responses * </pre> * * <code>optional .session.Role.Relations.Iter role_relations_iter = 401;</code> */ ai.grakn.rpc.proto.ConceptProto.Role.Relations.IterOrBuilder getRoleRelationsIterOrBuilder(); /** * <code>optional .session.Role.Players.Iter role_players_iter = 402;</code> */ ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter getRolePlayersIter(); /** * <code>optional .session.Role.Players.Iter role_players_iter = 402;</code> */ ai.grakn.rpc.proto.ConceptProto.Role.Players.IterOrBuilder getRolePlayersIterOrBuilder(); /** * <pre> * Type method responses * </pre> * * <code>optional .session.Type.IsAbstract.Res type_isAbstract_res = 500;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res getTypeIsAbstractRes(); /** * <pre> * Type method responses * </pre> * * <code>optional .session.Type.IsAbstract.Res type_isAbstract_res = 500;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.ResOrBuilder getTypeIsAbstractResOrBuilder(); /** * <code>optional .session.Type.SetAbstract.Res type_setAbstract_res = 501;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res getTypeSetAbstractRes(); /** * <code>optional .session.Type.SetAbstract.Res type_setAbstract_res = 501;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.ResOrBuilder getTypeSetAbstractResOrBuilder(); /** * <code>optional .session.Type.Instances.Iter type_instances_iter = 502;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter getTypeInstancesIter(); /** * <code>optional .session.Type.Instances.Iter type_instances_iter = 502;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Instances.IterOrBuilder getTypeInstancesIterOrBuilder(); /** * <code>optional .session.Type.Keys.Iter type_keys_iter = 503;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter getTypeKeysIter(); /** * <code>optional .session.Type.Keys.Iter type_keys_iter = 503;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Keys.IterOrBuilder getTypeKeysIterOrBuilder(); /** * <code>optional .session.Type.Attributes.Iter type_attributes_iter = 504;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter getTypeAttributesIter(); /** * <code>optional .session.Type.Attributes.Iter type_attributes_iter = 504;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Attributes.IterOrBuilder getTypeAttributesIterOrBuilder(); /** * <code>optional .session.Type.Playing.Iter type_playing_iter = 505;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter getTypePlayingIter(); /** * <code>optional .session.Type.Playing.Iter type_playing_iter = 505;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Playing.IterOrBuilder getTypePlayingIterOrBuilder(); /** * <code>optional .session.Type.Has.Res type_has_res = 506;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Has.Res getTypeHasRes(); /** * <code>optional .session.Type.Has.Res type_has_res = 506;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Has.ResOrBuilder getTypeHasResOrBuilder(); /** * <code>optional .session.Type.Key.Res type_key_res = 507;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Key.Res getTypeKeyRes(); /** * <code>optional .session.Type.Key.Res type_key_res = 507;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Key.ResOrBuilder getTypeKeyResOrBuilder(); /** * <code>optional .session.Type.Plays.Res type_plays_res = 508;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res getTypePlaysRes(); /** * <code>optional .session.Type.Plays.Res type_plays_res = 508;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Plays.ResOrBuilder getTypePlaysResOrBuilder(); /** * <code>optional .session.Type.Unhas.Res type_unhas_res = 509;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res getTypeUnhasRes(); /** * <code>optional .session.Type.Unhas.Res type_unhas_res = 509;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Unhas.ResOrBuilder getTypeUnhasResOrBuilder(); /** * <code>optional .session.Type.Unkey.Res type_unkey_res = 510;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res getTypeUnkeyRes(); /** * <code>optional .session.Type.Unkey.Res type_unkey_res = 510;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Unkey.ResOrBuilder getTypeUnkeyResOrBuilder(); /** * <code>optional .session.Type.Unplay.Res type_unplay_res = 511;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res getTypeUnplayRes(); /** * <code>optional .session.Type.Unplay.Res type_unplay_res = 511;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Unplay.ResOrBuilder getTypeUnplayResOrBuilder(); /** * <pre> * EntityType method responses * </pre> * * <code>optional .session.EntityType.Create.Res entityType_create_res = 600;</code> */ ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res getEntityTypeCreateRes(); /** * <pre> * EntityType method responses * </pre> * * <code>optional .session.EntityType.Create.Res entityType_create_res = 600;</code> */ ai.grakn.rpc.proto.ConceptProto.EntityType.Create.ResOrBuilder getEntityTypeCreateResOrBuilder(); /** * <pre> * RelationType method responses * </pre> * * <code>optional .session.RelationType.Create.Res relationType_create_res = 700;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res getRelationTypeCreateRes(); /** * <pre> * RelationType method responses * </pre> * * <code>optional .session.RelationType.Create.Res relationType_create_res = 700;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Create.ResOrBuilder getRelationTypeCreateResOrBuilder(); /** * <code>optional .session.RelationType.Roles.Iter relationType_roles_iter = 701;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter getRelationTypeRolesIter(); /** * <code>optional .session.RelationType.Roles.Iter relationType_roles_iter = 701;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.IterOrBuilder getRelationTypeRolesIterOrBuilder(); /** * <code>optional .session.RelationType.Relates.Res relationType_relates_res = 702;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res getRelationTypeRelatesRes(); /** * <code>optional .session.RelationType.Relates.Res relationType_relates_res = 702;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.ResOrBuilder getRelationTypeRelatesResOrBuilder(); /** * <code>optional .session.RelationType.Unrelate.Res relationType_unrelate_res = 703;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res getRelationTypeUnrelateRes(); /** * <code>optional .session.RelationType.Unrelate.Res relationType_unrelate_res = 703;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.ResOrBuilder getRelationTypeUnrelateResOrBuilder(); /** * <pre> * AttributeType method responses * </pre> * * <code>optional .session.AttributeType.Create.Res attributeType_create_res = 800;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res getAttributeTypeCreateRes(); /** * <pre> * AttributeType method responses * </pre> * * <code>optional .session.AttributeType.Create.Res attributeType_create_res = 800;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.ResOrBuilder getAttributeTypeCreateResOrBuilder(); /** * <code>optional .session.AttributeType.Attribute.Res attributeType_attribute_res = 801;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res getAttributeTypeAttributeRes(); /** * <code>optional .session.AttributeType.Attribute.Res attributeType_attribute_res = 801;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.ResOrBuilder getAttributeTypeAttributeResOrBuilder(); /** * <code>optional .session.AttributeType.DataType.Res attributeType_dataType_res = 802;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res getAttributeTypeDataTypeRes(); /** * <code>optional .session.AttributeType.DataType.Res attributeType_dataType_res = 802;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.ResOrBuilder getAttributeTypeDataTypeResOrBuilder(); /** * <code>optional .session.AttributeType.GetRegex.Res attributeType_getRegex_res = 803;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res getAttributeTypeGetRegexRes(); /** * <code>optional .session.AttributeType.GetRegex.Res attributeType_getRegex_res = 803;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.ResOrBuilder getAttributeTypeGetRegexResOrBuilder(); /** * <code>optional .session.AttributeType.SetRegex.Res attributeType_setRegex_res = 804;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res getAttributeTypeSetRegexRes(); /** * <code>optional .session.AttributeType.SetRegex.Res attributeType_setRegex_res = 804;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.ResOrBuilder getAttributeTypeSetRegexResOrBuilder(); /** * <pre> * Thing method responses * </pre> * * <code>optional .session.Thing.Type.Res thing_type_res = 900;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res getThingTypeRes(); /** * <pre> * Thing method responses * </pre> * * <code>optional .session.Thing.Type.Res thing_type_res = 900;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Type.ResOrBuilder getThingTypeResOrBuilder(); /** * <code>optional .session.Thing.IsInferred.Res thing_isInferred_res = 901;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res getThingIsInferredRes(); /** * <code>optional .session.Thing.IsInferred.Res thing_isInferred_res = 901;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.ResOrBuilder getThingIsInferredResOrBuilder(); /** * <code>optional .session.Thing.Keys.Iter thing_keys_iter = 902;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter getThingKeysIter(); /** * <code>optional .session.Thing.Keys.Iter thing_keys_iter = 902;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Keys.IterOrBuilder getThingKeysIterOrBuilder(); /** * <code>optional .session.Thing.Attributes.Iter thing_attributes_iter = 903;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter getThingAttributesIter(); /** * <code>optional .session.Thing.Attributes.Iter thing_attributes_iter = 903;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.IterOrBuilder getThingAttributesIterOrBuilder(); /** * <code>optional .session.Thing.Relations.Iter thing_relations_iter = 904;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter getThingRelationsIter(); /** * <code>optional .session.Thing.Relations.Iter thing_relations_iter = 904;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Relations.IterOrBuilder getThingRelationsIterOrBuilder(); /** * <code>optional .session.Thing.Roles.Iter thing_roles_iter = 905;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter getThingRolesIter(); /** * <code>optional .session.Thing.Roles.Iter thing_roles_iter = 905;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Roles.IterOrBuilder getThingRolesIterOrBuilder(); /** * <code>optional .session.Thing.Relhas.Res thing_relhas_res = 906;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res getThingRelhasRes(); /** * <code>optional .session.Thing.Relhas.Res thing_relhas_res = 906;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.ResOrBuilder getThingRelhasResOrBuilder(); /** * <code>optional .session.Thing.Unhas.Res thing_unhas_res = 907;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res getThingUnhasRes(); /** * <code>optional .session.Thing.Unhas.Res thing_unhas_res = 907;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.ResOrBuilder getThingUnhasResOrBuilder(); /** * <pre> * Relation method responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter relation_rolePlayersMap_iter = 1000;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter getRelationRolePlayersMapIter(); /** * <pre> * Relation method responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter relation_rolePlayersMap_iter = 1000;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.IterOrBuilder getRelationRolePlayersMapIterOrBuilder(); /** * <code>optional .session.Relation.RolePlayers.Iter relation_rolePlayers_iter = 1001;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter getRelationRolePlayersIter(); /** * <code>optional .session.Relation.RolePlayers.Iter relation_rolePlayers_iter = 1001;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.IterOrBuilder getRelationRolePlayersIterOrBuilder(); /** * <code>optional .session.Relation.Assign.Res relation_assign_res = 1002;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res getRelationAssignRes(); /** * <code>optional .session.Relation.Assign.Res relation_assign_res = 1002;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.Assign.ResOrBuilder getRelationAssignResOrBuilder(); /** * <code>optional .session.Relation.Unassign.Res relation_unassign_res = 1003;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res getRelationUnassignRes(); /** * <code>optional .session.Relation.Unassign.Res relation_unassign_res = 1003;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.ResOrBuilder getRelationUnassignResOrBuilder(); /** * <pre> * Attribute method responses * </pre> * * <code>optional .session.Attribute.Value.Res attribute_value_res = 1100;</code> */ ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res getAttributeValueRes(); /** * <pre> * Attribute method responses * </pre> * * <code>optional .session.Attribute.Value.Res attribute_value_res = 1100;</code> */ ai.grakn.rpc.proto.ConceptProto.Attribute.Value.ResOrBuilder getAttributeValueResOrBuilder(); /** * <code>optional .session.Attribute.Owners.Iter attribute_owners_iter = 1101;</code> */ ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter getAttributeOwnersIter(); /** * <code>optional .session.Attribute.Owners.Iter attribute_owners_iter = 1101;</code> */ ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.IterOrBuilder getAttributeOwnersIterOrBuilder(); public ai.grakn.rpc.proto.ConceptProto.Method.Res.ResCase getResCase(); } /** * Protobuf type {@code session.Method.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Method.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; int mutable_bitField1_ = 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 802: { ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.Builder subBuilder = null; if (resCase_ == 100) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 100; break; } case 1602: { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.Builder subBuilder = null; if (resCase_ == 200) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 200; break; } case 1610: { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.Builder subBuilder = null; if (resCase_ == 201) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 201; break; } case 1618: { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.Builder subBuilder = null; if (resCase_ == 202) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 202; break; } case 1626: { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.Builder subBuilder = null; if (resCase_ == 203) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 203; break; } case 1634: { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.Builder subBuilder = null; if (resCase_ == 204) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 204; break; } case 1642: { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Builder subBuilder = null; if (resCase_ == 205) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 205; break; } case 1650: { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Builder subBuilder = null; if (resCase_ == 206) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 206; break; } case 2402: { ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.Builder subBuilder = null; if (resCase_ == 300) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Rule.When.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Rule.When.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 300; break; } case 2410: { ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.Builder subBuilder = null; if (resCase_ == 301) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 301; break; } case 3210: { ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Builder subBuilder = null; if (resCase_ == 401) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 401; break; } case 3218: { ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Builder subBuilder = null; if (resCase_ == 402) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 402; break; } case 4002: { ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.Builder subBuilder = null; if (resCase_ == 500) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 500; break; } case 4010: { ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.Builder subBuilder = null; if (resCase_ == 501) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 501; break; } case 4018: { ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Builder subBuilder = null; if (resCase_ == 502) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 502; break; } case 4026: { ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Builder subBuilder = null; if (resCase_ == 503) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 503; break; } case 4034: { ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Builder subBuilder = null; if (resCase_ == 504) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 504; break; } case 4042: { ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Builder subBuilder = null; if (resCase_ == 505) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 505; break; } case 4050: { ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.Builder subBuilder = null; if (resCase_ == 506) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Has.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Has.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 506; break; } case 4058: { ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.Builder subBuilder = null; if (resCase_ == 507) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Key.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Key.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 507; break; } case 4066: { ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.Builder subBuilder = null; if (resCase_ == 508) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 508; break; } case 4074: { ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.Builder subBuilder = null; if (resCase_ == 509) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 509; break; } case 4082: { ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.Builder subBuilder = null; if (resCase_ == 510) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 510; break; } case 4090: { ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.Builder subBuilder = null; if (resCase_ == 511) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 511; break; } case 4802: { ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.Builder subBuilder = null; if (resCase_ == 600) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 600; break; } case 5602: { ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.Builder subBuilder = null; if (resCase_ == 700) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 700; break; } case 5610: { ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Builder subBuilder = null; if (resCase_ == 701) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 701; break; } case 5618: { ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.Builder subBuilder = null; if (resCase_ == 702) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 702; break; } case 5626: { ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.Builder subBuilder = null; if (resCase_ == 703) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 703; break; } case 6402: { ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.Builder subBuilder = null; if (resCase_ == 800) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 800; break; } case 6410: { ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.Builder subBuilder = null; if (resCase_ == 801) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 801; break; } case 6418: { ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.Builder subBuilder = null; if (resCase_ == 802) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 802; break; } case 6426: { ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.Builder subBuilder = null; if (resCase_ == 803) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 803; break; } case 6434: { ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.Builder subBuilder = null; if (resCase_ == 804) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 804; break; } case 7202: { ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.Builder subBuilder = null; if (resCase_ == 900) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 900; break; } case 7210: { ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.Builder subBuilder = null; if (resCase_ == 901) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 901; break; } case 7218: { ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Builder subBuilder = null; if (resCase_ == 902) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 902; break; } case 7226: { ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Builder subBuilder = null; if (resCase_ == 903) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 903; break; } case 7234: { ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Builder subBuilder = null; if (resCase_ == 904) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 904; break; } case 7242: { ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Builder subBuilder = null; if (resCase_ == 905) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 905; break; } case 7250: { ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.Builder subBuilder = null; if (resCase_ == 906) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 906; break; } case 7258: { ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.Builder subBuilder = null; if (resCase_ == 907) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 907; break; } case 8002: { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Builder subBuilder = null; if (resCase_ == 1000) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 1000; break; } case 8010: { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Builder subBuilder = null; if (resCase_ == 1001) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 1001; break; } case 8018: { ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.Builder subBuilder = null; if (resCase_ == 1002) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 1002; break; } case 8026: { ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.Builder subBuilder = null; if (resCase_ == 1003) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 1003; break; } case 8802: { ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.Builder subBuilder = null; if (resCase_ == 1100) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 1100; break; } case 8810: { ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Builder subBuilder = null; if (resCase_ == 1101) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 1101; 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.ConceptProto.internal_static_session_Method_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Method.Res.class, ai.grakn.rpc.proto.ConceptProto.Method.Res.Builder.class); } private int resCase_ = 0; private java.lang.Object res_; public enum ResCase implements com.google.protobuf.Internal.EnumLite { CONCEPT_DELETE_RES(100), SCHEMACONCEPT_ISIMPLICIT_RES(200), SCHEMACONCEPT_GETLABEL_RES(201), SCHEMACONCEPT_SETLABEL_RES(202), SCHEMACONCEPT_GETSUP_RES(203), SCHEMACONCEPT_SETSUP_RES(204), SCHEMACONCEPT_SUPS_ITER(205), SCHEMACONCEPT_SUBS_ITER(206), RULE_WHEN_RES(300), RULE_THEN_RES(301), ROLE_RELATIONS_ITER(401), ROLE_PLAYERS_ITER(402), TYPE_ISABSTRACT_RES(500), TYPE_SETABSTRACT_RES(501), TYPE_INSTANCES_ITER(502), TYPE_KEYS_ITER(503), TYPE_ATTRIBUTES_ITER(504), TYPE_PLAYING_ITER(505), TYPE_HAS_RES(506), TYPE_KEY_RES(507), TYPE_PLAYS_RES(508), TYPE_UNHAS_RES(509), TYPE_UNKEY_RES(510), TYPE_UNPLAY_RES(511), ENTITYTYPE_CREATE_RES(600), RELATIONTYPE_CREATE_RES(700), RELATIONTYPE_ROLES_ITER(701), RELATIONTYPE_RELATES_RES(702), RELATIONTYPE_UNRELATE_RES(703), ATTRIBUTETYPE_CREATE_RES(800), ATTRIBUTETYPE_ATTRIBUTE_RES(801), ATTRIBUTETYPE_DATATYPE_RES(802), ATTRIBUTETYPE_GETREGEX_RES(803), ATTRIBUTETYPE_SETREGEX_RES(804), THING_TYPE_RES(900), THING_ISINFERRED_RES(901), THING_KEYS_ITER(902), THING_ATTRIBUTES_ITER(903), THING_RELATIONS_ITER(904), THING_ROLES_ITER(905), THING_RELHAS_RES(906), THING_UNHAS_RES(907), RELATION_ROLEPLAYERSMAP_ITER(1000), RELATION_ROLEPLAYERS_ITER(1001), RELATION_ASSIGN_RES(1002), RELATION_UNASSIGN_RES(1003), ATTRIBUTE_VALUE_RES(1100), ATTRIBUTE_OWNERS_ITER(1101), 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 100: return CONCEPT_DELETE_RES; case 200: return SCHEMACONCEPT_ISIMPLICIT_RES; case 201: return SCHEMACONCEPT_GETLABEL_RES; case 202: return SCHEMACONCEPT_SETLABEL_RES; case 203: return SCHEMACONCEPT_GETSUP_RES; case 204: return SCHEMACONCEPT_SETSUP_RES; case 205: return SCHEMACONCEPT_SUPS_ITER; case 206: return SCHEMACONCEPT_SUBS_ITER; case 300: return RULE_WHEN_RES; case 301: return RULE_THEN_RES; case 401: return ROLE_RELATIONS_ITER; case 402: return ROLE_PLAYERS_ITER; case 500: return TYPE_ISABSTRACT_RES; case 501: return TYPE_SETABSTRACT_RES; case 502: return TYPE_INSTANCES_ITER; case 503: return TYPE_KEYS_ITER; case 504: return TYPE_ATTRIBUTES_ITER; case 505: return TYPE_PLAYING_ITER; case 506: return TYPE_HAS_RES; case 507: return TYPE_KEY_RES; case 508: return TYPE_PLAYS_RES; case 509: return TYPE_UNHAS_RES; case 510: return TYPE_UNKEY_RES; case 511: return TYPE_UNPLAY_RES; case 600: return ENTITYTYPE_CREATE_RES; case 700: return RELATIONTYPE_CREATE_RES; case 701: return RELATIONTYPE_ROLES_ITER; case 702: return RELATIONTYPE_RELATES_RES; case 703: return RELATIONTYPE_UNRELATE_RES; case 800: return ATTRIBUTETYPE_CREATE_RES; case 801: return ATTRIBUTETYPE_ATTRIBUTE_RES; case 802: return ATTRIBUTETYPE_DATATYPE_RES; case 803: return ATTRIBUTETYPE_GETREGEX_RES; case 804: return ATTRIBUTETYPE_SETREGEX_RES; case 900: return THING_TYPE_RES; case 901: return THING_ISINFERRED_RES; case 902: return THING_KEYS_ITER; case 903: return THING_ATTRIBUTES_ITER; case 904: return THING_RELATIONS_ITER; case 905: return THING_ROLES_ITER; case 906: return THING_RELHAS_RES; case 907: return THING_UNHAS_RES; case 1000: return RELATION_ROLEPLAYERSMAP_ITER; case 1001: return RELATION_ROLEPLAYERS_ITER; case 1002: return RELATION_ASSIGN_RES; case 1003: return RELATION_UNASSIGN_RES; case 1100: return ATTRIBUTE_VALUE_RES; case 1101: return ATTRIBUTE_OWNERS_ITER; 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_DELETE_RES_FIELD_NUMBER = 100; /** * <pre> * Concept method responses * </pre> * * <code>optional .session.Concept.Delete.Res concept_delete_res = 100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res getConceptDeleteRes() { if (resCase_ == 100) { return (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.getDefaultInstance(); } /** * <pre> * Concept method responses * </pre> * * <code>optional .session.Concept.Delete.Res concept_delete_res = 100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.ResOrBuilder getConceptDeleteResOrBuilder() { if (resCase_ == 100) { return (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.getDefaultInstance(); } public static final int SCHEMACONCEPT_ISIMPLICIT_RES_FIELD_NUMBER = 200; /** * <pre> * SchemaConcept method responses * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Res schemaConcept_isImplicit_res = 200;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res getSchemaConceptIsImplicitRes() { if (resCase_ == 200) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.getDefaultInstance(); } /** * <pre> * SchemaConcept method responses * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Res schemaConcept_isImplicit_res = 200;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.ResOrBuilder getSchemaConceptIsImplicitResOrBuilder() { if (resCase_ == 200) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.getDefaultInstance(); } public static final int SCHEMACONCEPT_GETLABEL_RES_FIELD_NUMBER = 201; /** * <code>optional .session.SchemaConcept.GetLabel.Res schemaConcept_getLabel_res = 201;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res getSchemaConceptGetLabelRes() { if (resCase_ == 201) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.getDefaultInstance(); } /** * <code>optional .session.SchemaConcept.GetLabel.Res schemaConcept_getLabel_res = 201;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.ResOrBuilder getSchemaConceptGetLabelResOrBuilder() { if (resCase_ == 201) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.getDefaultInstance(); } public static final int SCHEMACONCEPT_SETLABEL_RES_FIELD_NUMBER = 202; /** * <code>optional .session.SchemaConcept.SetLabel.Res schemaConcept_setLabel_res = 202;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res getSchemaConceptSetLabelRes() { if (resCase_ == 202) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.getDefaultInstance(); } /** * <code>optional .session.SchemaConcept.SetLabel.Res schemaConcept_setLabel_res = 202;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.ResOrBuilder getSchemaConceptSetLabelResOrBuilder() { if (resCase_ == 202) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.getDefaultInstance(); } public static final int SCHEMACONCEPT_GETSUP_RES_FIELD_NUMBER = 203; /** * <code>optional .session.SchemaConcept.GetSup.Res schemaConcept_getSup_res = 203;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res getSchemaConceptGetSupRes() { if (resCase_ == 203) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.getDefaultInstance(); } /** * <code>optional .session.SchemaConcept.GetSup.Res schemaConcept_getSup_res = 203;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.ResOrBuilder getSchemaConceptGetSupResOrBuilder() { if (resCase_ == 203) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.getDefaultInstance(); } public static final int SCHEMACONCEPT_SETSUP_RES_FIELD_NUMBER = 204; /** * <code>optional .session.SchemaConcept.SetSup.Res schemaConcept_setSup_res = 204;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res getSchemaConceptSetSupRes() { if (resCase_ == 204) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.getDefaultInstance(); } /** * <code>optional .session.SchemaConcept.SetSup.Res schemaConcept_setSup_res = 204;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.ResOrBuilder getSchemaConceptSetSupResOrBuilder() { if (resCase_ == 204) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.getDefaultInstance(); } public static final int SCHEMACONCEPT_SUPS_ITER_FIELD_NUMBER = 205; /** * <code>optional .session.SchemaConcept.Sups.Iter schemaConcept_sups_iter = 205;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter getSchemaConceptSupsIter() { if (resCase_ == 205) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.getDefaultInstance(); } /** * <code>optional .session.SchemaConcept.Sups.Iter schemaConcept_sups_iter = 205;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.IterOrBuilder getSchemaConceptSupsIterOrBuilder() { if (resCase_ == 205) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.getDefaultInstance(); } public static final int SCHEMACONCEPT_SUBS_ITER_FIELD_NUMBER = 206; /** * <code>optional .session.SchemaConcept.Subs.Iter schemaConcept_subs_iter = 206;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter getSchemaConceptSubsIter() { if (resCase_ == 206) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.getDefaultInstance(); } /** * <code>optional .session.SchemaConcept.Subs.Iter schemaConcept_subs_iter = 206;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.IterOrBuilder getSchemaConceptSubsIterOrBuilder() { if (resCase_ == 206) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.getDefaultInstance(); } public static final int RULE_WHEN_RES_FIELD_NUMBER = 300; /** * <pre> * Rule method responses * </pre> * * <code>optional .session.Rule.When.Res rule_when_res = 300;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.When.Res getRuleWhenRes() { if (resCase_ == 300) { return (ai.grakn.rpc.proto.ConceptProto.Rule.When.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.getDefaultInstance(); } /** * <pre> * Rule method responses * </pre> * * <code>optional .session.Rule.When.Res rule_when_res = 300;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.When.ResOrBuilder getRuleWhenResOrBuilder() { if (resCase_ == 300) { return (ai.grakn.rpc.proto.ConceptProto.Rule.When.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.getDefaultInstance(); } public static final int RULE_THEN_RES_FIELD_NUMBER = 301; /** * <code>optional .session.Rule.Then.Res rule_then_res = 301;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res getRuleThenRes() { if (resCase_ == 301) { return (ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.getDefaultInstance(); } /** * <code>optional .session.Rule.Then.Res rule_then_res = 301;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.Then.ResOrBuilder getRuleThenResOrBuilder() { if (resCase_ == 301) { return (ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.getDefaultInstance(); } public static final int ROLE_RELATIONS_ITER_FIELD_NUMBER = 401; /** * <pre> * Role method responses * </pre> * * <code>optional .session.Role.Relations.Iter role_relations_iter = 401;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter getRoleRelationsIter() { if (resCase_ == 401) { return (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.getDefaultInstance(); } /** * <pre> * Role method responses * </pre> * * <code>optional .session.Role.Relations.Iter role_relations_iter = 401;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Relations.IterOrBuilder getRoleRelationsIterOrBuilder() { if (resCase_ == 401) { return (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.getDefaultInstance(); } public static final int ROLE_PLAYERS_ITER_FIELD_NUMBER = 402; /** * <code>optional .session.Role.Players.Iter role_players_iter = 402;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter getRolePlayersIter() { if (resCase_ == 402) { return (ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.getDefaultInstance(); } /** * <code>optional .session.Role.Players.Iter role_players_iter = 402;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Players.IterOrBuilder getRolePlayersIterOrBuilder() { if (resCase_ == 402) { return (ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.getDefaultInstance(); } public static final int TYPE_ISABSTRACT_RES_FIELD_NUMBER = 500; /** * <pre> * Type method responses * </pre> * * <code>optional .session.Type.IsAbstract.Res type_isAbstract_res = 500;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res getTypeIsAbstractRes() { if (resCase_ == 500) { return (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.getDefaultInstance(); } /** * <pre> * Type method responses * </pre> * * <code>optional .session.Type.IsAbstract.Res type_isAbstract_res = 500;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.ResOrBuilder getTypeIsAbstractResOrBuilder() { if (resCase_ == 500) { return (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.getDefaultInstance(); } public static final int TYPE_SETABSTRACT_RES_FIELD_NUMBER = 501; /** * <code>optional .session.Type.SetAbstract.Res type_setAbstract_res = 501;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res getTypeSetAbstractRes() { if (resCase_ == 501) { return (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.getDefaultInstance(); } /** * <code>optional .session.Type.SetAbstract.Res type_setAbstract_res = 501;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.ResOrBuilder getTypeSetAbstractResOrBuilder() { if (resCase_ == 501) { return (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.getDefaultInstance(); } public static final int TYPE_INSTANCES_ITER_FIELD_NUMBER = 502; /** * <code>optional .session.Type.Instances.Iter type_instances_iter = 502;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter getTypeInstancesIter() { if (resCase_ == 502) { return (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.getDefaultInstance(); } /** * <code>optional .session.Type.Instances.Iter type_instances_iter = 502;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Instances.IterOrBuilder getTypeInstancesIterOrBuilder() { if (resCase_ == 502) { return (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.getDefaultInstance(); } public static final int TYPE_KEYS_ITER_FIELD_NUMBER = 503; /** * <code>optional .session.Type.Keys.Iter type_keys_iter = 503;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter getTypeKeysIter() { if (resCase_ == 503) { return (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.getDefaultInstance(); } /** * <code>optional .session.Type.Keys.Iter type_keys_iter = 503;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Keys.IterOrBuilder getTypeKeysIterOrBuilder() { if (resCase_ == 503) { return (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.getDefaultInstance(); } public static final int TYPE_ATTRIBUTES_ITER_FIELD_NUMBER = 504; /** * <code>optional .session.Type.Attributes.Iter type_attributes_iter = 504;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter getTypeAttributesIter() { if (resCase_ == 504) { return (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.getDefaultInstance(); } /** * <code>optional .session.Type.Attributes.Iter type_attributes_iter = 504;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.IterOrBuilder getTypeAttributesIterOrBuilder() { if (resCase_ == 504) { return (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.getDefaultInstance(); } public static final int TYPE_PLAYING_ITER_FIELD_NUMBER = 505; /** * <code>optional .session.Type.Playing.Iter type_playing_iter = 505;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter getTypePlayingIter() { if (resCase_ == 505) { return (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.getDefaultInstance(); } /** * <code>optional .session.Type.Playing.Iter type_playing_iter = 505;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Playing.IterOrBuilder getTypePlayingIterOrBuilder() { if (resCase_ == 505) { return (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.getDefaultInstance(); } public static final int TYPE_HAS_RES_FIELD_NUMBER = 506; /** * <code>optional .session.Type.Has.Res type_has_res = 506;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Has.Res getTypeHasRes() { if (resCase_ == 506) { return (ai.grakn.rpc.proto.ConceptProto.Type.Has.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.getDefaultInstance(); } /** * <code>optional .session.Type.Has.Res type_has_res = 506;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Has.ResOrBuilder getTypeHasResOrBuilder() { if (resCase_ == 506) { return (ai.grakn.rpc.proto.ConceptProto.Type.Has.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.getDefaultInstance(); } public static final int TYPE_KEY_RES_FIELD_NUMBER = 507; /** * <code>optional .session.Type.Key.Res type_key_res = 507;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Key.Res getTypeKeyRes() { if (resCase_ == 507) { return (ai.grakn.rpc.proto.ConceptProto.Type.Key.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.getDefaultInstance(); } /** * <code>optional .session.Type.Key.Res type_key_res = 507;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Key.ResOrBuilder getTypeKeyResOrBuilder() { if (resCase_ == 507) { return (ai.grakn.rpc.proto.ConceptProto.Type.Key.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.getDefaultInstance(); } public static final int TYPE_PLAYS_RES_FIELD_NUMBER = 508; /** * <code>optional .session.Type.Plays.Res type_plays_res = 508;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res getTypePlaysRes() { if (resCase_ == 508) { return (ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.getDefaultInstance(); } /** * <code>optional .session.Type.Plays.Res type_plays_res = 508;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Plays.ResOrBuilder getTypePlaysResOrBuilder() { if (resCase_ == 508) { return (ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.getDefaultInstance(); } public static final int TYPE_UNHAS_RES_FIELD_NUMBER = 509; /** * <code>optional .session.Type.Unhas.Res type_unhas_res = 509;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res getTypeUnhasRes() { if (resCase_ == 509) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.getDefaultInstance(); } /** * <code>optional .session.Type.Unhas.Res type_unhas_res = 509;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.ResOrBuilder getTypeUnhasResOrBuilder() { if (resCase_ == 509) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.getDefaultInstance(); } public static final int TYPE_UNKEY_RES_FIELD_NUMBER = 510; /** * <code>optional .session.Type.Unkey.Res type_unkey_res = 510;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res getTypeUnkeyRes() { if (resCase_ == 510) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.getDefaultInstance(); } /** * <code>optional .session.Type.Unkey.Res type_unkey_res = 510;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.ResOrBuilder getTypeUnkeyResOrBuilder() { if (resCase_ == 510) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.getDefaultInstance(); } public static final int TYPE_UNPLAY_RES_FIELD_NUMBER = 511; /** * <code>optional .session.Type.Unplay.Res type_unplay_res = 511;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res getTypeUnplayRes() { if (resCase_ == 511) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.getDefaultInstance(); } /** * <code>optional .session.Type.Unplay.Res type_unplay_res = 511;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.ResOrBuilder getTypeUnplayResOrBuilder() { if (resCase_ == 511) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.getDefaultInstance(); } public static final int ENTITYTYPE_CREATE_RES_FIELD_NUMBER = 600; /** * <pre> * EntityType method responses * </pre> * * <code>optional .session.EntityType.Create.Res entityType_create_res = 600;</code> */ public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res getEntityTypeCreateRes() { if (resCase_ == 600) { return (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.getDefaultInstance(); } /** * <pre> * EntityType method responses * </pre> * * <code>optional .session.EntityType.Create.Res entityType_create_res = 600;</code> */ public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.ResOrBuilder getEntityTypeCreateResOrBuilder() { if (resCase_ == 600) { return (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.getDefaultInstance(); } public static final int RELATIONTYPE_CREATE_RES_FIELD_NUMBER = 700; /** * <pre> * RelationType method responses * </pre> * * <code>optional .session.RelationType.Create.Res relationType_create_res = 700;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res getRelationTypeCreateRes() { if (resCase_ == 700) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.getDefaultInstance(); } /** * <pre> * RelationType method responses * </pre> * * <code>optional .session.RelationType.Create.Res relationType_create_res = 700;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.ResOrBuilder getRelationTypeCreateResOrBuilder() { if (resCase_ == 700) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.getDefaultInstance(); } public static final int RELATIONTYPE_ROLES_ITER_FIELD_NUMBER = 701; /** * <code>optional .session.RelationType.Roles.Iter relationType_roles_iter = 701;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter getRelationTypeRolesIter() { if (resCase_ == 701) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.getDefaultInstance(); } /** * <code>optional .session.RelationType.Roles.Iter relationType_roles_iter = 701;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.IterOrBuilder getRelationTypeRolesIterOrBuilder() { if (resCase_ == 701) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.getDefaultInstance(); } public static final int RELATIONTYPE_RELATES_RES_FIELD_NUMBER = 702; /** * <code>optional .session.RelationType.Relates.Res relationType_relates_res = 702;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res getRelationTypeRelatesRes() { if (resCase_ == 702) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.getDefaultInstance(); } /** * <code>optional .session.RelationType.Relates.Res relationType_relates_res = 702;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.ResOrBuilder getRelationTypeRelatesResOrBuilder() { if (resCase_ == 702) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.getDefaultInstance(); } public static final int RELATIONTYPE_UNRELATE_RES_FIELD_NUMBER = 703; /** * <code>optional .session.RelationType.Unrelate.Res relationType_unrelate_res = 703;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res getRelationTypeUnrelateRes() { if (resCase_ == 703) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.getDefaultInstance(); } /** * <code>optional .session.RelationType.Unrelate.Res relationType_unrelate_res = 703;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.ResOrBuilder getRelationTypeUnrelateResOrBuilder() { if (resCase_ == 703) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.getDefaultInstance(); } public static final int ATTRIBUTETYPE_CREATE_RES_FIELD_NUMBER = 800; /** * <pre> * AttributeType method responses * </pre> * * <code>optional .session.AttributeType.Create.Res attributeType_create_res = 800;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res getAttributeTypeCreateRes() { if (resCase_ == 800) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.getDefaultInstance(); } /** * <pre> * AttributeType method responses * </pre> * * <code>optional .session.AttributeType.Create.Res attributeType_create_res = 800;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.ResOrBuilder getAttributeTypeCreateResOrBuilder() { if (resCase_ == 800) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.getDefaultInstance(); } public static final int ATTRIBUTETYPE_ATTRIBUTE_RES_FIELD_NUMBER = 801; /** * <code>optional .session.AttributeType.Attribute.Res attributeType_attribute_res = 801;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res getAttributeTypeAttributeRes() { if (resCase_ == 801) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.getDefaultInstance(); } /** * <code>optional .session.AttributeType.Attribute.Res attributeType_attribute_res = 801;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.ResOrBuilder getAttributeTypeAttributeResOrBuilder() { if (resCase_ == 801) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.getDefaultInstance(); } public static final int ATTRIBUTETYPE_DATATYPE_RES_FIELD_NUMBER = 802; /** * <code>optional .session.AttributeType.DataType.Res attributeType_dataType_res = 802;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res getAttributeTypeDataTypeRes() { if (resCase_ == 802) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.getDefaultInstance(); } /** * <code>optional .session.AttributeType.DataType.Res attributeType_dataType_res = 802;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.ResOrBuilder getAttributeTypeDataTypeResOrBuilder() { if (resCase_ == 802) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.getDefaultInstance(); } public static final int ATTRIBUTETYPE_GETREGEX_RES_FIELD_NUMBER = 803; /** * <code>optional .session.AttributeType.GetRegex.Res attributeType_getRegex_res = 803;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res getAttributeTypeGetRegexRes() { if (resCase_ == 803) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.getDefaultInstance(); } /** * <code>optional .session.AttributeType.GetRegex.Res attributeType_getRegex_res = 803;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.ResOrBuilder getAttributeTypeGetRegexResOrBuilder() { if (resCase_ == 803) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.getDefaultInstance(); } public static final int ATTRIBUTETYPE_SETREGEX_RES_FIELD_NUMBER = 804; /** * <code>optional .session.AttributeType.SetRegex.Res attributeType_setRegex_res = 804;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res getAttributeTypeSetRegexRes() { if (resCase_ == 804) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.getDefaultInstance(); } /** * <code>optional .session.AttributeType.SetRegex.Res attributeType_setRegex_res = 804;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.ResOrBuilder getAttributeTypeSetRegexResOrBuilder() { if (resCase_ == 804) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.getDefaultInstance(); } public static final int THING_TYPE_RES_FIELD_NUMBER = 900; /** * <pre> * Thing method responses * </pre> * * <code>optional .session.Thing.Type.Res thing_type_res = 900;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res getThingTypeRes() { if (resCase_ == 900) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.getDefaultInstance(); } /** * <pre> * Thing method responses * </pre> * * <code>optional .session.Thing.Type.Res thing_type_res = 900;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Type.ResOrBuilder getThingTypeResOrBuilder() { if (resCase_ == 900) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.getDefaultInstance(); } public static final int THING_ISINFERRED_RES_FIELD_NUMBER = 901; /** * <code>optional .session.Thing.IsInferred.Res thing_isInferred_res = 901;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res getThingIsInferredRes() { if (resCase_ == 901) { return (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.getDefaultInstance(); } /** * <code>optional .session.Thing.IsInferred.Res thing_isInferred_res = 901;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.ResOrBuilder getThingIsInferredResOrBuilder() { if (resCase_ == 901) { return (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.getDefaultInstance(); } public static final int THING_KEYS_ITER_FIELD_NUMBER = 902; /** * <code>optional .session.Thing.Keys.Iter thing_keys_iter = 902;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter getThingKeysIter() { if (resCase_ == 902) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.getDefaultInstance(); } /** * <code>optional .session.Thing.Keys.Iter thing_keys_iter = 902;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.IterOrBuilder getThingKeysIterOrBuilder() { if (resCase_ == 902) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.getDefaultInstance(); } public static final int THING_ATTRIBUTES_ITER_FIELD_NUMBER = 903; /** * <code>optional .session.Thing.Attributes.Iter thing_attributes_iter = 903;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter getThingAttributesIter() { if (resCase_ == 903) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.getDefaultInstance(); } /** * <code>optional .session.Thing.Attributes.Iter thing_attributes_iter = 903;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.IterOrBuilder getThingAttributesIterOrBuilder() { if (resCase_ == 903) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.getDefaultInstance(); } public static final int THING_RELATIONS_ITER_FIELD_NUMBER = 904; /** * <code>optional .session.Thing.Relations.Iter thing_relations_iter = 904;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter getThingRelationsIter() { if (resCase_ == 904) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.getDefaultInstance(); } /** * <code>optional .session.Thing.Relations.Iter thing_relations_iter = 904;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.IterOrBuilder getThingRelationsIterOrBuilder() { if (resCase_ == 904) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.getDefaultInstance(); } public static final int THING_ROLES_ITER_FIELD_NUMBER = 905; /** * <code>optional .session.Thing.Roles.Iter thing_roles_iter = 905;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter getThingRolesIter() { if (resCase_ == 905) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.getDefaultInstance(); } /** * <code>optional .session.Thing.Roles.Iter thing_roles_iter = 905;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.IterOrBuilder getThingRolesIterOrBuilder() { if (resCase_ == 905) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.getDefaultInstance(); } public static final int THING_RELHAS_RES_FIELD_NUMBER = 906; /** * <code>optional .session.Thing.Relhas.Res thing_relhas_res = 906;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res getThingRelhasRes() { if (resCase_ == 906) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.getDefaultInstance(); } /** * <code>optional .session.Thing.Relhas.Res thing_relhas_res = 906;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.ResOrBuilder getThingRelhasResOrBuilder() { if (resCase_ == 906) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.getDefaultInstance(); } public static final int THING_UNHAS_RES_FIELD_NUMBER = 907; /** * <code>optional .session.Thing.Unhas.Res thing_unhas_res = 907;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res getThingUnhasRes() { if (resCase_ == 907) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.getDefaultInstance(); } /** * <code>optional .session.Thing.Unhas.Res thing_unhas_res = 907;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.ResOrBuilder getThingUnhasResOrBuilder() { if (resCase_ == 907) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.getDefaultInstance(); } public static final int RELATION_ROLEPLAYERSMAP_ITER_FIELD_NUMBER = 1000; /** * <pre> * Relation method responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter relation_rolePlayersMap_iter = 1000;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter getRelationRolePlayersMapIter() { if (resCase_ == 1000) { return (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.getDefaultInstance(); } /** * <pre> * Relation method responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter relation_rolePlayersMap_iter = 1000;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.IterOrBuilder getRelationRolePlayersMapIterOrBuilder() { if (resCase_ == 1000) { return (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.getDefaultInstance(); } public static final int RELATION_ROLEPLAYERS_ITER_FIELD_NUMBER = 1001; /** * <code>optional .session.Relation.RolePlayers.Iter relation_rolePlayers_iter = 1001;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter getRelationRolePlayersIter() { if (resCase_ == 1001) { return (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.getDefaultInstance(); } /** * <code>optional .session.Relation.RolePlayers.Iter relation_rolePlayers_iter = 1001;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.IterOrBuilder getRelationRolePlayersIterOrBuilder() { if (resCase_ == 1001) { return (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.getDefaultInstance(); } public static final int RELATION_ASSIGN_RES_FIELD_NUMBER = 1002; /** * <code>optional .session.Relation.Assign.Res relation_assign_res = 1002;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res getRelationAssignRes() { if (resCase_ == 1002) { return (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.getDefaultInstance(); } /** * <code>optional .session.Relation.Assign.Res relation_assign_res = 1002;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.ResOrBuilder getRelationAssignResOrBuilder() { if (resCase_ == 1002) { return (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.getDefaultInstance(); } public static final int RELATION_UNASSIGN_RES_FIELD_NUMBER = 1003; /** * <code>optional .session.Relation.Unassign.Res relation_unassign_res = 1003;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res getRelationUnassignRes() { if (resCase_ == 1003) { return (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.getDefaultInstance(); } /** * <code>optional .session.Relation.Unassign.Res relation_unassign_res = 1003;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.ResOrBuilder getRelationUnassignResOrBuilder() { if (resCase_ == 1003) { return (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.getDefaultInstance(); } public static final int ATTRIBUTE_VALUE_RES_FIELD_NUMBER = 1100; /** * <pre> * Attribute method responses * </pre> * * <code>optional .session.Attribute.Value.Res attribute_value_res = 1100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res getAttributeValueRes() { if (resCase_ == 1100) { return (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.getDefaultInstance(); } /** * <pre> * Attribute method responses * </pre> * * <code>optional .session.Attribute.Value.Res attribute_value_res = 1100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.ResOrBuilder getAttributeValueResOrBuilder() { if (resCase_ == 1100) { return (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.getDefaultInstance(); } public static final int ATTRIBUTE_OWNERS_ITER_FIELD_NUMBER = 1101; /** * <code>optional .session.Attribute.Owners.Iter attribute_owners_iter = 1101;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter getAttributeOwnersIter() { if (resCase_ == 1101) { return (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.getDefaultInstance(); } /** * <code>optional .session.Attribute.Owners.Iter attribute_owners_iter = 1101;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.IterOrBuilder getAttributeOwnersIterOrBuilder() { if (resCase_ == 1101) { return (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.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_ == 100) { output.writeMessage(100, (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res) res_); } if (resCase_ == 200) { output.writeMessage(200, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res) res_); } if (resCase_ == 201) { output.writeMessage(201, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res) res_); } if (resCase_ == 202) { output.writeMessage(202, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res) res_); } if (resCase_ == 203) { output.writeMessage(203, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res) res_); } if (resCase_ == 204) { output.writeMessage(204, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res) res_); } if (resCase_ == 205) { output.writeMessage(205, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter) res_); } if (resCase_ == 206) { output.writeMessage(206, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter) res_); } if (resCase_ == 300) { output.writeMessage(300, (ai.grakn.rpc.proto.ConceptProto.Rule.When.Res) res_); } if (resCase_ == 301) { output.writeMessage(301, (ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res) res_); } if (resCase_ == 401) { output.writeMessage(401, (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter) res_); } if (resCase_ == 402) { output.writeMessage(402, (ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter) res_); } if (resCase_ == 500) { output.writeMessage(500, (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res) res_); } if (resCase_ == 501) { output.writeMessage(501, (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res) res_); } if (resCase_ == 502) { output.writeMessage(502, (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter) res_); } if (resCase_ == 503) { output.writeMessage(503, (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter) res_); } if (resCase_ == 504) { output.writeMessage(504, (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter) res_); } if (resCase_ == 505) { output.writeMessage(505, (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter) res_); } if (resCase_ == 506) { output.writeMessage(506, (ai.grakn.rpc.proto.ConceptProto.Type.Has.Res) res_); } if (resCase_ == 507) { output.writeMessage(507, (ai.grakn.rpc.proto.ConceptProto.Type.Key.Res) res_); } if (resCase_ == 508) { output.writeMessage(508, (ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res) res_); } if (resCase_ == 509) { output.writeMessage(509, (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res) res_); } if (resCase_ == 510) { output.writeMessage(510, (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res) res_); } if (resCase_ == 511) { output.writeMessage(511, (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res) res_); } if (resCase_ == 600) { output.writeMessage(600, (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res) res_); } if (resCase_ == 700) { output.writeMessage(700, (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res) res_); } if (resCase_ == 701) { output.writeMessage(701, (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter) res_); } if (resCase_ == 702) { output.writeMessage(702, (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res) res_); } if (resCase_ == 703) { output.writeMessage(703, (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res) res_); } if (resCase_ == 800) { output.writeMessage(800, (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res) res_); } if (resCase_ == 801) { output.writeMessage(801, (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res) res_); } if (resCase_ == 802) { output.writeMessage(802, (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res) res_); } if (resCase_ == 803) { output.writeMessage(803, (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res) res_); } if (resCase_ == 804) { output.writeMessage(804, (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res) res_); } if (resCase_ == 900) { output.writeMessage(900, (ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res) res_); } if (resCase_ == 901) { output.writeMessage(901, (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res) res_); } if (resCase_ == 902) { output.writeMessage(902, (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter) res_); } if (resCase_ == 903) { output.writeMessage(903, (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter) res_); } if (resCase_ == 904) { output.writeMessage(904, (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter) res_); } if (resCase_ == 905) { output.writeMessage(905, (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter) res_); } if (resCase_ == 906) { output.writeMessage(906, (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res) res_); } if (resCase_ == 907) { output.writeMessage(907, (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res) res_); } if (resCase_ == 1000) { output.writeMessage(1000, (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter) res_); } if (resCase_ == 1001) { output.writeMessage(1001, (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter) res_); } if (resCase_ == 1002) { output.writeMessage(1002, (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res) res_); } if (resCase_ == 1003) { output.writeMessage(1003, (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res) res_); } if (resCase_ == 1100) { output.writeMessage(1100, (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res) res_); } if (resCase_ == 1101) { output.writeMessage(1101, (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter) res_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (resCase_ == 100) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(100, (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res) res_); } if (resCase_ == 200) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(200, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res) res_); } if (resCase_ == 201) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(201, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res) res_); } if (resCase_ == 202) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(202, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res) res_); } if (resCase_ == 203) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(203, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res) res_); } if (resCase_ == 204) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(204, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res) res_); } if (resCase_ == 205) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(205, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter) res_); } if (resCase_ == 206) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(206, (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter) res_); } if (resCase_ == 300) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(300, (ai.grakn.rpc.proto.ConceptProto.Rule.When.Res) res_); } if (resCase_ == 301) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(301, (ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res) res_); } if (resCase_ == 401) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(401, (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter) res_); } if (resCase_ == 402) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(402, (ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter) res_); } if (resCase_ == 500) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(500, (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res) res_); } if (resCase_ == 501) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(501, (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res) res_); } if (resCase_ == 502) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(502, (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter) res_); } if (resCase_ == 503) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(503, (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter) res_); } if (resCase_ == 504) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(504, (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter) res_); } if (resCase_ == 505) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(505, (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter) res_); } if (resCase_ == 506) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(506, (ai.grakn.rpc.proto.ConceptProto.Type.Has.Res) res_); } if (resCase_ == 507) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(507, (ai.grakn.rpc.proto.ConceptProto.Type.Key.Res) res_); } if (resCase_ == 508) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(508, (ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res) res_); } if (resCase_ == 509) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(509, (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res) res_); } if (resCase_ == 510) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(510, (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res) res_); } if (resCase_ == 511) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(511, (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res) res_); } if (resCase_ == 600) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(600, (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res) res_); } if (resCase_ == 700) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(700, (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res) res_); } if (resCase_ == 701) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(701, (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter) res_); } if (resCase_ == 702) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(702, (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res) res_); } if (resCase_ == 703) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(703, (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res) res_); } if (resCase_ == 800) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(800, (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res) res_); } if (resCase_ == 801) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(801, (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res) res_); } if (resCase_ == 802) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(802, (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res) res_); } if (resCase_ == 803) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(803, (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res) res_); } if (resCase_ == 804) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(804, (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res) res_); } if (resCase_ == 900) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(900, (ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res) res_); } if (resCase_ == 901) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(901, (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res) res_); } if (resCase_ == 902) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(902, (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter) res_); } if (resCase_ == 903) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(903, (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter) res_); } if (resCase_ == 904) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(904, (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter) res_); } if (resCase_ == 905) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(905, (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter) res_); } if (resCase_ == 906) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(906, (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res) res_); } if (resCase_ == 907) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(907, (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res) res_); } if (resCase_ == 1000) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1000, (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter) res_); } if (resCase_ == 1001) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1001, (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter) res_); } if (resCase_ == 1002) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1002, (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res) res_); } if (resCase_ == 1003) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1003, (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res) res_); } if (resCase_ == 1100) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1100, (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res) res_); } if (resCase_ == 1101) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1101, (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter) 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.ConceptProto.Method.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Method.Res other = (ai.grakn.rpc.proto.ConceptProto.Method.Res) obj; boolean result = true; result = result && getResCase().equals( other.getResCase()); if (!result) return false; switch (resCase_) { case 100: result = result && getConceptDeleteRes() .equals(other.getConceptDeleteRes()); break; case 200: result = result && getSchemaConceptIsImplicitRes() .equals(other.getSchemaConceptIsImplicitRes()); break; case 201: result = result && getSchemaConceptGetLabelRes() .equals(other.getSchemaConceptGetLabelRes()); break; case 202: result = result && getSchemaConceptSetLabelRes() .equals(other.getSchemaConceptSetLabelRes()); break; case 203: result = result && getSchemaConceptGetSupRes() .equals(other.getSchemaConceptGetSupRes()); break; case 204: result = result && getSchemaConceptSetSupRes() .equals(other.getSchemaConceptSetSupRes()); break; case 205: result = result && getSchemaConceptSupsIter() .equals(other.getSchemaConceptSupsIter()); break; case 206: result = result && getSchemaConceptSubsIter() .equals(other.getSchemaConceptSubsIter()); break; case 300: result = result && getRuleWhenRes() .equals(other.getRuleWhenRes()); break; case 301: result = result && getRuleThenRes() .equals(other.getRuleThenRes()); break; case 401: result = result && getRoleRelationsIter() .equals(other.getRoleRelationsIter()); break; case 402: result = result && getRolePlayersIter() .equals(other.getRolePlayersIter()); break; case 500: result = result && getTypeIsAbstractRes() .equals(other.getTypeIsAbstractRes()); break; case 501: result = result && getTypeSetAbstractRes() .equals(other.getTypeSetAbstractRes()); break; case 502: result = result && getTypeInstancesIter() .equals(other.getTypeInstancesIter()); break; case 503: result = result && getTypeKeysIter() .equals(other.getTypeKeysIter()); break; case 504: result = result && getTypeAttributesIter() .equals(other.getTypeAttributesIter()); break; case 505: result = result && getTypePlayingIter() .equals(other.getTypePlayingIter()); break; case 506: result = result && getTypeHasRes() .equals(other.getTypeHasRes()); break; case 507: result = result && getTypeKeyRes() .equals(other.getTypeKeyRes()); break; case 508: result = result && getTypePlaysRes() .equals(other.getTypePlaysRes()); break; case 509: result = result && getTypeUnhasRes() .equals(other.getTypeUnhasRes()); break; case 510: result = result && getTypeUnkeyRes() .equals(other.getTypeUnkeyRes()); break; case 511: result = result && getTypeUnplayRes() .equals(other.getTypeUnplayRes()); break; case 600: result = result && getEntityTypeCreateRes() .equals(other.getEntityTypeCreateRes()); break; case 700: result = result && getRelationTypeCreateRes() .equals(other.getRelationTypeCreateRes()); break; case 701: result = result && getRelationTypeRolesIter() .equals(other.getRelationTypeRolesIter()); break; case 702: result = result && getRelationTypeRelatesRes() .equals(other.getRelationTypeRelatesRes()); break; case 703: result = result && getRelationTypeUnrelateRes() .equals(other.getRelationTypeUnrelateRes()); break; case 800: result = result && getAttributeTypeCreateRes() .equals(other.getAttributeTypeCreateRes()); break; case 801: result = result && getAttributeTypeAttributeRes() .equals(other.getAttributeTypeAttributeRes()); break; case 802: result = result && getAttributeTypeDataTypeRes() .equals(other.getAttributeTypeDataTypeRes()); break; case 803: result = result && getAttributeTypeGetRegexRes() .equals(other.getAttributeTypeGetRegexRes()); break; case 804: result = result && getAttributeTypeSetRegexRes() .equals(other.getAttributeTypeSetRegexRes()); break; case 900: result = result && getThingTypeRes() .equals(other.getThingTypeRes()); break; case 901: result = result && getThingIsInferredRes() .equals(other.getThingIsInferredRes()); break; case 902: result = result && getThingKeysIter() .equals(other.getThingKeysIter()); break; case 903: result = result && getThingAttributesIter() .equals(other.getThingAttributesIter()); break; case 904: result = result && getThingRelationsIter() .equals(other.getThingRelationsIter()); break; case 905: result = result && getThingRolesIter() .equals(other.getThingRolesIter()); break; case 906: result = result && getThingRelhasRes() .equals(other.getThingRelhasRes()); break; case 907: result = result && getThingUnhasRes() .equals(other.getThingUnhasRes()); break; case 1000: result = result && getRelationRolePlayersMapIter() .equals(other.getRelationRolePlayersMapIter()); break; case 1001: result = result && getRelationRolePlayersIter() .equals(other.getRelationRolePlayersIter()); break; case 1002: result = result && getRelationAssignRes() .equals(other.getRelationAssignRes()); break; case 1003: result = result && getRelationUnassignRes() .equals(other.getRelationUnassignRes()); break; case 1100: result = result && getAttributeValueRes() .equals(other.getAttributeValueRes()); break; case 1101: result = result && getAttributeOwnersIter() .equals(other.getAttributeOwnersIter()); 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 100: hash = (37 * hash) + CONCEPT_DELETE_RES_FIELD_NUMBER; hash = (53 * hash) + getConceptDeleteRes().hashCode(); break; case 200: hash = (37 * hash) + SCHEMACONCEPT_ISIMPLICIT_RES_FIELD_NUMBER; hash = (53 * hash) + getSchemaConceptIsImplicitRes().hashCode(); break; case 201: hash = (37 * hash) + SCHEMACONCEPT_GETLABEL_RES_FIELD_NUMBER; hash = (53 * hash) + getSchemaConceptGetLabelRes().hashCode(); break; case 202: hash = (37 * hash) + SCHEMACONCEPT_SETLABEL_RES_FIELD_NUMBER; hash = (53 * hash) + getSchemaConceptSetLabelRes().hashCode(); break; case 203: hash = (37 * hash) + SCHEMACONCEPT_GETSUP_RES_FIELD_NUMBER; hash = (53 * hash) + getSchemaConceptGetSupRes().hashCode(); break; case 204: hash = (37 * hash) + SCHEMACONCEPT_SETSUP_RES_FIELD_NUMBER; hash = (53 * hash) + getSchemaConceptSetSupRes().hashCode(); break; case 205: hash = (37 * hash) + SCHEMACONCEPT_SUPS_ITER_FIELD_NUMBER; hash = (53 * hash) + getSchemaConceptSupsIter().hashCode(); break; case 206: hash = (37 * hash) + SCHEMACONCEPT_SUBS_ITER_FIELD_NUMBER; hash = (53 * hash) + getSchemaConceptSubsIter().hashCode(); break; case 300: hash = (37 * hash) + RULE_WHEN_RES_FIELD_NUMBER; hash = (53 * hash) + getRuleWhenRes().hashCode(); break; case 301: hash = (37 * hash) + RULE_THEN_RES_FIELD_NUMBER; hash = (53 * hash) + getRuleThenRes().hashCode(); break; case 401: hash = (37 * hash) + ROLE_RELATIONS_ITER_FIELD_NUMBER; hash = (53 * hash) + getRoleRelationsIter().hashCode(); break; case 402: hash = (37 * hash) + ROLE_PLAYERS_ITER_FIELD_NUMBER; hash = (53 * hash) + getRolePlayersIter().hashCode(); break; case 500: hash = (37 * hash) + TYPE_ISABSTRACT_RES_FIELD_NUMBER; hash = (53 * hash) + getTypeIsAbstractRes().hashCode(); break; case 501: hash = (37 * hash) + TYPE_SETABSTRACT_RES_FIELD_NUMBER; hash = (53 * hash) + getTypeSetAbstractRes().hashCode(); break; case 502: hash = (37 * hash) + TYPE_INSTANCES_ITER_FIELD_NUMBER; hash = (53 * hash) + getTypeInstancesIter().hashCode(); break; case 503: hash = (37 * hash) + TYPE_KEYS_ITER_FIELD_NUMBER; hash = (53 * hash) + getTypeKeysIter().hashCode(); break; case 504: hash = (37 * hash) + TYPE_ATTRIBUTES_ITER_FIELD_NUMBER; hash = (53 * hash) + getTypeAttributesIter().hashCode(); break; case 505: hash = (37 * hash) + TYPE_PLAYING_ITER_FIELD_NUMBER; hash = (53 * hash) + getTypePlayingIter().hashCode(); break; case 506: hash = (37 * hash) + TYPE_HAS_RES_FIELD_NUMBER; hash = (53 * hash) + getTypeHasRes().hashCode(); break; case 507: hash = (37 * hash) + TYPE_KEY_RES_FIELD_NUMBER; hash = (53 * hash) + getTypeKeyRes().hashCode(); break; case 508: hash = (37 * hash) + TYPE_PLAYS_RES_FIELD_NUMBER; hash = (53 * hash) + getTypePlaysRes().hashCode(); break; case 509: hash = (37 * hash) + TYPE_UNHAS_RES_FIELD_NUMBER; hash = (53 * hash) + getTypeUnhasRes().hashCode(); break; case 510: hash = (37 * hash) + TYPE_UNKEY_RES_FIELD_NUMBER; hash = (53 * hash) + getTypeUnkeyRes().hashCode(); break; case 511: hash = (37 * hash) + TYPE_UNPLAY_RES_FIELD_NUMBER; hash = (53 * hash) + getTypeUnplayRes().hashCode(); break; case 600: hash = (37 * hash) + ENTITYTYPE_CREATE_RES_FIELD_NUMBER; hash = (53 * hash) + getEntityTypeCreateRes().hashCode(); break; case 700: hash = (37 * hash) + RELATIONTYPE_CREATE_RES_FIELD_NUMBER; hash = (53 * hash) + getRelationTypeCreateRes().hashCode(); break; case 701: hash = (37 * hash) + RELATIONTYPE_ROLES_ITER_FIELD_NUMBER; hash = (53 * hash) + getRelationTypeRolesIter().hashCode(); break; case 702: hash = (37 * hash) + RELATIONTYPE_RELATES_RES_FIELD_NUMBER; hash = (53 * hash) + getRelationTypeRelatesRes().hashCode(); break; case 703: hash = (37 * hash) + RELATIONTYPE_UNRELATE_RES_FIELD_NUMBER; hash = (53 * hash) + getRelationTypeUnrelateRes().hashCode(); break; case 800: hash = (37 * hash) + ATTRIBUTETYPE_CREATE_RES_FIELD_NUMBER; hash = (53 * hash) + getAttributeTypeCreateRes().hashCode(); break; case 801: hash = (37 * hash) + ATTRIBUTETYPE_ATTRIBUTE_RES_FIELD_NUMBER; hash = (53 * hash) + getAttributeTypeAttributeRes().hashCode(); break; case 802: hash = (37 * hash) + ATTRIBUTETYPE_DATATYPE_RES_FIELD_NUMBER; hash = (53 * hash) + getAttributeTypeDataTypeRes().hashCode(); break; case 803: hash = (37 * hash) + ATTRIBUTETYPE_GETREGEX_RES_FIELD_NUMBER; hash = (53 * hash) + getAttributeTypeGetRegexRes().hashCode(); break; case 804: hash = (37 * hash) + ATTRIBUTETYPE_SETREGEX_RES_FIELD_NUMBER; hash = (53 * hash) + getAttributeTypeSetRegexRes().hashCode(); break; case 900: hash = (37 * hash) + THING_TYPE_RES_FIELD_NUMBER; hash = (53 * hash) + getThingTypeRes().hashCode(); break; case 901: hash = (37 * hash) + THING_ISINFERRED_RES_FIELD_NUMBER; hash = (53 * hash) + getThingIsInferredRes().hashCode(); break; case 902: hash = (37 * hash) + THING_KEYS_ITER_FIELD_NUMBER; hash = (53 * hash) + getThingKeysIter().hashCode(); break; case 903: hash = (37 * hash) + THING_ATTRIBUTES_ITER_FIELD_NUMBER; hash = (53 * hash) + getThingAttributesIter().hashCode(); break; case 904: hash = (37 * hash) + THING_RELATIONS_ITER_FIELD_NUMBER; hash = (53 * hash) + getThingRelationsIter().hashCode(); break; case 905: hash = (37 * hash) + THING_ROLES_ITER_FIELD_NUMBER; hash = (53 * hash) + getThingRolesIter().hashCode(); break; case 906: hash = (37 * hash) + THING_RELHAS_RES_FIELD_NUMBER; hash = (53 * hash) + getThingRelhasRes().hashCode(); break; case 907: hash = (37 * hash) + THING_UNHAS_RES_FIELD_NUMBER; hash = (53 * hash) + getThingUnhasRes().hashCode(); break; case 1000: hash = (37 * hash) + RELATION_ROLEPLAYERSMAP_ITER_FIELD_NUMBER; hash = (53 * hash) + getRelationRolePlayersMapIter().hashCode(); break; case 1001: hash = (37 * hash) + RELATION_ROLEPLAYERS_ITER_FIELD_NUMBER; hash = (53 * hash) + getRelationRolePlayersIter().hashCode(); break; case 1002: hash = (37 * hash) + RELATION_ASSIGN_RES_FIELD_NUMBER; hash = (53 * hash) + getRelationAssignRes().hashCode(); break; case 1003: hash = (37 * hash) + RELATION_UNASSIGN_RES_FIELD_NUMBER; hash = (53 * hash) + getRelationUnassignRes().hashCode(); break; case 1100: hash = (37 * hash) + ATTRIBUTE_VALUE_RES_FIELD_NUMBER; hash = (53 * hash) + getAttributeValueRes().hashCode(); break; case 1101: hash = (37 * hash) + ATTRIBUTE_OWNERS_ITER_FIELD_NUMBER; hash = (53 * hash) + getAttributeOwnersIter().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Method.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.Method.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.Method.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.Method.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.Method.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.ConceptProto.Method.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.ConceptProto.Method.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.Method.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Method.Res) ai.grakn.rpc.proto.ConceptProto.Method.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Method.Res.class, ai.grakn.rpc.proto.ConceptProto.Method.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.internal_static_session_Method_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Method.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Method.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Method.Res build() { ai.grakn.rpc.proto.ConceptProto.Method.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Method.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Method.Res result = new ai.grakn.rpc.proto.ConceptProto.Method.Res(this); if (resCase_ == 100) { if (conceptDeleteResBuilder_ == null) { result.res_ = res_; } else { result.res_ = conceptDeleteResBuilder_.build(); } } if (resCase_ == 200) { if (schemaConceptIsImplicitResBuilder_ == null) { result.res_ = res_; } else { result.res_ = schemaConceptIsImplicitResBuilder_.build(); } } if (resCase_ == 201) { if (schemaConceptGetLabelResBuilder_ == null) { result.res_ = res_; } else { result.res_ = schemaConceptGetLabelResBuilder_.build(); } } if (resCase_ == 202) { if (schemaConceptSetLabelResBuilder_ == null) { result.res_ = res_; } else { result.res_ = schemaConceptSetLabelResBuilder_.build(); } } if (resCase_ == 203) { if (schemaConceptGetSupResBuilder_ == null) { result.res_ = res_; } else { result.res_ = schemaConceptGetSupResBuilder_.build(); } } if (resCase_ == 204) { if (schemaConceptSetSupResBuilder_ == null) { result.res_ = res_; } else { result.res_ = schemaConceptSetSupResBuilder_.build(); } } if (resCase_ == 205) { if (schemaConceptSupsIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = schemaConceptSupsIterBuilder_.build(); } } if (resCase_ == 206) { if (schemaConceptSubsIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = schemaConceptSubsIterBuilder_.build(); } } if (resCase_ == 300) { if (ruleWhenResBuilder_ == null) { result.res_ = res_; } else { result.res_ = ruleWhenResBuilder_.build(); } } if (resCase_ == 301) { if (ruleThenResBuilder_ == null) { result.res_ = res_; } else { result.res_ = ruleThenResBuilder_.build(); } } if (resCase_ == 401) { if (roleRelationsIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = roleRelationsIterBuilder_.build(); } } if (resCase_ == 402) { if (rolePlayersIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = rolePlayersIterBuilder_.build(); } } if (resCase_ == 500) { if (typeIsAbstractResBuilder_ == null) { result.res_ = res_; } else { result.res_ = typeIsAbstractResBuilder_.build(); } } if (resCase_ == 501) { if (typeSetAbstractResBuilder_ == null) { result.res_ = res_; } else { result.res_ = typeSetAbstractResBuilder_.build(); } } if (resCase_ == 502) { if (typeInstancesIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = typeInstancesIterBuilder_.build(); } } if (resCase_ == 503) { if (typeKeysIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = typeKeysIterBuilder_.build(); } } if (resCase_ == 504) { if (typeAttributesIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = typeAttributesIterBuilder_.build(); } } if (resCase_ == 505) { if (typePlayingIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = typePlayingIterBuilder_.build(); } } if (resCase_ == 506) { if (typeHasResBuilder_ == null) { result.res_ = res_; } else { result.res_ = typeHasResBuilder_.build(); } } if (resCase_ == 507) { if (typeKeyResBuilder_ == null) { result.res_ = res_; } else { result.res_ = typeKeyResBuilder_.build(); } } if (resCase_ == 508) { if (typePlaysResBuilder_ == null) { result.res_ = res_; } else { result.res_ = typePlaysResBuilder_.build(); } } if (resCase_ == 509) { if (typeUnhasResBuilder_ == null) { result.res_ = res_; } else { result.res_ = typeUnhasResBuilder_.build(); } } if (resCase_ == 510) { if (typeUnkeyResBuilder_ == null) { result.res_ = res_; } else { result.res_ = typeUnkeyResBuilder_.build(); } } if (resCase_ == 511) { if (typeUnplayResBuilder_ == null) { result.res_ = res_; } else { result.res_ = typeUnplayResBuilder_.build(); } } if (resCase_ == 600) { if (entityTypeCreateResBuilder_ == null) { result.res_ = res_; } else { result.res_ = entityTypeCreateResBuilder_.build(); } } if (resCase_ == 700) { if (relationTypeCreateResBuilder_ == null) { result.res_ = res_; } else { result.res_ = relationTypeCreateResBuilder_.build(); } } if (resCase_ == 701) { if (relationTypeRolesIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = relationTypeRolesIterBuilder_.build(); } } if (resCase_ == 702) { if (relationTypeRelatesResBuilder_ == null) { result.res_ = res_; } else { result.res_ = relationTypeRelatesResBuilder_.build(); } } if (resCase_ == 703) { if (relationTypeUnrelateResBuilder_ == null) { result.res_ = res_; } else { result.res_ = relationTypeUnrelateResBuilder_.build(); } } if (resCase_ == 800) { if (attributeTypeCreateResBuilder_ == null) { result.res_ = res_; } else { result.res_ = attributeTypeCreateResBuilder_.build(); } } if (resCase_ == 801) { if (attributeTypeAttributeResBuilder_ == null) { result.res_ = res_; } else { result.res_ = attributeTypeAttributeResBuilder_.build(); } } if (resCase_ == 802) { if (attributeTypeDataTypeResBuilder_ == null) { result.res_ = res_; } else { result.res_ = attributeTypeDataTypeResBuilder_.build(); } } if (resCase_ == 803) { if (attributeTypeGetRegexResBuilder_ == null) { result.res_ = res_; } else { result.res_ = attributeTypeGetRegexResBuilder_.build(); } } if (resCase_ == 804) { if (attributeTypeSetRegexResBuilder_ == null) { result.res_ = res_; } else { result.res_ = attributeTypeSetRegexResBuilder_.build(); } } if (resCase_ == 900) { if (thingTypeResBuilder_ == null) { result.res_ = res_; } else { result.res_ = thingTypeResBuilder_.build(); } } if (resCase_ == 901) { if (thingIsInferredResBuilder_ == null) { result.res_ = res_; } else { result.res_ = thingIsInferredResBuilder_.build(); } } if (resCase_ == 902) { if (thingKeysIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = thingKeysIterBuilder_.build(); } } if (resCase_ == 903) { if (thingAttributesIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = thingAttributesIterBuilder_.build(); } } if (resCase_ == 904) { if (thingRelationsIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = thingRelationsIterBuilder_.build(); } } if (resCase_ == 905) { if (thingRolesIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = thingRolesIterBuilder_.build(); } } if (resCase_ == 906) { if (thingRelhasResBuilder_ == null) { result.res_ = res_; } else { result.res_ = thingRelhasResBuilder_.build(); } } if (resCase_ == 907) { if (thingUnhasResBuilder_ == null) { result.res_ = res_; } else { result.res_ = thingUnhasResBuilder_.build(); } } if (resCase_ == 1000) { if (relationRolePlayersMapIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = relationRolePlayersMapIterBuilder_.build(); } } if (resCase_ == 1001) { if (relationRolePlayersIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = relationRolePlayersIterBuilder_.build(); } } if (resCase_ == 1002) { if (relationAssignResBuilder_ == null) { result.res_ = res_; } else { result.res_ = relationAssignResBuilder_.build(); } } if (resCase_ == 1003) { if (relationUnassignResBuilder_ == null) { result.res_ = res_; } else { result.res_ = relationUnassignResBuilder_.build(); } } if (resCase_ == 1100) { if (attributeValueResBuilder_ == null) { result.res_ = res_; } else { result.res_ = attributeValueResBuilder_.build(); } } if (resCase_ == 1101) { if (attributeOwnersIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = attributeOwnersIterBuilder_.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.ConceptProto.Method.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Method.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Method.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Method.Res.getDefaultInstance()) return this; switch (other.getResCase()) { case CONCEPT_DELETE_RES: { mergeConceptDeleteRes(other.getConceptDeleteRes()); break; } case SCHEMACONCEPT_ISIMPLICIT_RES: { mergeSchemaConceptIsImplicitRes(other.getSchemaConceptIsImplicitRes()); break; } case SCHEMACONCEPT_GETLABEL_RES: { mergeSchemaConceptGetLabelRes(other.getSchemaConceptGetLabelRes()); break; } case SCHEMACONCEPT_SETLABEL_RES: { mergeSchemaConceptSetLabelRes(other.getSchemaConceptSetLabelRes()); break; } case SCHEMACONCEPT_GETSUP_RES: { mergeSchemaConceptGetSupRes(other.getSchemaConceptGetSupRes()); break; } case SCHEMACONCEPT_SETSUP_RES: { mergeSchemaConceptSetSupRes(other.getSchemaConceptSetSupRes()); break; } case SCHEMACONCEPT_SUPS_ITER: { mergeSchemaConceptSupsIter(other.getSchemaConceptSupsIter()); break; } case SCHEMACONCEPT_SUBS_ITER: { mergeSchemaConceptSubsIter(other.getSchemaConceptSubsIter()); break; } case RULE_WHEN_RES: { mergeRuleWhenRes(other.getRuleWhenRes()); break; } case RULE_THEN_RES: { mergeRuleThenRes(other.getRuleThenRes()); break; } case ROLE_RELATIONS_ITER: { mergeRoleRelationsIter(other.getRoleRelationsIter()); break; } case ROLE_PLAYERS_ITER: { mergeRolePlayersIter(other.getRolePlayersIter()); break; } case TYPE_ISABSTRACT_RES: { mergeTypeIsAbstractRes(other.getTypeIsAbstractRes()); break; } case TYPE_SETABSTRACT_RES: { mergeTypeSetAbstractRes(other.getTypeSetAbstractRes()); break; } case TYPE_INSTANCES_ITER: { mergeTypeInstancesIter(other.getTypeInstancesIter()); break; } case TYPE_KEYS_ITER: { mergeTypeKeysIter(other.getTypeKeysIter()); break; } case TYPE_ATTRIBUTES_ITER: { mergeTypeAttributesIter(other.getTypeAttributesIter()); break; } case TYPE_PLAYING_ITER: { mergeTypePlayingIter(other.getTypePlayingIter()); break; } case TYPE_HAS_RES: { mergeTypeHasRes(other.getTypeHasRes()); break; } case TYPE_KEY_RES: { mergeTypeKeyRes(other.getTypeKeyRes()); break; } case TYPE_PLAYS_RES: { mergeTypePlaysRes(other.getTypePlaysRes()); break; } case TYPE_UNHAS_RES: { mergeTypeUnhasRes(other.getTypeUnhasRes()); break; } case TYPE_UNKEY_RES: { mergeTypeUnkeyRes(other.getTypeUnkeyRes()); break; } case TYPE_UNPLAY_RES: { mergeTypeUnplayRes(other.getTypeUnplayRes()); break; } case ENTITYTYPE_CREATE_RES: { mergeEntityTypeCreateRes(other.getEntityTypeCreateRes()); break; } case RELATIONTYPE_CREATE_RES: { mergeRelationTypeCreateRes(other.getRelationTypeCreateRes()); break; } case RELATIONTYPE_ROLES_ITER: { mergeRelationTypeRolesIter(other.getRelationTypeRolesIter()); break; } case RELATIONTYPE_RELATES_RES: { mergeRelationTypeRelatesRes(other.getRelationTypeRelatesRes()); break; } case RELATIONTYPE_UNRELATE_RES: { mergeRelationTypeUnrelateRes(other.getRelationTypeUnrelateRes()); break; } case ATTRIBUTETYPE_CREATE_RES: { mergeAttributeTypeCreateRes(other.getAttributeTypeCreateRes()); break; } case ATTRIBUTETYPE_ATTRIBUTE_RES: { mergeAttributeTypeAttributeRes(other.getAttributeTypeAttributeRes()); break; } case ATTRIBUTETYPE_DATATYPE_RES: { mergeAttributeTypeDataTypeRes(other.getAttributeTypeDataTypeRes()); break; } case ATTRIBUTETYPE_GETREGEX_RES: { mergeAttributeTypeGetRegexRes(other.getAttributeTypeGetRegexRes()); break; } case ATTRIBUTETYPE_SETREGEX_RES: { mergeAttributeTypeSetRegexRes(other.getAttributeTypeSetRegexRes()); break; } case THING_TYPE_RES: { mergeThingTypeRes(other.getThingTypeRes()); break; } case THING_ISINFERRED_RES: { mergeThingIsInferredRes(other.getThingIsInferredRes()); break; } case THING_KEYS_ITER: { mergeThingKeysIter(other.getThingKeysIter()); break; } case THING_ATTRIBUTES_ITER: { mergeThingAttributesIter(other.getThingAttributesIter()); break; } case THING_RELATIONS_ITER: { mergeThingRelationsIter(other.getThingRelationsIter()); break; } case THING_ROLES_ITER: { mergeThingRolesIter(other.getThingRolesIter()); break; } case THING_RELHAS_RES: { mergeThingRelhasRes(other.getThingRelhasRes()); break; } case THING_UNHAS_RES: { mergeThingUnhasRes(other.getThingUnhasRes()); break; } case RELATION_ROLEPLAYERSMAP_ITER: { mergeRelationRolePlayersMapIter(other.getRelationRolePlayersMapIter()); break; } case RELATION_ROLEPLAYERS_ITER: { mergeRelationRolePlayersIter(other.getRelationRolePlayersIter()); break; } case RELATION_ASSIGN_RES: { mergeRelationAssignRes(other.getRelationAssignRes()); break; } case RELATION_UNASSIGN_RES: { mergeRelationUnassignRes(other.getRelationUnassignRes()); break; } case ATTRIBUTE_VALUE_RES: { mergeAttributeValueRes(other.getAttributeValueRes()); break; } case ATTRIBUTE_OWNERS_ITER: { mergeAttributeOwnersIter(other.getAttributeOwnersIter()); 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.ConceptProto.Method.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Method.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.Delete.Res, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.ResOrBuilder> conceptDeleteResBuilder_; /** * <pre> * Concept method responses * </pre> * * <code>optional .session.Concept.Delete.Res concept_delete_res = 100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res getConceptDeleteRes() { if (conceptDeleteResBuilder_ == null) { if (resCase_ == 100) { return (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.getDefaultInstance(); } else { if (resCase_ == 100) { return conceptDeleteResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.getDefaultInstance(); } } /** * <pre> * Concept method responses * </pre> * * <code>optional .session.Concept.Delete.Res concept_delete_res = 100;</code> */ public Builder setConceptDeleteRes(ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res value) { if (conceptDeleteResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { conceptDeleteResBuilder_.setMessage(value); } resCase_ = 100; return this; } /** * <pre> * Concept method responses * </pre> * * <code>optional .session.Concept.Delete.Res concept_delete_res = 100;</code> */ public Builder setConceptDeleteRes( ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.Builder builderForValue) { if (conceptDeleteResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { conceptDeleteResBuilder_.setMessage(builderForValue.build()); } resCase_ = 100; return this; } /** * <pre> * Concept method responses * </pre> * * <code>optional .session.Concept.Delete.Res concept_delete_res = 100;</code> */ public Builder mergeConceptDeleteRes(ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res value) { if (conceptDeleteResBuilder_ == null) { if (resCase_ == 100 && res_ != ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 100) { conceptDeleteResBuilder_.mergeFrom(value); } conceptDeleteResBuilder_.setMessage(value); } resCase_ = 100; return this; } /** * <pre> * Concept method responses * </pre> * * <code>optional .session.Concept.Delete.Res concept_delete_res = 100;</code> */ public Builder clearConceptDeleteRes() { if (conceptDeleteResBuilder_ == null) { if (resCase_ == 100) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 100) { resCase_ = 0; res_ = null; } conceptDeleteResBuilder_.clear(); } return this; } /** * <pre> * Concept method responses * </pre> * * <code>optional .session.Concept.Delete.Res concept_delete_res = 100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.Builder getConceptDeleteResBuilder() { return getConceptDeleteResFieldBuilder().getBuilder(); } /** * <pre> * Concept method responses * </pre> * * <code>optional .session.Concept.Delete.Res concept_delete_res = 100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.ResOrBuilder getConceptDeleteResOrBuilder() { if ((resCase_ == 100) && (conceptDeleteResBuilder_ != null)) { return conceptDeleteResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 100) { return (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.getDefaultInstance(); } } /** * <pre> * Concept method responses * </pre> * * <code>optional .session.Concept.Delete.Res concept_delete_res = 100;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.ResOrBuilder> getConceptDeleteResFieldBuilder() { if (conceptDeleteResBuilder_ == null) { if (!(resCase_ == 100)) { res_ = ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.getDefaultInstance(); } conceptDeleteResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 100; onChanged();; return conceptDeleteResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.ResOrBuilder> schemaConceptIsImplicitResBuilder_; /** * <pre> * SchemaConcept method responses * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Res schemaConcept_isImplicit_res = 200;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res getSchemaConceptIsImplicitRes() { if (schemaConceptIsImplicitResBuilder_ == null) { if (resCase_ == 200) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.getDefaultInstance(); } else { if (resCase_ == 200) { return schemaConceptIsImplicitResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.getDefaultInstance(); } } /** * <pre> * SchemaConcept method responses * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Res schemaConcept_isImplicit_res = 200;</code> */ public Builder setSchemaConceptIsImplicitRes(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res value) { if (schemaConceptIsImplicitResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { schemaConceptIsImplicitResBuilder_.setMessage(value); } resCase_ = 200; return this; } /** * <pre> * SchemaConcept method responses * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Res schemaConcept_isImplicit_res = 200;</code> */ public Builder setSchemaConceptIsImplicitRes( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.Builder builderForValue) { if (schemaConceptIsImplicitResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { schemaConceptIsImplicitResBuilder_.setMessage(builderForValue.build()); } resCase_ = 200; return this; } /** * <pre> * SchemaConcept method responses * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Res schemaConcept_isImplicit_res = 200;</code> */ public Builder mergeSchemaConceptIsImplicitRes(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res value) { if (schemaConceptIsImplicitResBuilder_ == null) { if (resCase_ == 200 && res_ != ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 200) { schemaConceptIsImplicitResBuilder_.mergeFrom(value); } schemaConceptIsImplicitResBuilder_.setMessage(value); } resCase_ = 200; return this; } /** * <pre> * SchemaConcept method responses * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Res schemaConcept_isImplicit_res = 200;</code> */ public Builder clearSchemaConceptIsImplicitRes() { if (schemaConceptIsImplicitResBuilder_ == null) { if (resCase_ == 200) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 200) { resCase_ = 0; res_ = null; } schemaConceptIsImplicitResBuilder_.clear(); } return this; } /** * <pre> * SchemaConcept method responses * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Res schemaConcept_isImplicit_res = 200;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.Builder getSchemaConceptIsImplicitResBuilder() { return getSchemaConceptIsImplicitResFieldBuilder().getBuilder(); } /** * <pre> * SchemaConcept method responses * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Res schemaConcept_isImplicit_res = 200;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.ResOrBuilder getSchemaConceptIsImplicitResOrBuilder() { if ((resCase_ == 200) && (schemaConceptIsImplicitResBuilder_ != null)) { return schemaConceptIsImplicitResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 200) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.getDefaultInstance(); } } /** * <pre> * SchemaConcept method responses * </pre> * * <code>optional .session.SchemaConcept.IsImplicit.Res schemaConcept_isImplicit_res = 200;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.ResOrBuilder> getSchemaConceptIsImplicitResFieldBuilder() { if (schemaConceptIsImplicitResBuilder_ == null) { if (!(resCase_ == 200)) { res_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.getDefaultInstance(); } schemaConceptIsImplicitResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 200; onChanged();; return schemaConceptIsImplicitResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.ResOrBuilder> schemaConceptGetLabelResBuilder_; /** * <code>optional .session.SchemaConcept.GetLabel.Res schemaConcept_getLabel_res = 201;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res getSchemaConceptGetLabelRes() { if (schemaConceptGetLabelResBuilder_ == null) { if (resCase_ == 201) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.getDefaultInstance(); } else { if (resCase_ == 201) { return schemaConceptGetLabelResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.GetLabel.Res schemaConcept_getLabel_res = 201;</code> */ public Builder setSchemaConceptGetLabelRes(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res value) { if (schemaConceptGetLabelResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { schemaConceptGetLabelResBuilder_.setMessage(value); } resCase_ = 201; return this; } /** * <code>optional .session.SchemaConcept.GetLabel.Res schemaConcept_getLabel_res = 201;</code> */ public Builder setSchemaConceptGetLabelRes( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.Builder builderForValue) { if (schemaConceptGetLabelResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { schemaConceptGetLabelResBuilder_.setMessage(builderForValue.build()); } resCase_ = 201; return this; } /** * <code>optional .session.SchemaConcept.GetLabel.Res schemaConcept_getLabel_res = 201;</code> */ public Builder mergeSchemaConceptGetLabelRes(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res value) { if (schemaConceptGetLabelResBuilder_ == null) { if (resCase_ == 201 && res_ != ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 201) { schemaConceptGetLabelResBuilder_.mergeFrom(value); } schemaConceptGetLabelResBuilder_.setMessage(value); } resCase_ = 201; return this; } /** * <code>optional .session.SchemaConcept.GetLabel.Res schemaConcept_getLabel_res = 201;</code> */ public Builder clearSchemaConceptGetLabelRes() { if (schemaConceptGetLabelResBuilder_ == null) { if (resCase_ == 201) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 201) { resCase_ = 0; res_ = null; } schemaConceptGetLabelResBuilder_.clear(); } return this; } /** * <code>optional .session.SchemaConcept.GetLabel.Res schemaConcept_getLabel_res = 201;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.Builder getSchemaConceptGetLabelResBuilder() { return getSchemaConceptGetLabelResFieldBuilder().getBuilder(); } /** * <code>optional .session.SchemaConcept.GetLabel.Res schemaConcept_getLabel_res = 201;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.ResOrBuilder getSchemaConceptGetLabelResOrBuilder() { if ((resCase_ == 201) && (schemaConceptGetLabelResBuilder_ != null)) { return schemaConceptGetLabelResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 201) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.GetLabel.Res schemaConcept_getLabel_res = 201;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.ResOrBuilder> getSchemaConceptGetLabelResFieldBuilder() { if (schemaConceptGetLabelResBuilder_ == null) { if (!(resCase_ == 201)) { res_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.getDefaultInstance(); } schemaConceptGetLabelResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 201; onChanged();; return schemaConceptGetLabelResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.ResOrBuilder> schemaConceptSetLabelResBuilder_; /** * <code>optional .session.SchemaConcept.SetLabel.Res schemaConcept_setLabel_res = 202;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res getSchemaConceptSetLabelRes() { if (schemaConceptSetLabelResBuilder_ == null) { if (resCase_ == 202) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.getDefaultInstance(); } else { if (resCase_ == 202) { return schemaConceptSetLabelResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.SetLabel.Res schemaConcept_setLabel_res = 202;</code> */ public Builder setSchemaConceptSetLabelRes(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res value) { if (schemaConceptSetLabelResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { schemaConceptSetLabelResBuilder_.setMessage(value); } resCase_ = 202; return this; } /** * <code>optional .session.SchemaConcept.SetLabel.Res schemaConcept_setLabel_res = 202;</code> */ public Builder setSchemaConceptSetLabelRes( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.Builder builderForValue) { if (schemaConceptSetLabelResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { schemaConceptSetLabelResBuilder_.setMessage(builderForValue.build()); } resCase_ = 202; return this; } /** * <code>optional .session.SchemaConcept.SetLabel.Res schemaConcept_setLabel_res = 202;</code> */ public Builder mergeSchemaConceptSetLabelRes(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res value) { if (schemaConceptSetLabelResBuilder_ == null) { if (resCase_ == 202 && res_ != ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 202) { schemaConceptSetLabelResBuilder_.mergeFrom(value); } schemaConceptSetLabelResBuilder_.setMessage(value); } resCase_ = 202; return this; } /** * <code>optional .session.SchemaConcept.SetLabel.Res schemaConcept_setLabel_res = 202;</code> */ public Builder clearSchemaConceptSetLabelRes() { if (schemaConceptSetLabelResBuilder_ == null) { if (resCase_ == 202) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 202) { resCase_ = 0; res_ = null; } schemaConceptSetLabelResBuilder_.clear(); } return this; } /** * <code>optional .session.SchemaConcept.SetLabel.Res schemaConcept_setLabel_res = 202;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.Builder getSchemaConceptSetLabelResBuilder() { return getSchemaConceptSetLabelResFieldBuilder().getBuilder(); } /** * <code>optional .session.SchemaConcept.SetLabel.Res schemaConcept_setLabel_res = 202;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.ResOrBuilder getSchemaConceptSetLabelResOrBuilder() { if ((resCase_ == 202) && (schemaConceptSetLabelResBuilder_ != null)) { return schemaConceptSetLabelResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 202) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.SetLabel.Res schemaConcept_setLabel_res = 202;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.ResOrBuilder> getSchemaConceptSetLabelResFieldBuilder() { if (schemaConceptSetLabelResBuilder_ == null) { if (!(resCase_ == 202)) { res_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.getDefaultInstance(); } schemaConceptSetLabelResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 202; onChanged();; return schemaConceptSetLabelResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.ResOrBuilder> schemaConceptGetSupResBuilder_; /** * <code>optional .session.SchemaConcept.GetSup.Res schemaConcept_getSup_res = 203;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res getSchemaConceptGetSupRes() { if (schemaConceptGetSupResBuilder_ == null) { if (resCase_ == 203) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.getDefaultInstance(); } else { if (resCase_ == 203) { return schemaConceptGetSupResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.GetSup.Res schemaConcept_getSup_res = 203;</code> */ public Builder setSchemaConceptGetSupRes(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res value) { if (schemaConceptGetSupResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { schemaConceptGetSupResBuilder_.setMessage(value); } resCase_ = 203; return this; } /** * <code>optional .session.SchemaConcept.GetSup.Res schemaConcept_getSup_res = 203;</code> */ public Builder setSchemaConceptGetSupRes( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.Builder builderForValue) { if (schemaConceptGetSupResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { schemaConceptGetSupResBuilder_.setMessage(builderForValue.build()); } resCase_ = 203; return this; } /** * <code>optional .session.SchemaConcept.GetSup.Res schemaConcept_getSup_res = 203;</code> */ public Builder mergeSchemaConceptGetSupRes(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res value) { if (schemaConceptGetSupResBuilder_ == null) { if (resCase_ == 203 && res_ != ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 203) { schemaConceptGetSupResBuilder_.mergeFrom(value); } schemaConceptGetSupResBuilder_.setMessage(value); } resCase_ = 203; return this; } /** * <code>optional .session.SchemaConcept.GetSup.Res schemaConcept_getSup_res = 203;</code> */ public Builder clearSchemaConceptGetSupRes() { if (schemaConceptGetSupResBuilder_ == null) { if (resCase_ == 203) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 203) { resCase_ = 0; res_ = null; } schemaConceptGetSupResBuilder_.clear(); } return this; } /** * <code>optional .session.SchemaConcept.GetSup.Res schemaConcept_getSup_res = 203;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.Builder getSchemaConceptGetSupResBuilder() { return getSchemaConceptGetSupResFieldBuilder().getBuilder(); } /** * <code>optional .session.SchemaConcept.GetSup.Res schemaConcept_getSup_res = 203;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.ResOrBuilder getSchemaConceptGetSupResOrBuilder() { if ((resCase_ == 203) && (schemaConceptGetSupResBuilder_ != null)) { return schemaConceptGetSupResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 203) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.GetSup.Res schemaConcept_getSup_res = 203;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.ResOrBuilder> getSchemaConceptGetSupResFieldBuilder() { if (schemaConceptGetSupResBuilder_ == null) { if (!(resCase_ == 203)) { res_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.getDefaultInstance(); } schemaConceptGetSupResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 203; onChanged();; return schemaConceptGetSupResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.ResOrBuilder> schemaConceptSetSupResBuilder_; /** * <code>optional .session.SchemaConcept.SetSup.Res schemaConcept_setSup_res = 204;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res getSchemaConceptSetSupRes() { if (schemaConceptSetSupResBuilder_ == null) { if (resCase_ == 204) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.getDefaultInstance(); } else { if (resCase_ == 204) { return schemaConceptSetSupResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.SetSup.Res schemaConcept_setSup_res = 204;</code> */ public Builder setSchemaConceptSetSupRes(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res value) { if (schemaConceptSetSupResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { schemaConceptSetSupResBuilder_.setMessage(value); } resCase_ = 204; return this; } /** * <code>optional .session.SchemaConcept.SetSup.Res schemaConcept_setSup_res = 204;</code> */ public Builder setSchemaConceptSetSupRes( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.Builder builderForValue) { if (schemaConceptSetSupResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { schemaConceptSetSupResBuilder_.setMessage(builderForValue.build()); } resCase_ = 204; return this; } /** * <code>optional .session.SchemaConcept.SetSup.Res schemaConcept_setSup_res = 204;</code> */ public Builder mergeSchemaConceptSetSupRes(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res value) { if (schemaConceptSetSupResBuilder_ == null) { if (resCase_ == 204 && res_ != ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 204) { schemaConceptSetSupResBuilder_.mergeFrom(value); } schemaConceptSetSupResBuilder_.setMessage(value); } resCase_ = 204; return this; } /** * <code>optional .session.SchemaConcept.SetSup.Res schemaConcept_setSup_res = 204;</code> */ public Builder clearSchemaConceptSetSupRes() { if (schemaConceptSetSupResBuilder_ == null) { if (resCase_ == 204) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 204) { resCase_ = 0; res_ = null; } schemaConceptSetSupResBuilder_.clear(); } return this; } /** * <code>optional .session.SchemaConcept.SetSup.Res schemaConcept_setSup_res = 204;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.Builder getSchemaConceptSetSupResBuilder() { return getSchemaConceptSetSupResFieldBuilder().getBuilder(); } /** * <code>optional .session.SchemaConcept.SetSup.Res schemaConcept_setSup_res = 204;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.ResOrBuilder getSchemaConceptSetSupResOrBuilder() { if ((resCase_ == 204) && (schemaConceptSetSupResBuilder_ != null)) { return schemaConceptSetSupResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 204) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.SetSup.Res schemaConcept_setSup_res = 204;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.ResOrBuilder> getSchemaConceptSetSupResFieldBuilder() { if (schemaConceptSetSupResBuilder_ == null) { if (!(resCase_ == 204)) { res_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.getDefaultInstance(); } schemaConceptSetSupResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 204; onChanged();; return schemaConceptSetSupResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.IterOrBuilder> schemaConceptSupsIterBuilder_; /** * <code>optional .session.SchemaConcept.Sups.Iter schemaConcept_sups_iter = 205;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter getSchemaConceptSupsIter() { if (schemaConceptSupsIterBuilder_ == null) { if (resCase_ == 205) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.getDefaultInstance(); } else { if (resCase_ == 205) { return schemaConceptSupsIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.Sups.Iter schemaConcept_sups_iter = 205;</code> */ public Builder setSchemaConceptSupsIter(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter value) { if (schemaConceptSupsIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { schemaConceptSupsIterBuilder_.setMessage(value); } resCase_ = 205; return this; } /** * <code>optional .session.SchemaConcept.Sups.Iter schemaConcept_sups_iter = 205;</code> */ public Builder setSchemaConceptSupsIter( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Builder builderForValue) { if (schemaConceptSupsIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { schemaConceptSupsIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 205; return this; } /** * <code>optional .session.SchemaConcept.Sups.Iter schemaConcept_sups_iter = 205;</code> */ public Builder mergeSchemaConceptSupsIter(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter value) { if (schemaConceptSupsIterBuilder_ == null) { if (resCase_ == 205 && res_ != ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.newBuilder((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 205) { schemaConceptSupsIterBuilder_.mergeFrom(value); } schemaConceptSupsIterBuilder_.setMessage(value); } resCase_ = 205; return this; } /** * <code>optional .session.SchemaConcept.Sups.Iter schemaConcept_sups_iter = 205;</code> */ public Builder clearSchemaConceptSupsIter() { if (schemaConceptSupsIterBuilder_ == null) { if (resCase_ == 205) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 205) { resCase_ = 0; res_ = null; } schemaConceptSupsIterBuilder_.clear(); } return this; } /** * <code>optional .session.SchemaConcept.Sups.Iter schemaConcept_sups_iter = 205;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Builder getSchemaConceptSupsIterBuilder() { return getSchemaConceptSupsIterFieldBuilder().getBuilder(); } /** * <code>optional .session.SchemaConcept.Sups.Iter schemaConcept_sups_iter = 205;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.IterOrBuilder getSchemaConceptSupsIterOrBuilder() { if ((resCase_ == 205) && (schemaConceptSupsIterBuilder_ != null)) { return schemaConceptSupsIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 205) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.Sups.Iter schemaConcept_sups_iter = 205;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.IterOrBuilder> getSchemaConceptSupsIterFieldBuilder() { if (schemaConceptSupsIterBuilder_ == null) { if (!(resCase_ == 205)) { res_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.getDefaultInstance(); } schemaConceptSupsIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.IterOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 205; onChanged();; return schemaConceptSupsIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.IterOrBuilder> schemaConceptSubsIterBuilder_; /** * <code>optional .session.SchemaConcept.Subs.Iter schemaConcept_subs_iter = 206;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter getSchemaConceptSubsIter() { if (schemaConceptSubsIterBuilder_ == null) { if (resCase_ == 206) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.getDefaultInstance(); } else { if (resCase_ == 206) { return schemaConceptSubsIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.Subs.Iter schemaConcept_subs_iter = 206;</code> */ public Builder setSchemaConceptSubsIter(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter value) { if (schemaConceptSubsIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { schemaConceptSubsIterBuilder_.setMessage(value); } resCase_ = 206; return this; } /** * <code>optional .session.SchemaConcept.Subs.Iter schemaConcept_subs_iter = 206;</code> */ public Builder setSchemaConceptSubsIter( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Builder builderForValue) { if (schemaConceptSubsIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { schemaConceptSubsIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 206; return this; } /** * <code>optional .session.SchemaConcept.Subs.Iter schemaConcept_subs_iter = 206;</code> */ public Builder mergeSchemaConceptSubsIter(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter value) { if (schemaConceptSubsIterBuilder_ == null) { if (resCase_ == 206 && res_ != ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.newBuilder((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 206) { schemaConceptSubsIterBuilder_.mergeFrom(value); } schemaConceptSubsIterBuilder_.setMessage(value); } resCase_ = 206; return this; } /** * <code>optional .session.SchemaConcept.Subs.Iter schemaConcept_subs_iter = 206;</code> */ public Builder clearSchemaConceptSubsIter() { if (schemaConceptSubsIterBuilder_ == null) { if (resCase_ == 206) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 206) { resCase_ = 0; res_ = null; } schemaConceptSubsIterBuilder_.clear(); } return this; } /** * <code>optional .session.SchemaConcept.Subs.Iter schemaConcept_subs_iter = 206;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Builder getSchemaConceptSubsIterBuilder() { return getSchemaConceptSubsIterFieldBuilder().getBuilder(); } /** * <code>optional .session.SchemaConcept.Subs.Iter schemaConcept_subs_iter = 206;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.IterOrBuilder getSchemaConceptSubsIterOrBuilder() { if ((resCase_ == 206) && (schemaConceptSubsIterBuilder_ != null)) { return schemaConceptSubsIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 206) { return (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.getDefaultInstance(); } } /** * <code>optional .session.SchemaConcept.Subs.Iter schemaConcept_subs_iter = 206;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.IterOrBuilder> getSchemaConceptSubsIterFieldBuilder() { if (schemaConceptSubsIterBuilder_ == null) { if (!(resCase_ == 206)) { res_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.getDefaultInstance(); } schemaConceptSubsIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.IterOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 206; onChanged();; return schemaConceptSubsIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Rule.When.Res, ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Rule.When.ResOrBuilder> ruleWhenResBuilder_; /** * <pre> * Rule method responses * </pre> * * <code>optional .session.Rule.When.Res rule_when_res = 300;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.When.Res getRuleWhenRes() { if (ruleWhenResBuilder_ == null) { if (resCase_ == 300) { return (ai.grakn.rpc.proto.ConceptProto.Rule.When.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.getDefaultInstance(); } else { if (resCase_ == 300) { return ruleWhenResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.getDefaultInstance(); } } /** * <pre> * Rule method responses * </pre> * * <code>optional .session.Rule.When.Res rule_when_res = 300;</code> */ public Builder setRuleWhenRes(ai.grakn.rpc.proto.ConceptProto.Rule.When.Res value) { if (ruleWhenResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { ruleWhenResBuilder_.setMessage(value); } resCase_ = 300; return this; } /** * <pre> * Rule method responses * </pre> * * <code>optional .session.Rule.When.Res rule_when_res = 300;</code> */ public Builder setRuleWhenRes( ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.Builder builderForValue) { if (ruleWhenResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { ruleWhenResBuilder_.setMessage(builderForValue.build()); } resCase_ = 300; return this; } /** * <pre> * Rule method responses * </pre> * * <code>optional .session.Rule.When.Res rule_when_res = 300;</code> */ public Builder mergeRuleWhenRes(ai.grakn.rpc.proto.ConceptProto.Rule.When.Res value) { if (ruleWhenResBuilder_ == null) { if (resCase_ == 300 && res_ != ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Rule.When.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 300) { ruleWhenResBuilder_.mergeFrom(value); } ruleWhenResBuilder_.setMessage(value); } resCase_ = 300; return this; } /** * <pre> * Rule method responses * </pre> * * <code>optional .session.Rule.When.Res rule_when_res = 300;</code> */ public Builder clearRuleWhenRes() { if (ruleWhenResBuilder_ == null) { if (resCase_ == 300) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 300) { resCase_ = 0; res_ = null; } ruleWhenResBuilder_.clear(); } return this; } /** * <pre> * Rule method responses * </pre> * * <code>optional .session.Rule.When.Res rule_when_res = 300;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.Builder getRuleWhenResBuilder() { return getRuleWhenResFieldBuilder().getBuilder(); } /** * <pre> * Rule method responses * </pre> * * <code>optional .session.Rule.When.Res rule_when_res = 300;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.When.ResOrBuilder getRuleWhenResOrBuilder() { if ((resCase_ == 300) && (ruleWhenResBuilder_ != null)) { return ruleWhenResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 300) { return (ai.grakn.rpc.proto.ConceptProto.Rule.When.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.getDefaultInstance(); } } /** * <pre> * Rule method responses * </pre> * * <code>optional .session.Rule.When.Res rule_when_res = 300;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Rule.When.Res, ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Rule.When.ResOrBuilder> getRuleWhenResFieldBuilder() { if (ruleWhenResBuilder_ == null) { if (!(resCase_ == 300)) { res_ = ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.getDefaultInstance(); } ruleWhenResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Rule.When.Res, ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Rule.When.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Rule.When.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 300; onChanged();; return ruleWhenResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res, ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Rule.Then.ResOrBuilder> ruleThenResBuilder_; /** * <code>optional .session.Rule.Then.Res rule_then_res = 301;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res getRuleThenRes() { if (ruleThenResBuilder_ == null) { if (resCase_ == 301) { return (ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.getDefaultInstance(); } else { if (resCase_ == 301) { return ruleThenResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.getDefaultInstance(); } } /** * <code>optional .session.Rule.Then.Res rule_then_res = 301;</code> */ public Builder setRuleThenRes(ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res value) { if (ruleThenResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { ruleThenResBuilder_.setMessage(value); } resCase_ = 301; return this; } /** * <code>optional .session.Rule.Then.Res rule_then_res = 301;</code> */ public Builder setRuleThenRes( ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.Builder builderForValue) { if (ruleThenResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { ruleThenResBuilder_.setMessage(builderForValue.build()); } resCase_ = 301; return this; } /** * <code>optional .session.Rule.Then.Res rule_then_res = 301;</code> */ public Builder mergeRuleThenRes(ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res value) { if (ruleThenResBuilder_ == null) { if (resCase_ == 301 && res_ != ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 301) { ruleThenResBuilder_.mergeFrom(value); } ruleThenResBuilder_.setMessage(value); } resCase_ = 301; return this; } /** * <code>optional .session.Rule.Then.Res rule_then_res = 301;</code> */ public Builder clearRuleThenRes() { if (ruleThenResBuilder_ == null) { if (resCase_ == 301) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 301) { resCase_ = 0; res_ = null; } ruleThenResBuilder_.clear(); } return this; } /** * <code>optional .session.Rule.Then.Res rule_then_res = 301;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.Builder getRuleThenResBuilder() { return getRuleThenResFieldBuilder().getBuilder(); } /** * <code>optional .session.Rule.Then.Res rule_then_res = 301;</code> */ public ai.grakn.rpc.proto.ConceptProto.Rule.Then.ResOrBuilder getRuleThenResOrBuilder() { if ((resCase_ == 301) && (ruleThenResBuilder_ != null)) { return ruleThenResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 301) { return (ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.getDefaultInstance(); } } /** * <code>optional .session.Rule.Then.Res rule_then_res = 301;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res, ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Rule.Then.ResOrBuilder> getRuleThenResFieldBuilder() { if (ruleThenResBuilder_ == null) { if (!(resCase_ == 301)) { res_ = ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.getDefaultInstance(); } ruleThenResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res, ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Rule.Then.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 301; onChanged();; return ruleThenResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Relations.IterOrBuilder> roleRelationsIterBuilder_; /** * <pre> * Role method responses * </pre> * * <code>optional .session.Role.Relations.Iter role_relations_iter = 401;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter getRoleRelationsIter() { if (roleRelationsIterBuilder_ == null) { if (resCase_ == 401) { return (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.getDefaultInstance(); } else { if (resCase_ == 401) { return roleRelationsIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.getDefaultInstance(); } } /** * <pre> * Role method responses * </pre> * * <code>optional .session.Role.Relations.Iter role_relations_iter = 401;</code> */ public Builder setRoleRelationsIter(ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter value) { if (roleRelationsIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { roleRelationsIterBuilder_.setMessage(value); } resCase_ = 401; return this; } /** * <pre> * Role method responses * </pre> * * <code>optional .session.Role.Relations.Iter role_relations_iter = 401;</code> */ public Builder setRoleRelationsIter( ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Builder builderForValue) { if (roleRelationsIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { roleRelationsIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 401; return this; } /** * <pre> * Role method responses * </pre> * * <code>optional .session.Role.Relations.Iter role_relations_iter = 401;</code> */ public Builder mergeRoleRelationsIter(ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter value) { if (roleRelationsIterBuilder_ == null) { if (resCase_ == 401 && res_ != ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.newBuilder((ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 401) { roleRelationsIterBuilder_.mergeFrom(value); } roleRelationsIterBuilder_.setMessage(value); } resCase_ = 401; return this; } /** * <pre> * Role method responses * </pre> * * <code>optional .session.Role.Relations.Iter role_relations_iter = 401;</code> */ public Builder clearRoleRelationsIter() { if (roleRelationsIterBuilder_ == null) { if (resCase_ == 401) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 401) { resCase_ = 0; res_ = null; } roleRelationsIterBuilder_.clear(); } return this; } /** * <pre> * Role method responses * </pre> * * <code>optional .session.Role.Relations.Iter role_relations_iter = 401;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Builder getRoleRelationsIterBuilder() { return getRoleRelationsIterFieldBuilder().getBuilder(); } /** * <pre> * Role method responses * </pre> * * <code>optional .session.Role.Relations.Iter role_relations_iter = 401;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Relations.IterOrBuilder getRoleRelationsIterOrBuilder() { if ((resCase_ == 401) && (roleRelationsIterBuilder_ != null)) { return roleRelationsIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 401) { return (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.getDefaultInstance(); } } /** * <pre> * Role method responses * </pre> * * <code>optional .session.Role.Relations.Iter role_relations_iter = 401;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Relations.IterOrBuilder> getRoleRelationsIterFieldBuilder() { if (roleRelationsIterBuilder_ == null) { if (!(resCase_ == 401)) { res_ = ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.getDefaultInstance(); } roleRelationsIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Relations.IterOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 401; onChanged();; return roleRelationsIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter, ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Players.IterOrBuilder> rolePlayersIterBuilder_; /** * <code>optional .session.Role.Players.Iter role_players_iter = 402;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter getRolePlayersIter() { if (rolePlayersIterBuilder_ == null) { if (resCase_ == 402) { return (ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.getDefaultInstance(); } else { if (resCase_ == 402) { return rolePlayersIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.getDefaultInstance(); } } /** * <code>optional .session.Role.Players.Iter role_players_iter = 402;</code> */ public Builder setRolePlayersIter(ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter value) { if (rolePlayersIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { rolePlayersIterBuilder_.setMessage(value); } resCase_ = 402; return this; } /** * <code>optional .session.Role.Players.Iter role_players_iter = 402;</code> */ public Builder setRolePlayersIter( ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Builder builderForValue) { if (rolePlayersIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { rolePlayersIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 402; return this; } /** * <code>optional .session.Role.Players.Iter role_players_iter = 402;</code> */ public Builder mergeRolePlayersIter(ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter value) { if (rolePlayersIterBuilder_ == null) { if (resCase_ == 402 && res_ != ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.newBuilder((ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 402) { rolePlayersIterBuilder_.mergeFrom(value); } rolePlayersIterBuilder_.setMessage(value); } resCase_ = 402; return this; } /** * <code>optional .session.Role.Players.Iter role_players_iter = 402;</code> */ public Builder clearRolePlayersIter() { if (rolePlayersIterBuilder_ == null) { if (resCase_ == 402) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 402) { resCase_ = 0; res_ = null; } rolePlayersIterBuilder_.clear(); } return this; } /** * <code>optional .session.Role.Players.Iter role_players_iter = 402;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Builder getRolePlayersIterBuilder() { return getRolePlayersIterFieldBuilder().getBuilder(); } /** * <code>optional .session.Role.Players.Iter role_players_iter = 402;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Players.IterOrBuilder getRolePlayersIterOrBuilder() { if ((resCase_ == 402) && (rolePlayersIterBuilder_ != null)) { return rolePlayersIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 402) { return (ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.getDefaultInstance(); } } /** * <code>optional .session.Role.Players.Iter role_players_iter = 402;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter, ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Players.IterOrBuilder> getRolePlayersIterFieldBuilder() { if (rolePlayersIterBuilder_ == null) { if (!(resCase_ == 402)) { res_ = ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.getDefaultInstance(); } rolePlayersIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter, ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Players.IterOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 402; onChanged();; return rolePlayersIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.ResOrBuilder> typeIsAbstractResBuilder_; /** * <pre> * Type method responses * </pre> * * <code>optional .session.Type.IsAbstract.Res type_isAbstract_res = 500;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res getTypeIsAbstractRes() { if (typeIsAbstractResBuilder_ == null) { if (resCase_ == 500) { return (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.getDefaultInstance(); } else { if (resCase_ == 500) { return typeIsAbstractResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.getDefaultInstance(); } } /** * <pre> * Type method responses * </pre> * * <code>optional .session.Type.IsAbstract.Res type_isAbstract_res = 500;</code> */ public Builder setTypeIsAbstractRes(ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res value) { if (typeIsAbstractResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { typeIsAbstractResBuilder_.setMessage(value); } resCase_ = 500; return this; } /** * <pre> * Type method responses * </pre> * * <code>optional .session.Type.IsAbstract.Res type_isAbstract_res = 500;</code> */ public Builder setTypeIsAbstractRes( ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.Builder builderForValue) { if (typeIsAbstractResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { typeIsAbstractResBuilder_.setMessage(builderForValue.build()); } resCase_ = 500; return this; } /** * <pre> * Type method responses * </pre> * * <code>optional .session.Type.IsAbstract.Res type_isAbstract_res = 500;</code> */ public Builder mergeTypeIsAbstractRes(ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res value) { if (typeIsAbstractResBuilder_ == null) { if (resCase_ == 500 && res_ != ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 500) { typeIsAbstractResBuilder_.mergeFrom(value); } typeIsAbstractResBuilder_.setMessage(value); } resCase_ = 500; return this; } /** * <pre> * Type method responses * </pre> * * <code>optional .session.Type.IsAbstract.Res type_isAbstract_res = 500;</code> */ public Builder clearTypeIsAbstractRes() { if (typeIsAbstractResBuilder_ == null) { if (resCase_ == 500) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 500) { resCase_ = 0; res_ = null; } typeIsAbstractResBuilder_.clear(); } return this; } /** * <pre> * Type method responses * </pre> * * <code>optional .session.Type.IsAbstract.Res type_isAbstract_res = 500;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.Builder getTypeIsAbstractResBuilder() { return getTypeIsAbstractResFieldBuilder().getBuilder(); } /** * <pre> * Type method responses * </pre> * * <code>optional .session.Type.IsAbstract.Res type_isAbstract_res = 500;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.ResOrBuilder getTypeIsAbstractResOrBuilder() { if ((resCase_ == 500) && (typeIsAbstractResBuilder_ != null)) { return typeIsAbstractResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 500) { return (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.getDefaultInstance(); } } /** * <pre> * Type method responses * </pre> * * <code>optional .session.Type.IsAbstract.Res type_isAbstract_res = 500;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.ResOrBuilder> getTypeIsAbstractResFieldBuilder() { if (typeIsAbstractResBuilder_ == null) { if (!(resCase_ == 500)) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.getDefaultInstance(); } typeIsAbstractResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 500; onChanged();; return typeIsAbstractResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.ResOrBuilder> typeSetAbstractResBuilder_; /** * <code>optional .session.Type.SetAbstract.Res type_setAbstract_res = 501;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res getTypeSetAbstractRes() { if (typeSetAbstractResBuilder_ == null) { if (resCase_ == 501) { return (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.getDefaultInstance(); } else { if (resCase_ == 501) { return typeSetAbstractResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.getDefaultInstance(); } } /** * <code>optional .session.Type.SetAbstract.Res type_setAbstract_res = 501;</code> */ public Builder setTypeSetAbstractRes(ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res value) { if (typeSetAbstractResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { typeSetAbstractResBuilder_.setMessage(value); } resCase_ = 501; return this; } /** * <code>optional .session.Type.SetAbstract.Res type_setAbstract_res = 501;</code> */ public Builder setTypeSetAbstractRes( ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.Builder builderForValue) { if (typeSetAbstractResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { typeSetAbstractResBuilder_.setMessage(builderForValue.build()); } resCase_ = 501; return this; } /** * <code>optional .session.Type.SetAbstract.Res type_setAbstract_res = 501;</code> */ public Builder mergeTypeSetAbstractRes(ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res value) { if (typeSetAbstractResBuilder_ == null) { if (resCase_ == 501 && res_ != ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 501) { typeSetAbstractResBuilder_.mergeFrom(value); } typeSetAbstractResBuilder_.setMessage(value); } resCase_ = 501; return this; } /** * <code>optional .session.Type.SetAbstract.Res type_setAbstract_res = 501;</code> */ public Builder clearTypeSetAbstractRes() { if (typeSetAbstractResBuilder_ == null) { if (resCase_ == 501) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 501) { resCase_ = 0; res_ = null; } typeSetAbstractResBuilder_.clear(); } return this; } /** * <code>optional .session.Type.SetAbstract.Res type_setAbstract_res = 501;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.Builder getTypeSetAbstractResBuilder() { return getTypeSetAbstractResFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.SetAbstract.Res type_setAbstract_res = 501;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.ResOrBuilder getTypeSetAbstractResOrBuilder() { if ((resCase_ == 501) && (typeSetAbstractResBuilder_ != null)) { return typeSetAbstractResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 501) { return (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.getDefaultInstance(); } } /** * <code>optional .session.Type.SetAbstract.Res type_setAbstract_res = 501;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.ResOrBuilder> getTypeSetAbstractResFieldBuilder() { if (typeSetAbstractResBuilder_ == null) { if (!(resCase_ == 501)) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.getDefaultInstance(); } typeSetAbstractResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 501; onChanged();; return typeSetAbstractResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Instances.IterOrBuilder> typeInstancesIterBuilder_; /** * <code>optional .session.Type.Instances.Iter type_instances_iter = 502;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter getTypeInstancesIter() { if (typeInstancesIterBuilder_ == null) { if (resCase_ == 502) { return (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.getDefaultInstance(); } else { if (resCase_ == 502) { return typeInstancesIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.getDefaultInstance(); } } /** * <code>optional .session.Type.Instances.Iter type_instances_iter = 502;</code> */ public Builder setTypeInstancesIter(ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter value) { if (typeInstancesIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { typeInstancesIterBuilder_.setMessage(value); } resCase_ = 502; return this; } /** * <code>optional .session.Type.Instances.Iter type_instances_iter = 502;</code> */ public Builder setTypeInstancesIter( ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Builder builderForValue) { if (typeInstancesIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { typeInstancesIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 502; return this; } /** * <code>optional .session.Type.Instances.Iter type_instances_iter = 502;</code> */ public Builder mergeTypeInstancesIter(ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter value) { if (typeInstancesIterBuilder_ == null) { if (resCase_ == 502 && res_ != ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 502) { typeInstancesIterBuilder_.mergeFrom(value); } typeInstancesIterBuilder_.setMessage(value); } resCase_ = 502; return this; } /** * <code>optional .session.Type.Instances.Iter type_instances_iter = 502;</code> */ public Builder clearTypeInstancesIter() { if (typeInstancesIterBuilder_ == null) { if (resCase_ == 502) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 502) { resCase_ = 0; res_ = null; } typeInstancesIterBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Instances.Iter type_instances_iter = 502;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Builder getTypeInstancesIterBuilder() { return getTypeInstancesIterFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Instances.Iter type_instances_iter = 502;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Instances.IterOrBuilder getTypeInstancesIterOrBuilder() { if ((resCase_ == 502) && (typeInstancesIterBuilder_ != null)) { return typeInstancesIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 502) { return (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.getDefaultInstance(); } } /** * <code>optional .session.Type.Instances.Iter type_instances_iter = 502;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Instances.IterOrBuilder> getTypeInstancesIterFieldBuilder() { if (typeInstancesIterBuilder_ == null) { if (!(resCase_ == 502)) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.getDefaultInstance(); } typeInstancesIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Instances.IterOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 502; onChanged();; return typeInstancesIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Keys.IterOrBuilder> typeKeysIterBuilder_; /** * <code>optional .session.Type.Keys.Iter type_keys_iter = 503;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter getTypeKeysIter() { if (typeKeysIterBuilder_ == null) { if (resCase_ == 503) { return (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.getDefaultInstance(); } else { if (resCase_ == 503) { return typeKeysIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.getDefaultInstance(); } } /** * <code>optional .session.Type.Keys.Iter type_keys_iter = 503;</code> */ public Builder setTypeKeysIter(ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter value) { if (typeKeysIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { typeKeysIterBuilder_.setMessage(value); } resCase_ = 503; return this; } /** * <code>optional .session.Type.Keys.Iter type_keys_iter = 503;</code> */ public Builder setTypeKeysIter( ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Builder builderForValue) { if (typeKeysIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { typeKeysIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 503; return this; } /** * <code>optional .session.Type.Keys.Iter type_keys_iter = 503;</code> */ public Builder mergeTypeKeysIter(ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter value) { if (typeKeysIterBuilder_ == null) { if (resCase_ == 503 && res_ != ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 503) { typeKeysIterBuilder_.mergeFrom(value); } typeKeysIterBuilder_.setMessage(value); } resCase_ = 503; return this; } /** * <code>optional .session.Type.Keys.Iter type_keys_iter = 503;</code> */ public Builder clearTypeKeysIter() { if (typeKeysIterBuilder_ == null) { if (resCase_ == 503) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 503) { resCase_ = 0; res_ = null; } typeKeysIterBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Keys.Iter type_keys_iter = 503;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Builder getTypeKeysIterBuilder() { return getTypeKeysIterFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Keys.Iter type_keys_iter = 503;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Keys.IterOrBuilder getTypeKeysIterOrBuilder() { if ((resCase_ == 503) && (typeKeysIterBuilder_ != null)) { return typeKeysIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 503) { return (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.getDefaultInstance(); } } /** * <code>optional .session.Type.Keys.Iter type_keys_iter = 503;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Keys.IterOrBuilder> getTypeKeysIterFieldBuilder() { if (typeKeysIterBuilder_ == null) { if (!(resCase_ == 503)) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.getDefaultInstance(); } typeKeysIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Keys.IterOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 503; onChanged();; return typeKeysIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.IterOrBuilder> typeAttributesIterBuilder_; /** * <code>optional .session.Type.Attributes.Iter type_attributes_iter = 504;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter getTypeAttributesIter() { if (typeAttributesIterBuilder_ == null) { if (resCase_ == 504) { return (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.getDefaultInstance(); } else { if (resCase_ == 504) { return typeAttributesIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.getDefaultInstance(); } } /** * <code>optional .session.Type.Attributes.Iter type_attributes_iter = 504;</code> */ public Builder setTypeAttributesIter(ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter value) { if (typeAttributesIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { typeAttributesIterBuilder_.setMessage(value); } resCase_ = 504; return this; } /** * <code>optional .session.Type.Attributes.Iter type_attributes_iter = 504;</code> */ public Builder setTypeAttributesIter( ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Builder builderForValue) { if (typeAttributesIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { typeAttributesIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 504; return this; } /** * <code>optional .session.Type.Attributes.Iter type_attributes_iter = 504;</code> */ public Builder mergeTypeAttributesIter(ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter value) { if (typeAttributesIterBuilder_ == null) { if (resCase_ == 504 && res_ != ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 504) { typeAttributesIterBuilder_.mergeFrom(value); } typeAttributesIterBuilder_.setMessage(value); } resCase_ = 504; return this; } /** * <code>optional .session.Type.Attributes.Iter type_attributes_iter = 504;</code> */ public Builder clearTypeAttributesIter() { if (typeAttributesIterBuilder_ == null) { if (resCase_ == 504) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 504) { resCase_ = 0; res_ = null; } typeAttributesIterBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Attributes.Iter type_attributes_iter = 504;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Builder getTypeAttributesIterBuilder() { return getTypeAttributesIterFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Attributes.Iter type_attributes_iter = 504;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.IterOrBuilder getTypeAttributesIterOrBuilder() { if ((resCase_ == 504) && (typeAttributesIterBuilder_ != null)) { return typeAttributesIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 504) { return (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.getDefaultInstance(); } } /** * <code>optional .session.Type.Attributes.Iter type_attributes_iter = 504;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.IterOrBuilder> getTypeAttributesIterFieldBuilder() { if (typeAttributesIterBuilder_ == null) { if (!(resCase_ == 504)) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.getDefaultInstance(); } typeAttributesIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.IterOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 504; onChanged();; return typeAttributesIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Playing.IterOrBuilder> typePlayingIterBuilder_; /** * <code>optional .session.Type.Playing.Iter type_playing_iter = 505;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter getTypePlayingIter() { if (typePlayingIterBuilder_ == null) { if (resCase_ == 505) { return (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.getDefaultInstance(); } else { if (resCase_ == 505) { return typePlayingIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.getDefaultInstance(); } } /** * <code>optional .session.Type.Playing.Iter type_playing_iter = 505;</code> */ public Builder setTypePlayingIter(ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter value) { if (typePlayingIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { typePlayingIterBuilder_.setMessage(value); } resCase_ = 505; return this; } /** * <code>optional .session.Type.Playing.Iter type_playing_iter = 505;</code> */ public Builder setTypePlayingIter( ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Builder builderForValue) { if (typePlayingIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { typePlayingIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 505; return this; } /** * <code>optional .session.Type.Playing.Iter type_playing_iter = 505;</code> */ public Builder mergeTypePlayingIter(ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter value) { if (typePlayingIterBuilder_ == null) { if (resCase_ == 505 && res_ != ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 505) { typePlayingIterBuilder_.mergeFrom(value); } typePlayingIterBuilder_.setMessage(value); } resCase_ = 505; return this; } /** * <code>optional .session.Type.Playing.Iter type_playing_iter = 505;</code> */ public Builder clearTypePlayingIter() { if (typePlayingIterBuilder_ == null) { if (resCase_ == 505) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 505) { resCase_ = 0; res_ = null; } typePlayingIterBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Playing.Iter type_playing_iter = 505;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Builder getTypePlayingIterBuilder() { return getTypePlayingIterFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Playing.Iter type_playing_iter = 505;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Playing.IterOrBuilder getTypePlayingIterOrBuilder() { if ((resCase_ == 505) && (typePlayingIterBuilder_ != null)) { return typePlayingIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 505) { return (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.getDefaultInstance(); } } /** * <code>optional .session.Type.Playing.Iter type_playing_iter = 505;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Playing.IterOrBuilder> getTypePlayingIterFieldBuilder() { if (typePlayingIterBuilder_ == null) { if (!(resCase_ == 505)) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.getDefaultInstance(); } typePlayingIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Playing.IterOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 505; onChanged();; return typePlayingIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Has.Res, ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Has.ResOrBuilder> typeHasResBuilder_; /** * <code>optional .session.Type.Has.Res type_has_res = 506;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Has.Res getTypeHasRes() { if (typeHasResBuilder_ == null) { if (resCase_ == 506) { return (ai.grakn.rpc.proto.ConceptProto.Type.Has.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.getDefaultInstance(); } else { if (resCase_ == 506) { return typeHasResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.getDefaultInstance(); } } /** * <code>optional .session.Type.Has.Res type_has_res = 506;</code> */ public Builder setTypeHasRes(ai.grakn.rpc.proto.ConceptProto.Type.Has.Res value) { if (typeHasResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { typeHasResBuilder_.setMessage(value); } resCase_ = 506; return this; } /** * <code>optional .session.Type.Has.Res type_has_res = 506;</code> */ public Builder setTypeHasRes( ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.Builder builderForValue) { if (typeHasResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { typeHasResBuilder_.setMessage(builderForValue.build()); } resCase_ = 506; return this; } /** * <code>optional .session.Type.Has.Res type_has_res = 506;</code> */ public Builder mergeTypeHasRes(ai.grakn.rpc.proto.ConceptProto.Type.Has.Res value) { if (typeHasResBuilder_ == null) { if (resCase_ == 506 && res_ != ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Has.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 506) { typeHasResBuilder_.mergeFrom(value); } typeHasResBuilder_.setMessage(value); } resCase_ = 506; return this; } /** * <code>optional .session.Type.Has.Res type_has_res = 506;</code> */ public Builder clearTypeHasRes() { if (typeHasResBuilder_ == null) { if (resCase_ == 506) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 506) { resCase_ = 0; res_ = null; } typeHasResBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Has.Res type_has_res = 506;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.Builder getTypeHasResBuilder() { return getTypeHasResFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Has.Res type_has_res = 506;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Has.ResOrBuilder getTypeHasResOrBuilder() { if ((resCase_ == 506) && (typeHasResBuilder_ != null)) { return typeHasResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 506) { return (ai.grakn.rpc.proto.ConceptProto.Type.Has.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.getDefaultInstance(); } } /** * <code>optional .session.Type.Has.Res type_has_res = 506;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Has.Res, ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Has.ResOrBuilder> getTypeHasResFieldBuilder() { if (typeHasResBuilder_ == null) { if (!(resCase_ == 506)) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.getDefaultInstance(); } typeHasResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Has.Res, ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Has.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Has.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 506; onChanged();; return typeHasResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Key.Res, ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Key.ResOrBuilder> typeKeyResBuilder_; /** * <code>optional .session.Type.Key.Res type_key_res = 507;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Key.Res getTypeKeyRes() { if (typeKeyResBuilder_ == null) { if (resCase_ == 507) { return (ai.grakn.rpc.proto.ConceptProto.Type.Key.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.getDefaultInstance(); } else { if (resCase_ == 507) { return typeKeyResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.getDefaultInstance(); } } /** * <code>optional .session.Type.Key.Res type_key_res = 507;</code> */ public Builder setTypeKeyRes(ai.grakn.rpc.proto.ConceptProto.Type.Key.Res value) { if (typeKeyResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { typeKeyResBuilder_.setMessage(value); } resCase_ = 507; return this; } /** * <code>optional .session.Type.Key.Res type_key_res = 507;</code> */ public Builder setTypeKeyRes( ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.Builder builderForValue) { if (typeKeyResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { typeKeyResBuilder_.setMessage(builderForValue.build()); } resCase_ = 507; return this; } /** * <code>optional .session.Type.Key.Res type_key_res = 507;</code> */ public Builder mergeTypeKeyRes(ai.grakn.rpc.proto.ConceptProto.Type.Key.Res value) { if (typeKeyResBuilder_ == null) { if (resCase_ == 507 && res_ != ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Key.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 507) { typeKeyResBuilder_.mergeFrom(value); } typeKeyResBuilder_.setMessage(value); } resCase_ = 507; return this; } /** * <code>optional .session.Type.Key.Res type_key_res = 507;</code> */ public Builder clearTypeKeyRes() { if (typeKeyResBuilder_ == null) { if (resCase_ == 507) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 507) { resCase_ = 0; res_ = null; } typeKeyResBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Key.Res type_key_res = 507;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.Builder getTypeKeyResBuilder() { return getTypeKeyResFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Key.Res type_key_res = 507;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Key.ResOrBuilder getTypeKeyResOrBuilder() { if ((resCase_ == 507) && (typeKeyResBuilder_ != null)) { return typeKeyResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 507) { return (ai.grakn.rpc.proto.ConceptProto.Type.Key.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.getDefaultInstance(); } } /** * <code>optional .session.Type.Key.Res type_key_res = 507;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Key.Res, ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Key.ResOrBuilder> getTypeKeyResFieldBuilder() { if (typeKeyResBuilder_ == null) { if (!(resCase_ == 507)) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.getDefaultInstance(); } typeKeyResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Key.Res, ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Key.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Key.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 507; onChanged();; return typeKeyResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res, ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Plays.ResOrBuilder> typePlaysResBuilder_; /** * <code>optional .session.Type.Plays.Res type_plays_res = 508;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res getTypePlaysRes() { if (typePlaysResBuilder_ == null) { if (resCase_ == 508) { return (ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.getDefaultInstance(); } else { if (resCase_ == 508) { return typePlaysResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.getDefaultInstance(); } } /** * <code>optional .session.Type.Plays.Res type_plays_res = 508;</code> */ public Builder setTypePlaysRes(ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res value) { if (typePlaysResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { typePlaysResBuilder_.setMessage(value); } resCase_ = 508; return this; } /** * <code>optional .session.Type.Plays.Res type_plays_res = 508;</code> */ public Builder setTypePlaysRes( ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.Builder builderForValue) { if (typePlaysResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { typePlaysResBuilder_.setMessage(builderForValue.build()); } resCase_ = 508; return this; } /** * <code>optional .session.Type.Plays.Res type_plays_res = 508;</code> */ public Builder mergeTypePlaysRes(ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res value) { if (typePlaysResBuilder_ == null) { if (resCase_ == 508 && res_ != ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 508) { typePlaysResBuilder_.mergeFrom(value); } typePlaysResBuilder_.setMessage(value); } resCase_ = 508; return this; } /** * <code>optional .session.Type.Plays.Res type_plays_res = 508;</code> */ public Builder clearTypePlaysRes() { if (typePlaysResBuilder_ == null) { if (resCase_ == 508) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 508) { resCase_ = 0; res_ = null; } typePlaysResBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Plays.Res type_plays_res = 508;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.Builder getTypePlaysResBuilder() { return getTypePlaysResFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Plays.Res type_plays_res = 508;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Plays.ResOrBuilder getTypePlaysResOrBuilder() { if ((resCase_ == 508) && (typePlaysResBuilder_ != null)) { return typePlaysResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 508) { return (ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.getDefaultInstance(); } } /** * <code>optional .session.Type.Plays.Res type_plays_res = 508;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res, ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Plays.ResOrBuilder> getTypePlaysResFieldBuilder() { if (typePlaysResBuilder_ == null) { if (!(resCase_ == 508)) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.getDefaultInstance(); } typePlaysResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res, ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Plays.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 508; onChanged();; return typePlaysResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.ResOrBuilder> typeUnhasResBuilder_; /** * <code>optional .session.Type.Unhas.Res type_unhas_res = 509;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res getTypeUnhasRes() { if (typeUnhasResBuilder_ == null) { if (resCase_ == 509) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.getDefaultInstance(); } else { if (resCase_ == 509) { return typeUnhasResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.getDefaultInstance(); } } /** * <code>optional .session.Type.Unhas.Res type_unhas_res = 509;</code> */ public Builder setTypeUnhasRes(ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res value) { if (typeUnhasResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { typeUnhasResBuilder_.setMessage(value); } resCase_ = 509; return this; } /** * <code>optional .session.Type.Unhas.Res type_unhas_res = 509;</code> */ public Builder setTypeUnhasRes( ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.Builder builderForValue) { if (typeUnhasResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { typeUnhasResBuilder_.setMessage(builderForValue.build()); } resCase_ = 509; return this; } /** * <code>optional .session.Type.Unhas.Res type_unhas_res = 509;</code> */ public Builder mergeTypeUnhasRes(ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res value) { if (typeUnhasResBuilder_ == null) { if (resCase_ == 509 && res_ != ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 509) { typeUnhasResBuilder_.mergeFrom(value); } typeUnhasResBuilder_.setMessage(value); } resCase_ = 509; return this; } /** * <code>optional .session.Type.Unhas.Res type_unhas_res = 509;</code> */ public Builder clearTypeUnhasRes() { if (typeUnhasResBuilder_ == null) { if (resCase_ == 509) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 509) { resCase_ = 0; res_ = null; } typeUnhasResBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Unhas.Res type_unhas_res = 509;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.Builder getTypeUnhasResBuilder() { return getTypeUnhasResFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Unhas.Res type_unhas_res = 509;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.ResOrBuilder getTypeUnhasResOrBuilder() { if ((resCase_ == 509) && (typeUnhasResBuilder_ != null)) { return typeUnhasResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 509) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.getDefaultInstance(); } } /** * <code>optional .session.Type.Unhas.Res type_unhas_res = 509;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.ResOrBuilder> getTypeUnhasResFieldBuilder() { if (typeUnhasResBuilder_ == null) { if (!(resCase_ == 509)) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.getDefaultInstance(); } typeUnhasResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 509; onChanged();; return typeUnhasResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.ResOrBuilder> typeUnkeyResBuilder_; /** * <code>optional .session.Type.Unkey.Res type_unkey_res = 510;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res getTypeUnkeyRes() { if (typeUnkeyResBuilder_ == null) { if (resCase_ == 510) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.getDefaultInstance(); } else { if (resCase_ == 510) { return typeUnkeyResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.getDefaultInstance(); } } /** * <code>optional .session.Type.Unkey.Res type_unkey_res = 510;</code> */ public Builder setTypeUnkeyRes(ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res value) { if (typeUnkeyResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { typeUnkeyResBuilder_.setMessage(value); } resCase_ = 510; return this; } /** * <code>optional .session.Type.Unkey.Res type_unkey_res = 510;</code> */ public Builder setTypeUnkeyRes( ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.Builder builderForValue) { if (typeUnkeyResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { typeUnkeyResBuilder_.setMessage(builderForValue.build()); } resCase_ = 510; return this; } /** * <code>optional .session.Type.Unkey.Res type_unkey_res = 510;</code> */ public Builder mergeTypeUnkeyRes(ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res value) { if (typeUnkeyResBuilder_ == null) { if (resCase_ == 510 && res_ != ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 510) { typeUnkeyResBuilder_.mergeFrom(value); } typeUnkeyResBuilder_.setMessage(value); } resCase_ = 510; return this; } /** * <code>optional .session.Type.Unkey.Res type_unkey_res = 510;</code> */ public Builder clearTypeUnkeyRes() { if (typeUnkeyResBuilder_ == null) { if (resCase_ == 510) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 510) { resCase_ = 0; res_ = null; } typeUnkeyResBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Unkey.Res type_unkey_res = 510;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.Builder getTypeUnkeyResBuilder() { return getTypeUnkeyResFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Unkey.Res type_unkey_res = 510;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.ResOrBuilder getTypeUnkeyResOrBuilder() { if ((resCase_ == 510) && (typeUnkeyResBuilder_ != null)) { return typeUnkeyResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 510) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.getDefaultInstance(); } } /** * <code>optional .session.Type.Unkey.Res type_unkey_res = 510;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.ResOrBuilder> getTypeUnkeyResFieldBuilder() { if (typeUnkeyResBuilder_ == null) { if (!(resCase_ == 510)) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.getDefaultInstance(); } typeUnkeyResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 510; onChanged();; return typeUnkeyResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.ResOrBuilder> typeUnplayResBuilder_; /** * <code>optional .session.Type.Unplay.Res type_unplay_res = 511;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res getTypeUnplayRes() { if (typeUnplayResBuilder_ == null) { if (resCase_ == 511) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.getDefaultInstance(); } else { if (resCase_ == 511) { return typeUnplayResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.getDefaultInstance(); } } /** * <code>optional .session.Type.Unplay.Res type_unplay_res = 511;</code> */ public Builder setTypeUnplayRes(ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res value) { if (typeUnplayResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { typeUnplayResBuilder_.setMessage(value); } resCase_ = 511; return this; } /** * <code>optional .session.Type.Unplay.Res type_unplay_res = 511;</code> */ public Builder setTypeUnplayRes( ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.Builder builderForValue) { if (typeUnplayResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { typeUnplayResBuilder_.setMessage(builderForValue.build()); } resCase_ = 511; return this; } /** * <code>optional .session.Type.Unplay.Res type_unplay_res = 511;</code> */ public Builder mergeTypeUnplayRes(ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res value) { if (typeUnplayResBuilder_ == null) { if (resCase_ == 511 && res_ != ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 511) { typeUnplayResBuilder_.mergeFrom(value); } typeUnplayResBuilder_.setMessage(value); } resCase_ = 511; return this; } /** * <code>optional .session.Type.Unplay.Res type_unplay_res = 511;</code> */ public Builder clearTypeUnplayRes() { if (typeUnplayResBuilder_ == null) { if (resCase_ == 511) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 511) { resCase_ = 0; res_ = null; } typeUnplayResBuilder_.clear(); } return this; } /** * <code>optional .session.Type.Unplay.Res type_unplay_res = 511;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.Builder getTypeUnplayResBuilder() { return getTypeUnplayResFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Unplay.Res type_unplay_res = 511;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.ResOrBuilder getTypeUnplayResOrBuilder() { if ((resCase_ == 511) && (typeUnplayResBuilder_ != null)) { return typeUnplayResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 511) { return (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.getDefaultInstance(); } } /** * <code>optional .session.Type.Unplay.Res type_unplay_res = 511;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.ResOrBuilder> getTypeUnplayResFieldBuilder() { if (typeUnplayResBuilder_ == null) { if (!(resCase_ == 511)) { res_ = ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.getDefaultInstance(); } typeUnplayResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 511; onChanged();; return typeUnplayResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.Builder, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.ResOrBuilder> entityTypeCreateResBuilder_; /** * <pre> * EntityType method responses * </pre> * * <code>optional .session.EntityType.Create.Res entityType_create_res = 600;</code> */ public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res getEntityTypeCreateRes() { if (entityTypeCreateResBuilder_ == null) { if (resCase_ == 600) { return (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.getDefaultInstance(); } else { if (resCase_ == 600) { return entityTypeCreateResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.getDefaultInstance(); } } /** * <pre> * EntityType method responses * </pre> * * <code>optional .session.EntityType.Create.Res entityType_create_res = 600;</code> */ public Builder setEntityTypeCreateRes(ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res value) { if (entityTypeCreateResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { entityTypeCreateResBuilder_.setMessage(value); } resCase_ = 600; return this; } /** * <pre> * EntityType method responses * </pre> * * <code>optional .session.EntityType.Create.Res entityType_create_res = 600;</code> */ public Builder setEntityTypeCreateRes( ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.Builder builderForValue) { if (entityTypeCreateResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { entityTypeCreateResBuilder_.setMessage(builderForValue.build()); } resCase_ = 600; return this; } /** * <pre> * EntityType method responses * </pre> * * <code>optional .session.EntityType.Create.Res entityType_create_res = 600;</code> */ public Builder mergeEntityTypeCreateRes(ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res value) { if (entityTypeCreateResBuilder_ == null) { if (resCase_ == 600 && res_ != ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 600) { entityTypeCreateResBuilder_.mergeFrom(value); } entityTypeCreateResBuilder_.setMessage(value); } resCase_ = 600; return this; } /** * <pre> * EntityType method responses * </pre> * * <code>optional .session.EntityType.Create.Res entityType_create_res = 600;</code> */ public Builder clearEntityTypeCreateRes() { if (entityTypeCreateResBuilder_ == null) { if (resCase_ == 600) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 600) { resCase_ = 0; res_ = null; } entityTypeCreateResBuilder_.clear(); } return this; } /** * <pre> * EntityType method responses * </pre> * * <code>optional .session.EntityType.Create.Res entityType_create_res = 600;</code> */ public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.Builder getEntityTypeCreateResBuilder() { return getEntityTypeCreateResFieldBuilder().getBuilder(); } /** * <pre> * EntityType method responses * </pre> * * <code>optional .session.EntityType.Create.Res entityType_create_res = 600;</code> */ public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.ResOrBuilder getEntityTypeCreateResOrBuilder() { if ((resCase_ == 600) && (entityTypeCreateResBuilder_ != null)) { return entityTypeCreateResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 600) { return (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.getDefaultInstance(); } } /** * <pre> * EntityType method responses * </pre> * * <code>optional .session.EntityType.Create.Res entityType_create_res = 600;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.Builder, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.ResOrBuilder> getEntityTypeCreateResFieldBuilder() { if (entityTypeCreateResBuilder_ == null) { if (!(resCase_ == 600)) { res_ = ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.getDefaultInstance(); } entityTypeCreateResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.Builder, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 600; onChanged();; return entityTypeCreateResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.ResOrBuilder> relationTypeCreateResBuilder_; /** * <pre> * RelationType method responses * </pre> * * <code>optional .session.RelationType.Create.Res relationType_create_res = 700;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res getRelationTypeCreateRes() { if (relationTypeCreateResBuilder_ == null) { if (resCase_ == 700) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.getDefaultInstance(); } else { if (resCase_ == 700) { return relationTypeCreateResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.getDefaultInstance(); } } /** * <pre> * RelationType method responses * </pre> * * <code>optional .session.RelationType.Create.Res relationType_create_res = 700;</code> */ public Builder setRelationTypeCreateRes(ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res value) { if (relationTypeCreateResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { relationTypeCreateResBuilder_.setMessage(value); } resCase_ = 700; return this; } /** * <pre> * RelationType method responses * </pre> * * <code>optional .session.RelationType.Create.Res relationType_create_res = 700;</code> */ public Builder setRelationTypeCreateRes( ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.Builder builderForValue) { if (relationTypeCreateResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { relationTypeCreateResBuilder_.setMessage(builderForValue.build()); } resCase_ = 700; return this; } /** * <pre> * RelationType method responses * </pre> * * <code>optional .session.RelationType.Create.Res relationType_create_res = 700;</code> */ public Builder mergeRelationTypeCreateRes(ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res value) { if (relationTypeCreateResBuilder_ == null) { if (resCase_ == 700 && res_ != ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 700) { relationTypeCreateResBuilder_.mergeFrom(value); } relationTypeCreateResBuilder_.setMessage(value); } resCase_ = 700; return this; } /** * <pre> * RelationType method responses * </pre> * * <code>optional .session.RelationType.Create.Res relationType_create_res = 700;</code> */ public Builder clearRelationTypeCreateRes() { if (relationTypeCreateResBuilder_ == null) { if (resCase_ == 700) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 700) { resCase_ = 0; res_ = null; } relationTypeCreateResBuilder_.clear(); } return this; } /** * <pre> * RelationType method responses * </pre> * * <code>optional .session.RelationType.Create.Res relationType_create_res = 700;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.Builder getRelationTypeCreateResBuilder() { return getRelationTypeCreateResFieldBuilder().getBuilder(); } /** * <pre> * RelationType method responses * </pre> * * <code>optional .session.RelationType.Create.Res relationType_create_res = 700;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.ResOrBuilder getRelationTypeCreateResOrBuilder() { if ((resCase_ == 700) && (relationTypeCreateResBuilder_ != null)) { return relationTypeCreateResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 700) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.getDefaultInstance(); } } /** * <pre> * RelationType method responses * </pre> * * <code>optional .session.RelationType.Create.Res relationType_create_res = 700;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.ResOrBuilder> getRelationTypeCreateResFieldBuilder() { if (relationTypeCreateResBuilder_ == null) { if (!(resCase_ == 700)) { res_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.getDefaultInstance(); } relationTypeCreateResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 700; onChanged();; return relationTypeCreateResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.IterOrBuilder> relationTypeRolesIterBuilder_; /** * <code>optional .session.RelationType.Roles.Iter relationType_roles_iter = 701;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter getRelationTypeRolesIter() { if (relationTypeRolesIterBuilder_ == null) { if (resCase_ == 701) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.getDefaultInstance(); } else { if (resCase_ == 701) { return relationTypeRolesIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.getDefaultInstance(); } } /** * <code>optional .session.RelationType.Roles.Iter relationType_roles_iter = 701;</code> */ public Builder setRelationTypeRolesIter(ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter value) { if (relationTypeRolesIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { relationTypeRolesIterBuilder_.setMessage(value); } resCase_ = 701; return this; } /** * <code>optional .session.RelationType.Roles.Iter relationType_roles_iter = 701;</code> */ public Builder setRelationTypeRolesIter( ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Builder builderForValue) { if (relationTypeRolesIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { relationTypeRolesIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 701; return this; } /** * <code>optional .session.RelationType.Roles.Iter relationType_roles_iter = 701;</code> */ public Builder mergeRelationTypeRolesIter(ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter value) { if (relationTypeRolesIterBuilder_ == null) { if (resCase_ == 701 && res_ != ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.newBuilder((ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 701) { relationTypeRolesIterBuilder_.mergeFrom(value); } relationTypeRolesIterBuilder_.setMessage(value); } resCase_ = 701; return this; } /** * <code>optional .session.RelationType.Roles.Iter relationType_roles_iter = 701;</code> */ public Builder clearRelationTypeRolesIter() { if (relationTypeRolesIterBuilder_ == null) { if (resCase_ == 701) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 701) { resCase_ = 0; res_ = null; } relationTypeRolesIterBuilder_.clear(); } return this; } /** * <code>optional .session.RelationType.Roles.Iter relationType_roles_iter = 701;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Builder getRelationTypeRolesIterBuilder() { return getRelationTypeRolesIterFieldBuilder().getBuilder(); } /** * <code>optional .session.RelationType.Roles.Iter relationType_roles_iter = 701;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.IterOrBuilder getRelationTypeRolesIterOrBuilder() { if ((resCase_ == 701) && (relationTypeRolesIterBuilder_ != null)) { return relationTypeRolesIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 701) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.getDefaultInstance(); } } /** * <code>optional .session.RelationType.Roles.Iter relationType_roles_iter = 701;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.IterOrBuilder> getRelationTypeRolesIterFieldBuilder() { if (relationTypeRolesIterBuilder_ == null) { if (!(resCase_ == 701)) { res_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.getDefaultInstance(); } relationTypeRolesIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.IterOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 701; onChanged();; return relationTypeRolesIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.ResOrBuilder> relationTypeRelatesResBuilder_; /** * <code>optional .session.RelationType.Relates.Res relationType_relates_res = 702;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res getRelationTypeRelatesRes() { if (relationTypeRelatesResBuilder_ == null) { if (resCase_ == 702) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.getDefaultInstance(); } else { if (resCase_ == 702) { return relationTypeRelatesResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.getDefaultInstance(); } } /** * <code>optional .session.RelationType.Relates.Res relationType_relates_res = 702;</code> */ public Builder setRelationTypeRelatesRes(ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res value) { if (relationTypeRelatesResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { relationTypeRelatesResBuilder_.setMessage(value); } resCase_ = 702; return this; } /** * <code>optional .session.RelationType.Relates.Res relationType_relates_res = 702;</code> */ public Builder setRelationTypeRelatesRes( ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.Builder builderForValue) { if (relationTypeRelatesResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { relationTypeRelatesResBuilder_.setMessage(builderForValue.build()); } resCase_ = 702; return this; } /** * <code>optional .session.RelationType.Relates.Res relationType_relates_res = 702;</code> */ public Builder mergeRelationTypeRelatesRes(ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res value) { if (relationTypeRelatesResBuilder_ == null) { if (resCase_ == 702 && res_ != ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 702) { relationTypeRelatesResBuilder_.mergeFrom(value); } relationTypeRelatesResBuilder_.setMessage(value); } resCase_ = 702; return this; } /** * <code>optional .session.RelationType.Relates.Res relationType_relates_res = 702;</code> */ public Builder clearRelationTypeRelatesRes() { if (relationTypeRelatesResBuilder_ == null) { if (resCase_ == 702) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 702) { resCase_ = 0; res_ = null; } relationTypeRelatesResBuilder_.clear(); } return this; } /** * <code>optional .session.RelationType.Relates.Res relationType_relates_res = 702;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.Builder getRelationTypeRelatesResBuilder() { return getRelationTypeRelatesResFieldBuilder().getBuilder(); } /** * <code>optional .session.RelationType.Relates.Res relationType_relates_res = 702;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.ResOrBuilder getRelationTypeRelatesResOrBuilder() { if ((resCase_ == 702) && (relationTypeRelatesResBuilder_ != null)) { return relationTypeRelatesResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 702) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.getDefaultInstance(); } } /** * <code>optional .session.RelationType.Relates.Res relationType_relates_res = 702;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.ResOrBuilder> getRelationTypeRelatesResFieldBuilder() { if (relationTypeRelatesResBuilder_ == null) { if (!(resCase_ == 702)) { res_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.getDefaultInstance(); } relationTypeRelatesResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 702; onChanged();; return relationTypeRelatesResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.ResOrBuilder> relationTypeUnrelateResBuilder_; /** * <code>optional .session.RelationType.Unrelate.Res relationType_unrelate_res = 703;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res getRelationTypeUnrelateRes() { if (relationTypeUnrelateResBuilder_ == null) { if (resCase_ == 703) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.getDefaultInstance(); } else { if (resCase_ == 703) { return relationTypeUnrelateResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.getDefaultInstance(); } } /** * <code>optional .session.RelationType.Unrelate.Res relationType_unrelate_res = 703;</code> */ public Builder setRelationTypeUnrelateRes(ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res value) { if (relationTypeUnrelateResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { relationTypeUnrelateResBuilder_.setMessage(value); } resCase_ = 703; return this; } /** * <code>optional .session.RelationType.Unrelate.Res relationType_unrelate_res = 703;</code> */ public Builder setRelationTypeUnrelateRes( ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.Builder builderForValue) { if (relationTypeUnrelateResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { relationTypeUnrelateResBuilder_.setMessage(builderForValue.build()); } resCase_ = 703; return this; } /** * <code>optional .session.RelationType.Unrelate.Res relationType_unrelate_res = 703;</code> */ public Builder mergeRelationTypeUnrelateRes(ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res value) { if (relationTypeUnrelateResBuilder_ == null) { if (resCase_ == 703 && res_ != ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 703) { relationTypeUnrelateResBuilder_.mergeFrom(value); } relationTypeUnrelateResBuilder_.setMessage(value); } resCase_ = 703; return this; } /** * <code>optional .session.RelationType.Unrelate.Res relationType_unrelate_res = 703;</code> */ public Builder clearRelationTypeUnrelateRes() { if (relationTypeUnrelateResBuilder_ == null) { if (resCase_ == 703) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 703) { resCase_ = 0; res_ = null; } relationTypeUnrelateResBuilder_.clear(); } return this; } /** * <code>optional .session.RelationType.Unrelate.Res relationType_unrelate_res = 703;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.Builder getRelationTypeUnrelateResBuilder() { return getRelationTypeUnrelateResFieldBuilder().getBuilder(); } /** * <code>optional .session.RelationType.Unrelate.Res relationType_unrelate_res = 703;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.ResOrBuilder getRelationTypeUnrelateResOrBuilder() { if ((resCase_ == 703) && (relationTypeUnrelateResBuilder_ != null)) { return relationTypeUnrelateResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 703) { return (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.getDefaultInstance(); } } /** * <code>optional .session.RelationType.Unrelate.Res relationType_unrelate_res = 703;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.ResOrBuilder> getRelationTypeUnrelateResFieldBuilder() { if (relationTypeUnrelateResBuilder_ == null) { if (!(resCase_ == 703)) { res_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.getDefaultInstance(); } relationTypeUnrelateResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 703; onChanged();; return relationTypeUnrelateResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.ResOrBuilder> attributeTypeCreateResBuilder_; /** * <pre> * AttributeType method responses * </pre> * * <code>optional .session.AttributeType.Create.Res attributeType_create_res = 800;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res getAttributeTypeCreateRes() { if (attributeTypeCreateResBuilder_ == null) { if (resCase_ == 800) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.getDefaultInstance(); } else { if (resCase_ == 800) { return attributeTypeCreateResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.getDefaultInstance(); } } /** * <pre> * AttributeType method responses * </pre> * * <code>optional .session.AttributeType.Create.Res attributeType_create_res = 800;</code> */ public Builder setAttributeTypeCreateRes(ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res value) { if (attributeTypeCreateResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { attributeTypeCreateResBuilder_.setMessage(value); } resCase_ = 800; return this; } /** * <pre> * AttributeType method responses * </pre> * * <code>optional .session.AttributeType.Create.Res attributeType_create_res = 800;</code> */ public Builder setAttributeTypeCreateRes( ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.Builder builderForValue) { if (attributeTypeCreateResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { attributeTypeCreateResBuilder_.setMessage(builderForValue.build()); } resCase_ = 800; return this; } /** * <pre> * AttributeType method responses * </pre> * * <code>optional .session.AttributeType.Create.Res attributeType_create_res = 800;</code> */ public Builder mergeAttributeTypeCreateRes(ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res value) { if (attributeTypeCreateResBuilder_ == null) { if (resCase_ == 800 && res_ != ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 800) { attributeTypeCreateResBuilder_.mergeFrom(value); } attributeTypeCreateResBuilder_.setMessage(value); } resCase_ = 800; return this; } /** * <pre> * AttributeType method responses * </pre> * * <code>optional .session.AttributeType.Create.Res attributeType_create_res = 800;</code> */ public Builder clearAttributeTypeCreateRes() { if (attributeTypeCreateResBuilder_ == null) { if (resCase_ == 800) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 800) { resCase_ = 0; res_ = null; } attributeTypeCreateResBuilder_.clear(); } return this; } /** * <pre> * AttributeType method responses * </pre> * * <code>optional .session.AttributeType.Create.Res attributeType_create_res = 800;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.Builder getAttributeTypeCreateResBuilder() { return getAttributeTypeCreateResFieldBuilder().getBuilder(); } /** * <pre> * AttributeType method responses * </pre> * * <code>optional .session.AttributeType.Create.Res attributeType_create_res = 800;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.ResOrBuilder getAttributeTypeCreateResOrBuilder() { if ((resCase_ == 800) && (attributeTypeCreateResBuilder_ != null)) { return attributeTypeCreateResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 800) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.getDefaultInstance(); } } /** * <pre> * AttributeType method responses * </pre> * * <code>optional .session.AttributeType.Create.Res attributeType_create_res = 800;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.ResOrBuilder> getAttributeTypeCreateResFieldBuilder() { if (attributeTypeCreateResBuilder_ == null) { if (!(resCase_ == 800)) { res_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.getDefaultInstance(); } attributeTypeCreateResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 800; onChanged();; return attributeTypeCreateResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.ResOrBuilder> attributeTypeAttributeResBuilder_; /** * <code>optional .session.AttributeType.Attribute.Res attributeType_attribute_res = 801;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res getAttributeTypeAttributeRes() { if (attributeTypeAttributeResBuilder_ == null) { if (resCase_ == 801) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.getDefaultInstance(); } else { if (resCase_ == 801) { return attributeTypeAttributeResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.getDefaultInstance(); } } /** * <code>optional .session.AttributeType.Attribute.Res attributeType_attribute_res = 801;</code> */ public Builder setAttributeTypeAttributeRes(ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res value) { if (attributeTypeAttributeResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { attributeTypeAttributeResBuilder_.setMessage(value); } resCase_ = 801; return this; } /** * <code>optional .session.AttributeType.Attribute.Res attributeType_attribute_res = 801;</code> */ public Builder setAttributeTypeAttributeRes( ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.Builder builderForValue) { if (attributeTypeAttributeResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { attributeTypeAttributeResBuilder_.setMessage(builderForValue.build()); } resCase_ = 801; return this; } /** * <code>optional .session.AttributeType.Attribute.Res attributeType_attribute_res = 801;</code> */ public Builder mergeAttributeTypeAttributeRes(ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res value) { if (attributeTypeAttributeResBuilder_ == null) { if (resCase_ == 801 && res_ != ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 801) { attributeTypeAttributeResBuilder_.mergeFrom(value); } attributeTypeAttributeResBuilder_.setMessage(value); } resCase_ = 801; return this; } /** * <code>optional .session.AttributeType.Attribute.Res attributeType_attribute_res = 801;</code> */ public Builder clearAttributeTypeAttributeRes() { if (attributeTypeAttributeResBuilder_ == null) { if (resCase_ == 801) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 801) { resCase_ = 0; res_ = null; } attributeTypeAttributeResBuilder_.clear(); } return this; } /** * <code>optional .session.AttributeType.Attribute.Res attributeType_attribute_res = 801;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.Builder getAttributeTypeAttributeResBuilder() { return getAttributeTypeAttributeResFieldBuilder().getBuilder(); } /** * <code>optional .session.AttributeType.Attribute.Res attributeType_attribute_res = 801;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.ResOrBuilder getAttributeTypeAttributeResOrBuilder() { if ((resCase_ == 801) && (attributeTypeAttributeResBuilder_ != null)) { return attributeTypeAttributeResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 801) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.getDefaultInstance(); } } /** * <code>optional .session.AttributeType.Attribute.Res attributeType_attribute_res = 801;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.ResOrBuilder> getAttributeTypeAttributeResFieldBuilder() { if (attributeTypeAttributeResBuilder_ == null) { if (!(resCase_ == 801)) { res_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.getDefaultInstance(); } attributeTypeAttributeResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 801; onChanged();; return attributeTypeAttributeResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.ResOrBuilder> attributeTypeDataTypeResBuilder_; /** * <code>optional .session.AttributeType.DataType.Res attributeType_dataType_res = 802;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res getAttributeTypeDataTypeRes() { if (attributeTypeDataTypeResBuilder_ == null) { if (resCase_ == 802) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.getDefaultInstance(); } else { if (resCase_ == 802) { return attributeTypeDataTypeResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.getDefaultInstance(); } } /** * <code>optional .session.AttributeType.DataType.Res attributeType_dataType_res = 802;</code> */ public Builder setAttributeTypeDataTypeRes(ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res value) { if (attributeTypeDataTypeResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { attributeTypeDataTypeResBuilder_.setMessage(value); } resCase_ = 802; return this; } /** * <code>optional .session.AttributeType.DataType.Res attributeType_dataType_res = 802;</code> */ public Builder setAttributeTypeDataTypeRes( ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.Builder builderForValue) { if (attributeTypeDataTypeResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { attributeTypeDataTypeResBuilder_.setMessage(builderForValue.build()); } resCase_ = 802; return this; } /** * <code>optional .session.AttributeType.DataType.Res attributeType_dataType_res = 802;</code> */ public Builder mergeAttributeTypeDataTypeRes(ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res value) { if (attributeTypeDataTypeResBuilder_ == null) { if (resCase_ == 802 && res_ != ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 802) { attributeTypeDataTypeResBuilder_.mergeFrom(value); } attributeTypeDataTypeResBuilder_.setMessage(value); } resCase_ = 802; return this; } /** * <code>optional .session.AttributeType.DataType.Res attributeType_dataType_res = 802;</code> */ public Builder clearAttributeTypeDataTypeRes() { if (attributeTypeDataTypeResBuilder_ == null) { if (resCase_ == 802) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 802) { resCase_ = 0; res_ = null; } attributeTypeDataTypeResBuilder_.clear(); } return this; } /** * <code>optional .session.AttributeType.DataType.Res attributeType_dataType_res = 802;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.Builder getAttributeTypeDataTypeResBuilder() { return getAttributeTypeDataTypeResFieldBuilder().getBuilder(); } /** * <code>optional .session.AttributeType.DataType.Res attributeType_dataType_res = 802;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.ResOrBuilder getAttributeTypeDataTypeResOrBuilder() { if ((resCase_ == 802) && (attributeTypeDataTypeResBuilder_ != null)) { return attributeTypeDataTypeResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 802) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.getDefaultInstance(); } } /** * <code>optional .session.AttributeType.DataType.Res attributeType_dataType_res = 802;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.ResOrBuilder> getAttributeTypeDataTypeResFieldBuilder() { if (attributeTypeDataTypeResBuilder_ == null) { if (!(resCase_ == 802)) { res_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.getDefaultInstance(); } attributeTypeDataTypeResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 802; onChanged();; return attributeTypeDataTypeResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.ResOrBuilder> attributeTypeGetRegexResBuilder_; /** * <code>optional .session.AttributeType.GetRegex.Res attributeType_getRegex_res = 803;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res getAttributeTypeGetRegexRes() { if (attributeTypeGetRegexResBuilder_ == null) { if (resCase_ == 803) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.getDefaultInstance(); } else { if (resCase_ == 803) { return attributeTypeGetRegexResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.getDefaultInstance(); } } /** * <code>optional .session.AttributeType.GetRegex.Res attributeType_getRegex_res = 803;</code> */ public Builder setAttributeTypeGetRegexRes(ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res value) { if (attributeTypeGetRegexResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { attributeTypeGetRegexResBuilder_.setMessage(value); } resCase_ = 803; return this; } /** * <code>optional .session.AttributeType.GetRegex.Res attributeType_getRegex_res = 803;</code> */ public Builder setAttributeTypeGetRegexRes( ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.Builder builderForValue) { if (attributeTypeGetRegexResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { attributeTypeGetRegexResBuilder_.setMessage(builderForValue.build()); } resCase_ = 803; return this; } /** * <code>optional .session.AttributeType.GetRegex.Res attributeType_getRegex_res = 803;</code> */ public Builder mergeAttributeTypeGetRegexRes(ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res value) { if (attributeTypeGetRegexResBuilder_ == null) { if (resCase_ == 803 && res_ != ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 803) { attributeTypeGetRegexResBuilder_.mergeFrom(value); } attributeTypeGetRegexResBuilder_.setMessage(value); } resCase_ = 803; return this; } /** * <code>optional .session.AttributeType.GetRegex.Res attributeType_getRegex_res = 803;</code> */ public Builder clearAttributeTypeGetRegexRes() { if (attributeTypeGetRegexResBuilder_ == null) { if (resCase_ == 803) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 803) { resCase_ = 0; res_ = null; } attributeTypeGetRegexResBuilder_.clear(); } return this; } /** * <code>optional .session.AttributeType.GetRegex.Res attributeType_getRegex_res = 803;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.Builder getAttributeTypeGetRegexResBuilder() { return getAttributeTypeGetRegexResFieldBuilder().getBuilder(); } /** * <code>optional .session.AttributeType.GetRegex.Res attributeType_getRegex_res = 803;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.ResOrBuilder getAttributeTypeGetRegexResOrBuilder() { if ((resCase_ == 803) && (attributeTypeGetRegexResBuilder_ != null)) { return attributeTypeGetRegexResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 803) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.getDefaultInstance(); } } /** * <code>optional .session.AttributeType.GetRegex.Res attributeType_getRegex_res = 803;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.ResOrBuilder> getAttributeTypeGetRegexResFieldBuilder() { if (attributeTypeGetRegexResBuilder_ == null) { if (!(resCase_ == 803)) { res_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.getDefaultInstance(); } attributeTypeGetRegexResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 803; onChanged();; return attributeTypeGetRegexResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.ResOrBuilder> attributeTypeSetRegexResBuilder_; /** * <code>optional .session.AttributeType.SetRegex.Res attributeType_setRegex_res = 804;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res getAttributeTypeSetRegexRes() { if (attributeTypeSetRegexResBuilder_ == null) { if (resCase_ == 804) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.getDefaultInstance(); } else { if (resCase_ == 804) { return attributeTypeSetRegexResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.getDefaultInstance(); } } /** * <code>optional .session.AttributeType.SetRegex.Res attributeType_setRegex_res = 804;</code> */ public Builder setAttributeTypeSetRegexRes(ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res value) { if (attributeTypeSetRegexResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { attributeTypeSetRegexResBuilder_.setMessage(value); } resCase_ = 804; return this; } /** * <code>optional .session.AttributeType.SetRegex.Res attributeType_setRegex_res = 804;</code> */ public Builder setAttributeTypeSetRegexRes( ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.Builder builderForValue) { if (attributeTypeSetRegexResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { attributeTypeSetRegexResBuilder_.setMessage(builderForValue.build()); } resCase_ = 804; return this; } /** * <code>optional .session.AttributeType.SetRegex.Res attributeType_setRegex_res = 804;</code> */ public Builder mergeAttributeTypeSetRegexRes(ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res value) { if (attributeTypeSetRegexResBuilder_ == null) { if (resCase_ == 804 && res_ != ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 804) { attributeTypeSetRegexResBuilder_.mergeFrom(value); } attributeTypeSetRegexResBuilder_.setMessage(value); } resCase_ = 804; return this; } /** * <code>optional .session.AttributeType.SetRegex.Res attributeType_setRegex_res = 804;</code> */ public Builder clearAttributeTypeSetRegexRes() { if (attributeTypeSetRegexResBuilder_ == null) { if (resCase_ == 804) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 804) { resCase_ = 0; res_ = null; } attributeTypeSetRegexResBuilder_.clear(); } return this; } /** * <code>optional .session.AttributeType.SetRegex.Res attributeType_setRegex_res = 804;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.Builder getAttributeTypeSetRegexResBuilder() { return getAttributeTypeSetRegexResFieldBuilder().getBuilder(); } /** * <code>optional .session.AttributeType.SetRegex.Res attributeType_setRegex_res = 804;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.ResOrBuilder getAttributeTypeSetRegexResOrBuilder() { if ((resCase_ == 804) && (attributeTypeSetRegexResBuilder_ != null)) { return attributeTypeSetRegexResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 804) { return (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.getDefaultInstance(); } } /** * <code>optional .session.AttributeType.SetRegex.Res attributeType_setRegex_res = 804;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.ResOrBuilder> getAttributeTypeSetRegexResFieldBuilder() { if (attributeTypeSetRegexResBuilder_ == null) { if (!(resCase_ == 804)) { res_ = ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.getDefaultInstance(); } attributeTypeSetRegexResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.Builder, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 804; onChanged();; return attributeTypeSetRegexResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Type.ResOrBuilder> thingTypeResBuilder_; /** * <pre> * Thing method responses * </pre> * * <code>optional .session.Thing.Type.Res thing_type_res = 900;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res getThingTypeRes() { if (thingTypeResBuilder_ == null) { if (resCase_ == 900) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.getDefaultInstance(); } else { if (resCase_ == 900) { return thingTypeResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.getDefaultInstance(); } } /** * <pre> * Thing method responses * </pre> * * <code>optional .session.Thing.Type.Res thing_type_res = 900;</code> */ public Builder setThingTypeRes(ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res value) { if (thingTypeResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { thingTypeResBuilder_.setMessage(value); } resCase_ = 900; return this; } /** * <pre> * Thing method responses * </pre> * * <code>optional .session.Thing.Type.Res thing_type_res = 900;</code> */ public Builder setThingTypeRes( ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.Builder builderForValue) { if (thingTypeResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { thingTypeResBuilder_.setMessage(builderForValue.build()); } resCase_ = 900; return this; } /** * <pre> * Thing method responses * </pre> * * <code>optional .session.Thing.Type.Res thing_type_res = 900;</code> */ public Builder mergeThingTypeRes(ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res value) { if (thingTypeResBuilder_ == null) { if (resCase_ == 900 && res_ != ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 900) { thingTypeResBuilder_.mergeFrom(value); } thingTypeResBuilder_.setMessage(value); } resCase_ = 900; return this; } /** * <pre> * Thing method responses * </pre> * * <code>optional .session.Thing.Type.Res thing_type_res = 900;</code> */ public Builder clearThingTypeRes() { if (thingTypeResBuilder_ == null) { if (resCase_ == 900) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 900) { resCase_ = 0; res_ = null; } thingTypeResBuilder_.clear(); } return this; } /** * <pre> * Thing method responses * </pre> * * <code>optional .session.Thing.Type.Res thing_type_res = 900;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.Builder getThingTypeResBuilder() { return getThingTypeResFieldBuilder().getBuilder(); } /** * <pre> * Thing method responses * </pre> * * <code>optional .session.Thing.Type.Res thing_type_res = 900;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Type.ResOrBuilder getThingTypeResOrBuilder() { if ((resCase_ == 900) && (thingTypeResBuilder_ != null)) { return thingTypeResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 900) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.getDefaultInstance(); } } /** * <pre> * Thing method responses * </pre> * * <code>optional .session.Thing.Type.Res thing_type_res = 900;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Type.ResOrBuilder> getThingTypeResFieldBuilder() { if (thingTypeResBuilder_ == null) { if (!(resCase_ == 900)) { res_ = ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.getDefaultInstance(); } thingTypeResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Type.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 900; onChanged();; return thingTypeResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.ResOrBuilder> thingIsInferredResBuilder_; /** * <code>optional .session.Thing.IsInferred.Res thing_isInferred_res = 901;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res getThingIsInferredRes() { if (thingIsInferredResBuilder_ == null) { if (resCase_ == 901) { return (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.getDefaultInstance(); } else { if (resCase_ == 901) { return thingIsInferredResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.getDefaultInstance(); } } /** * <code>optional .session.Thing.IsInferred.Res thing_isInferred_res = 901;</code> */ public Builder setThingIsInferredRes(ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res value) { if (thingIsInferredResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { thingIsInferredResBuilder_.setMessage(value); } resCase_ = 901; return this; } /** * <code>optional .session.Thing.IsInferred.Res thing_isInferred_res = 901;</code> */ public Builder setThingIsInferredRes( ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.Builder builderForValue) { if (thingIsInferredResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { thingIsInferredResBuilder_.setMessage(builderForValue.build()); } resCase_ = 901; return this; } /** * <code>optional .session.Thing.IsInferred.Res thing_isInferred_res = 901;</code> */ public Builder mergeThingIsInferredRes(ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res value) { if (thingIsInferredResBuilder_ == null) { if (resCase_ == 901 && res_ != ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 901) { thingIsInferredResBuilder_.mergeFrom(value); } thingIsInferredResBuilder_.setMessage(value); } resCase_ = 901; return this; } /** * <code>optional .session.Thing.IsInferred.Res thing_isInferred_res = 901;</code> */ public Builder clearThingIsInferredRes() { if (thingIsInferredResBuilder_ == null) { if (resCase_ == 901) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 901) { resCase_ = 0; res_ = null; } thingIsInferredResBuilder_.clear(); } return this; } /** * <code>optional .session.Thing.IsInferred.Res thing_isInferred_res = 901;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.Builder getThingIsInferredResBuilder() { return getThingIsInferredResFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.IsInferred.Res thing_isInferred_res = 901;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.ResOrBuilder getThingIsInferredResOrBuilder() { if ((resCase_ == 901) && (thingIsInferredResBuilder_ != null)) { return thingIsInferredResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 901) { return (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.getDefaultInstance(); } } /** * <code>optional .session.Thing.IsInferred.Res thing_isInferred_res = 901;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.ResOrBuilder> getThingIsInferredResFieldBuilder() { if (thingIsInferredResBuilder_ == null) { if (!(resCase_ == 901)) { res_ = ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.getDefaultInstance(); } thingIsInferredResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 901; onChanged();; return thingIsInferredResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.IterOrBuilder> thingKeysIterBuilder_; /** * <code>optional .session.Thing.Keys.Iter thing_keys_iter = 902;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter getThingKeysIter() { if (thingKeysIterBuilder_ == null) { if (resCase_ == 902) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.getDefaultInstance(); } else { if (resCase_ == 902) { return thingKeysIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.getDefaultInstance(); } } /** * <code>optional .session.Thing.Keys.Iter thing_keys_iter = 902;</code> */ public Builder setThingKeysIter(ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter value) { if (thingKeysIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { thingKeysIterBuilder_.setMessage(value); } resCase_ = 902; return this; } /** * <code>optional .session.Thing.Keys.Iter thing_keys_iter = 902;</code> */ public Builder setThingKeysIter( ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Builder builderForValue) { if (thingKeysIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { thingKeysIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 902; return this; } /** * <code>optional .session.Thing.Keys.Iter thing_keys_iter = 902;</code> */ public Builder mergeThingKeysIter(ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter value) { if (thingKeysIterBuilder_ == null) { if (resCase_ == 902 && res_ != ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.newBuilder((ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 902) { thingKeysIterBuilder_.mergeFrom(value); } thingKeysIterBuilder_.setMessage(value); } resCase_ = 902; return this; } /** * <code>optional .session.Thing.Keys.Iter thing_keys_iter = 902;</code> */ public Builder clearThingKeysIter() { if (thingKeysIterBuilder_ == null) { if (resCase_ == 902) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 902) { resCase_ = 0; res_ = null; } thingKeysIterBuilder_.clear(); } return this; } /** * <code>optional .session.Thing.Keys.Iter thing_keys_iter = 902;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Builder getThingKeysIterBuilder() { return getThingKeysIterFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.Keys.Iter thing_keys_iter = 902;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.IterOrBuilder getThingKeysIterOrBuilder() { if ((resCase_ == 902) && (thingKeysIterBuilder_ != null)) { return thingKeysIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 902) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.getDefaultInstance(); } } /** * <code>optional .session.Thing.Keys.Iter thing_keys_iter = 902;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.IterOrBuilder> getThingKeysIterFieldBuilder() { if (thingKeysIterBuilder_ == null) { if (!(resCase_ == 902)) { res_ = ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.getDefaultInstance(); } thingKeysIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.IterOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 902; onChanged();; return thingKeysIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.IterOrBuilder> thingAttributesIterBuilder_; /** * <code>optional .session.Thing.Attributes.Iter thing_attributes_iter = 903;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter getThingAttributesIter() { if (thingAttributesIterBuilder_ == null) { if (resCase_ == 903) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.getDefaultInstance(); } else { if (resCase_ == 903) { return thingAttributesIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.getDefaultInstance(); } } /** * <code>optional .session.Thing.Attributes.Iter thing_attributes_iter = 903;</code> */ public Builder setThingAttributesIter(ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter value) { if (thingAttributesIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { thingAttributesIterBuilder_.setMessage(value); } resCase_ = 903; return this; } /** * <code>optional .session.Thing.Attributes.Iter thing_attributes_iter = 903;</code> */ public Builder setThingAttributesIter( ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Builder builderForValue) { if (thingAttributesIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { thingAttributesIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 903; return this; } /** * <code>optional .session.Thing.Attributes.Iter thing_attributes_iter = 903;</code> */ public Builder mergeThingAttributesIter(ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter value) { if (thingAttributesIterBuilder_ == null) { if (resCase_ == 903 && res_ != ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.newBuilder((ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 903) { thingAttributesIterBuilder_.mergeFrom(value); } thingAttributesIterBuilder_.setMessage(value); } resCase_ = 903; return this; } /** * <code>optional .session.Thing.Attributes.Iter thing_attributes_iter = 903;</code> */ public Builder clearThingAttributesIter() { if (thingAttributesIterBuilder_ == null) { if (resCase_ == 903) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 903) { resCase_ = 0; res_ = null; } thingAttributesIterBuilder_.clear(); } return this; } /** * <code>optional .session.Thing.Attributes.Iter thing_attributes_iter = 903;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Builder getThingAttributesIterBuilder() { return getThingAttributesIterFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.Attributes.Iter thing_attributes_iter = 903;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.IterOrBuilder getThingAttributesIterOrBuilder() { if ((resCase_ == 903) && (thingAttributesIterBuilder_ != null)) { return thingAttributesIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 903) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.getDefaultInstance(); } } /** * <code>optional .session.Thing.Attributes.Iter thing_attributes_iter = 903;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.IterOrBuilder> getThingAttributesIterFieldBuilder() { if (thingAttributesIterBuilder_ == null) { if (!(resCase_ == 903)) { res_ = ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.getDefaultInstance(); } thingAttributesIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.IterOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 903; onChanged();; return thingAttributesIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.IterOrBuilder> thingRelationsIterBuilder_; /** * <code>optional .session.Thing.Relations.Iter thing_relations_iter = 904;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter getThingRelationsIter() { if (thingRelationsIterBuilder_ == null) { if (resCase_ == 904) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.getDefaultInstance(); } else { if (resCase_ == 904) { return thingRelationsIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.getDefaultInstance(); } } /** * <code>optional .session.Thing.Relations.Iter thing_relations_iter = 904;</code> */ public Builder setThingRelationsIter(ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter value) { if (thingRelationsIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { thingRelationsIterBuilder_.setMessage(value); } resCase_ = 904; return this; } /** * <code>optional .session.Thing.Relations.Iter thing_relations_iter = 904;</code> */ public Builder setThingRelationsIter( ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Builder builderForValue) { if (thingRelationsIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { thingRelationsIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 904; return this; } /** * <code>optional .session.Thing.Relations.Iter thing_relations_iter = 904;</code> */ public Builder mergeThingRelationsIter(ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter value) { if (thingRelationsIterBuilder_ == null) { if (resCase_ == 904 && res_ != ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.newBuilder((ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 904) { thingRelationsIterBuilder_.mergeFrom(value); } thingRelationsIterBuilder_.setMessage(value); } resCase_ = 904; return this; } /** * <code>optional .session.Thing.Relations.Iter thing_relations_iter = 904;</code> */ public Builder clearThingRelationsIter() { if (thingRelationsIterBuilder_ == null) { if (resCase_ == 904) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 904) { resCase_ = 0; res_ = null; } thingRelationsIterBuilder_.clear(); } return this; } /** * <code>optional .session.Thing.Relations.Iter thing_relations_iter = 904;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Builder getThingRelationsIterBuilder() { return getThingRelationsIterFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.Relations.Iter thing_relations_iter = 904;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.IterOrBuilder getThingRelationsIterOrBuilder() { if ((resCase_ == 904) && (thingRelationsIterBuilder_ != null)) { return thingRelationsIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 904) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.getDefaultInstance(); } } /** * <code>optional .session.Thing.Relations.Iter thing_relations_iter = 904;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.IterOrBuilder> getThingRelationsIterFieldBuilder() { if (thingRelationsIterBuilder_ == null) { if (!(resCase_ == 904)) { res_ = ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.getDefaultInstance(); } thingRelationsIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.IterOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 904; onChanged();; return thingRelationsIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.IterOrBuilder> thingRolesIterBuilder_; /** * <code>optional .session.Thing.Roles.Iter thing_roles_iter = 905;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter getThingRolesIter() { if (thingRolesIterBuilder_ == null) { if (resCase_ == 905) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.getDefaultInstance(); } else { if (resCase_ == 905) { return thingRolesIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.getDefaultInstance(); } } /** * <code>optional .session.Thing.Roles.Iter thing_roles_iter = 905;</code> */ public Builder setThingRolesIter(ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter value) { if (thingRolesIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { thingRolesIterBuilder_.setMessage(value); } resCase_ = 905; return this; } /** * <code>optional .session.Thing.Roles.Iter thing_roles_iter = 905;</code> */ public Builder setThingRolesIter( ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Builder builderForValue) { if (thingRolesIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { thingRolesIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 905; return this; } /** * <code>optional .session.Thing.Roles.Iter thing_roles_iter = 905;</code> */ public Builder mergeThingRolesIter(ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter value) { if (thingRolesIterBuilder_ == null) { if (resCase_ == 905 && res_ != ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.newBuilder((ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 905) { thingRolesIterBuilder_.mergeFrom(value); } thingRolesIterBuilder_.setMessage(value); } resCase_ = 905; return this; } /** * <code>optional .session.Thing.Roles.Iter thing_roles_iter = 905;</code> */ public Builder clearThingRolesIter() { if (thingRolesIterBuilder_ == null) { if (resCase_ == 905) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 905) { resCase_ = 0; res_ = null; } thingRolesIterBuilder_.clear(); } return this; } /** * <code>optional .session.Thing.Roles.Iter thing_roles_iter = 905;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Builder getThingRolesIterBuilder() { return getThingRolesIterFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.Roles.Iter thing_roles_iter = 905;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.IterOrBuilder getThingRolesIterOrBuilder() { if ((resCase_ == 905) && (thingRolesIterBuilder_ != null)) { return thingRolesIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 905) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.getDefaultInstance(); } } /** * <code>optional .session.Thing.Roles.Iter thing_roles_iter = 905;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.IterOrBuilder> getThingRolesIterFieldBuilder() { if (thingRolesIterBuilder_ == null) { if (!(resCase_ == 905)) { res_ = ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.getDefaultInstance(); } thingRolesIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.IterOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 905; onChanged();; return thingRolesIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.ResOrBuilder> thingRelhasResBuilder_; /** * <code>optional .session.Thing.Relhas.Res thing_relhas_res = 906;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res getThingRelhasRes() { if (thingRelhasResBuilder_ == null) { if (resCase_ == 906) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.getDefaultInstance(); } else { if (resCase_ == 906) { return thingRelhasResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.getDefaultInstance(); } } /** * <code>optional .session.Thing.Relhas.Res thing_relhas_res = 906;</code> */ public Builder setThingRelhasRes(ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res value) { if (thingRelhasResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { thingRelhasResBuilder_.setMessage(value); } resCase_ = 906; return this; } /** * <code>optional .session.Thing.Relhas.Res thing_relhas_res = 906;</code> */ public Builder setThingRelhasRes( ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.Builder builderForValue) { if (thingRelhasResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { thingRelhasResBuilder_.setMessage(builderForValue.build()); } resCase_ = 906; return this; } /** * <code>optional .session.Thing.Relhas.Res thing_relhas_res = 906;</code> */ public Builder mergeThingRelhasRes(ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res value) { if (thingRelhasResBuilder_ == null) { if (resCase_ == 906 && res_ != ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 906) { thingRelhasResBuilder_.mergeFrom(value); } thingRelhasResBuilder_.setMessage(value); } resCase_ = 906; return this; } /** * <code>optional .session.Thing.Relhas.Res thing_relhas_res = 906;</code> */ public Builder clearThingRelhasRes() { if (thingRelhasResBuilder_ == null) { if (resCase_ == 906) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 906) { resCase_ = 0; res_ = null; } thingRelhasResBuilder_.clear(); } return this; } /** * <code>optional .session.Thing.Relhas.Res thing_relhas_res = 906;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.Builder getThingRelhasResBuilder() { return getThingRelhasResFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.Relhas.Res thing_relhas_res = 906;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.ResOrBuilder getThingRelhasResOrBuilder() { if ((resCase_ == 906) && (thingRelhasResBuilder_ != null)) { return thingRelhasResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 906) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.getDefaultInstance(); } } /** * <code>optional .session.Thing.Relhas.Res thing_relhas_res = 906;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.ResOrBuilder> getThingRelhasResFieldBuilder() { if (thingRelhasResBuilder_ == null) { if (!(resCase_ == 906)) { res_ = ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.getDefaultInstance(); } thingRelhasResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 906; onChanged();; return thingRelhasResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.ResOrBuilder> thingUnhasResBuilder_; /** * <code>optional .session.Thing.Unhas.Res thing_unhas_res = 907;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res getThingUnhasRes() { if (thingUnhasResBuilder_ == null) { if (resCase_ == 907) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.getDefaultInstance(); } else { if (resCase_ == 907) { return thingUnhasResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.getDefaultInstance(); } } /** * <code>optional .session.Thing.Unhas.Res thing_unhas_res = 907;</code> */ public Builder setThingUnhasRes(ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res value) { if (thingUnhasResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { thingUnhasResBuilder_.setMessage(value); } resCase_ = 907; return this; } /** * <code>optional .session.Thing.Unhas.Res thing_unhas_res = 907;</code> */ public Builder setThingUnhasRes( ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.Builder builderForValue) { if (thingUnhasResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { thingUnhasResBuilder_.setMessage(builderForValue.build()); } resCase_ = 907; return this; } /** * <code>optional .session.Thing.Unhas.Res thing_unhas_res = 907;</code> */ public Builder mergeThingUnhasRes(ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res value) { if (thingUnhasResBuilder_ == null) { if (resCase_ == 907 && res_ != ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 907) { thingUnhasResBuilder_.mergeFrom(value); } thingUnhasResBuilder_.setMessage(value); } resCase_ = 907; return this; } /** * <code>optional .session.Thing.Unhas.Res thing_unhas_res = 907;</code> */ public Builder clearThingUnhasRes() { if (thingUnhasResBuilder_ == null) { if (resCase_ == 907) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 907) { resCase_ = 0; res_ = null; } thingUnhasResBuilder_.clear(); } return this; } /** * <code>optional .session.Thing.Unhas.Res thing_unhas_res = 907;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.Builder getThingUnhasResBuilder() { return getThingUnhasResFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.Unhas.Res thing_unhas_res = 907;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.ResOrBuilder getThingUnhasResOrBuilder() { if ((resCase_ == 907) && (thingUnhasResBuilder_ != null)) { return thingUnhasResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 907) { return (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.getDefaultInstance(); } } /** * <code>optional .session.Thing.Unhas.Res thing_unhas_res = 907;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.ResOrBuilder> getThingUnhasResFieldBuilder() { if (thingUnhasResBuilder_ == null) { if (!(resCase_ == 907)) { res_ = ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.getDefaultInstance(); } thingUnhasResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 907; onChanged();; return thingUnhasResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.IterOrBuilder> relationRolePlayersMapIterBuilder_; /** * <pre> * Relation method responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter relation_rolePlayersMap_iter = 1000;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter getRelationRolePlayersMapIter() { if (relationRolePlayersMapIterBuilder_ == null) { if (resCase_ == 1000) { return (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.getDefaultInstance(); } else { if (resCase_ == 1000) { return relationRolePlayersMapIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.getDefaultInstance(); } } /** * <pre> * Relation method responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter relation_rolePlayersMap_iter = 1000;</code> */ public Builder setRelationRolePlayersMapIter(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter value) { if (relationRolePlayersMapIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { relationRolePlayersMapIterBuilder_.setMessage(value); } resCase_ = 1000; return this; } /** * <pre> * Relation method responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter relation_rolePlayersMap_iter = 1000;</code> */ public Builder setRelationRolePlayersMapIter( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Builder builderForValue) { if (relationRolePlayersMapIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { relationRolePlayersMapIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 1000; return this; } /** * <pre> * Relation method responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter relation_rolePlayersMap_iter = 1000;</code> */ public Builder mergeRelationRolePlayersMapIter(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter value) { if (relationRolePlayersMapIterBuilder_ == null) { if (resCase_ == 1000 && res_ != ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.newBuilder((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 1000) { relationRolePlayersMapIterBuilder_.mergeFrom(value); } relationRolePlayersMapIterBuilder_.setMessage(value); } resCase_ = 1000; return this; } /** * <pre> * Relation method responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter relation_rolePlayersMap_iter = 1000;</code> */ public Builder clearRelationRolePlayersMapIter() { if (relationRolePlayersMapIterBuilder_ == null) { if (resCase_ == 1000) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 1000) { resCase_ = 0; res_ = null; } relationRolePlayersMapIterBuilder_.clear(); } return this; } /** * <pre> * Relation method responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter relation_rolePlayersMap_iter = 1000;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Builder getRelationRolePlayersMapIterBuilder() { return getRelationRolePlayersMapIterFieldBuilder().getBuilder(); } /** * <pre> * Relation method responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter relation_rolePlayersMap_iter = 1000;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.IterOrBuilder getRelationRolePlayersMapIterOrBuilder() { if ((resCase_ == 1000) && (relationRolePlayersMapIterBuilder_ != null)) { return relationRolePlayersMapIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 1000) { return (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.getDefaultInstance(); } } /** * <pre> * Relation method responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter relation_rolePlayersMap_iter = 1000;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.IterOrBuilder> getRelationRolePlayersMapIterFieldBuilder() { if (relationRolePlayersMapIterBuilder_ == null) { if (!(resCase_ == 1000)) { res_ = ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.getDefaultInstance(); } relationRolePlayersMapIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.IterOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 1000; onChanged();; return relationRolePlayersMapIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.IterOrBuilder> relationRolePlayersIterBuilder_; /** * <code>optional .session.Relation.RolePlayers.Iter relation_rolePlayers_iter = 1001;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter getRelationRolePlayersIter() { if (relationRolePlayersIterBuilder_ == null) { if (resCase_ == 1001) { return (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.getDefaultInstance(); } else { if (resCase_ == 1001) { return relationRolePlayersIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.getDefaultInstance(); } } /** * <code>optional .session.Relation.RolePlayers.Iter relation_rolePlayers_iter = 1001;</code> */ public Builder setRelationRolePlayersIter(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter value) { if (relationRolePlayersIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { relationRolePlayersIterBuilder_.setMessage(value); } resCase_ = 1001; return this; } /** * <code>optional .session.Relation.RolePlayers.Iter relation_rolePlayers_iter = 1001;</code> */ public Builder setRelationRolePlayersIter( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Builder builderForValue) { if (relationRolePlayersIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { relationRolePlayersIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 1001; return this; } /** * <code>optional .session.Relation.RolePlayers.Iter relation_rolePlayers_iter = 1001;</code> */ public Builder mergeRelationRolePlayersIter(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter value) { if (relationRolePlayersIterBuilder_ == null) { if (resCase_ == 1001 && res_ != ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.newBuilder((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 1001) { relationRolePlayersIterBuilder_.mergeFrom(value); } relationRolePlayersIterBuilder_.setMessage(value); } resCase_ = 1001; return this; } /** * <code>optional .session.Relation.RolePlayers.Iter relation_rolePlayers_iter = 1001;</code> */ public Builder clearRelationRolePlayersIter() { if (relationRolePlayersIterBuilder_ == null) { if (resCase_ == 1001) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 1001) { resCase_ = 0; res_ = null; } relationRolePlayersIterBuilder_.clear(); } return this; } /** * <code>optional .session.Relation.RolePlayers.Iter relation_rolePlayers_iter = 1001;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Builder getRelationRolePlayersIterBuilder() { return getRelationRolePlayersIterFieldBuilder().getBuilder(); } /** * <code>optional .session.Relation.RolePlayers.Iter relation_rolePlayers_iter = 1001;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.IterOrBuilder getRelationRolePlayersIterOrBuilder() { if ((resCase_ == 1001) && (relationRolePlayersIterBuilder_ != null)) { return relationRolePlayersIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 1001) { return (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.getDefaultInstance(); } } /** * <code>optional .session.Relation.RolePlayers.Iter relation_rolePlayers_iter = 1001;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.IterOrBuilder> getRelationRolePlayersIterFieldBuilder() { if (relationRolePlayersIterBuilder_ == null) { if (!(resCase_ == 1001)) { res_ = ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.getDefaultInstance(); } relationRolePlayersIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.IterOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 1001; onChanged();; return relationRolePlayersIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.ResOrBuilder> relationAssignResBuilder_; /** * <code>optional .session.Relation.Assign.Res relation_assign_res = 1002;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res getRelationAssignRes() { if (relationAssignResBuilder_ == null) { if (resCase_ == 1002) { return (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.getDefaultInstance(); } else { if (resCase_ == 1002) { return relationAssignResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.getDefaultInstance(); } } /** * <code>optional .session.Relation.Assign.Res relation_assign_res = 1002;</code> */ public Builder setRelationAssignRes(ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res value) { if (relationAssignResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { relationAssignResBuilder_.setMessage(value); } resCase_ = 1002; return this; } /** * <code>optional .session.Relation.Assign.Res relation_assign_res = 1002;</code> */ public Builder setRelationAssignRes( ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.Builder builderForValue) { if (relationAssignResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { relationAssignResBuilder_.setMessage(builderForValue.build()); } resCase_ = 1002; return this; } /** * <code>optional .session.Relation.Assign.Res relation_assign_res = 1002;</code> */ public Builder mergeRelationAssignRes(ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res value) { if (relationAssignResBuilder_ == null) { if (resCase_ == 1002 && res_ != ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 1002) { relationAssignResBuilder_.mergeFrom(value); } relationAssignResBuilder_.setMessage(value); } resCase_ = 1002; return this; } /** * <code>optional .session.Relation.Assign.Res relation_assign_res = 1002;</code> */ public Builder clearRelationAssignRes() { if (relationAssignResBuilder_ == null) { if (resCase_ == 1002) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 1002) { resCase_ = 0; res_ = null; } relationAssignResBuilder_.clear(); } return this; } /** * <code>optional .session.Relation.Assign.Res relation_assign_res = 1002;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.Builder getRelationAssignResBuilder() { return getRelationAssignResFieldBuilder().getBuilder(); } /** * <code>optional .session.Relation.Assign.Res relation_assign_res = 1002;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.ResOrBuilder getRelationAssignResOrBuilder() { if ((resCase_ == 1002) && (relationAssignResBuilder_ != null)) { return relationAssignResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 1002) { return (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.getDefaultInstance(); } } /** * <code>optional .session.Relation.Assign.Res relation_assign_res = 1002;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.ResOrBuilder> getRelationAssignResFieldBuilder() { if (relationAssignResBuilder_ == null) { if (!(resCase_ == 1002)) { res_ = ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.getDefaultInstance(); } relationAssignResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 1002; onChanged();; return relationAssignResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.ResOrBuilder> relationUnassignResBuilder_; /** * <code>optional .session.Relation.Unassign.Res relation_unassign_res = 1003;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res getRelationUnassignRes() { if (relationUnassignResBuilder_ == null) { if (resCase_ == 1003) { return (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.getDefaultInstance(); } else { if (resCase_ == 1003) { return relationUnassignResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.getDefaultInstance(); } } /** * <code>optional .session.Relation.Unassign.Res relation_unassign_res = 1003;</code> */ public Builder setRelationUnassignRes(ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res value) { if (relationUnassignResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { relationUnassignResBuilder_.setMessage(value); } resCase_ = 1003; return this; } /** * <code>optional .session.Relation.Unassign.Res relation_unassign_res = 1003;</code> */ public Builder setRelationUnassignRes( ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.Builder builderForValue) { if (relationUnassignResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { relationUnassignResBuilder_.setMessage(builderForValue.build()); } resCase_ = 1003; return this; } /** * <code>optional .session.Relation.Unassign.Res relation_unassign_res = 1003;</code> */ public Builder mergeRelationUnassignRes(ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res value) { if (relationUnassignResBuilder_ == null) { if (resCase_ == 1003 && res_ != ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 1003) { relationUnassignResBuilder_.mergeFrom(value); } relationUnassignResBuilder_.setMessage(value); } resCase_ = 1003; return this; } /** * <code>optional .session.Relation.Unassign.Res relation_unassign_res = 1003;</code> */ public Builder clearRelationUnassignRes() { if (relationUnassignResBuilder_ == null) { if (resCase_ == 1003) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 1003) { resCase_ = 0; res_ = null; } relationUnassignResBuilder_.clear(); } return this; } /** * <code>optional .session.Relation.Unassign.Res relation_unassign_res = 1003;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.Builder getRelationUnassignResBuilder() { return getRelationUnassignResFieldBuilder().getBuilder(); } /** * <code>optional .session.Relation.Unassign.Res relation_unassign_res = 1003;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.ResOrBuilder getRelationUnassignResOrBuilder() { if ((resCase_ == 1003) && (relationUnassignResBuilder_ != null)) { return relationUnassignResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 1003) { return (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.getDefaultInstance(); } } /** * <code>optional .session.Relation.Unassign.Res relation_unassign_res = 1003;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.ResOrBuilder> getRelationUnassignResFieldBuilder() { if (relationUnassignResBuilder_ == null) { if (!(resCase_ == 1003)) { res_ = ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.getDefaultInstance(); } relationUnassignResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 1003; onChanged();; return relationUnassignResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.ResOrBuilder> attributeValueResBuilder_; /** * <pre> * Attribute method responses * </pre> * * <code>optional .session.Attribute.Value.Res attribute_value_res = 1100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res getAttributeValueRes() { if (attributeValueResBuilder_ == null) { if (resCase_ == 1100) { return (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.getDefaultInstance(); } else { if (resCase_ == 1100) { return attributeValueResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.getDefaultInstance(); } } /** * <pre> * Attribute method responses * </pre> * * <code>optional .session.Attribute.Value.Res attribute_value_res = 1100;</code> */ public Builder setAttributeValueRes(ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res value) { if (attributeValueResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { attributeValueResBuilder_.setMessage(value); } resCase_ = 1100; return this; } /** * <pre> * Attribute method responses * </pre> * * <code>optional .session.Attribute.Value.Res attribute_value_res = 1100;</code> */ public Builder setAttributeValueRes( ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.Builder builderForValue) { if (attributeValueResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { attributeValueResBuilder_.setMessage(builderForValue.build()); } resCase_ = 1100; return this; } /** * <pre> * Attribute method responses * </pre> * * <code>optional .session.Attribute.Value.Res attribute_value_res = 1100;</code> */ public Builder mergeAttributeValueRes(ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res value) { if (attributeValueResBuilder_ == null) { if (resCase_ == 1100 && res_ != ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 1100) { attributeValueResBuilder_.mergeFrom(value); } attributeValueResBuilder_.setMessage(value); } resCase_ = 1100; return this; } /** * <pre> * Attribute method responses * </pre> * * <code>optional .session.Attribute.Value.Res attribute_value_res = 1100;</code> */ public Builder clearAttributeValueRes() { if (attributeValueResBuilder_ == null) { if (resCase_ == 1100) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 1100) { resCase_ = 0; res_ = null; } attributeValueResBuilder_.clear(); } return this; } /** * <pre> * Attribute method responses * </pre> * * <code>optional .session.Attribute.Value.Res attribute_value_res = 1100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.Builder getAttributeValueResBuilder() { return getAttributeValueResFieldBuilder().getBuilder(); } /** * <pre> * Attribute method responses * </pre> * * <code>optional .session.Attribute.Value.Res attribute_value_res = 1100;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.ResOrBuilder getAttributeValueResOrBuilder() { if ((resCase_ == 1100) && (attributeValueResBuilder_ != null)) { return attributeValueResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 1100) { return (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.getDefaultInstance(); } } /** * <pre> * Attribute method responses * </pre> * * <code>optional .session.Attribute.Value.Res attribute_value_res = 1100;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.ResOrBuilder> getAttributeValueResFieldBuilder() { if (attributeValueResBuilder_ == null) { if (!(resCase_ == 1100)) { res_ = ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.getDefaultInstance(); } attributeValueResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 1100; onChanged();; return attributeValueResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.IterOrBuilder> attributeOwnersIterBuilder_; /** * <code>optional .session.Attribute.Owners.Iter attribute_owners_iter = 1101;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter getAttributeOwnersIter() { if (attributeOwnersIterBuilder_ == null) { if (resCase_ == 1101) { return (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.getDefaultInstance(); } else { if (resCase_ == 1101) { return attributeOwnersIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.getDefaultInstance(); } } /** * <code>optional .session.Attribute.Owners.Iter attribute_owners_iter = 1101;</code> */ public Builder setAttributeOwnersIter(ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter value) { if (attributeOwnersIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { attributeOwnersIterBuilder_.setMessage(value); } resCase_ = 1101; return this; } /** * <code>optional .session.Attribute.Owners.Iter attribute_owners_iter = 1101;</code> */ public Builder setAttributeOwnersIter( ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Builder builderForValue) { if (attributeOwnersIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { attributeOwnersIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 1101; return this; } /** * <code>optional .session.Attribute.Owners.Iter attribute_owners_iter = 1101;</code> */ public Builder mergeAttributeOwnersIter(ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter value) { if (attributeOwnersIterBuilder_ == null) { if (resCase_ == 1101 && res_ != ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.newBuilder((ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 1101) { attributeOwnersIterBuilder_.mergeFrom(value); } attributeOwnersIterBuilder_.setMessage(value); } resCase_ = 1101; return this; } /** * <code>optional .session.Attribute.Owners.Iter attribute_owners_iter = 1101;</code> */ public Builder clearAttributeOwnersIter() { if (attributeOwnersIterBuilder_ == null) { if (resCase_ == 1101) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 1101) { resCase_ = 0; res_ = null; } attributeOwnersIterBuilder_.clear(); } return this; } /** * <code>optional .session.Attribute.Owners.Iter attribute_owners_iter = 1101;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Builder getAttributeOwnersIterBuilder() { return getAttributeOwnersIterFieldBuilder().getBuilder(); } /** * <code>optional .session.Attribute.Owners.Iter attribute_owners_iter = 1101;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.IterOrBuilder getAttributeOwnersIterOrBuilder() { if ((resCase_ == 1101) && (attributeOwnersIterBuilder_ != null)) { return attributeOwnersIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 1101) { return (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter) res_; } return ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.getDefaultInstance(); } } /** * <code>optional .session.Attribute.Owners.Iter attribute_owners_iter = 1101;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.IterOrBuilder> getAttributeOwnersIterFieldBuilder() { if (attributeOwnersIterBuilder_ == null) { if (!(resCase_ == 1101)) { res_ = ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.getDefaultInstance(); } attributeOwnersIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Builder, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.IterOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 1101; onChanged();; return attributeOwnersIterBuilder_; } 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.Method.Res) } // @@protoc_insertion_point(class_scope:session.Method.Res) private static final ai.grakn.rpc.proto.ConceptProto.Method.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Method.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Method.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Method.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Method.Iter) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Method.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Method.Iter) IterOrBuilder { // Use Iter.newBuilder() to construct. private Iter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Iter() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Iter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Method.Iter.class, ai.grakn.rpc.proto.ConceptProto.Method.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Method.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <pre> * SchemaConcept iterator responses * </pre> * * <code>optional .session.SchemaConcept.Sups.Iter.Res schemaConcept_sups_iter_res = 205;</code> */ boolean hasSchemaConceptSupsIterRes(); /** * <pre> * SchemaConcept iterator responses * </pre> * * <code>optional .session.SchemaConcept.Sups.Iter.Res schemaConcept_sups_iter_res = 205;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res getSchemaConceptSupsIterRes(); /** * <pre> * SchemaConcept iterator responses * </pre> * * <code>optional .session.SchemaConcept.Sups.Iter.Res schemaConcept_sups_iter_res = 205;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.ResOrBuilder getSchemaConceptSupsIterResOrBuilder(); /** * <code>optional .session.SchemaConcept.Subs.Iter.Res schemaConcept_subs_iter_res = 206;</code> */ boolean hasSchemaConceptSubsIterRes(); /** * <code>optional .session.SchemaConcept.Subs.Iter.Res schemaConcept_subs_iter_res = 206;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res getSchemaConceptSubsIterRes(); /** * <code>optional .session.SchemaConcept.Subs.Iter.Res schemaConcept_subs_iter_res = 206;</code> */ ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.ResOrBuilder getSchemaConceptSubsIterResOrBuilder(); /** * <pre> * Role iterator responses * </pre> * * <code>optional .session.Role.Relations.Iter.Res role_relations_iter_res = 401;</code> */ boolean hasRoleRelationsIterRes(); /** * <pre> * Role iterator responses * </pre> * * <code>optional .session.Role.Relations.Iter.Res role_relations_iter_res = 401;</code> */ ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res getRoleRelationsIterRes(); /** * <pre> * Role iterator responses * </pre> * * <code>optional .session.Role.Relations.Iter.Res role_relations_iter_res = 401;</code> */ ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.ResOrBuilder getRoleRelationsIterResOrBuilder(); /** * <code>optional .session.Role.Players.Iter.Res role_players_iter_res = 402;</code> */ boolean hasRolePlayersIterRes(); /** * <code>optional .session.Role.Players.Iter.Res role_players_iter_res = 402;</code> */ ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res getRolePlayersIterRes(); /** * <code>optional .session.Role.Players.Iter.Res role_players_iter_res = 402;</code> */ ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.ResOrBuilder getRolePlayersIterResOrBuilder(); /** * <pre> * Type iterator responses * </pre> * * <code>optional .session.Type.Instances.Iter.Res type_instances_iter_res = 502;</code> */ boolean hasTypeInstancesIterRes(); /** * <pre> * Type iterator responses * </pre> * * <code>optional .session.Type.Instances.Iter.Res type_instances_iter_res = 502;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res getTypeInstancesIterRes(); /** * <pre> * Type iterator responses * </pre> * * <code>optional .session.Type.Instances.Iter.Res type_instances_iter_res = 502;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.ResOrBuilder getTypeInstancesIterResOrBuilder(); /** * <code>optional .session.Type.Keys.Iter.Res type_keys_iter_res = 503;</code> */ boolean hasTypeKeysIterRes(); /** * <code>optional .session.Type.Keys.Iter.Res type_keys_iter_res = 503;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res getTypeKeysIterRes(); /** * <code>optional .session.Type.Keys.Iter.Res type_keys_iter_res = 503;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.ResOrBuilder getTypeKeysIterResOrBuilder(); /** * <code>optional .session.Type.Attributes.Iter.Res type_attributes_iter_res = 504;</code> */ boolean hasTypeAttributesIterRes(); /** * <code>optional .session.Type.Attributes.Iter.Res type_attributes_iter_res = 504;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res getTypeAttributesIterRes(); /** * <code>optional .session.Type.Attributes.Iter.Res type_attributes_iter_res = 504;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.ResOrBuilder getTypeAttributesIterResOrBuilder(); /** * <code>optional .session.Type.Playing.Iter.Res type_playing_iter_res = 505;</code> */ boolean hasTypePlayingIterRes(); /** * <code>optional .session.Type.Playing.Iter.Res type_playing_iter_res = 505;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res getTypePlayingIterRes(); /** * <code>optional .session.Type.Playing.Iter.Res type_playing_iter_res = 505;</code> */ ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.ResOrBuilder getTypePlayingIterResOrBuilder(); /** * <pre> * RelationType iterator responses * </pre> * * <code>optional .session.RelationType.Roles.Iter.Res relationType_roles_iter_res = 701;</code> */ boolean hasRelationTypeRolesIterRes(); /** * <pre> * RelationType iterator responses * </pre> * * <code>optional .session.RelationType.Roles.Iter.Res relationType_roles_iter_res = 701;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res getRelationTypeRolesIterRes(); /** * <pre> * RelationType iterator responses * </pre> * * <code>optional .session.RelationType.Roles.Iter.Res relationType_roles_iter_res = 701;</code> */ ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.ResOrBuilder getRelationTypeRolesIterResOrBuilder(); /** * <pre> * Thing iterator responses * </pre> * * <code>optional .session.Thing.Keys.Iter.Res thing_keys_iter_res = 902;</code> */ boolean hasThingKeysIterRes(); /** * <pre> * Thing iterator responses * </pre> * * <code>optional .session.Thing.Keys.Iter.Res thing_keys_iter_res = 902;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res getThingKeysIterRes(); /** * <pre> * Thing iterator responses * </pre> * * <code>optional .session.Thing.Keys.Iter.Res thing_keys_iter_res = 902;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.ResOrBuilder getThingKeysIterResOrBuilder(); /** * <code>optional .session.Thing.Attributes.Iter.Res thing_attributes_iter_res = 903;</code> */ boolean hasThingAttributesIterRes(); /** * <code>optional .session.Thing.Attributes.Iter.Res thing_attributes_iter_res = 903;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res getThingAttributesIterRes(); /** * <code>optional .session.Thing.Attributes.Iter.Res thing_attributes_iter_res = 903;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.ResOrBuilder getThingAttributesIterResOrBuilder(); /** * <code>optional .session.Thing.Relations.Iter.Res thing_relations_iter_res = 904;</code> */ boolean hasThingRelationsIterRes(); /** * <code>optional .session.Thing.Relations.Iter.Res thing_relations_iter_res = 904;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res getThingRelationsIterRes(); /** * <code>optional .session.Thing.Relations.Iter.Res thing_relations_iter_res = 904;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.ResOrBuilder getThingRelationsIterResOrBuilder(); /** * <code>optional .session.Thing.Roles.Iter.Res thing_roles_iter_res = 905;</code> */ boolean hasThingRolesIterRes(); /** * <code>optional .session.Thing.Roles.Iter.Res thing_roles_iter_res = 905;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res getThingRolesIterRes(); /** * <code>optional .session.Thing.Roles.Iter.Res thing_roles_iter_res = 905;</code> */ ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.ResOrBuilder getThingRolesIterResOrBuilder(); /** * <pre> * Relation iterator responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter.Res relation_rolePlayersMap_iter_res = 1000;</code> */ boolean hasRelationRolePlayersMapIterRes(); /** * <pre> * Relation iterator responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter.Res relation_rolePlayersMap_iter_res = 1000;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res getRelationRolePlayersMapIterRes(); /** * <pre> * Relation iterator responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter.Res relation_rolePlayersMap_iter_res = 1000;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.ResOrBuilder getRelationRolePlayersMapIterResOrBuilder(); /** * <code>optional .session.Relation.RolePlayers.Iter.Res relation_rolePlayers_iter_res = 1001;</code> */ boolean hasRelationRolePlayersIterRes(); /** * <code>optional .session.Relation.RolePlayers.Iter.Res relation_rolePlayers_iter_res = 1001;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res getRelationRolePlayersIterRes(); /** * <code>optional .session.Relation.RolePlayers.Iter.Res relation_rolePlayers_iter_res = 1001;</code> */ ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.ResOrBuilder getRelationRolePlayersIterResOrBuilder(); /** * <pre> * Attribute iterator responses * </pre> * * <code>optional .session.Attribute.Owners.Iter.Res attribute_owners_iter_res = 1101;</code> */ boolean hasAttributeOwnersIterRes(); /** * <pre> * Attribute iterator responses * </pre> * * <code>optional .session.Attribute.Owners.Iter.Res attribute_owners_iter_res = 1101;</code> */ ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res getAttributeOwnersIterRes(); /** * <pre> * Attribute iterator responses * </pre> * * <code>optional .session.Attribute.Owners.Iter.Res attribute_owners_iter_res = 1101;</code> */ ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.ResOrBuilder getAttributeOwnersIterResOrBuilder(); } /** * Protobuf type {@code session.Method.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Method.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 1642: { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.Builder subBuilder = null; if (schemaConceptSupsIterRes_ != null) { subBuilder = schemaConceptSupsIterRes_.toBuilder(); } schemaConceptSupsIterRes_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(schemaConceptSupsIterRes_); schemaConceptSupsIterRes_ = subBuilder.buildPartial(); } break; } case 1650: { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.Builder subBuilder = null; if (schemaConceptSubsIterRes_ != null) { subBuilder = schemaConceptSubsIterRes_.toBuilder(); } schemaConceptSubsIterRes_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(schemaConceptSubsIterRes_); schemaConceptSubsIterRes_ = subBuilder.buildPartial(); } break; } case 3210: { ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res.Builder subBuilder = null; if (roleRelationsIterRes_ != null) { subBuilder = roleRelationsIterRes_.toBuilder(); } roleRelationsIterRes_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(roleRelationsIterRes_); roleRelationsIterRes_ = subBuilder.buildPartial(); } break; } case 3218: { ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.Builder subBuilder = null; if (rolePlayersIterRes_ != null) { subBuilder = rolePlayersIterRes_.toBuilder(); } rolePlayersIterRes_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rolePlayersIterRes_); rolePlayersIterRes_ = subBuilder.buildPartial(); } break; } case 4018: { ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.Builder subBuilder = null; if (typeInstancesIterRes_ != null) { subBuilder = typeInstancesIterRes_.toBuilder(); } typeInstancesIterRes_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(typeInstancesIterRes_); typeInstancesIterRes_ = subBuilder.buildPartial(); } break; } case 4026: { ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res.Builder subBuilder = null; if (typeKeysIterRes_ != null) { subBuilder = typeKeysIterRes_.toBuilder(); } typeKeysIterRes_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(typeKeysIterRes_); typeKeysIterRes_ = subBuilder.buildPartial(); } break; } case 4034: { ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res.Builder subBuilder = null; if (typeAttributesIterRes_ != null) { subBuilder = typeAttributesIterRes_.toBuilder(); } typeAttributesIterRes_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(typeAttributesIterRes_); typeAttributesIterRes_ = subBuilder.buildPartial(); } break; } case 4042: { ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res.Builder subBuilder = null; if (typePlayingIterRes_ != null) { subBuilder = typePlayingIterRes_.toBuilder(); } typePlayingIterRes_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(typePlayingIterRes_); typePlayingIterRes_ = subBuilder.buildPartial(); } break; } case 5610: { ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res.Builder subBuilder = null; if (relationTypeRolesIterRes_ != null) { subBuilder = relationTypeRolesIterRes_.toBuilder(); } relationTypeRolesIterRes_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(relationTypeRolesIterRes_); relationTypeRolesIterRes_ = subBuilder.buildPartial(); } break; } case 7218: { ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res.Builder subBuilder = null; if (thingKeysIterRes_ != null) { subBuilder = thingKeysIterRes_.toBuilder(); } thingKeysIterRes_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(thingKeysIterRes_); thingKeysIterRes_ = subBuilder.buildPartial(); } break; } case 7226: { ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res.Builder subBuilder = null; if (thingAttributesIterRes_ != null) { subBuilder = thingAttributesIterRes_.toBuilder(); } thingAttributesIterRes_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(thingAttributesIterRes_); thingAttributesIterRes_ = subBuilder.buildPartial(); } break; } case 7234: { ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.Builder subBuilder = null; if (thingRelationsIterRes_ != null) { subBuilder = thingRelationsIterRes_.toBuilder(); } thingRelationsIterRes_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(thingRelationsIterRes_); thingRelationsIterRes_ = subBuilder.buildPartial(); } break; } case 7242: { ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res.Builder subBuilder = null; if (thingRolesIterRes_ != null) { subBuilder = thingRolesIterRes_.toBuilder(); } thingRolesIterRes_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(thingRolesIterRes_); thingRolesIterRes_ = subBuilder.buildPartial(); } break; } case 8002: { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.Builder subBuilder = null; if (relationRolePlayersMapIterRes_ != null) { subBuilder = relationRolePlayersMapIterRes_.toBuilder(); } relationRolePlayersMapIterRes_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(relationRolePlayersMapIterRes_); relationRolePlayersMapIterRes_ = subBuilder.buildPartial(); } break; } case 8010: { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.Builder subBuilder = null; if (relationRolePlayersIterRes_ != null) { subBuilder = relationRolePlayersIterRes_.toBuilder(); } relationRolePlayersIterRes_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(relationRolePlayersIterRes_); relationRolePlayersIterRes_ = subBuilder.buildPartial(); } break; } case 8810: { ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.Builder subBuilder = null; if (attributeOwnersIterRes_ != null) { subBuilder = attributeOwnersIterRes_.toBuilder(); } attributeOwnersIterRes_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(attributeOwnersIterRes_); attributeOwnersIterRes_ = 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.ConceptProto.internal_static_session_Method_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.Builder.class); } public static final int SCHEMACONCEPT_SUPS_ITER_RES_FIELD_NUMBER = 205; private ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res schemaConceptSupsIterRes_; /** * <pre> * SchemaConcept iterator responses * </pre> * * <code>optional .session.SchemaConcept.Sups.Iter.Res schemaConcept_sups_iter_res = 205;</code> */ public boolean hasSchemaConceptSupsIterRes() { return schemaConceptSupsIterRes_ != null; } /** * <pre> * SchemaConcept iterator responses * </pre> * * <code>optional .session.SchemaConcept.Sups.Iter.Res schemaConcept_sups_iter_res = 205;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res getSchemaConceptSupsIterRes() { return schemaConceptSupsIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.getDefaultInstance() : schemaConceptSupsIterRes_; } /** * <pre> * SchemaConcept iterator responses * </pre> * * <code>optional .session.SchemaConcept.Sups.Iter.Res schemaConcept_sups_iter_res = 205;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.ResOrBuilder getSchemaConceptSupsIterResOrBuilder() { return getSchemaConceptSupsIterRes(); } public static final int SCHEMACONCEPT_SUBS_ITER_RES_FIELD_NUMBER = 206; private ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res schemaConceptSubsIterRes_; /** * <code>optional .session.SchemaConcept.Subs.Iter.Res schemaConcept_subs_iter_res = 206;</code> */ public boolean hasSchemaConceptSubsIterRes() { return schemaConceptSubsIterRes_ != null; } /** * <code>optional .session.SchemaConcept.Subs.Iter.Res schemaConcept_subs_iter_res = 206;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res getSchemaConceptSubsIterRes() { return schemaConceptSubsIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.getDefaultInstance() : schemaConceptSubsIterRes_; } /** * <code>optional .session.SchemaConcept.Subs.Iter.Res schemaConcept_subs_iter_res = 206;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.ResOrBuilder getSchemaConceptSubsIterResOrBuilder() { return getSchemaConceptSubsIterRes(); } public static final int ROLE_RELATIONS_ITER_RES_FIELD_NUMBER = 401; private ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res roleRelationsIterRes_; /** * <pre> * Role iterator responses * </pre> * * <code>optional .session.Role.Relations.Iter.Res role_relations_iter_res = 401;</code> */ public boolean hasRoleRelationsIterRes() { return roleRelationsIterRes_ != null; } /** * <pre> * Role iterator responses * </pre> * * <code>optional .session.Role.Relations.Iter.Res role_relations_iter_res = 401;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res getRoleRelationsIterRes() { return roleRelationsIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res.getDefaultInstance() : roleRelationsIterRes_; } /** * <pre> * Role iterator responses * </pre> * * <code>optional .session.Role.Relations.Iter.Res role_relations_iter_res = 401;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.ResOrBuilder getRoleRelationsIterResOrBuilder() { return getRoleRelationsIterRes(); } public static final int ROLE_PLAYERS_ITER_RES_FIELD_NUMBER = 402; private ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res rolePlayersIterRes_; /** * <code>optional .session.Role.Players.Iter.Res role_players_iter_res = 402;</code> */ public boolean hasRolePlayersIterRes() { return rolePlayersIterRes_ != null; } /** * <code>optional .session.Role.Players.Iter.Res role_players_iter_res = 402;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res getRolePlayersIterRes() { return rolePlayersIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.getDefaultInstance() : rolePlayersIterRes_; } /** * <code>optional .session.Role.Players.Iter.Res role_players_iter_res = 402;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.ResOrBuilder getRolePlayersIterResOrBuilder() { return getRolePlayersIterRes(); } public static final int TYPE_INSTANCES_ITER_RES_FIELD_NUMBER = 502; private ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res typeInstancesIterRes_; /** * <pre> * Type iterator responses * </pre> * * <code>optional .session.Type.Instances.Iter.Res type_instances_iter_res = 502;</code> */ public boolean hasTypeInstancesIterRes() { return typeInstancesIterRes_ != null; } /** * <pre> * Type iterator responses * </pre> * * <code>optional .session.Type.Instances.Iter.Res type_instances_iter_res = 502;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res getTypeInstancesIterRes() { return typeInstancesIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.getDefaultInstance() : typeInstancesIterRes_; } /** * <pre> * Type iterator responses * </pre> * * <code>optional .session.Type.Instances.Iter.Res type_instances_iter_res = 502;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.ResOrBuilder getTypeInstancesIterResOrBuilder() { return getTypeInstancesIterRes(); } public static final int TYPE_KEYS_ITER_RES_FIELD_NUMBER = 503; private ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res typeKeysIterRes_; /** * <code>optional .session.Type.Keys.Iter.Res type_keys_iter_res = 503;</code> */ public boolean hasTypeKeysIterRes() { return typeKeysIterRes_ != null; } /** * <code>optional .session.Type.Keys.Iter.Res type_keys_iter_res = 503;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res getTypeKeysIterRes() { return typeKeysIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res.getDefaultInstance() : typeKeysIterRes_; } /** * <code>optional .session.Type.Keys.Iter.Res type_keys_iter_res = 503;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.ResOrBuilder getTypeKeysIterResOrBuilder() { return getTypeKeysIterRes(); } public static final int TYPE_ATTRIBUTES_ITER_RES_FIELD_NUMBER = 504; private ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res typeAttributesIterRes_; /** * <code>optional .session.Type.Attributes.Iter.Res type_attributes_iter_res = 504;</code> */ public boolean hasTypeAttributesIterRes() { return typeAttributesIterRes_ != null; } /** * <code>optional .session.Type.Attributes.Iter.Res type_attributes_iter_res = 504;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res getTypeAttributesIterRes() { return typeAttributesIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res.getDefaultInstance() : typeAttributesIterRes_; } /** * <code>optional .session.Type.Attributes.Iter.Res type_attributes_iter_res = 504;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.ResOrBuilder getTypeAttributesIterResOrBuilder() { return getTypeAttributesIterRes(); } public static final int TYPE_PLAYING_ITER_RES_FIELD_NUMBER = 505; private ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res typePlayingIterRes_; /** * <code>optional .session.Type.Playing.Iter.Res type_playing_iter_res = 505;</code> */ public boolean hasTypePlayingIterRes() { return typePlayingIterRes_ != null; } /** * <code>optional .session.Type.Playing.Iter.Res type_playing_iter_res = 505;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res getTypePlayingIterRes() { return typePlayingIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res.getDefaultInstance() : typePlayingIterRes_; } /** * <code>optional .session.Type.Playing.Iter.Res type_playing_iter_res = 505;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.ResOrBuilder getTypePlayingIterResOrBuilder() { return getTypePlayingIterRes(); } public static final int RELATIONTYPE_ROLES_ITER_RES_FIELD_NUMBER = 701; private ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res relationTypeRolesIterRes_; /** * <pre> * RelationType iterator responses * </pre> * * <code>optional .session.RelationType.Roles.Iter.Res relationType_roles_iter_res = 701;</code> */ public boolean hasRelationTypeRolesIterRes() { return relationTypeRolesIterRes_ != null; } /** * <pre> * RelationType iterator responses * </pre> * * <code>optional .session.RelationType.Roles.Iter.Res relationType_roles_iter_res = 701;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res getRelationTypeRolesIterRes() { return relationTypeRolesIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res.getDefaultInstance() : relationTypeRolesIterRes_; } /** * <pre> * RelationType iterator responses * </pre> * * <code>optional .session.RelationType.Roles.Iter.Res relationType_roles_iter_res = 701;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.ResOrBuilder getRelationTypeRolesIterResOrBuilder() { return getRelationTypeRolesIterRes(); } public static final int THING_KEYS_ITER_RES_FIELD_NUMBER = 902; private ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res thingKeysIterRes_; /** * <pre> * Thing iterator responses * </pre> * * <code>optional .session.Thing.Keys.Iter.Res thing_keys_iter_res = 902;</code> */ public boolean hasThingKeysIterRes() { return thingKeysIterRes_ != null; } /** * <pre> * Thing iterator responses * </pre> * * <code>optional .session.Thing.Keys.Iter.Res thing_keys_iter_res = 902;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res getThingKeysIterRes() { return thingKeysIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res.getDefaultInstance() : thingKeysIterRes_; } /** * <pre> * Thing iterator responses * </pre> * * <code>optional .session.Thing.Keys.Iter.Res thing_keys_iter_res = 902;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.ResOrBuilder getThingKeysIterResOrBuilder() { return getThingKeysIterRes(); } public static final int THING_ATTRIBUTES_ITER_RES_FIELD_NUMBER = 903; private ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res thingAttributesIterRes_; /** * <code>optional .session.Thing.Attributes.Iter.Res thing_attributes_iter_res = 903;</code> */ public boolean hasThingAttributesIterRes() { return thingAttributesIterRes_ != null; } /** * <code>optional .session.Thing.Attributes.Iter.Res thing_attributes_iter_res = 903;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res getThingAttributesIterRes() { return thingAttributesIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res.getDefaultInstance() : thingAttributesIterRes_; } /** * <code>optional .session.Thing.Attributes.Iter.Res thing_attributes_iter_res = 903;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.ResOrBuilder getThingAttributesIterResOrBuilder() { return getThingAttributesIterRes(); } public static final int THING_RELATIONS_ITER_RES_FIELD_NUMBER = 904; private ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res thingRelationsIterRes_; /** * <code>optional .session.Thing.Relations.Iter.Res thing_relations_iter_res = 904;</code> */ public boolean hasThingRelationsIterRes() { return thingRelationsIterRes_ != null; } /** * <code>optional .session.Thing.Relations.Iter.Res thing_relations_iter_res = 904;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res getThingRelationsIterRes() { return thingRelationsIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.getDefaultInstance() : thingRelationsIterRes_; } /** * <code>optional .session.Thing.Relations.Iter.Res thing_relations_iter_res = 904;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.ResOrBuilder getThingRelationsIterResOrBuilder() { return getThingRelationsIterRes(); } public static final int THING_ROLES_ITER_RES_FIELD_NUMBER = 905; private ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res thingRolesIterRes_; /** * <code>optional .session.Thing.Roles.Iter.Res thing_roles_iter_res = 905;</code> */ public boolean hasThingRolesIterRes() { return thingRolesIterRes_ != null; } /** * <code>optional .session.Thing.Roles.Iter.Res thing_roles_iter_res = 905;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res getThingRolesIterRes() { return thingRolesIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res.getDefaultInstance() : thingRolesIterRes_; } /** * <code>optional .session.Thing.Roles.Iter.Res thing_roles_iter_res = 905;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.ResOrBuilder getThingRolesIterResOrBuilder() { return getThingRolesIterRes(); } public static final int RELATION_ROLEPLAYERSMAP_ITER_RES_FIELD_NUMBER = 1000; private ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res relationRolePlayersMapIterRes_; /** * <pre> * Relation iterator responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter.Res relation_rolePlayersMap_iter_res = 1000;</code> */ public boolean hasRelationRolePlayersMapIterRes() { return relationRolePlayersMapIterRes_ != null; } /** * <pre> * Relation iterator responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter.Res relation_rolePlayersMap_iter_res = 1000;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res getRelationRolePlayersMapIterRes() { return relationRolePlayersMapIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.getDefaultInstance() : relationRolePlayersMapIterRes_; } /** * <pre> * Relation iterator responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter.Res relation_rolePlayersMap_iter_res = 1000;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.ResOrBuilder getRelationRolePlayersMapIterResOrBuilder() { return getRelationRolePlayersMapIterRes(); } public static final int RELATION_ROLEPLAYERS_ITER_RES_FIELD_NUMBER = 1001; private ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res relationRolePlayersIterRes_; /** * <code>optional .session.Relation.RolePlayers.Iter.Res relation_rolePlayers_iter_res = 1001;</code> */ public boolean hasRelationRolePlayersIterRes() { return relationRolePlayersIterRes_ != null; } /** * <code>optional .session.Relation.RolePlayers.Iter.Res relation_rolePlayers_iter_res = 1001;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res getRelationRolePlayersIterRes() { return relationRolePlayersIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.getDefaultInstance() : relationRolePlayersIterRes_; } /** * <code>optional .session.Relation.RolePlayers.Iter.Res relation_rolePlayers_iter_res = 1001;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.ResOrBuilder getRelationRolePlayersIterResOrBuilder() { return getRelationRolePlayersIterRes(); } public static final int ATTRIBUTE_OWNERS_ITER_RES_FIELD_NUMBER = 1101; private ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res attributeOwnersIterRes_; /** * <pre> * Attribute iterator responses * </pre> * * <code>optional .session.Attribute.Owners.Iter.Res attribute_owners_iter_res = 1101;</code> */ public boolean hasAttributeOwnersIterRes() { return attributeOwnersIterRes_ != null; } /** * <pre> * Attribute iterator responses * </pre> * * <code>optional .session.Attribute.Owners.Iter.Res attribute_owners_iter_res = 1101;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res getAttributeOwnersIterRes() { return attributeOwnersIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.getDefaultInstance() : attributeOwnersIterRes_; } /** * <pre> * Attribute iterator responses * </pre> * * <code>optional .session.Attribute.Owners.Iter.Res attribute_owners_iter_res = 1101;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.ResOrBuilder getAttributeOwnersIterResOrBuilder() { return getAttributeOwnersIterRes(); } 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 (schemaConceptSupsIterRes_ != null) { output.writeMessage(205, getSchemaConceptSupsIterRes()); } if (schemaConceptSubsIterRes_ != null) { output.writeMessage(206, getSchemaConceptSubsIterRes()); } if (roleRelationsIterRes_ != null) { output.writeMessage(401, getRoleRelationsIterRes()); } if (rolePlayersIterRes_ != null) { output.writeMessage(402, getRolePlayersIterRes()); } if (typeInstancesIterRes_ != null) { output.writeMessage(502, getTypeInstancesIterRes()); } if (typeKeysIterRes_ != null) { output.writeMessage(503, getTypeKeysIterRes()); } if (typeAttributesIterRes_ != null) { output.writeMessage(504, getTypeAttributesIterRes()); } if (typePlayingIterRes_ != null) { output.writeMessage(505, getTypePlayingIterRes()); } if (relationTypeRolesIterRes_ != null) { output.writeMessage(701, getRelationTypeRolesIterRes()); } if (thingKeysIterRes_ != null) { output.writeMessage(902, getThingKeysIterRes()); } if (thingAttributesIterRes_ != null) { output.writeMessage(903, getThingAttributesIterRes()); } if (thingRelationsIterRes_ != null) { output.writeMessage(904, getThingRelationsIterRes()); } if (thingRolesIterRes_ != null) { output.writeMessage(905, getThingRolesIterRes()); } if (relationRolePlayersMapIterRes_ != null) { output.writeMessage(1000, getRelationRolePlayersMapIterRes()); } if (relationRolePlayersIterRes_ != null) { output.writeMessage(1001, getRelationRolePlayersIterRes()); } if (attributeOwnersIterRes_ != null) { output.writeMessage(1101, getAttributeOwnersIterRes()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (schemaConceptSupsIterRes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(205, getSchemaConceptSupsIterRes()); } if (schemaConceptSubsIterRes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(206, getSchemaConceptSubsIterRes()); } if (roleRelationsIterRes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(401, getRoleRelationsIterRes()); } if (rolePlayersIterRes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(402, getRolePlayersIterRes()); } if (typeInstancesIterRes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(502, getTypeInstancesIterRes()); } if (typeKeysIterRes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(503, getTypeKeysIterRes()); } if (typeAttributesIterRes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(504, getTypeAttributesIterRes()); } if (typePlayingIterRes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(505, getTypePlayingIterRes()); } if (relationTypeRolesIterRes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(701, getRelationTypeRolesIterRes()); } if (thingKeysIterRes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(902, getThingKeysIterRes()); } if (thingAttributesIterRes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(903, getThingAttributesIterRes()); } if (thingRelationsIterRes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(904, getThingRelationsIterRes()); } if (thingRolesIterRes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(905, getThingRolesIterRes()); } if (relationRolePlayersMapIterRes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1000, getRelationRolePlayersMapIterRes()); } if (relationRolePlayersIterRes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1001, getRelationRolePlayersIterRes()); } if (attributeOwnersIterRes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1101, getAttributeOwnersIterRes()); } 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.ConceptProto.Method.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) obj; boolean result = true; result = result && (hasSchemaConceptSupsIterRes() == other.hasSchemaConceptSupsIterRes()); if (hasSchemaConceptSupsIterRes()) { result = result && getSchemaConceptSupsIterRes() .equals(other.getSchemaConceptSupsIterRes()); } result = result && (hasSchemaConceptSubsIterRes() == other.hasSchemaConceptSubsIterRes()); if (hasSchemaConceptSubsIterRes()) { result = result && getSchemaConceptSubsIterRes() .equals(other.getSchemaConceptSubsIterRes()); } result = result && (hasRoleRelationsIterRes() == other.hasRoleRelationsIterRes()); if (hasRoleRelationsIterRes()) { result = result && getRoleRelationsIterRes() .equals(other.getRoleRelationsIterRes()); } result = result && (hasRolePlayersIterRes() == other.hasRolePlayersIterRes()); if (hasRolePlayersIterRes()) { result = result && getRolePlayersIterRes() .equals(other.getRolePlayersIterRes()); } result = result && (hasTypeInstancesIterRes() == other.hasTypeInstancesIterRes()); if (hasTypeInstancesIterRes()) { result = result && getTypeInstancesIterRes() .equals(other.getTypeInstancesIterRes()); } result = result && (hasTypeKeysIterRes() == other.hasTypeKeysIterRes()); if (hasTypeKeysIterRes()) { result = result && getTypeKeysIterRes() .equals(other.getTypeKeysIterRes()); } result = result && (hasTypeAttributesIterRes() == other.hasTypeAttributesIterRes()); if (hasTypeAttributesIterRes()) { result = result && getTypeAttributesIterRes() .equals(other.getTypeAttributesIterRes()); } result = result && (hasTypePlayingIterRes() == other.hasTypePlayingIterRes()); if (hasTypePlayingIterRes()) { result = result && getTypePlayingIterRes() .equals(other.getTypePlayingIterRes()); } result = result && (hasRelationTypeRolesIterRes() == other.hasRelationTypeRolesIterRes()); if (hasRelationTypeRolesIterRes()) { result = result && getRelationTypeRolesIterRes() .equals(other.getRelationTypeRolesIterRes()); } result = result && (hasThingKeysIterRes() == other.hasThingKeysIterRes()); if (hasThingKeysIterRes()) { result = result && getThingKeysIterRes() .equals(other.getThingKeysIterRes()); } result = result && (hasThingAttributesIterRes() == other.hasThingAttributesIterRes()); if (hasThingAttributesIterRes()) { result = result && getThingAttributesIterRes() .equals(other.getThingAttributesIterRes()); } result = result && (hasThingRelationsIterRes() == other.hasThingRelationsIterRes()); if (hasThingRelationsIterRes()) { result = result && getThingRelationsIterRes() .equals(other.getThingRelationsIterRes()); } result = result && (hasThingRolesIterRes() == other.hasThingRolesIterRes()); if (hasThingRolesIterRes()) { result = result && getThingRolesIterRes() .equals(other.getThingRolesIterRes()); } result = result && (hasRelationRolePlayersMapIterRes() == other.hasRelationRolePlayersMapIterRes()); if (hasRelationRolePlayersMapIterRes()) { result = result && getRelationRolePlayersMapIterRes() .equals(other.getRelationRolePlayersMapIterRes()); } result = result && (hasRelationRolePlayersIterRes() == other.hasRelationRolePlayersIterRes()); if (hasRelationRolePlayersIterRes()) { result = result && getRelationRolePlayersIterRes() .equals(other.getRelationRolePlayersIterRes()); } result = result && (hasAttributeOwnersIterRes() == other.hasAttributeOwnersIterRes()); if (hasAttributeOwnersIterRes()) { result = result && getAttributeOwnersIterRes() .equals(other.getAttributeOwnersIterRes()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSchemaConceptSupsIterRes()) { hash = (37 * hash) + SCHEMACONCEPT_SUPS_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getSchemaConceptSupsIterRes().hashCode(); } if (hasSchemaConceptSubsIterRes()) { hash = (37 * hash) + SCHEMACONCEPT_SUBS_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getSchemaConceptSubsIterRes().hashCode(); } if (hasRoleRelationsIterRes()) { hash = (37 * hash) + ROLE_RELATIONS_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getRoleRelationsIterRes().hashCode(); } if (hasRolePlayersIterRes()) { hash = (37 * hash) + ROLE_PLAYERS_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getRolePlayersIterRes().hashCode(); } if (hasTypeInstancesIterRes()) { hash = (37 * hash) + TYPE_INSTANCES_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getTypeInstancesIterRes().hashCode(); } if (hasTypeKeysIterRes()) { hash = (37 * hash) + TYPE_KEYS_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getTypeKeysIterRes().hashCode(); } if (hasTypeAttributesIterRes()) { hash = (37 * hash) + TYPE_ATTRIBUTES_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getTypeAttributesIterRes().hashCode(); } if (hasTypePlayingIterRes()) { hash = (37 * hash) + TYPE_PLAYING_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getTypePlayingIterRes().hashCode(); } if (hasRelationTypeRolesIterRes()) { hash = (37 * hash) + RELATIONTYPE_ROLES_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getRelationTypeRolesIterRes().hashCode(); } if (hasThingKeysIterRes()) { hash = (37 * hash) + THING_KEYS_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getThingKeysIterRes().hashCode(); } if (hasThingAttributesIterRes()) { hash = (37 * hash) + THING_ATTRIBUTES_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getThingAttributesIterRes().hashCode(); } if (hasThingRelationsIterRes()) { hash = (37 * hash) + THING_RELATIONS_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getThingRelationsIterRes().hashCode(); } if (hasThingRolesIterRes()) { hash = (37 * hash) + THING_ROLES_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getThingRolesIterRes().hashCode(); } if (hasRelationRolePlayersMapIterRes()) { hash = (37 * hash) + RELATION_ROLEPLAYERSMAP_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getRelationRolePlayersMapIterRes().hashCode(); } if (hasRelationRolePlayersIterRes()) { hash = (37 * hash) + RELATION_ROLEPLAYERS_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getRelationRolePlayersIterRes().hashCode(); } if (hasAttributeOwnersIterRes()) { hash = (37 * hash) + ATTRIBUTE_OWNERS_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getAttributeOwnersIterRes().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.Method.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.Method.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.ConceptProto.Method.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.ConceptProto.Method.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.ConceptProto.Method.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.ConceptProto.Method.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.ConceptProto.Method.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.ConceptProto.Method.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.Method.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Method.Iter.Res) ai.grakn.rpc.proto.ConceptProto.Method.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Method.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 (schemaConceptSupsIterResBuilder_ == null) { schemaConceptSupsIterRes_ = null; } else { schemaConceptSupsIterRes_ = null; schemaConceptSupsIterResBuilder_ = null; } if (schemaConceptSubsIterResBuilder_ == null) { schemaConceptSubsIterRes_ = null; } else { schemaConceptSubsIterRes_ = null; schemaConceptSubsIterResBuilder_ = null; } if (roleRelationsIterResBuilder_ == null) { roleRelationsIterRes_ = null; } else { roleRelationsIterRes_ = null; roleRelationsIterResBuilder_ = null; } if (rolePlayersIterResBuilder_ == null) { rolePlayersIterRes_ = null; } else { rolePlayersIterRes_ = null; rolePlayersIterResBuilder_ = null; } if (typeInstancesIterResBuilder_ == null) { typeInstancesIterRes_ = null; } else { typeInstancesIterRes_ = null; typeInstancesIterResBuilder_ = null; } if (typeKeysIterResBuilder_ == null) { typeKeysIterRes_ = null; } else { typeKeysIterRes_ = null; typeKeysIterResBuilder_ = null; } if (typeAttributesIterResBuilder_ == null) { typeAttributesIterRes_ = null; } else { typeAttributesIterRes_ = null; typeAttributesIterResBuilder_ = null; } if (typePlayingIterResBuilder_ == null) { typePlayingIterRes_ = null; } else { typePlayingIterRes_ = null; typePlayingIterResBuilder_ = null; } if (relationTypeRolesIterResBuilder_ == null) { relationTypeRolesIterRes_ = null; } else { relationTypeRolesIterRes_ = null; relationTypeRolesIterResBuilder_ = null; } if (thingKeysIterResBuilder_ == null) { thingKeysIterRes_ = null; } else { thingKeysIterRes_ = null; thingKeysIterResBuilder_ = null; } if (thingAttributesIterResBuilder_ == null) { thingAttributesIterRes_ = null; } else { thingAttributesIterRes_ = null; thingAttributesIterResBuilder_ = null; } if (thingRelationsIterResBuilder_ == null) { thingRelationsIterRes_ = null; } else { thingRelationsIterRes_ = null; thingRelationsIterResBuilder_ = null; } if (thingRolesIterResBuilder_ == null) { thingRolesIterRes_ = null; } else { thingRolesIterRes_ = null; thingRolesIterResBuilder_ = null; } if (relationRolePlayersMapIterResBuilder_ == null) { relationRolePlayersMapIterRes_ = null; } else { relationRolePlayersMapIterRes_ = null; relationRolePlayersMapIterResBuilder_ = null; } if (relationRolePlayersIterResBuilder_ == null) { relationRolePlayersIterRes_ = null; } else { relationRolePlayersIterRes_ = null; relationRolePlayersIterResBuilder_ = null; } if (attributeOwnersIterResBuilder_ == null) { attributeOwnersIterRes_ = null; } else { attributeOwnersIterRes_ = null; attributeOwnersIterResBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res(this); if (schemaConceptSupsIterResBuilder_ == null) { result.schemaConceptSupsIterRes_ = schemaConceptSupsIterRes_; } else { result.schemaConceptSupsIterRes_ = schemaConceptSupsIterResBuilder_.build(); } if (schemaConceptSubsIterResBuilder_ == null) { result.schemaConceptSubsIterRes_ = schemaConceptSubsIterRes_; } else { result.schemaConceptSubsIterRes_ = schemaConceptSubsIterResBuilder_.build(); } if (roleRelationsIterResBuilder_ == null) { result.roleRelationsIterRes_ = roleRelationsIterRes_; } else { result.roleRelationsIterRes_ = roleRelationsIterResBuilder_.build(); } if (rolePlayersIterResBuilder_ == null) { result.rolePlayersIterRes_ = rolePlayersIterRes_; } else { result.rolePlayersIterRes_ = rolePlayersIterResBuilder_.build(); } if (typeInstancesIterResBuilder_ == null) { result.typeInstancesIterRes_ = typeInstancesIterRes_; } else { result.typeInstancesIterRes_ = typeInstancesIterResBuilder_.build(); } if (typeKeysIterResBuilder_ == null) { result.typeKeysIterRes_ = typeKeysIterRes_; } else { result.typeKeysIterRes_ = typeKeysIterResBuilder_.build(); } if (typeAttributesIterResBuilder_ == null) { result.typeAttributesIterRes_ = typeAttributesIterRes_; } else { result.typeAttributesIterRes_ = typeAttributesIterResBuilder_.build(); } if (typePlayingIterResBuilder_ == null) { result.typePlayingIterRes_ = typePlayingIterRes_; } else { result.typePlayingIterRes_ = typePlayingIterResBuilder_.build(); } if (relationTypeRolesIterResBuilder_ == null) { result.relationTypeRolesIterRes_ = relationTypeRolesIterRes_; } else { result.relationTypeRolesIterRes_ = relationTypeRolesIterResBuilder_.build(); } if (thingKeysIterResBuilder_ == null) { result.thingKeysIterRes_ = thingKeysIterRes_; } else { result.thingKeysIterRes_ = thingKeysIterResBuilder_.build(); } if (thingAttributesIterResBuilder_ == null) { result.thingAttributesIterRes_ = thingAttributesIterRes_; } else { result.thingAttributesIterRes_ = thingAttributesIterResBuilder_.build(); } if (thingRelationsIterResBuilder_ == null) { result.thingRelationsIterRes_ = thingRelationsIterRes_; } else { result.thingRelationsIterRes_ = thingRelationsIterResBuilder_.build(); } if (thingRolesIterResBuilder_ == null) { result.thingRolesIterRes_ = thingRolesIterRes_; } else { result.thingRolesIterRes_ = thingRolesIterResBuilder_.build(); } if (relationRolePlayersMapIterResBuilder_ == null) { result.relationRolePlayersMapIterRes_ = relationRolePlayersMapIterRes_; } else { result.relationRolePlayersMapIterRes_ = relationRolePlayersMapIterResBuilder_.build(); } if (relationRolePlayersIterResBuilder_ == null) { result.relationRolePlayersIterRes_ = relationRolePlayersIterRes_; } else { result.relationRolePlayersIterRes_ = relationRolePlayersIterResBuilder_.build(); } if (attributeOwnersIterResBuilder_ == null) { result.attributeOwnersIterRes_ = attributeOwnersIterRes_; } else { result.attributeOwnersIterRes_ = attributeOwnersIterResBuilder_.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.ConceptProto.Method.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.getDefaultInstance()) return this; if (other.hasSchemaConceptSupsIterRes()) { mergeSchemaConceptSupsIterRes(other.getSchemaConceptSupsIterRes()); } if (other.hasSchemaConceptSubsIterRes()) { mergeSchemaConceptSubsIterRes(other.getSchemaConceptSubsIterRes()); } if (other.hasRoleRelationsIterRes()) { mergeRoleRelationsIterRes(other.getRoleRelationsIterRes()); } if (other.hasRolePlayersIterRes()) { mergeRolePlayersIterRes(other.getRolePlayersIterRes()); } if (other.hasTypeInstancesIterRes()) { mergeTypeInstancesIterRes(other.getTypeInstancesIterRes()); } if (other.hasTypeKeysIterRes()) { mergeTypeKeysIterRes(other.getTypeKeysIterRes()); } if (other.hasTypeAttributesIterRes()) { mergeTypeAttributesIterRes(other.getTypeAttributesIterRes()); } if (other.hasTypePlayingIterRes()) { mergeTypePlayingIterRes(other.getTypePlayingIterRes()); } if (other.hasRelationTypeRolesIterRes()) { mergeRelationTypeRolesIterRes(other.getRelationTypeRolesIterRes()); } if (other.hasThingKeysIterRes()) { mergeThingKeysIterRes(other.getThingKeysIterRes()); } if (other.hasThingAttributesIterRes()) { mergeThingAttributesIterRes(other.getThingAttributesIterRes()); } if (other.hasThingRelationsIterRes()) { mergeThingRelationsIterRes(other.getThingRelationsIterRes()); } if (other.hasThingRolesIterRes()) { mergeThingRolesIterRes(other.getThingRolesIterRes()); } if (other.hasRelationRolePlayersMapIterRes()) { mergeRelationRolePlayersMapIterRes(other.getRelationRolePlayersMapIterRes()); } if (other.hasRelationRolePlayersIterRes()) { mergeRelationRolePlayersIterRes(other.getRelationRolePlayersIterRes()); } if (other.hasAttributeOwnersIterRes()) { mergeAttributeOwnersIterRes(other.getAttributeOwnersIterRes()); } 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.ConceptProto.Method.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res schemaConceptSupsIterRes_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.ResOrBuilder> schemaConceptSupsIterResBuilder_; /** * <pre> * SchemaConcept iterator responses * </pre> * * <code>optional .session.SchemaConcept.Sups.Iter.Res schemaConcept_sups_iter_res = 205;</code> */ public boolean hasSchemaConceptSupsIterRes() { return schemaConceptSupsIterResBuilder_ != null || schemaConceptSupsIterRes_ != null; } /** * <pre> * SchemaConcept iterator responses * </pre> * * <code>optional .session.SchemaConcept.Sups.Iter.Res schemaConcept_sups_iter_res = 205;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res getSchemaConceptSupsIterRes() { if (schemaConceptSupsIterResBuilder_ == null) { return schemaConceptSupsIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.getDefaultInstance() : schemaConceptSupsIterRes_; } else { return schemaConceptSupsIterResBuilder_.getMessage(); } } /** * <pre> * SchemaConcept iterator responses * </pre> * * <code>optional .session.SchemaConcept.Sups.Iter.Res schemaConcept_sups_iter_res = 205;</code> */ public Builder setSchemaConceptSupsIterRes(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res value) { if (schemaConceptSupsIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schemaConceptSupsIterRes_ = value; onChanged(); } else { schemaConceptSupsIterResBuilder_.setMessage(value); } return this; } /** * <pre> * SchemaConcept iterator responses * </pre> * * <code>optional .session.SchemaConcept.Sups.Iter.Res schemaConcept_sups_iter_res = 205;</code> */ public Builder setSchemaConceptSupsIterRes( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.Builder builderForValue) { if (schemaConceptSupsIterResBuilder_ == null) { schemaConceptSupsIterRes_ = builderForValue.build(); onChanged(); } else { schemaConceptSupsIterResBuilder_.setMessage(builderForValue.build()); } return this; } /** * <pre> * SchemaConcept iterator responses * </pre> * * <code>optional .session.SchemaConcept.Sups.Iter.Res schemaConcept_sups_iter_res = 205;</code> */ public Builder mergeSchemaConceptSupsIterRes(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res value) { if (schemaConceptSupsIterResBuilder_ == null) { if (schemaConceptSupsIterRes_ != null) { schemaConceptSupsIterRes_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.newBuilder(schemaConceptSupsIterRes_).mergeFrom(value).buildPartial(); } else { schemaConceptSupsIterRes_ = value; } onChanged(); } else { schemaConceptSupsIterResBuilder_.mergeFrom(value); } return this; } /** * <pre> * SchemaConcept iterator responses * </pre> * * <code>optional .session.SchemaConcept.Sups.Iter.Res schemaConcept_sups_iter_res = 205;</code> */ public Builder clearSchemaConceptSupsIterRes() { if (schemaConceptSupsIterResBuilder_ == null) { schemaConceptSupsIterRes_ = null; onChanged(); } else { schemaConceptSupsIterRes_ = null; schemaConceptSupsIterResBuilder_ = null; } return this; } /** * <pre> * SchemaConcept iterator responses * </pre> * * <code>optional .session.SchemaConcept.Sups.Iter.Res schemaConcept_sups_iter_res = 205;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.Builder getSchemaConceptSupsIterResBuilder() { onChanged(); return getSchemaConceptSupsIterResFieldBuilder().getBuilder(); } /** * <pre> * SchemaConcept iterator responses * </pre> * * <code>optional .session.SchemaConcept.Sups.Iter.Res schemaConcept_sups_iter_res = 205;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.ResOrBuilder getSchemaConceptSupsIterResOrBuilder() { if (schemaConceptSupsIterResBuilder_ != null) { return schemaConceptSupsIterResBuilder_.getMessageOrBuilder(); } else { return schemaConceptSupsIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.getDefaultInstance() : schemaConceptSupsIterRes_; } } /** * <pre> * SchemaConcept iterator responses * </pre> * * <code>optional .session.SchemaConcept.Sups.Iter.Res schemaConcept_sups_iter_res = 205;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.ResOrBuilder> getSchemaConceptSupsIterResFieldBuilder() { if (schemaConceptSupsIterResBuilder_ == null) { schemaConceptSupsIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.ResOrBuilder>( getSchemaConceptSupsIterRes(), getParentForChildren(), isClean()); schemaConceptSupsIterRes_ = null; } return schemaConceptSupsIterResBuilder_; } private ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res schemaConceptSubsIterRes_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.ResOrBuilder> schemaConceptSubsIterResBuilder_; /** * <code>optional .session.SchemaConcept.Subs.Iter.Res schemaConcept_subs_iter_res = 206;</code> */ public boolean hasSchemaConceptSubsIterRes() { return schemaConceptSubsIterResBuilder_ != null || schemaConceptSubsIterRes_ != null; } /** * <code>optional .session.SchemaConcept.Subs.Iter.Res schemaConcept_subs_iter_res = 206;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res getSchemaConceptSubsIterRes() { if (schemaConceptSubsIterResBuilder_ == null) { return schemaConceptSubsIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.getDefaultInstance() : schemaConceptSubsIterRes_; } else { return schemaConceptSubsIterResBuilder_.getMessage(); } } /** * <code>optional .session.SchemaConcept.Subs.Iter.Res schemaConcept_subs_iter_res = 206;</code> */ public Builder setSchemaConceptSubsIterRes(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res value) { if (schemaConceptSubsIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schemaConceptSubsIterRes_ = value; onChanged(); } else { schemaConceptSubsIterResBuilder_.setMessage(value); } return this; } /** * <code>optional .session.SchemaConcept.Subs.Iter.Res schemaConcept_subs_iter_res = 206;</code> */ public Builder setSchemaConceptSubsIterRes( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.Builder builderForValue) { if (schemaConceptSubsIterResBuilder_ == null) { schemaConceptSubsIterRes_ = builderForValue.build(); onChanged(); } else { schemaConceptSubsIterResBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.SchemaConcept.Subs.Iter.Res schemaConcept_subs_iter_res = 206;</code> */ public Builder mergeSchemaConceptSubsIterRes(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res value) { if (schemaConceptSubsIterResBuilder_ == null) { if (schemaConceptSubsIterRes_ != null) { schemaConceptSubsIterRes_ = ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.newBuilder(schemaConceptSubsIterRes_).mergeFrom(value).buildPartial(); } else { schemaConceptSubsIterRes_ = value; } onChanged(); } else { schemaConceptSubsIterResBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.SchemaConcept.Subs.Iter.Res schemaConcept_subs_iter_res = 206;</code> */ public Builder clearSchemaConceptSubsIterRes() { if (schemaConceptSubsIterResBuilder_ == null) { schemaConceptSubsIterRes_ = null; onChanged(); } else { schemaConceptSubsIterRes_ = null; schemaConceptSubsIterResBuilder_ = null; } return this; } /** * <code>optional .session.SchemaConcept.Subs.Iter.Res schemaConcept_subs_iter_res = 206;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.Builder getSchemaConceptSubsIterResBuilder() { onChanged(); return getSchemaConceptSubsIterResFieldBuilder().getBuilder(); } /** * <code>optional .session.SchemaConcept.Subs.Iter.Res schemaConcept_subs_iter_res = 206;</code> */ public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.ResOrBuilder getSchemaConceptSubsIterResOrBuilder() { if (schemaConceptSubsIterResBuilder_ != null) { return schemaConceptSubsIterResBuilder_.getMessageOrBuilder(); } else { return schemaConceptSubsIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.getDefaultInstance() : schemaConceptSubsIterRes_; } } /** * <code>optional .session.SchemaConcept.Subs.Iter.Res schemaConcept_subs_iter_res = 206;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.ResOrBuilder> getSchemaConceptSubsIterResFieldBuilder() { if (schemaConceptSubsIterResBuilder_ == null) { schemaConceptSubsIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.ResOrBuilder>( getSchemaConceptSubsIterRes(), getParentForChildren(), isClean()); schemaConceptSubsIterRes_ = null; } return schemaConceptSubsIterResBuilder_; } private ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res roleRelationsIterRes_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.ResOrBuilder> roleRelationsIterResBuilder_; /** * <pre> * Role iterator responses * </pre> * * <code>optional .session.Role.Relations.Iter.Res role_relations_iter_res = 401;</code> */ public boolean hasRoleRelationsIterRes() { return roleRelationsIterResBuilder_ != null || roleRelationsIterRes_ != null; } /** * <pre> * Role iterator responses * </pre> * * <code>optional .session.Role.Relations.Iter.Res role_relations_iter_res = 401;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res getRoleRelationsIterRes() { if (roleRelationsIterResBuilder_ == null) { return roleRelationsIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res.getDefaultInstance() : roleRelationsIterRes_; } else { return roleRelationsIterResBuilder_.getMessage(); } } /** * <pre> * Role iterator responses * </pre> * * <code>optional .session.Role.Relations.Iter.Res role_relations_iter_res = 401;</code> */ public Builder setRoleRelationsIterRes(ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res value) { if (roleRelationsIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } roleRelationsIterRes_ = value; onChanged(); } else { roleRelationsIterResBuilder_.setMessage(value); } return this; } /** * <pre> * Role iterator responses * </pre> * * <code>optional .session.Role.Relations.Iter.Res role_relations_iter_res = 401;</code> */ public Builder setRoleRelationsIterRes( ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res.Builder builderForValue) { if (roleRelationsIterResBuilder_ == null) { roleRelationsIterRes_ = builderForValue.build(); onChanged(); } else { roleRelationsIterResBuilder_.setMessage(builderForValue.build()); } return this; } /** * <pre> * Role iterator responses * </pre> * * <code>optional .session.Role.Relations.Iter.Res role_relations_iter_res = 401;</code> */ public Builder mergeRoleRelationsIterRes(ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res value) { if (roleRelationsIterResBuilder_ == null) { if (roleRelationsIterRes_ != null) { roleRelationsIterRes_ = ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res.newBuilder(roleRelationsIterRes_).mergeFrom(value).buildPartial(); } else { roleRelationsIterRes_ = value; } onChanged(); } else { roleRelationsIterResBuilder_.mergeFrom(value); } return this; } /** * <pre> * Role iterator responses * </pre> * * <code>optional .session.Role.Relations.Iter.Res role_relations_iter_res = 401;</code> */ public Builder clearRoleRelationsIterRes() { if (roleRelationsIterResBuilder_ == null) { roleRelationsIterRes_ = null; onChanged(); } else { roleRelationsIterRes_ = null; roleRelationsIterResBuilder_ = null; } return this; } /** * <pre> * Role iterator responses * </pre> * * <code>optional .session.Role.Relations.Iter.Res role_relations_iter_res = 401;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res.Builder getRoleRelationsIterResBuilder() { onChanged(); return getRoleRelationsIterResFieldBuilder().getBuilder(); } /** * <pre> * Role iterator responses * </pre> * * <code>optional .session.Role.Relations.Iter.Res role_relations_iter_res = 401;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.ResOrBuilder getRoleRelationsIterResOrBuilder() { if (roleRelationsIterResBuilder_ != null) { return roleRelationsIterResBuilder_.getMessageOrBuilder(); } else { return roleRelationsIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res.getDefaultInstance() : roleRelationsIterRes_; } } /** * <pre> * Role iterator responses * </pre> * * <code>optional .session.Role.Relations.Iter.Res role_relations_iter_res = 401;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.ResOrBuilder> getRoleRelationsIterResFieldBuilder() { if (roleRelationsIterResBuilder_ == null) { roleRelationsIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.ResOrBuilder>( getRoleRelationsIterRes(), getParentForChildren(), isClean()); roleRelationsIterRes_ = null; } return roleRelationsIterResBuilder_; } private ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res rolePlayersIterRes_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.ResOrBuilder> rolePlayersIterResBuilder_; /** * <code>optional .session.Role.Players.Iter.Res role_players_iter_res = 402;</code> */ public boolean hasRolePlayersIterRes() { return rolePlayersIterResBuilder_ != null || rolePlayersIterRes_ != null; } /** * <code>optional .session.Role.Players.Iter.Res role_players_iter_res = 402;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res getRolePlayersIterRes() { if (rolePlayersIterResBuilder_ == null) { return rolePlayersIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.getDefaultInstance() : rolePlayersIterRes_; } else { return rolePlayersIterResBuilder_.getMessage(); } } /** * <code>optional .session.Role.Players.Iter.Res role_players_iter_res = 402;</code> */ public Builder setRolePlayersIterRes(ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res value) { if (rolePlayersIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rolePlayersIterRes_ = value; onChanged(); } else { rolePlayersIterResBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Role.Players.Iter.Res role_players_iter_res = 402;</code> */ public Builder setRolePlayersIterRes( ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.Builder builderForValue) { if (rolePlayersIterResBuilder_ == null) { rolePlayersIterRes_ = builderForValue.build(); onChanged(); } else { rolePlayersIterResBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Role.Players.Iter.Res role_players_iter_res = 402;</code> */ public Builder mergeRolePlayersIterRes(ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res value) { if (rolePlayersIterResBuilder_ == null) { if (rolePlayersIterRes_ != null) { rolePlayersIterRes_ = ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.newBuilder(rolePlayersIterRes_).mergeFrom(value).buildPartial(); } else { rolePlayersIterRes_ = value; } onChanged(); } else { rolePlayersIterResBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Role.Players.Iter.Res role_players_iter_res = 402;</code> */ public Builder clearRolePlayersIterRes() { if (rolePlayersIterResBuilder_ == null) { rolePlayersIterRes_ = null; onChanged(); } else { rolePlayersIterRes_ = null; rolePlayersIterResBuilder_ = null; } return this; } /** * <code>optional .session.Role.Players.Iter.Res role_players_iter_res = 402;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.Builder getRolePlayersIterResBuilder() { onChanged(); return getRolePlayersIterResFieldBuilder().getBuilder(); } /** * <code>optional .session.Role.Players.Iter.Res role_players_iter_res = 402;</code> */ public ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.ResOrBuilder getRolePlayersIterResOrBuilder() { if (rolePlayersIterResBuilder_ != null) { return rolePlayersIterResBuilder_.getMessageOrBuilder(); } else { return rolePlayersIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.getDefaultInstance() : rolePlayersIterRes_; } } /** * <code>optional .session.Role.Players.Iter.Res role_players_iter_res = 402;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.ResOrBuilder> getRolePlayersIterResFieldBuilder() { if (rolePlayersIterResBuilder_ == null) { rolePlayersIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.ResOrBuilder>( getRolePlayersIterRes(), getParentForChildren(), isClean()); rolePlayersIterRes_ = null; } return rolePlayersIterResBuilder_; } private ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res typeInstancesIterRes_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.ResOrBuilder> typeInstancesIterResBuilder_; /** * <pre> * Type iterator responses * </pre> * * <code>optional .session.Type.Instances.Iter.Res type_instances_iter_res = 502;</code> */ public boolean hasTypeInstancesIterRes() { return typeInstancesIterResBuilder_ != null || typeInstancesIterRes_ != null; } /** * <pre> * Type iterator responses * </pre> * * <code>optional .session.Type.Instances.Iter.Res type_instances_iter_res = 502;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res getTypeInstancesIterRes() { if (typeInstancesIterResBuilder_ == null) { return typeInstancesIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.getDefaultInstance() : typeInstancesIterRes_; } else { return typeInstancesIterResBuilder_.getMessage(); } } /** * <pre> * Type iterator responses * </pre> * * <code>optional .session.Type.Instances.Iter.Res type_instances_iter_res = 502;</code> */ public Builder setTypeInstancesIterRes(ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res value) { if (typeInstancesIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } typeInstancesIterRes_ = value; onChanged(); } else { typeInstancesIterResBuilder_.setMessage(value); } return this; } /** * <pre> * Type iterator responses * </pre> * * <code>optional .session.Type.Instances.Iter.Res type_instances_iter_res = 502;</code> */ public Builder setTypeInstancesIterRes( ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.Builder builderForValue) { if (typeInstancesIterResBuilder_ == null) { typeInstancesIterRes_ = builderForValue.build(); onChanged(); } else { typeInstancesIterResBuilder_.setMessage(builderForValue.build()); } return this; } /** * <pre> * Type iterator responses * </pre> * * <code>optional .session.Type.Instances.Iter.Res type_instances_iter_res = 502;</code> */ public Builder mergeTypeInstancesIterRes(ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res value) { if (typeInstancesIterResBuilder_ == null) { if (typeInstancesIterRes_ != null) { typeInstancesIterRes_ = ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.newBuilder(typeInstancesIterRes_).mergeFrom(value).buildPartial(); } else { typeInstancesIterRes_ = value; } onChanged(); } else { typeInstancesIterResBuilder_.mergeFrom(value); } return this; } /** * <pre> * Type iterator responses * </pre> * * <code>optional .session.Type.Instances.Iter.Res type_instances_iter_res = 502;</code> */ public Builder clearTypeInstancesIterRes() { if (typeInstancesIterResBuilder_ == null) { typeInstancesIterRes_ = null; onChanged(); } else { typeInstancesIterRes_ = null; typeInstancesIterResBuilder_ = null; } return this; } /** * <pre> * Type iterator responses * </pre> * * <code>optional .session.Type.Instances.Iter.Res type_instances_iter_res = 502;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.Builder getTypeInstancesIterResBuilder() { onChanged(); return getTypeInstancesIterResFieldBuilder().getBuilder(); } /** * <pre> * Type iterator responses * </pre> * * <code>optional .session.Type.Instances.Iter.Res type_instances_iter_res = 502;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.ResOrBuilder getTypeInstancesIterResOrBuilder() { if (typeInstancesIterResBuilder_ != null) { return typeInstancesIterResBuilder_.getMessageOrBuilder(); } else { return typeInstancesIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.getDefaultInstance() : typeInstancesIterRes_; } } /** * <pre> * Type iterator responses * </pre> * * <code>optional .session.Type.Instances.Iter.Res type_instances_iter_res = 502;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.ResOrBuilder> getTypeInstancesIterResFieldBuilder() { if (typeInstancesIterResBuilder_ == null) { typeInstancesIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.ResOrBuilder>( getTypeInstancesIterRes(), getParentForChildren(), isClean()); typeInstancesIterRes_ = null; } return typeInstancesIterResBuilder_; } private ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res typeKeysIterRes_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.ResOrBuilder> typeKeysIterResBuilder_; /** * <code>optional .session.Type.Keys.Iter.Res type_keys_iter_res = 503;</code> */ public boolean hasTypeKeysIterRes() { return typeKeysIterResBuilder_ != null || typeKeysIterRes_ != null; } /** * <code>optional .session.Type.Keys.Iter.Res type_keys_iter_res = 503;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res getTypeKeysIterRes() { if (typeKeysIterResBuilder_ == null) { return typeKeysIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res.getDefaultInstance() : typeKeysIterRes_; } else { return typeKeysIterResBuilder_.getMessage(); } } /** * <code>optional .session.Type.Keys.Iter.Res type_keys_iter_res = 503;</code> */ public Builder setTypeKeysIterRes(ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res value) { if (typeKeysIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } typeKeysIterRes_ = value; onChanged(); } else { typeKeysIterResBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Type.Keys.Iter.Res type_keys_iter_res = 503;</code> */ public Builder setTypeKeysIterRes( ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res.Builder builderForValue) { if (typeKeysIterResBuilder_ == null) { typeKeysIterRes_ = builderForValue.build(); onChanged(); } else { typeKeysIterResBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Type.Keys.Iter.Res type_keys_iter_res = 503;</code> */ public Builder mergeTypeKeysIterRes(ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res value) { if (typeKeysIterResBuilder_ == null) { if (typeKeysIterRes_ != null) { typeKeysIterRes_ = ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res.newBuilder(typeKeysIterRes_).mergeFrom(value).buildPartial(); } else { typeKeysIterRes_ = value; } onChanged(); } else { typeKeysIterResBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Type.Keys.Iter.Res type_keys_iter_res = 503;</code> */ public Builder clearTypeKeysIterRes() { if (typeKeysIterResBuilder_ == null) { typeKeysIterRes_ = null; onChanged(); } else { typeKeysIterRes_ = null; typeKeysIterResBuilder_ = null; } return this; } /** * <code>optional .session.Type.Keys.Iter.Res type_keys_iter_res = 503;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res.Builder getTypeKeysIterResBuilder() { onChanged(); return getTypeKeysIterResFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Keys.Iter.Res type_keys_iter_res = 503;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.ResOrBuilder getTypeKeysIterResOrBuilder() { if (typeKeysIterResBuilder_ != null) { return typeKeysIterResBuilder_.getMessageOrBuilder(); } else { return typeKeysIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res.getDefaultInstance() : typeKeysIterRes_; } } /** * <code>optional .session.Type.Keys.Iter.Res type_keys_iter_res = 503;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.ResOrBuilder> getTypeKeysIterResFieldBuilder() { if (typeKeysIterResBuilder_ == null) { typeKeysIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.ResOrBuilder>( getTypeKeysIterRes(), getParentForChildren(), isClean()); typeKeysIterRes_ = null; } return typeKeysIterResBuilder_; } private ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res typeAttributesIterRes_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.ResOrBuilder> typeAttributesIterResBuilder_; /** * <code>optional .session.Type.Attributes.Iter.Res type_attributes_iter_res = 504;</code> */ public boolean hasTypeAttributesIterRes() { return typeAttributesIterResBuilder_ != null || typeAttributesIterRes_ != null; } /** * <code>optional .session.Type.Attributes.Iter.Res type_attributes_iter_res = 504;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res getTypeAttributesIterRes() { if (typeAttributesIterResBuilder_ == null) { return typeAttributesIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res.getDefaultInstance() : typeAttributesIterRes_; } else { return typeAttributesIterResBuilder_.getMessage(); } } /** * <code>optional .session.Type.Attributes.Iter.Res type_attributes_iter_res = 504;</code> */ public Builder setTypeAttributesIterRes(ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res value) { if (typeAttributesIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } typeAttributesIterRes_ = value; onChanged(); } else { typeAttributesIterResBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Type.Attributes.Iter.Res type_attributes_iter_res = 504;</code> */ public Builder setTypeAttributesIterRes( ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res.Builder builderForValue) { if (typeAttributesIterResBuilder_ == null) { typeAttributesIterRes_ = builderForValue.build(); onChanged(); } else { typeAttributesIterResBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Type.Attributes.Iter.Res type_attributes_iter_res = 504;</code> */ public Builder mergeTypeAttributesIterRes(ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res value) { if (typeAttributesIterResBuilder_ == null) { if (typeAttributesIterRes_ != null) { typeAttributesIterRes_ = ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res.newBuilder(typeAttributesIterRes_).mergeFrom(value).buildPartial(); } else { typeAttributesIterRes_ = value; } onChanged(); } else { typeAttributesIterResBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Type.Attributes.Iter.Res type_attributes_iter_res = 504;</code> */ public Builder clearTypeAttributesIterRes() { if (typeAttributesIterResBuilder_ == null) { typeAttributesIterRes_ = null; onChanged(); } else { typeAttributesIterRes_ = null; typeAttributesIterResBuilder_ = null; } return this; } /** * <code>optional .session.Type.Attributes.Iter.Res type_attributes_iter_res = 504;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res.Builder getTypeAttributesIterResBuilder() { onChanged(); return getTypeAttributesIterResFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Attributes.Iter.Res type_attributes_iter_res = 504;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.ResOrBuilder getTypeAttributesIterResOrBuilder() { if (typeAttributesIterResBuilder_ != null) { return typeAttributesIterResBuilder_.getMessageOrBuilder(); } else { return typeAttributesIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res.getDefaultInstance() : typeAttributesIterRes_; } } /** * <code>optional .session.Type.Attributes.Iter.Res type_attributes_iter_res = 504;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.ResOrBuilder> getTypeAttributesIterResFieldBuilder() { if (typeAttributesIterResBuilder_ == null) { typeAttributesIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.ResOrBuilder>( getTypeAttributesIterRes(), getParentForChildren(), isClean()); typeAttributesIterRes_ = null; } return typeAttributesIterResBuilder_; } private ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res typePlayingIterRes_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.ResOrBuilder> typePlayingIterResBuilder_; /** * <code>optional .session.Type.Playing.Iter.Res type_playing_iter_res = 505;</code> */ public boolean hasTypePlayingIterRes() { return typePlayingIterResBuilder_ != null || typePlayingIterRes_ != null; } /** * <code>optional .session.Type.Playing.Iter.Res type_playing_iter_res = 505;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res getTypePlayingIterRes() { if (typePlayingIterResBuilder_ == null) { return typePlayingIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res.getDefaultInstance() : typePlayingIterRes_; } else { return typePlayingIterResBuilder_.getMessage(); } } /** * <code>optional .session.Type.Playing.Iter.Res type_playing_iter_res = 505;</code> */ public Builder setTypePlayingIterRes(ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res value) { if (typePlayingIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } typePlayingIterRes_ = value; onChanged(); } else { typePlayingIterResBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Type.Playing.Iter.Res type_playing_iter_res = 505;</code> */ public Builder setTypePlayingIterRes( ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res.Builder builderForValue) { if (typePlayingIterResBuilder_ == null) { typePlayingIterRes_ = builderForValue.build(); onChanged(); } else { typePlayingIterResBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Type.Playing.Iter.Res type_playing_iter_res = 505;</code> */ public Builder mergeTypePlayingIterRes(ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res value) { if (typePlayingIterResBuilder_ == null) { if (typePlayingIterRes_ != null) { typePlayingIterRes_ = ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res.newBuilder(typePlayingIterRes_).mergeFrom(value).buildPartial(); } else { typePlayingIterRes_ = value; } onChanged(); } else { typePlayingIterResBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Type.Playing.Iter.Res type_playing_iter_res = 505;</code> */ public Builder clearTypePlayingIterRes() { if (typePlayingIterResBuilder_ == null) { typePlayingIterRes_ = null; onChanged(); } else { typePlayingIterRes_ = null; typePlayingIterResBuilder_ = null; } return this; } /** * <code>optional .session.Type.Playing.Iter.Res type_playing_iter_res = 505;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res.Builder getTypePlayingIterResBuilder() { onChanged(); return getTypePlayingIterResFieldBuilder().getBuilder(); } /** * <code>optional .session.Type.Playing.Iter.Res type_playing_iter_res = 505;</code> */ public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.ResOrBuilder getTypePlayingIterResOrBuilder() { if (typePlayingIterResBuilder_ != null) { return typePlayingIterResBuilder_.getMessageOrBuilder(); } else { return typePlayingIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res.getDefaultInstance() : typePlayingIterRes_; } } /** * <code>optional .session.Type.Playing.Iter.Res type_playing_iter_res = 505;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.ResOrBuilder> getTypePlayingIterResFieldBuilder() { if (typePlayingIterResBuilder_ == null) { typePlayingIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.ResOrBuilder>( getTypePlayingIterRes(), getParentForChildren(), isClean()); typePlayingIterRes_ = null; } return typePlayingIterResBuilder_; } private ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res relationTypeRolesIterRes_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.ResOrBuilder> relationTypeRolesIterResBuilder_; /** * <pre> * RelationType iterator responses * </pre> * * <code>optional .session.RelationType.Roles.Iter.Res relationType_roles_iter_res = 701;</code> */ public boolean hasRelationTypeRolesIterRes() { return relationTypeRolesIterResBuilder_ != null || relationTypeRolesIterRes_ != null; } /** * <pre> * RelationType iterator responses * </pre> * * <code>optional .session.RelationType.Roles.Iter.Res relationType_roles_iter_res = 701;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res getRelationTypeRolesIterRes() { if (relationTypeRolesIterResBuilder_ == null) { return relationTypeRolesIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res.getDefaultInstance() : relationTypeRolesIterRes_; } else { return relationTypeRolesIterResBuilder_.getMessage(); } } /** * <pre> * RelationType iterator responses * </pre> * * <code>optional .session.RelationType.Roles.Iter.Res relationType_roles_iter_res = 701;</code> */ public Builder setRelationTypeRolesIterRes(ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res value) { if (relationTypeRolesIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relationTypeRolesIterRes_ = value; onChanged(); } else { relationTypeRolesIterResBuilder_.setMessage(value); } return this; } /** * <pre> * RelationType iterator responses * </pre> * * <code>optional .session.RelationType.Roles.Iter.Res relationType_roles_iter_res = 701;</code> */ public Builder setRelationTypeRolesIterRes( ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res.Builder builderForValue) { if (relationTypeRolesIterResBuilder_ == null) { relationTypeRolesIterRes_ = builderForValue.build(); onChanged(); } else { relationTypeRolesIterResBuilder_.setMessage(builderForValue.build()); } return this; } /** * <pre> * RelationType iterator responses * </pre> * * <code>optional .session.RelationType.Roles.Iter.Res relationType_roles_iter_res = 701;</code> */ public Builder mergeRelationTypeRolesIterRes(ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res value) { if (relationTypeRolesIterResBuilder_ == null) { if (relationTypeRolesIterRes_ != null) { relationTypeRolesIterRes_ = ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res.newBuilder(relationTypeRolesIterRes_).mergeFrom(value).buildPartial(); } else { relationTypeRolesIterRes_ = value; } onChanged(); } else { relationTypeRolesIterResBuilder_.mergeFrom(value); } return this; } /** * <pre> * RelationType iterator responses * </pre> * * <code>optional .session.RelationType.Roles.Iter.Res relationType_roles_iter_res = 701;</code> */ public Builder clearRelationTypeRolesIterRes() { if (relationTypeRolesIterResBuilder_ == null) { relationTypeRolesIterRes_ = null; onChanged(); } else { relationTypeRolesIterRes_ = null; relationTypeRolesIterResBuilder_ = null; } return this; } /** * <pre> * RelationType iterator responses * </pre> * * <code>optional .session.RelationType.Roles.Iter.Res relationType_roles_iter_res = 701;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res.Builder getRelationTypeRolesIterResBuilder() { onChanged(); return getRelationTypeRolesIterResFieldBuilder().getBuilder(); } /** * <pre> * RelationType iterator responses * </pre> * * <code>optional .session.RelationType.Roles.Iter.Res relationType_roles_iter_res = 701;</code> */ public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.ResOrBuilder getRelationTypeRolesIterResOrBuilder() { if (relationTypeRolesIterResBuilder_ != null) { return relationTypeRolesIterResBuilder_.getMessageOrBuilder(); } else { return relationTypeRolesIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res.getDefaultInstance() : relationTypeRolesIterRes_; } } /** * <pre> * RelationType iterator responses * </pre> * * <code>optional .session.RelationType.Roles.Iter.Res relationType_roles_iter_res = 701;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.ResOrBuilder> getRelationTypeRolesIterResFieldBuilder() { if (relationTypeRolesIterResBuilder_ == null) { relationTypeRolesIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.ResOrBuilder>( getRelationTypeRolesIterRes(), getParentForChildren(), isClean()); relationTypeRolesIterRes_ = null; } return relationTypeRolesIterResBuilder_; } private ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res thingKeysIterRes_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.ResOrBuilder> thingKeysIterResBuilder_; /** * <pre> * Thing iterator responses * </pre> * * <code>optional .session.Thing.Keys.Iter.Res thing_keys_iter_res = 902;</code> */ public boolean hasThingKeysIterRes() { return thingKeysIterResBuilder_ != null || thingKeysIterRes_ != null; } /** * <pre> * Thing iterator responses * </pre> * * <code>optional .session.Thing.Keys.Iter.Res thing_keys_iter_res = 902;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res getThingKeysIterRes() { if (thingKeysIterResBuilder_ == null) { return thingKeysIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res.getDefaultInstance() : thingKeysIterRes_; } else { return thingKeysIterResBuilder_.getMessage(); } } /** * <pre> * Thing iterator responses * </pre> * * <code>optional .session.Thing.Keys.Iter.Res thing_keys_iter_res = 902;</code> */ public Builder setThingKeysIterRes(ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res value) { if (thingKeysIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } thingKeysIterRes_ = value; onChanged(); } else { thingKeysIterResBuilder_.setMessage(value); } return this; } /** * <pre> * Thing iterator responses * </pre> * * <code>optional .session.Thing.Keys.Iter.Res thing_keys_iter_res = 902;</code> */ public Builder setThingKeysIterRes( ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res.Builder builderForValue) { if (thingKeysIterResBuilder_ == null) { thingKeysIterRes_ = builderForValue.build(); onChanged(); } else { thingKeysIterResBuilder_.setMessage(builderForValue.build()); } return this; } /** * <pre> * Thing iterator responses * </pre> * * <code>optional .session.Thing.Keys.Iter.Res thing_keys_iter_res = 902;</code> */ public Builder mergeThingKeysIterRes(ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res value) { if (thingKeysIterResBuilder_ == null) { if (thingKeysIterRes_ != null) { thingKeysIterRes_ = ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res.newBuilder(thingKeysIterRes_).mergeFrom(value).buildPartial(); } else { thingKeysIterRes_ = value; } onChanged(); } else { thingKeysIterResBuilder_.mergeFrom(value); } return this; } /** * <pre> * Thing iterator responses * </pre> * * <code>optional .session.Thing.Keys.Iter.Res thing_keys_iter_res = 902;</code> */ public Builder clearThingKeysIterRes() { if (thingKeysIterResBuilder_ == null) { thingKeysIterRes_ = null; onChanged(); } else { thingKeysIterRes_ = null; thingKeysIterResBuilder_ = null; } return this; } /** * <pre> * Thing iterator responses * </pre> * * <code>optional .session.Thing.Keys.Iter.Res thing_keys_iter_res = 902;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res.Builder getThingKeysIterResBuilder() { onChanged(); return getThingKeysIterResFieldBuilder().getBuilder(); } /** * <pre> * Thing iterator responses * </pre> * * <code>optional .session.Thing.Keys.Iter.Res thing_keys_iter_res = 902;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.ResOrBuilder getThingKeysIterResOrBuilder() { if (thingKeysIterResBuilder_ != null) { return thingKeysIterResBuilder_.getMessageOrBuilder(); } else { return thingKeysIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res.getDefaultInstance() : thingKeysIterRes_; } } /** * <pre> * Thing iterator responses * </pre> * * <code>optional .session.Thing.Keys.Iter.Res thing_keys_iter_res = 902;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.ResOrBuilder> getThingKeysIterResFieldBuilder() { if (thingKeysIterResBuilder_ == null) { thingKeysIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.ResOrBuilder>( getThingKeysIterRes(), getParentForChildren(), isClean()); thingKeysIterRes_ = null; } return thingKeysIterResBuilder_; } private ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res thingAttributesIterRes_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.ResOrBuilder> thingAttributesIterResBuilder_; /** * <code>optional .session.Thing.Attributes.Iter.Res thing_attributes_iter_res = 903;</code> */ public boolean hasThingAttributesIterRes() { return thingAttributesIterResBuilder_ != null || thingAttributesIterRes_ != null; } /** * <code>optional .session.Thing.Attributes.Iter.Res thing_attributes_iter_res = 903;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res getThingAttributesIterRes() { if (thingAttributesIterResBuilder_ == null) { return thingAttributesIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res.getDefaultInstance() : thingAttributesIterRes_; } else { return thingAttributesIterResBuilder_.getMessage(); } } /** * <code>optional .session.Thing.Attributes.Iter.Res thing_attributes_iter_res = 903;</code> */ public Builder setThingAttributesIterRes(ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res value) { if (thingAttributesIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } thingAttributesIterRes_ = value; onChanged(); } else { thingAttributesIterResBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Thing.Attributes.Iter.Res thing_attributes_iter_res = 903;</code> */ public Builder setThingAttributesIterRes( ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res.Builder builderForValue) { if (thingAttributesIterResBuilder_ == null) { thingAttributesIterRes_ = builderForValue.build(); onChanged(); } else { thingAttributesIterResBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Thing.Attributes.Iter.Res thing_attributes_iter_res = 903;</code> */ public Builder mergeThingAttributesIterRes(ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res value) { if (thingAttributesIterResBuilder_ == null) { if (thingAttributesIterRes_ != null) { thingAttributesIterRes_ = ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res.newBuilder(thingAttributesIterRes_).mergeFrom(value).buildPartial(); } else { thingAttributesIterRes_ = value; } onChanged(); } else { thingAttributesIterResBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Thing.Attributes.Iter.Res thing_attributes_iter_res = 903;</code> */ public Builder clearThingAttributesIterRes() { if (thingAttributesIterResBuilder_ == null) { thingAttributesIterRes_ = null; onChanged(); } else { thingAttributesIterRes_ = null; thingAttributesIterResBuilder_ = null; } return this; } /** * <code>optional .session.Thing.Attributes.Iter.Res thing_attributes_iter_res = 903;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res.Builder getThingAttributesIterResBuilder() { onChanged(); return getThingAttributesIterResFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.Attributes.Iter.Res thing_attributes_iter_res = 903;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.ResOrBuilder getThingAttributesIterResOrBuilder() { if (thingAttributesIterResBuilder_ != null) { return thingAttributesIterResBuilder_.getMessageOrBuilder(); } else { return thingAttributesIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res.getDefaultInstance() : thingAttributesIterRes_; } } /** * <code>optional .session.Thing.Attributes.Iter.Res thing_attributes_iter_res = 903;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.ResOrBuilder> getThingAttributesIterResFieldBuilder() { if (thingAttributesIterResBuilder_ == null) { thingAttributesIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.ResOrBuilder>( getThingAttributesIterRes(), getParentForChildren(), isClean()); thingAttributesIterRes_ = null; } return thingAttributesIterResBuilder_; } private ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res thingRelationsIterRes_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.ResOrBuilder> thingRelationsIterResBuilder_; /** * <code>optional .session.Thing.Relations.Iter.Res thing_relations_iter_res = 904;</code> */ public boolean hasThingRelationsIterRes() { return thingRelationsIterResBuilder_ != null || thingRelationsIterRes_ != null; } /** * <code>optional .session.Thing.Relations.Iter.Res thing_relations_iter_res = 904;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res getThingRelationsIterRes() { if (thingRelationsIterResBuilder_ == null) { return thingRelationsIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.getDefaultInstance() : thingRelationsIterRes_; } else { return thingRelationsIterResBuilder_.getMessage(); } } /** * <code>optional .session.Thing.Relations.Iter.Res thing_relations_iter_res = 904;</code> */ public Builder setThingRelationsIterRes(ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res value) { if (thingRelationsIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } thingRelationsIterRes_ = value; onChanged(); } else { thingRelationsIterResBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Thing.Relations.Iter.Res thing_relations_iter_res = 904;</code> */ public Builder setThingRelationsIterRes( ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.Builder builderForValue) { if (thingRelationsIterResBuilder_ == null) { thingRelationsIterRes_ = builderForValue.build(); onChanged(); } else { thingRelationsIterResBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Thing.Relations.Iter.Res thing_relations_iter_res = 904;</code> */ public Builder mergeThingRelationsIterRes(ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res value) { if (thingRelationsIterResBuilder_ == null) { if (thingRelationsIterRes_ != null) { thingRelationsIterRes_ = ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.newBuilder(thingRelationsIterRes_).mergeFrom(value).buildPartial(); } else { thingRelationsIterRes_ = value; } onChanged(); } else { thingRelationsIterResBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Thing.Relations.Iter.Res thing_relations_iter_res = 904;</code> */ public Builder clearThingRelationsIterRes() { if (thingRelationsIterResBuilder_ == null) { thingRelationsIterRes_ = null; onChanged(); } else { thingRelationsIterRes_ = null; thingRelationsIterResBuilder_ = null; } return this; } /** * <code>optional .session.Thing.Relations.Iter.Res thing_relations_iter_res = 904;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.Builder getThingRelationsIterResBuilder() { onChanged(); return getThingRelationsIterResFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.Relations.Iter.Res thing_relations_iter_res = 904;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.ResOrBuilder getThingRelationsIterResOrBuilder() { if (thingRelationsIterResBuilder_ != null) { return thingRelationsIterResBuilder_.getMessageOrBuilder(); } else { return thingRelationsIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.getDefaultInstance() : thingRelationsIterRes_; } } /** * <code>optional .session.Thing.Relations.Iter.Res thing_relations_iter_res = 904;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.ResOrBuilder> getThingRelationsIterResFieldBuilder() { if (thingRelationsIterResBuilder_ == null) { thingRelationsIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.ResOrBuilder>( getThingRelationsIterRes(), getParentForChildren(), isClean()); thingRelationsIterRes_ = null; } return thingRelationsIterResBuilder_; } private ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res thingRolesIterRes_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.ResOrBuilder> thingRolesIterResBuilder_; /** * <code>optional .session.Thing.Roles.Iter.Res thing_roles_iter_res = 905;</code> */ public boolean hasThingRolesIterRes() { return thingRolesIterResBuilder_ != null || thingRolesIterRes_ != null; } /** * <code>optional .session.Thing.Roles.Iter.Res thing_roles_iter_res = 905;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res getThingRolesIterRes() { if (thingRolesIterResBuilder_ == null) { return thingRolesIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res.getDefaultInstance() : thingRolesIterRes_; } else { return thingRolesIterResBuilder_.getMessage(); } } /** * <code>optional .session.Thing.Roles.Iter.Res thing_roles_iter_res = 905;</code> */ public Builder setThingRolesIterRes(ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res value) { if (thingRolesIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } thingRolesIterRes_ = value; onChanged(); } else { thingRolesIterResBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Thing.Roles.Iter.Res thing_roles_iter_res = 905;</code> */ public Builder setThingRolesIterRes( ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res.Builder builderForValue) { if (thingRolesIterResBuilder_ == null) { thingRolesIterRes_ = builderForValue.build(); onChanged(); } else { thingRolesIterResBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Thing.Roles.Iter.Res thing_roles_iter_res = 905;</code> */ public Builder mergeThingRolesIterRes(ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res value) { if (thingRolesIterResBuilder_ == null) { if (thingRolesIterRes_ != null) { thingRolesIterRes_ = ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res.newBuilder(thingRolesIterRes_).mergeFrom(value).buildPartial(); } else { thingRolesIterRes_ = value; } onChanged(); } else { thingRolesIterResBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Thing.Roles.Iter.Res thing_roles_iter_res = 905;</code> */ public Builder clearThingRolesIterRes() { if (thingRolesIterResBuilder_ == null) { thingRolesIterRes_ = null; onChanged(); } else { thingRolesIterRes_ = null; thingRolesIterResBuilder_ = null; } return this; } /** * <code>optional .session.Thing.Roles.Iter.Res thing_roles_iter_res = 905;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res.Builder getThingRolesIterResBuilder() { onChanged(); return getThingRolesIterResFieldBuilder().getBuilder(); } /** * <code>optional .session.Thing.Roles.Iter.Res thing_roles_iter_res = 905;</code> */ public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.ResOrBuilder getThingRolesIterResOrBuilder() { if (thingRolesIterResBuilder_ != null) { return thingRolesIterResBuilder_.getMessageOrBuilder(); } else { return thingRolesIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res.getDefaultInstance() : thingRolesIterRes_; } } /** * <code>optional .session.Thing.Roles.Iter.Res thing_roles_iter_res = 905;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.ResOrBuilder> getThingRolesIterResFieldBuilder() { if (thingRolesIterResBuilder_ == null) { thingRolesIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.ResOrBuilder>( getThingRolesIterRes(), getParentForChildren(), isClean()); thingRolesIterRes_ = null; } return thingRolesIterResBuilder_; } private ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res relationRolePlayersMapIterRes_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.ResOrBuilder> relationRolePlayersMapIterResBuilder_; /** * <pre> * Relation iterator responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter.Res relation_rolePlayersMap_iter_res = 1000;</code> */ public boolean hasRelationRolePlayersMapIterRes() { return relationRolePlayersMapIterResBuilder_ != null || relationRolePlayersMapIterRes_ != null; } /** * <pre> * Relation iterator responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter.Res relation_rolePlayersMap_iter_res = 1000;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res getRelationRolePlayersMapIterRes() { if (relationRolePlayersMapIterResBuilder_ == null) { return relationRolePlayersMapIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.getDefaultInstance() : relationRolePlayersMapIterRes_; } else { return relationRolePlayersMapIterResBuilder_.getMessage(); } } /** * <pre> * Relation iterator responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter.Res relation_rolePlayersMap_iter_res = 1000;</code> */ public Builder setRelationRolePlayersMapIterRes(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res value) { if (relationRolePlayersMapIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relationRolePlayersMapIterRes_ = value; onChanged(); } else { relationRolePlayersMapIterResBuilder_.setMessage(value); } return this; } /** * <pre> * Relation iterator responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter.Res relation_rolePlayersMap_iter_res = 1000;</code> */ public Builder setRelationRolePlayersMapIterRes( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.Builder builderForValue) { if (relationRolePlayersMapIterResBuilder_ == null) { relationRolePlayersMapIterRes_ = builderForValue.build(); onChanged(); } else { relationRolePlayersMapIterResBuilder_.setMessage(builderForValue.build()); } return this; } /** * <pre> * Relation iterator responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter.Res relation_rolePlayersMap_iter_res = 1000;</code> */ public Builder mergeRelationRolePlayersMapIterRes(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res value) { if (relationRolePlayersMapIterResBuilder_ == null) { if (relationRolePlayersMapIterRes_ != null) { relationRolePlayersMapIterRes_ = ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.newBuilder(relationRolePlayersMapIterRes_).mergeFrom(value).buildPartial(); } else { relationRolePlayersMapIterRes_ = value; } onChanged(); } else { relationRolePlayersMapIterResBuilder_.mergeFrom(value); } return this; } /** * <pre> * Relation iterator responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter.Res relation_rolePlayersMap_iter_res = 1000;</code> */ public Builder clearRelationRolePlayersMapIterRes() { if (relationRolePlayersMapIterResBuilder_ == null) { relationRolePlayersMapIterRes_ = null; onChanged(); } else { relationRolePlayersMapIterRes_ = null; relationRolePlayersMapIterResBuilder_ = null; } return this; } /** * <pre> * Relation iterator responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter.Res relation_rolePlayersMap_iter_res = 1000;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.Builder getRelationRolePlayersMapIterResBuilder() { onChanged(); return getRelationRolePlayersMapIterResFieldBuilder().getBuilder(); } /** * <pre> * Relation iterator responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter.Res relation_rolePlayersMap_iter_res = 1000;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.ResOrBuilder getRelationRolePlayersMapIterResOrBuilder() { if (relationRolePlayersMapIterResBuilder_ != null) { return relationRolePlayersMapIterResBuilder_.getMessageOrBuilder(); } else { return relationRolePlayersMapIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.getDefaultInstance() : relationRolePlayersMapIterRes_; } } /** * <pre> * Relation iterator responses * </pre> * * <code>optional .session.Relation.RolePlayersMap.Iter.Res relation_rolePlayersMap_iter_res = 1000;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.ResOrBuilder> getRelationRolePlayersMapIterResFieldBuilder() { if (relationRolePlayersMapIterResBuilder_ == null) { relationRolePlayersMapIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.ResOrBuilder>( getRelationRolePlayersMapIterRes(), getParentForChildren(), isClean()); relationRolePlayersMapIterRes_ = null; } return relationRolePlayersMapIterResBuilder_; } private ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res relationRolePlayersIterRes_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.ResOrBuilder> relationRolePlayersIterResBuilder_; /** * <code>optional .session.Relation.RolePlayers.Iter.Res relation_rolePlayers_iter_res = 1001;</code> */ public boolean hasRelationRolePlayersIterRes() { return relationRolePlayersIterResBuilder_ != null || relationRolePlayersIterRes_ != null; } /** * <code>optional .session.Relation.RolePlayers.Iter.Res relation_rolePlayers_iter_res = 1001;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res getRelationRolePlayersIterRes() { if (relationRolePlayersIterResBuilder_ == null) { return relationRolePlayersIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.getDefaultInstance() : relationRolePlayersIterRes_; } else { return relationRolePlayersIterResBuilder_.getMessage(); } } /** * <code>optional .session.Relation.RolePlayers.Iter.Res relation_rolePlayers_iter_res = 1001;</code> */ public Builder setRelationRolePlayersIterRes(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res value) { if (relationRolePlayersIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relationRolePlayersIterRes_ = value; onChanged(); } else { relationRolePlayersIterResBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Relation.RolePlayers.Iter.Res relation_rolePlayers_iter_res = 1001;</code> */ public Builder setRelationRolePlayersIterRes( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.Builder builderForValue) { if (relationRolePlayersIterResBuilder_ == null) { relationRolePlayersIterRes_ = builderForValue.build(); onChanged(); } else { relationRolePlayersIterResBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Relation.RolePlayers.Iter.Res relation_rolePlayers_iter_res = 1001;</code> */ public Builder mergeRelationRolePlayersIterRes(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res value) { if (relationRolePlayersIterResBuilder_ == null) { if (relationRolePlayersIterRes_ != null) { relationRolePlayersIterRes_ = ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.newBuilder(relationRolePlayersIterRes_).mergeFrom(value).buildPartial(); } else { relationRolePlayersIterRes_ = value; } onChanged(); } else { relationRolePlayersIterResBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Relation.RolePlayers.Iter.Res relation_rolePlayers_iter_res = 1001;</code> */ public Builder clearRelationRolePlayersIterRes() { if (relationRolePlayersIterResBuilder_ == null) { relationRolePlayersIterRes_ = null; onChanged(); } else { relationRolePlayersIterRes_ = null; relationRolePlayersIterResBuilder_ = null; } return this; } /** * <code>optional .session.Relation.RolePlayers.Iter.Res relation_rolePlayers_iter_res = 1001;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.Builder getRelationRolePlayersIterResBuilder() { onChanged(); return getRelationRolePlayersIterResFieldBuilder().getBuilder(); } /** * <code>optional .session.Relation.RolePlayers.Iter.Res relation_rolePlayers_iter_res = 1001;</code> */ public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.ResOrBuilder getRelationRolePlayersIterResOrBuilder() { if (relationRolePlayersIterResBuilder_ != null) { return relationRolePlayersIterResBuilder_.getMessageOrBuilder(); } else { return relationRolePlayersIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.getDefaultInstance() : relationRolePlayersIterRes_; } } /** * <code>optional .session.Relation.RolePlayers.Iter.Res relation_rolePlayers_iter_res = 1001;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.ResOrBuilder> getRelationRolePlayersIterResFieldBuilder() { if (relationRolePlayersIterResBuilder_ == null) { relationRolePlayersIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.ResOrBuilder>( getRelationRolePlayersIterRes(), getParentForChildren(), isClean()); relationRolePlayersIterRes_ = null; } return relationRolePlayersIterResBuilder_; } private ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res attributeOwnersIterRes_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.ResOrBuilder> attributeOwnersIterResBuilder_; /** * <pre> * Attribute iterator responses * </pre> * * <code>optional .session.Attribute.Owners.Iter.Res attribute_owners_iter_res = 1101;</code> */ public boolean hasAttributeOwnersIterRes() { return attributeOwnersIterResBuilder_ != null || attributeOwnersIterRes_ != null; } /** * <pre> * Attribute iterator responses * </pre> * * <code>optional .session.Attribute.Owners.Iter.Res attribute_owners_iter_res = 1101;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res getAttributeOwnersIterRes() { if (attributeOwnersIterResBuilder_ == null) { return attributeOwnersIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.getDefaultInstance() : attributeOwnersIterRes_; } else { return attributeOwnersIterResBuilder_.getMessage(); } } /** * <pre> * Attribute iterator responses * </pre> * * <code>optional .session.Attribute.Owners.Iter.Res attribute_owners_iter_res = 1101;</code> */ public Builder setAttributeOwnersIterRes(ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res value) { if (attributeOwnersIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attributeOwnersIterRes_ = value; onChanged(); } else { attributeOwnersIterResBuilder_.setMessage(value); } return this; } /** * <pre> * Attribute iterator responses * </pre> * * <code>optional .session.Attribute.Owners.Iter.Res attribute_owners_iter_res = 1101;</code> */ public Builder setAttributeOwnersIterRes( ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.Builder builderForValue) { if (attributeOwnersIterResBuilder_ == null) { attributeOwnersIterRes_ = builderForValue.build(); onChanged(); } else { attributeOwnersIterResBuilder_.setMessage(builderForValue.build()); } return this; } /** * <pre> * Attribute iterator responses * </pre> * * <code>optional .session.Attribute.Owners.Iter.Res attribute_owners_iter_res = 1101;</code> */ public Builder mergeAttributeOwnersIterRes(ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res value) { if (attributeOwnersIterResBuilder_ == null) { if (attributeOwnersIterRes_ != null) { attributeOwnersIterRes_ = ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.newBuilder(attributeOwnersIterRes_).mergeFrom(value).buildPartial(); } else { attributeOwnersIterRes_ = value; } onChanged(); } else { attributeOwnersIterResBuilder_.mergeFrom(value); } return this; } /** * <pre> * Attribute iterator responses * </pre> * * <code>optional .session.Attribute.Owners.Iter.Res attribute_owners_iter_res = 1101;</code> */ public Builder clearAttributeOwnersIterRes() { if (attributeOwnersIterResBuilder_ == null) { attributeOwnersIterRes_ = null; onChanged(); } else { attributeOwnersIterRes_ = null; attributeOwnersIterResBuilder_ = null; } return this; } /** * <pre> * Attribute iterator responses * </pre> * * <code>optional .session.Attribute.Owners.Iter.Res attribute_owners_iter_res = 1101;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.Builder getAttributeOwnersIterResBuilder() { onChanged(); return getAttributeOwnersIterResFieldBuilder().getBuilder(); } /** * <pre> * Attribute iterator responses * </pre> * * <code>optional .session.Attribute.Owners.Iter.Res attribute_owners_iter_res = 1101;</code> */ public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.ResOrBuilder getAttributeOwnersIterResOrBuilder() { if (attributeOwnersIterResBuilder_ != null) { return attributeOwnersIterResBuilder_.getMessageOrBuilder(); } else { return attributeOwnersIterRes_ == null ? ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.getDefaultInstance() : attributeOwnersIterRes_; } } /** * <pre> * Attribute iterator responses * </pre> * * <code>optional .session.Attribute.Owners.Iter.Res attribute_owners_iter_res = 1101;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.ResOrBuilder> getAttributeOwnersIterResFieldBuilder() { if (attributeOwnersIterResBuilder_ == null) { attributeOwnersIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.ResOrBuilder>( getAttributeOwnersIterRes(), getParentForChildren(), isClean()); attributeOwnersIterRes_ = null; } return attributeOwnersIterResBuilder_; } 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.Method.Iter.Res) } // @@protoc_insertion_point(class_scope:session.Method.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.grakn.rpc.proto.ConceptProto.Method.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Method.Iter other = (ai.grakn.rpc.proto.ConceptProto.Method.Iter) obj; boolean result = true; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Method.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.Method.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.Method.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.Method.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.Method.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.ConceptProto.Method.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.ConceptProto.Method.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.Method.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Method.Iter) ai.grakn.rpc.proto.ConceptProto.Method.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Method.Iter.class, ai.grakn.rpc.proto.ConceptProto.Method.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Method.Iter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Method.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Method.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Method.Iter build() { ai.grakn.rpc.proto.ConceptProto.Method.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Method.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.Method.Iter result = new ai.grakn.rpc.proto.ConceptProto.Method.Iter(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.grakn.rpc.proto.ConceptProto.Method.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Method.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Method.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.Method.Iter.getDefaultInstance()) return this; onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ai.grakn.rpc.proto.ConceptProto.Method.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Method.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:session.Method.Iter) } // @@protoc_insertion_point(class_scope:session.Method.Iter) private static final ai.grakn.rpc.proto.ConceptProto.Method.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Method.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.Method.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.Method)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Method other = (ai.grakn.rpc.proto.ConceptProto.Method) 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.ConceptProto.Method parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Method 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.ConceptProto.Method parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Method parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Method parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Method 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.ConceptProto.Method parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Method 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.ConceptProto.Method parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Method 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.ConceptProto.Method 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.Method} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Method) ai.grakn.rpc.proto.ConceptProto.MethodOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Method_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Method.class, ai.grakn.rpc.proto.ConceptProto.Method.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.internal_static_session_Method_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Method getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Method.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Method build() { ai.grakn.rpc.proto.ConceptProto.Method result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Method buildPartial() { ai.grakn.rpc.proto.ConceptProto.Method result = new ai.grakn.rpc.proto.ConceptProto.Method(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.ConceptProto.Method) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Method)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Method other) { if (other == ai.grakn.rpc.proto.ConceptProto.Method.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.ConceptProto.Method parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Method) 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.Method) } // @@protoc_insertion_point(class_scope:session.Method) private static final ai.grakn.rpc.proto.ConceptProto.Method DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Method(); } public static ai.grakn.rpc.proto.ConceptProto.Method getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Method> PARSER = new com.google.protobuf.AbstractParser<Method>() { public Method parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Method(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Method> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Method> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Method getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NullOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Null) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Null} */ public static final class Null extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Null) NullOrBuilder { // Use Null.newBuilder() to construct. private Null(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Null() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Null( 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.ConceptProto.internal_static_session_Null_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Null_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Null.class, ai.grakn.rpc.proto.ConceptProto.Null.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.ConceptProto.Null)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Null other = (ai.grakn.rpc.proto.ConceptProto.Null) 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.ConceptProto.Null parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Null 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.ConceptProto.Null parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Null parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Null parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Null 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.ConceptProto.Null parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Null 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.ConceptProto.Null parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Null 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.ConceptProto.Null 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.Null} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Null) ai.grakn.rpc.proto.ConceptProto.NullOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Null_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Null_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Null.class, ai.grakn.rpc.proto.ConceptProto.Null.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Null.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.ConceptProto.internal_static_session_Null_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Null getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Null.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Null build() { ai.grakn.rpc.proto.ConceptProto.Null result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Null buildPartial() { ai.grakn.rpc.proto.ConceptProto.Null result = new ai.grakn.rpc.proto.ConceptProto.Null(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.ConceptProto.Null) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Null)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Null other) { if (other == ai.grakn.rpc.proto.ConceptProto.Null.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.ConceptProto.Null parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Null) 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.Null) } // @@protoc_insertion_point(class_scope:session.Null) private static final ai.grakn.rpc.proto.ConceptProto.Null DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Null(); } public static ai.grakn.rpc.proto.ConceptProto.Null getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Null> PARSER = new com.google.protobuf.AbstractParser<Null>() { public Null parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Null(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Null> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Null> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Null getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConceptOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Concept) com.google.protobuf.MessageOrBuilder { /** * <code>optional string id = 1;</code> */ java.lang.String getId(); /** * <code>optional string id = 1;</code> */ com.google.protobuf.ByteString getIdBytes(); /** * <code>optional .session.Concept.BASE_TYPE baseType = 2;</code> */ int getBaseTypeValue(); /** * <code>optional .session.Concept.BASE_TYPE baseType = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept.BASE_TYPE getBaseType(); } /** * Protobuf type {@code session.Concept} */ public static final class Concept extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Concept) ConceptOrBuilder { // Use Concept.newBuilder() to construct. private Concept(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Concept() { id_ = ""; baseType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Concept( 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 16: { int rawValue = input.readEnum(); baseType_ = 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.ConceptProto.internal_static_session_Concept_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Concept_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Concept.class, ai.grakn.rpc.proto.ConceptProto.Concept.Builder.class); } /** * Protobuf enum {@code session.Concept.BASE_TYPE} */ public enum BASE_TYPE implements com.google.protobuf.ProtocolMessageEnum { /** * <code>META_TYPE = 0;</code> */ META_TYPE(0), /** * <code>ENTITY_TYPE = 1;</code> */ ENTITY_TYPE(1), /** * <code>RELATION_TYPE = 2;</code> */ RELATION_TYPE(2), /** * <code>ATTRIBUTE_TYPE = 3;</code> */ ATTRIBUTE_TYPE(3), /** * <code>ROLE = 4;</code> */ ROLE(4), /** * <code>RULE = 5;</code> */ RULE(5), /** * <code>ENTITY = 6;</code> */ ENTITY(6), /** * <code>RELATION = 7;</code> */ RELATION(7), /** * <code>ATTRIBUTE = 8;</code> */ ATTRIBUTE(8), UNRECOGNIZED(-1), ; /** * <code>META_TYPE = 0;</code> */ public static final int META_TYPE_VALUE = 0; /** * <code>ENTITY_TYPE = 1;</code> */ public static final int ENTITY_TYPE_VALUE = 1; /** * <code>RELATION_TYPE = 2;</code> */ public static final int RELATION_TYPE_VALUE = 2; /** * <code>ATTRIBUTE_TYPE = 3;</code> */ public static final int ATTRIBUTE_TYPE_VALUE = 3; /** * <code>ROLE = 4;</code> */ public static final int ROLE_VALUE = 4; /** * <code>RULE = 5;</code> */ public static final int RULE_VALUE = 5; /** * <code>ENTITY = 6;</code> */ public static final int ENTITY_VALUE = 6; /** * <code>RELATION = 7;</code> */ public static final int RELATION_VALUE = 7; /** * <code>ATTRIBUTE = 8;</code> */ public static final int ATTRIBUTE_VALUE = 8; 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 BASE_TYPE valueOf(int value) { return forNumber(value); } public static BASE_TYPE forNumber(int value) { switch (value) { case 0: return META_TYPE; case 1: return ENTITY_TYPE; case 2: return RELATION_TYPE; case 3: return ATTRIBUTE_TYPE; case 4: return ROLE; case 5: return RULE; case 6: return ENTITY; case 7: return RELATION; case 8: return ATTRIBUTE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<BASE_TYPE> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< BASE_TYPE> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<BASE_TYPE>() { public BASE_TYPE findValueByNumber(int number) { return BASE_TYPE.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.Concept.getDescriptor().getEnumTypes().get(0); } private static final BASE_TYPE[] VALUES = values(); public static BASE_TYPE valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private BASE_TYPE(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:session.Concept.BASE_TYPE) } public interface DeleteOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Concept.Delete) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Concept.Delete} */ public static final class Delete extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Concept.Delete) DeleteOrBuilder { // Use Delete.newBuilder() to construct. private Delete(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Delete() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Delete( 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.ConceptProto.internal_static_session_Concept_Delete_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Concept_Delete_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Concept.Delete.class, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Concept.Delete.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Concept.Delete.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Concept.Delete.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.ConceptProto.internal_static_session_Concept_Delete_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Concept_Delete_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.class, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req other = (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.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.Concept.Delete.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Concept.Delete.Req) ai.grakn.rpc.proto.ConceptProto.Concept.Delete.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Concept_Delete_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Concept_Delete_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.class, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.internal_static_session_Concept_Delete_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req build() { ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req result = new ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.Concept.Delete.Req) } // @@protoc_insertion_point(class_scope:session.Concept.Delete.Req) private static final ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Concept.Delete.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Concept.Delete.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Concept.Delete.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.ConceptProto.internal_static_session_Concept_Delete_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Concept_Delete_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.class, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res other = (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.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.Concept.Delete.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Concept.Delete.Res) ai.grakn.rpc.proto.ConceptProto.Concept.Delete.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Concept_Delete_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Concept_Delete_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.class, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.internal_static_session_Concept_Delete_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res build() { ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res result = new ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.Concept.Delete.Res) } // @@protoc_insertion_point(class_scope:session.Concept.Delete.Res) private static final ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Concept.Delete other = (ai.grakn.rpc.proto.ConceptProto.Concept.Delete) 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.ConceptProto.Concept.Delete parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete 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.ConceptProto.Concept.Delete parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete 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.ConceptProto.Concept.Delete parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete 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.ConceptProto.Concept.Delete parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete 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.ConceptProto.Concept.Delete 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.Concept.Delete} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Concept.Delete) ai.grakn.rpc.proto.ConceptProto.Concept.DeleteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Concept_Delete_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Concept_Delete_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Concept.Delete.class, ai.grakn.rpc.proto.ConceptProto.Concept.Delete.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.internal_static_session_Concept_Delete_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Concept.Delete getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Concept.Delete.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Concept.Delete build() { ai.grakn.rpc.proto.ConceptProto.Concept.Delete result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Concept.Delete buildPartial() { ai.grakn.rpc.proto.ConceptProto.Concept.Delete result = new ai.grakn.rpc.proto.ConceptProto.Concept.Delete(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.ConceptProto.Concept.Delete) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Concept.Delete)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Concept.Delete other) { if (other == ai.grakn.rpc.proto.ConceptProto.Concept.Delete.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.ConceptProto.Concept.Delete parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Concept.Delete) 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.Concept.Delete) } // @@protoc_insertion_point(class_scope:session.Concept.Delete) private static final ai.grakn.rpc.proto.ConceptProto.Concept.Delete DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Concept.Delete(); } public static ai.grakn.rpc.proto.ConceptProto.Concept.Delete getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Delete> PARSER = new com.google.protobuf.AbstractParser<Delete>() { public Delete parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Delete(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Delete> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Delete> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Concept.Delete getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * <code>optional string id = 1;</code> */ 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; } } /** * <code>optional string id = 1;</code> */ 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 BASETYPE_FIELD_NUMBER = 2; private int baseType_; /** * <code>optional .session.Concept.BASE_TYPE baseType = 2;</code> */ public int getBaseTypeValue() { return baseType_; } /** * <code>optional .session.Concept.BASE_TYPE baseType = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.BASE_TYPE getBaseType() { ai.grakn.rpc.proto.ConceptProto.Concept.BASE_TYPE result = ai.grakn.rpc.proto.ConceptProto.Concept.BASE_TYPE.valueOf(baseType_); return result == null ? ai.grakn.rpc.proto.ConceptProto.Concept.BASE_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 (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (baseType_ != ai.grakn.rpc.proto.ConceptProto.Concept.BASE_TYPE.META_TYPE.getNumber()) { output.writeEnum(2, baseType_); } } 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 (baseType_ != ai.grakn.rpc.proto.ConceptProto.Concept.BASE_TYPE.META_TYPE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, baseType_); } 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.ConceptProto.Concept)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Concept other = (ai.grakn.rpc.proto.ConceptProto.Concept) obj; boolean result = true; result = result && getId() .equals(other.getId()); result = result && baseType_ == other.baseType_; 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 = (37 * hash) + BASETYPE_FIELD_NUMBER; hash = (53 * hash) + baseType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Concept parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Concept 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.ConceptProto.Concept parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Concept parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Concept parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Concept 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.ConceptProto.Concept parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Concept 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.ConceptProto.Concept parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Concept 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.ConceptProto.Concept 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.Concept} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Concept) ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Concept_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Concept_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Concept.class, ai.grakn.rpc.proto.ConceptProto.Concept.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Concept.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_ = ""; baseType_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Concept_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Concept getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Concept build() { ai.grakn.rpc.proto.ConceptProto.Concept result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Concept buildPartial() { ai.grakn.rpc.proto.ConceptProto.Concept result = new ai.grakn.rpc.proto.ConceptProto.Concept(this); result.id_ = id_; result.baseType_ = baseType_; 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.ConceptProto.Concept) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Concept)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Concept other) { if (other == ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.baseType_ != 0) { setBaseTypeValue(other.getBaseTypeValue()); } 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.ConceptProto.Concept parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Concept) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** * <code>optional string id = 1;</code> */ 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; } } /** * <code>optional string id = 1;</code> */ 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; } } /** * <code>optional string id = 1;</code> */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * <code>optional string id = 1;</code> */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * <code>optional string id = 1;</code> */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private int baseType_ = 0; /** * <code>optional .session.Concept.BASE_TYPE baseType = 2;</code> */ public int getBaseTypeValue() { return baseType_; } /** * <code>optional .session.Concept.BASE_TYPE baseType = 2;</code> */ public Builder setBaseTypeValue(int value) { baseType_ = value; onChanged(); return this; } /** * <code>optional .session.Concept.BASE_TYPE baseType = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.BASE_TYPE getBaseType() { ai.grakn.rpc.proto.ConceptProto.Concept.BASE_TYPE result = ai.grakn.rpc.proto.ConceptProto.Concept.BASE_TYPE.valueOf(baseType_); return result == null ? ai.grakn.rpc.proto.ConceptProto.Concept.BASE_TYPE.UNRECOGNIZED : result; } /** * <code>optional .session.Concept.BASE_TYPE baseType = 2;</code> */ public Builder setBaseType(ai.grakn.rpc.proto.ConceptProto.Concept.BASE_TYPE value) { if (value == null) { throw new NullPointerException(); } baseType_ = value.getNumber(); onChanged(); return this; } /** * <code>optional .session.Concept.BASE_TYPE baseType = 2;</code> */ public Builder clearBaseType() { baseType_ = 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.Concept) } // @@protoc_insertion_point(class_scope:session.Concept) private static final ai.grakn.rpc.proto.ConceptProto.Concept DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Concept(); } public static ai.grakn.rpc.proto.ConceptProto.Concept getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Concept> PARSER = new com.google.protobuf.AbstractParser<Concept>() { public Concept parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Concept(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Concept> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Concept> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Concept getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SchemaConceptOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.SchemaConcept} */ public static final class SchemaConcept extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept) SchemaConceptOrBuilder { // Use SchemaConcept.newBuilder() to construct. private SchemaConcept(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private SchemaConcept() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SchemaConcept( 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.ConceptProto.internal_static_session_SchemaConcept_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Builder.class); } public interface GetLabelOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.GetLabel) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.SchemaConcept.GetLabel} */ public static final class GetLabel extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.GetLabel) GetLabelOrBuilder { // Use GetLabel.newBuilder() to construct. private GetLabel(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private GetLabel() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetLabel( 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.ConceptProto.internal_static_session_SchemaConcept_GetLabel_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.GetLabel.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.SchemaConcept.GetLabel.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.GetLabel.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.ConceptProto.internal_static_session_SchemaConcept_GetLabel_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetLabel_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel.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.SchemaConcept.GetLabel.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.GetLabel.Req) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetLabel_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetLabel_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.internal_static_session_SchemaConcept_GetLabel_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.SchemaConcept.GetLabel.Req) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.GetLabel.Req) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.GetLabel.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional string label = 1;</code> */ java.lang.String getLabel(); /** * <code>optional string label = 1;</code> */ com.google.protobuf.ByteString getLabelBytes(); } /** * Protobuf type {@code session.SchemaConcept.GetLabel.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.GetLabel.Res) ResOrBuilder { // Use Res.newBuilder() to construct. private Res(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Res() { label_ = ""; } @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: { 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.ConceptProto.internal_static_session_SchemaConcept_GetLabel_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetLabel_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.Builder.class); } public static final int LABEL_FIELD_NUMBER = 1; private volatile java.lang.Object label_; /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ 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.ConceptProto.SchemaConcept.GetLabel.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res) 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.ConceptProto.SchemaConcept.GetLabel.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel.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.SchemaConcept.GetLabel.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.GetLabel.Res) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetLabel_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetLabel_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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(); label_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetLabel_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res(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.ConceptProto.SchemaConcept.GetLabel.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res.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.ConceptProto.SchemaConcept.GetLabel.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object label_ = ""; /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } label_ = value; onChanged(); return this; } /** * <code>optional string label = 1;</code> */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * <code>optional string label = 1;</code> */ 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.SchemaConcept.GetLabel.Res) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.GetLabel.Res) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel) 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.ConceptProto.SchemaConcept.GetLabel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel 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.ConceptProto.SchemaConcept.GetLabel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel 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.ConceptProto.SchemaConcept.GetLabel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel 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.ConceptProto.SchemaConcept.GetLabel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel 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.ConceptProto.SchemaConcept.GetLabel 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.SchemaConcept.GetLabel} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.GetLabel) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetLabel_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.internal_static_session_SchemaConcept_GetLabel_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel(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.ConceptProto.SchemaConcept.GetLabel) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel.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.ConceptProto.SchemaConcept.GetLabel parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel) 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.SchemaConcept.GetLabel) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.GetLabel) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<GetLabel> PARSER = new com.google.protobuf.AbstractParser<GetLabel>() { public GetLabel parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetLabel(input, extensionRegistry); } }; public static com.google.protobuf.Parser<GetLabel> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<GetLabel> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetLabel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SetLabelOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.SetLabel) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.SchemaConcept.SetLabel} */ public static final class SetLabel extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.SetLabel) SetLabelOrBuilder { // Use SetLabel.newBuilder() to construct. private SetLabel(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private SetLabel() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SetLabel( 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.ConceptProto.internal_static_session_SchemaConcept_SetLabel_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.SetLabel.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional string label = 1;</code> */ java.lang.String getLabel(); /** * <code>optional string label = 1;</code> */ com.google.protobuf.ByteString getLabelBytes(); } /** * Protobuf type {@code session.SchemaConcept.SetLabel.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.SetLabel.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.ConceptProto.internal_static_session_SchemaConcept_SetLabel_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetLabel_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.Builder.class); } public static final int LABEL_FIELD_NUMBER = 1; private volatile java.lang.Object label_; /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ 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.ConceptProto.SchemaConcept.SetLabel.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.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.SchemaConcept.SetLabel.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.SetLabel.Req) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetLabel_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetLabel_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.internal_static_session_SchemaConcept_SetLabel_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object label_ = ""; /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } label_ = value; onChanged(); return this; } /** * <code>optional string label = 1;</code> */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * <code>optional string label = 1;</code> */ 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.SchemaConcept.SetLabel.Req) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.SetLabel.Req) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.SetLabel.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.SchemaConcept.SetLabel.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.SetLabel.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.ConceptProto.internal_static_session_SchemaConcept_SetLabel_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetLabel_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.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.SchemaConcept.SetLabel.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.SetLabel.Res) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetLabel_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetLabel_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.internal_static_session_SchemaConcept_SetLabel_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.SchemaConcept.SetLabel.Res) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.SetLabel.Res) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel) 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.ConceptProto.SchemaConcept.SetLabel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel 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.ConceptProto.SchemaConcept.SetLabel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel 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.ConceptProto.SchemaConcept.SetLabel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel 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.ConceptProto.SchemaConcept.SetLabel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel 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.ConceptProto.SchemaConcept.SetLabel 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.SchemaConcept.SetLabel} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.SetLabel) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetLabel_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.internal_static_session_SchemaConcept_SetLabel_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel(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.ConceptProto.SchemaConcept.SetLabel) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel.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.ConceptProto.SchemaConcept.SetLabel parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel) 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.SchemaConcept.SetLabel) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.SetLabel) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<SetLabel> PARSER = new com.google.protobuf.AbstractParser<SetLabel>() { public SetLabel parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SetLabel(input, extensionRegistry); } }; public static com.google.protobuf.Parser<SetLabel> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<SetLabel> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetLabel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IsImplicitOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.IsImplicit) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.SchemaConcept.IsImplicit} */ public static final class IsImplicit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.IsImplicit) IsImplicitOrBuilder { // Use IsImplicit.newBuilder() to construct. private IsImplicit(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private IsImplicit() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private IsImplicit( 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.ConceptProto.internal_static_session_SchemaConcept_IsImplicit_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_IsImplicit_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.IsImplicit.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.SchemaConcept.IsImplicit.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.IsImplicit.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.ConceptProto.internal_static_session_SchemaConcept_IsImplicit_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_IsImplicit_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit.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.SchemaConcept.IsImplicit.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.IsImplicit.Req) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_IsImplicit_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_IsImplicit_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.internal_static_session_SchemaConcept_IsImplicit_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.SchemaConcept.IsImplicit.Req) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.IsImplicit.Req) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.IsImplicit.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional bool implicit = 1;</code> */ boolean getImplicit(); } /** * Protobuf type {@code session.SchemaConcept.IsImplicit.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.IsImplicit.Res) ResOrBuilder { // Use Res.newBuilder() to construct. private Res(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Res() { implicit_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Res( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { implicit_ = input.readBool(); 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.ConceptProto.internal_static_session_SchemaConcept_IsImplicit_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_IsImplicit_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.Builder.class); } public static final int IMPLICIT_FIELD_NUMBER = 1; private boolean implicit_; /** * <code>optional bool implicit = 1;</code> */ public boolean getImplicit() { return implicit_; } 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 (implicit_ != false) { output.writeBool(1, implicit_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (implicit_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, implicit_); } 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.ConceptProto.SchemaConcept.IsImplicit.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res) obj; boolean result = true; result = result && (getImplicit() == other.getImplicit()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + IMPLICIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getImplicit()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit.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.SchemaConcept.IsImplicit.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.IsImplicit.Res) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_IsImplicit_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_IsImplicit_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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(); implicit_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_IsImplicit_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res(this); result.implicit_ = implicit_; 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.ConceptProto.SchemaConcept.IsImplicit.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res.getDefaultInstance()) return this; if (other.getImplicit() != false) { setImplicit(other.getImplicit()); } 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.ConceptProto.SchemaConcept.IsImplicit.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean implicit_ ; /** * <code>optional bool implicit = 1;</code> */ public boolean getImplicit() { return implicit_; } /** * <code>optional bool implicit = 1;</code> */ public Builder setImplicit(boolean value) { implicit_ = value; onChanged(); return this; } /** * <code>optional bool implicit = 1;</code> */ public Builder clearImplicit() { implicit_ = false; 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.SchemaConcept.IsImplicit.Res) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.IsImplicit.Res) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit) 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.ConceptProto.SchemaConcept.IsImplicit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit 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.ConceptProto.SchemaConcept.IsImplicit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit 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.ConceptProto.SchemaConcept.IsImplicit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit 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.ConceptProto.SchemaConcept.IsImplicit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit 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.ConceptProto.SchemaConcept.IsImplicit 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.SchemaConcept.IsImplicit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.IsImplicit) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_IsImplicit_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_IsImplicit_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.internal_static_session_SchemaConcept_IsImplicit_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit(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.ConceptProto.SchemaConcept.IsImplicit) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit.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.ConceptProto.SchemaConcept.IsImplicit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit) 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.SchemaConcept.IsImplicit) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.IsImplicit) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<IsImplicit> PARSER = new com.google.protobuf.AbstractParser<IsImplicit>() { public IsImplicit parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IsImplicit(input, extensionRegistry); } }; public static com.google.protobuf.Parser<IsImplicit> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<IsImplicit> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.IsImplicit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetSupOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.GetSup) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.SchemaConcept.GetSup} */ public static final class GetSup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.GetSup) GetSupOrBuilder { // Use GetSup.newBuilder() to construct. private GetSup(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private GetSup() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetSup( 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.ConceptProto.internal_static_session_SchemaConcept_GetSup_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetSup_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.GetSup.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.SchemaConcept.GetSup.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.GetSup.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.ConceptProto.internal_static_session_SchemaConcept_GetSup_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetSup_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.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.SchemaConcept.GetSup.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.GetSup.Req) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetSup_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetSup_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.internal_static_session_SchemaConcept_GetSup_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.SchemaConcept.GetSup.Req) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.GetSup.Req) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.GetSup.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept schemaConcept = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getSchemaConcept(); /** * <code>optional .session.Concept schemaConcept = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getSchemaConceptOrBuilder(); /** * <code>optional .session.Null null = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.Null getNull(); /** * <code>optional .session.Null null = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.NullOrBuilder getNullOrBuilder(); public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.ResCase getResCase(); } /** * Protobuf type {@code session.SchemaConcept.GetSup.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.GetSup.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.ConceptProto.internal_static_session_SchemaConcept_GetSup_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetSup_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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; /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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(); } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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; /** * <code>optional .session.Null null = 2;</code> */ 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(); } /** * <code>optional .session.Null null = 2;</code> */ 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.ConceptProto.SchemaConcept.GetSup.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.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.SchemaConcept.GetSup.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.GetSup.Res) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetSup_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetSup_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.internal_static_session_SchemaConcept_GetSup_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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_; /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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(); } } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getSchemaConceptBuilder() { return getSchemaConceptFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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(); } } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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_; /** * <code>optional .session.Null null = 2;</code> */ 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(); } } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Null.Builder getNullBuilder() { return getNullFieldBuilder().getBuilder(); } /** * <code>optional .session.Null null = 2;</code> */ 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(); } } /** * <code>optional .session.Null null = 2;</code> */ 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.SchemaConcept.GetSup.Res) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.GetSup.Res) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup) 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.ConceptProto.SchemaConcept.GetSup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup 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.ConceptProto.SchemaConcept.GetSup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup 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.ConceptProto.SchemaConcept.GetSup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup 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.ConceptProto.SchemaConcept.GetSup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup 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.ConceptProto.SchemaConcept.GetSup 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.SchemaConcept.GetSup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.GetSup) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetSup_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_GetSup_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.internal_static_session_SchemaConcept_GetSup_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup(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.ConceptProto.SchemaConcept.GetSup) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup.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.ConceptProto.SchemaConcept.GetSup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup) 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.SchemaConcept.GetSup) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.GetSup) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<GetSup> PARSER = new com.google.protobuf.AbstractParser<GetSup>() { public GetSup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetSup(input, extensionRegistry); } }; public static com.google.protobuf.Parser<GetSup> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<GetSup> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.GetSup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SetSupOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.SetSup) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.SchemaConcept.SetSup} */ public static final class SetSup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.SetSup) SetSupOrBuilder { // Use SetSup.newBuilder() to construct. private SetSup(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private SetSup() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SetSup( 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.ConceptProto.internal_static_session_SchemaConcept_SetSup_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetSup_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.SetSup.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept schemaConcept = 1;</code> */ boolean hasSchemaConcept(); /** * <code>optional .session.Concept schemaConcept = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getSchemaConcept(); /** * <code>optional .session.Concept schemaConcept = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getSchemaConceptOrBuilder(); } /** * Protobuf type {@code session.SchemaConcept.SetSup.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.SetSup.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.Concept.Builder subBuilder = null; if (schemaConcept_ != null) { subBuilder = schemaConcept_.toBuilder(); } schemaConcept_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(schemaConcept_); schemaConcept_ = 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.ConceptProto.internal_static_session_SchemaConcept_SetSup_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetSup_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.Builder.class); } public static final int SCHEMACONCEPT_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept schemaConcept_; /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public boolean hasSchemaConcept() { return schemaConcept_ != null; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getSchemaConcept() { return schemaConcept_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : schemaConcept_; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getSchemaConceptOrBuilder() { return getSchemaConcept(); } 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 (schemaConcept_ != null) { output.writeMessage(1, getSchemaConcept()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (schemaConcept_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSchemaConcept()); } 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.ConceptProto.SchemaConcept.SetSup.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req) obj; boolean result = true; result = result && (hasSchemaConcept() == other.hasSchemaConcept()); if (hasSchemaConcept()) { result = result && getSchemaConcept() .equals(other.getSchemaConcept()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSchemaConcept()) { hash = (37 * hash) + SCHEMACONCEPT_FIELD_NUMBER; hash = (53 * hash) + getSchemaConcept().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup.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.SchemaConcept.SetSup.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.SetSup.Req) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetSup_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetSup_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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 (schemaConceptBuilder_ == null) { schemaConcept_ = null; } else { schemaConcept_ = null; schemaConceptBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetSup_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req(this); if (schemaConceptBuilder_ == null) { result.schemaConcept_ = schemaConcept_; } else { result.schemaConcept_ = schemaConceptBuilder_.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.ConceptProto.SchemaConcept.SetSup.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req.getDefaultInstance()) return this; if (other.hasSchemaConcept()) { mergeSchemaConcept(other.getSchemaConcept()); } 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.ConceptProto.SchemaConcept.SetSup.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.ConceptProto.Concept schemaConcept_ = 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> schemaConceptBuilder_; /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public boolean hasSchemaConcept() { return schemaConceptBuilder_ != null || schemaConcept_ != null; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getSchemaConcept() { if (schemaConceptBuilder_ == null) { return schemaConcept_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : schemaConcept_; } else { return schemaConceptBuilder_.getMessage(); } } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public Builder setSchemaConcept(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (schemaConceptBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schemaConcept_ = value; onChanged(); } else { schemaConceptBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public Builder setSchemaConcept( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (schemaConceptBuilder_ == null) { schemaConcept_ = builderForValue.build(); onChanged(); } else { schemaConceptBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public Builder mergeSchemaConcept(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (schemaConceptBuilder_ == null) { if (schemaConcept_ != null) { schemaConcept_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(schemaConcept_).mergeFrom(value).buildPartial(); } else { schemaConcept_ = value; } onChanged(); } else { schemaConceptBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public Builder clearSchemaConcept() { if (schemaConceptBuilder_ == null) { schemaConcept_ = null; onChanged(); } else { schemaConcept_ = null; schemaConceptBuilder_ = null; } return this; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getSchemaConceptBuilder() { onChanged(); return getSchemaConceptFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getSchemaConceptOrBuilder() { if (schemaConceptBuilder_ != null) { return schemaConceptBuilder_.getMessageOrBuilder(); } else { return schemaConcept_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : schemaConcept_; } } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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) { 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>( getSchemaConcept(), getParentForChildren(), isClean()); schemaConcept_ = null; } return schemaConceptBuilder_; } 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.SchemaConcept.SetSup.Req) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.SetSup.Req) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.SetSup.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.SchemaConcept.SetSup.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.SetSup.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.ConceptProto.internal_static_session_SchemaConcept_SetSup_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetSup_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup.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.SchemaConcept.SetSup.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.SetSup.Res) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetSup_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetSup_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.internal_static_session_SchemaConcept_SetSup_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.SchemaConcept.SetSup.Res) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.SetSup.Res) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup) 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.ConceptProto.SchemaConcept.SetSup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup 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.ConceptProto.SchemaConcept.SetSup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup 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.ConceptProto.SchemaConcept.SetSup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup 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.ConceptProto.SchemaConcept.SetSup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup 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.ConceptProto.SchemaConcept.SetSup 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.SchemaConcept.SetSup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.SetSup) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetSup_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_SetSup_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.internal_static_session_SchemaConcept_SetSup_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup(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.ConceptProto.SchemaConcept.SetSup) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup.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.ConceptProto.SchemaConcept.SetSup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup) 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.SchemaConcept.SetSup) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.SetSup) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<SetSup> PARSER = new com.google.protobuf.AbstractParser<SetSup>() { public SetSup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SetSup(input, extensionRegistry); } }; public static com.google.protobuf.Parser<SetSup> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<SetSup> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SetSup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SupsOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.Sups) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.SchemaConcept.Sups} */ public static final class Sups extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.Sups) SupsOrBuilder { // Use Sups.newBuilder() to construct. private Sups(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Sups() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Sups( 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.ConceptProto.internal_static_session_SchemaConcept_Sups_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Sups_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.Sups.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.SchemaConcept.Sups.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.Sups.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.ConceptProto.internal_static_session_SchemaConcept_Sups_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Sups_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.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.SchemaConcept.Sups.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.Sups.Req) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Sups_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Sups_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.internal_static_session_SchemaConcept_Sups_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.SchemaConcept.Sups.Req) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.Sups.Req) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.Sups.Iter) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.SchemaConcept.Sups.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.Sups.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.ConceptProto.internal_static_session_SchemaConcept_Sups_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Sups_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.Sups.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept schemaConcept = 1;</code> */ boolean hasSchemaConcept(); /** * <code>optional .session.Concept schemaConcept = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getSchemaConcept(); /** * <code>optional .session.Concept schemaConcept = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getSchemaConceptOrBuilder(); } /** * Protobuf type {@code session.SchemaConcept.Sups.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.Sups.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 (schemaConcept_ != null) { subBuilder = schemaConcept_.toBuilder(); } schemaConcept_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(schemaConcept_); schemaConcept_ = 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.ConceptProto.internal_static_session_SchemaConcept_Sups_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Sups_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.Builder.class); } public static final int SCHEMACONCEPT_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept schemaConcept_; /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public boolean hasSchemaConcept() { return schemaConcept_ != null; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getSchemaConcept() { return schemaConcept_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : schemaConcept_; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getSchemaConceptOrBuilder() { return getSchemaConcept(); } 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 (schemaConcept_ != null) { output.writeMessage(1, getSchemaConcept()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (schemaConcept_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSchemaConcept()); } 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.ConceptProto.SchemaConcept.Sups.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res) obj; boolean result = true; result = result && (hasSchemaConcept() == other.hasSchemaConcept()); if (hasSchemaConcept()) { result = result && getSchemaConcept() .equals(other.getSchemaConcept()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSchemaConcept()) { hash = (37 * hash) + SCHEMACONCEPT_FIELD_NUMBER; hash = (53 * hash) + getSchemaConcept().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.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.SchemaConcept.Sups.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.Sups.Iter.Res) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Sups_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Sups_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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 (schemaConceptBuilder_ == null) { schemaConcept_ = null; } else { schemaConcept_ = null; schemaConceptBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Sups_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res(this); if (schemaConceptBuilder_ == null) { result.schemaConcept_ = schemaConcept_; } else { result.schemaConcept_ = schemaConceptBuilder_.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.ConceptProto.SchemaConcept.Sups.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res.getDefaultInstance()) return this; if (other.hasSchemaConcept()) { mergeSchemaConcept(other.getSchemaConcept()); } 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.ConceptProto.SchemaConcept.Sups.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.ConceptProto.Concept schemaConcept_ = 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> schemaConceptBuilder_; /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public boolean hasSchemaConcept() { return schemaConceptBuilder_ != null || schemaConcept_ != null; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getSchemaConcept() { if (schemaConceptBuilder_ == null) { return schemaConcept_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : schemaConcept_; } else { return schemaConceptBuilder_.getMessage(); } } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public Builder setSchemaConcept(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (schemaConceptBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schemaConcept_ = value; onChanged(); } else { schemaConceptBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public Builder setSchemaConcept( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (schemaConceptBuilder_ == null) { schemaConcept_ = builderForValue.build(); onChanged(); } else { schemaConceptBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public Builder mergeSchemaConcept(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (schemaConceptBuilder_ == null) { if (schemaConcept_ != null) { schemaConcept_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(schemaConcept_).mergeFrom(value).buildPartial(); } else { schemaConcept_ = value; } onChanged(); } else { schemaConceptBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public Builder clearSchemaConcept() { if (schemaConceptBuilder_ == null) { schemaConcept_ = null; onChanged(); } else { schemaConcept_ = null; schemaConceptBuilder_ = null; } return this; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getSchemaConceptBuilder() { onChanged(); return getSchemaConceptFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getSchemaConceptOrBuilder() { if (schemaConceptBuilder_ != null) { return schemaConceptBuilder_.getMessageOrBuilder(); } else { return schemaConcept_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : schemaConcept_; } } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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) { 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>( getSchemaConcept(), getParentForChildren(), isClean()); schemaConcept_ = null; } return schemaConceptBuilder_; } 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.SchemaConcept.Sups.Iter.Res) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.Sups.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ 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.ConceptProto.SchemaConcept.Sups.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.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.SchemaConcept.Sups.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.Sups.Iter) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Sups_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Sups_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.internal_static_session_SchemaConcept_Sups_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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.SchemaConcept.Sups.Iter) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.Sups.Iter) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups) 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.ConceptProto.SchemaConcept.Sups parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups 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.ConceptProto.SchemaConcept.Sups parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups 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.ConceptProto.SchemaConcept.Sups parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups 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.ConceptProto.SchemaConcept.Sups parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups 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.ConceptProto.SchemaConcept.Sups 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.SchemaConcept.Sups} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.Sups) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SupsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Sups_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Sups_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.internal_static_session_SchemaConcept_Sups_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups(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.ConceptProto.SchemaConcept.Sups) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups.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.ConceptProto.SchemaConcept.Sups parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups) 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.SchemaConcept.Sups) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.Sups) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Sups> PARSER = new com.google.protobuf.AbstractParser<Sups>() { public Sups parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Sups(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Sups> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Sups> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Sups getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SubsOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.Subs) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.SchemaConcept.Subs} */ public static final class Subs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.Subs) SubsOrBuilder { // Use Subs.newBuilder() to construct. private Subs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Subs() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Subs( 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.ConceptProto.internal_static_session_SchemaConcept_Subs_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Subs_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.Subs.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.SchemaConcept.Subs.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.Subs.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.ConceptProto.internal_static_session_SchemaConcept_Subs_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Subs_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.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.SchemaConcept.Subs.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.Subs.Req) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Subs_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Subs_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.internal_static_session_SchemaConcept_Subs_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.SchemaConcept.Subs.Req) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.Subs.Req) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.Subs.Iter) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.SchemaConcept.Subs.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.Subs.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.ConceptProto.internal_static_session_SchemaConcept_Subs_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Subs_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.SchemaConcept.Subs.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept schemaConcept = 1;</code> */ boolean hasSchemaConcept(); /** * <code>optional .session.Concept schemaConcept = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getSchemaConcept(); /** * <code>optional .session.Concept schemaConcept = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getSchemaConceptOrBuilder(); } /** * Protobuf type {@code session.SchemaConcept.Subs.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.SchemaConcept.Subs.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 (schemaConcept_ != null) { subBuilder = schemaConcept_.toBuilder(); } schemaConcept_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(schemaConcept_); schemaConcept_ = 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.ConceptProto.internal_static_session_SchemaConcept_Subs_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Subs_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.Builder.class); } public static final int SCHEMACONCEPT_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept schemaConcept_; /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public boolean hasSchemaConcept() { return schemaConcept_ != null; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getSchemaConcept() { return schemaConcept_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : schemaConcept_; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getSchemaConceptOrBuilder() { return getSchemaConcept(); } 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 (schemaConcept_ != null) { output.writeMessage(1, getSchemaConcept()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (schemaConcept_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSchemaConcept()); } 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.ConceptProto.SchemaConcept.Subs.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res) obj; boolean result = true; result = result && (hasSchemaConcept() == other.hasSchemaConcept()); if (hasSchemaConcept()) { result = result && getSchemaConcept() .equals(other.getSchemaConcept()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSchemaConcept()) { hash = (37 * hash) + SCHEMACONCEPT_FIELD_NUMBER; hash = (53 * hash) + getSchemaConcept().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.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.SchemaConcept.Subs.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.Subs.Iter.Res) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Subs_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Subs_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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 (schemaConceptBuilder_ == null) { schemaConcept_ = null; } else { schemaConcept_ = null; schemaConceptBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Subs_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res(this); if (schemaConceptBuilder_ == null) { result.schemaConcept_ = schemaConcept_; } else { result.schemaConcept_ = schemaConceptBuilder_.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.ConceptProto.SchemaConcept.Subs.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res.getDefaultInstance()) return this; if (other.hasSchemaConcept()) { mergeSchemaConcept(other.getSchemaConcept()); } 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.ConceptProto.SchemaConcept.Subs.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.ConceptProto.Concept schemaConcept_ = 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> schemaConceptBuilder_; /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public boolean hasSchemaConcept() { return schemaConceptBuilder_ != null || schemaConcept_ != null; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getSchemaConcept() { if (schemaConceptBuilder_ == null) { return schemaConcept_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : schemaConcept_; } else { return schemaConceptBuilder_.getMessage(); } } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public Builder setSchemaConcept(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (schemaConceptBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schemaConcept_ = value; onChanged(); } else { schemaConceptBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public Builder setSchemaConcept( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (schemaConceptBuilder_ == null) { schemaConcept_ = builderForValue.build(); onChanged(); } else { schemaConceptBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public Builder mergeSchemaConcept(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (schemaConceptBuilder_ == null) { if (schemaConcept_ != null) { schemaConcept_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(schemaConcept_).mergeFrom(value).buildPartial(); } else { schemaConcept_ = value; } onChanged(); } else { schemaConceptBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public Builder clearSchemaConcept() { if (schemaConceptBuilder_ == null) { schemaConcept_ = null; onChanged(); } else { schemaConcept_ = null; schemaConceptBuilder_ = null; } return this; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getSchemaConceptBuilder() { onChanged(); return getSchemaConceptFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getSchemaConceptOrBuilder() { if (schemaConceptBuilder_ != null) { return schemaConceptBuilder_.getMessageOrBuilder(); } else { return schemaConcept_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : schemaConcept_; } } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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) { 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>( getSchemaConcept(), getParentForChildren(), isClean()); schemaConcept_ = null; } return schemaConceptBuilder_; } 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.SchemaConcept.Subs.Iter.Res) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.Subs.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ 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.ConceptProto.SchemaConcept.Subs.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.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.SchemaConcept.Subs.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.Subs.Iter) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Subs_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Subs_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.internal_static_session_SchemaConcept_Subs_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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.SchemaConcept.Subs.Iter) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.Subs.Iter) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs) 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.ConceptProto.SchemaConcept.Subs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs 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.ConceptProto.SchemaConcept.Subs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs 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.ConceptProto.SchemaConcept.Subs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs 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.ConceptProto.SchemaConcept.Subs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs 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.ConceptProto.SchemaConcept.Subs 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.SchemaConcept.Subs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept.Subs) ai.grakn.rpc.proto.ConceptProto.SchemaConcept.SubsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Subs_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_Subs_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.internal_static_session_SchemaConcept_Subs_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs(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.ConceptProto.SchemaConcept.Subs) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs.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.ConceptProto.SchemaConcept.Subs parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs) 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.SchemaConcept.Subs) } // @@protoc_insertion_point(class_scope:session.SchemaConcept.Subs) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Subs> PARSER = new com.google.protobuf.AbstractParser<Subs>() { public Subs parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Subs(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Subs> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Subs> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Subs 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.ConceptProto.SchemaConcept)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.SchemaConcept other = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept) 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.ConceptProto.SchemaConcept parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept 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.ConceptProto.SchemaConcept parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept 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.ConceptProto.SchemaConcept parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept 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.ConceptProto.SchemaConcept parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept 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.ConceptProto.SchemaConcept 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.SchemaConcept} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.SchemaConcept) ai.grakn.rpc.proto.ConceptProto.SchemaConceptOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_SchemaConcept_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.SchemaConcept.class, ai.grakn.rpc.proto.ConceptProto.SchemaConcept.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.SchemaConcept.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.ConceptProto.internal_static_session_SchemaConcept_descriptor; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.SchemaConcept.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept build() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept buildPartial() { ai.grakn.rpc.proto.ConceptProto.SchemaConcept result = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept(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.ConceptProto.SchemaConcept) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.SchemaConcept)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.SchemaConcept other) { if (other == ai.grakn.rpc.proto.ConceptProto.SchemaConcept.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.ConceptProto.SchemaConcept parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.SchemaConcept) 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.SchemaConcept) } // @@protoc_insertion_point(class_scope:session.SchemaConcept) private static final ai.grakn.rpc.proto.ConceptProto.SchemaConcept DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.SchemaConcept(); } public static ai.grakn.rpc.proto.ConceptProto.SchemaConcept getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<SchemaConcept> PARSER = new com.google.protobuf.AbstractParser<SchemaConcept>() { public SchemaConcept parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SchemaConcept(input, extensionRegistry); } }; public static com.google.protobuf.Parser<SchemaConcept> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<SchemaConcept> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.SchemaConcept getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RuleOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Rule) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Rule} */ public static final class Rule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Rule) RuleOrBuilder { // Use Rule.newBuilder() to construct. private Rule(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Rule() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Rule( 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.ConceptProto.internal_static_session_Rule_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Rule.class, ai.grakn.rpc.proto.ConceptProto.Rule.Builder.class); } public interface WhenOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Rule.When) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Rule.When} */ public static final class When extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Rule.When) WhenOrBuilder { // Use When.newBuilder() to construct. private When(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private When() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private When( 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.ConceptProto.internal_static_session_Rule_When_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_When_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Rule.When.class, ai.grakn.rpc.proto.ConceptProto.Rule.When.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Rule.When.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Rule.When.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Rule.When.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.ConceptProto.internal_static_session_Rule_When_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_When_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.class, ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.Rule.When.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Rule.When.Req other = (ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.Rule.When.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.Rule.When.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.Rule.When.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.Rule.When.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.Rule.When.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.ConceptProto.Rule.When.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.ConceptProto.Rule.When.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.Rule.When.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Rule.When.Req) ai.grakn.rpc.proto.ConceptProto.Rule.When.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_When_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_When_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.class, ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.internal_static_session_Rule_When_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Rule.When.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Rule.When.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Rule.When.Req build() { ai.grakn.rpc.proto.ConceptProto.Rule.When.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Rule.When.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Rule.When.Req result = new ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.Rule.When.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Rule.When.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Rule.When.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.Rule.When.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Rule.When.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.Rule.When.Req) } // @@protoc_insertion_point(class_scope:session.Rule.When.Req) private static final ai.grakn.rpc.proto.ConceptProto.Rule.When.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Rule.When.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Rule.When.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Rule.When.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional string pattern = 1;</code> */ java.lang.String getPattern(); /** * <code>optional string pattern = 1;</code> */ com.google.protobuf.ByteString getPatternBytes(); /** * <code>optional .session.Null null = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.Null getNull(); /** * <code>optional .session.Null null = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.NullOrBuilder getNullOrBuilder(); public ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.ResCase getResCase(); } /** * Protobuf type {@code session.Rule.When.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Rule.When.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: { java.lang.String s = input.readStringRequireUtf8(); resCase_ = 1; res_ = s; 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.ConceptProto.internal_static_session_Rule_When_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_When_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.class, ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.Builder.class); } private int resCase_ = 0; private java.lang.Object res_; public enum ResCase implements com.google.protobuf.Internal.EnumLite { PATTERN(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 PATTERN; 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 PATTERN_FIELD_NUMBER = 1; /** * <code>optional string pattern = 1;</code> */ public java.lang.String getPattern() { java.lang.Object ref = ""; if (resCase_ == 1) { ref = res_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (resCase_ == 1) { res_ = s; } return s; } } /** * <code>optional string pattern = 1;</code> */ public com.google.protobuf.ByteString getPatternBytes() { java.lang.Object ref = ""; if (resCase_ == 1) { ref = res_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (resCase_ == 1) { res_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NULL_FIELD_NUMBER = 2; /** * <code>optional .session.Null null = 2;</code> */ 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(); } /** * <code>optional .session.Null null = 2;</code> */ 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) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, 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.GeneratedMessageV3.computeStringSize(1, 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.ConceptProto.Rule.When.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Rule.When.Res other = (ai.grakn.rpc.proto.ConceptProto.Rule.When.Res) obj; boolean result = true; result = result && getResCase().equals( other.getResCase()); if (!result) return false; switch (resCase_) { case 1: result = result && getPattern() .equals(other.getPattern()); 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) + PATTERN_FIELD_NUMBER; hash = (53 * hash) + getPattern().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.ConceptProto.Rule.When.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.Rule.When.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.Rule.When.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.Rule.When.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.Rule.When.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.ConceptProto.Rule.When.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.ConceptProto.Rule.When.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.Rule.When.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Rule.When.Res) ai.grakn.rpc.proto.ConceptProto.Rule.When.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_When_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_When_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.class, ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.internal_static_session_Rule_When_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Rule.When.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Rule.When.Res build() { ai.grakn.rpc.proto.ConceptProto.Rule.When.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Rule.When.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Rule.When.Res result = new ai.grakn.rpc.proto.ConceptProto.Rule.When.Res(this); if (resCase_ == 1) { result.res_ = res_; } 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.ConceptProto.Rule.When.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Rule.When.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Rule.When.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Rule.When.Res.getDefaultInstance()) return this; switch (other.getResCase()) { case PATTERN: { resCase_ = 1; res_ = other.res_; onChanged(); 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.ConceptProto.Rule.When.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Rule.When.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; } /** * <code>optional string pattern = 1;</code> */ public java.lang.String getPattern() { java.lang.Object ref = ""; if (resCase_ == 1) { ref = res_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (resCase_ == 1) { res_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string pattern = 1;</code> */ public com.google.protobuf.ByteString getPatternBytes() { java.lang.Object ref = ""; if (resCase_ == 1) { ref = res_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (resCase_ == 1) { res_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string pattern = 1;</code> */ public Builder setPattern( java.lang.String value) { if (value == null) { throw new NullPointerException(); } resCase_ = 1; res_ = value; onChanged(); return this; } /** * <code>optional string pattern = 1;</code> */ public Builder clearPattern() { if (resCase_ == 1) { resCase_ = 0; res_ = null; onChanged(); } return this; } /** * <code>optional string pattern = 1;</code> */ public Builder setPatternBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resCase_ = 1; res_ = value; onChanged(); return this; } 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_; /** * <code>optional .session.Null null = 2;</code> */ 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(); } } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Null.Builder getNullBuilder() { return getNullFieldBuilder().getBuilder(); } /** * <code>optional .session.Null null = 2;</code> */ 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(); } } /** * <code>optional .session.Null null = 2;</code> */ 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.Rule.When.Res) } // @@protoc_insertion_point(class_scope:session.Rule.When.Res) private static final ai.grakn.rpc.proto.ConceptProto.Rule.When.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Rule.When.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.Rule.When)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Rule.When other = (ai.grakn.rpc.proto.ConceptProto.Rule.When) 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.ConceptProto.Rule.When parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When 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.ConceptProto.Rule.When parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When 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.ConceptProto.Rule.When parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When 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.ConceptProto.Rule.When parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When 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.ConceptProto.Rule.When 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.Rule.When} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Rule.When) ai.grakn.rpc.proto.ConceptProto.Rule.WhenOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_When_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_When_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Rule.When.class, ai.grakn.rpc.proto.ConceptProto.Rule.When.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.internal_static_session_Rule_When_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Rule.When getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Rule.When.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Rule.When build() { ai.grakn.rpc.proto.ConceptProto.Rule.When result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Rule.When buildPartial() { ai.grakn.rpc.proto.ConceptProto.Rule.When result = new ai.grakn.rpc.proto.ConceptProto.Rule.When(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.ConceptProto.Rule.When) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Rule.When)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Rule.When other) { if (other == ai.grakn.rpc.proto.ConceptProto.Rule.When.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.ConceptProto.Rule.When parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Rule.When) 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.Rule.When) } // @@protoc_insertion_point(class_scope:session.Rule.When) private static final ai.grakn.rpc.proto.ConceptProto.Rule.When DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Rule.When(); } public static ai.grakn.rpc.proto.ConceptProto.Rule.When getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<When> PARSER = new com.google.protobuf.AbstractParser<When>() { public When parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new When(input, extensionRegistry); } }; public static com.google.protobuf.Parser<When> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<When> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Rule.When getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ThenOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Rule.Then) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Rule.Then} */ public static final class Then extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Rule.Then) ThenOrBuilder { // Use Then.newBuilder() to construct. private Then(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Then() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Then( 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.ConceptProto.internal_static_session_Rule_Then_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_Then_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Rule.Then.class, ai.grakn.rpc.proto.ConceptProto.Rule.Then.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Rule.Then.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Rule.Then.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Rule.Then.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.ConceptProto.internal_static_session_Rule_Then_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_Then_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.class, ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req other = (ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then.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.Rule.Then.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Rule.Then.Req) ai.grakn.rpc.proto.ConceptProto.Rule.Then.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_Then_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_Then_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.class, ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.internal_static_session_Rule_Then_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req build() { ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req result = new ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.Rule.Then.Req) } // @@protoc_insertion_point(class_scope:session.Rule.Then.Req) private static final ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Rule.Then.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Rule.Then.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional string pattern = 1;</code> */ java.lang.String getPattern(); /** * <code>optional string pattern = 1;</code> */ com.google.protobuf.ByteString getPatternBytes(); /** * <code>optional .session.Null null = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.Null getNull(); /** * <code>optional .session.Null null = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.NullOrBuilder getNullOrBuilder(); public ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.ResCase getResCase(); } /** * Protobuf type {@code session.Rule.Then.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Rule.Then.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: { java.lang.String s = input.readStringRequireUtf8(); resCase_ = 1; res_ = s; 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.ConceptProto.internal_static_session_Rule_Then_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_Then_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.class, ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.Builder.class); } private int resCase_ = 0; private java.lang.Object res_; public enum ResCase implements com.google.protobuf.Internal.EnumLite { PATTERN(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 PATTERN; 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 PATTERN_FIELD_NUMBER = 1; /** * <code>optional string pattern = 1;</code> */ public java.lang.String getPattern() { java.lang.Object ref = ""; if (resCase_ == 1) { ref = res_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (resCase_ == 1) { res_ = s; } return s; } } /** * <code>optional string pattern = 1;</code> */ public com.google.protobuf.ByteString getPatternBytes() { java.lang.Object ref = ""; if (resCase_ == 1) { ref = res_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (resCase_ == 1) { res_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NULL_FIELD_NUMBER = 2; /** * <code>optional .session.Null null = 2;</code> */ 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(); } /** * <code>optional .session.Null null = 2;</code> */ 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) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, 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.GeneratedMessageV3.computeStringSize(1, 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.ConceptProto.Rule.Then.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res other = (ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res) obj; boolean result = true; result = result && getResCase().equals( other.getResCase()); if (!result) return false; switch (resCase_) { case 1: result = result && getPattern() .equals(other.getPattern()); 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) + PATTERN_FIELD_NUMBER; hash = (53 * hash) + getPattern().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.ConceptProto.Rule.Then.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then.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.Rule.Then.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Rule.Then.Res) ai.grakn.rpc.proto.ConceptProto.Rule.Then.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_Then_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_Then_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.class, ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.internal_static_session_Rule_Then_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res build() { ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res result = new ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res(this); if (resCase_ == 1) { result.res_ = res_; } 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.ConceptProto.Rule.Then.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res.getDefaultInstance()) return this; switch (other.getResCase()) { case PATTERN: { resCase_ = 1; res_ = other.res_; onChanged(); 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.ConceptProto.Rule.Then.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Rule.Then.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; } /** * <code>optional string pattern = 1;</code> */ public java.lang.String getPattern() { java.lang.Object ref = ""; if (resCase_ == 1) { ref = res_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (resCase_ == 1) { res_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string pattern = 1;</code> */ public com.google.protobuf.ByteString getPatternBytes() { java.lang.Object ref = ""; if (resCase_ == 1) { ref = res_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (resCase_ == 1) { res_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string pattern = 1;</code> */ public Builder setPattern( java.lang.String value) { if (value == null) { throw new NullPointerException(); } resCase_ = 1; res_ = value; onChanged(); return this; } /** * <code>optional string pattern = 1;</code> */ public Builder clearPattern() { if (resCase_ == 1) { resCase_ = 0; res_ = null; onChanged(); } return this; } /** * <code>optional string pattern = 1;</code> */ public Builder setPatternBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resCase_ = 1; res_ = value; onChanged(); return this; } 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_; /** * <code>optional .session.Null null = 2;</code> */ 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(); } } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Null.Builder getNullBuilder() { return getNullFieldBuilder().getBuilder(); } /** * <code>optional .session.Null null = 2;</code> */ 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(); } } /** * <code>optional .session.Null null = 2;</code> */ 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.Rule.Then.Res) } // @@protoc_insertion_point(class_scope:session.Rule.Then.Res) private static final ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Rule.Then other = (ai.grakn.rpc.proto.ConceptProto.Rule.Then) 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.ConceptProto.Rule.Then parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then 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.ConceptProto.Rule.Then parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then 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.ConceptProto.Rule.Then parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then 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.ConceptProto.Rule.Then parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then 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.ConceptProto.Rule.Then 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.Rule.Then} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Rule.Then) ai.grakn.rpc.proto.ConceptProto.Rule.ThenOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_Then_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_Then_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Rule.Then.class, ai.grakn.rpc.proto.ConceptProto.Rule.Then.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.internal_static_session_Rule_Then_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Rule.Then getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Rule.Then.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Rule.Then build() { ai.grakn.rpc.proto.ConceptProto.Rule.Then result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Rule.Then buildPartial() { ai.grakn.rpc.proto.ConceptProto.Rule.Then result = new ai.grakn.rpc.proto.ConceptProto.Rule.Then(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.ConceptProto.Rule.Then) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Rule.Then)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Rule.Then other) { if (other == ai.grakn.rpc.proto.ConceptProto.Rule.Then.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.ConceptProto.Rule.Then parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Rule.Then) 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.Rule.Then) } // @@protoc_insertion_point(class_scope:session.Rule.Then) private static final ai.grakn.rpc.proto.ConceptProto.Rule.Then DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Rule.Then(); } public static ai.grakn.rpc.proto.ConceptProto.Rule.Then getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Then> PARSER = new com.google.protobuf.AbstractParser<Then>() { public Then parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Then(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Then> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Then> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Rule.Then 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.ConceptProto.Rule)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Rule other = (ai.grakn.rpc.proto.ConceptProto.Rule) 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.ConceptProto.Rule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Rule 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.ConceptProto.Rule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Rule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Rule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule 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.ConceptProto.Rule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule 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.ConceptProto.Rule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Rule 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.ConceptProto.Rule 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.Rule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Rule) ai.grakn.rpc.proto.ConceptProto.RuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Rule_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Rule.class, ai.grakn.rpc.proto.ConceptProto.Rule.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Rule.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.ConceptProto.internal_static_session_Rule_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Rule getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Rule.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Rule build() { ai.grakn.rpc.proto.ConceptProto.Rule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Rule buildPartial() { ai.grakn.rpc.proto.ConceptProto.Rule result = new ai.grakn.rpc.proto.ConceptProto.Rule(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.ConceptProto.Rule) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Rule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Rule other) { if (other == ai.grakn.rpc.proto.ConceptProto.Rule.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.ConceptProto.Rule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Rule) 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.Rule) } // @@protoc_insertion_point(class_scope:session.Rule) private static final ai.grakn.rpc.proto.ConceptProto.Rule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Rule(); } public static ai.grakn.rpc.proto.ConceptProto.Rule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Rule> PARSER = new com.google.protobuf.AbstractParser<Rule>() { public Rule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Rule(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Rule> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Rule> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Rule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RoleOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Role) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Role} */ public static final class Role extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Role) RoleOrBuilder { // Use Role.newBuilder() to construct. private Role(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Role() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Role( 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.ConceptProto.internal_static_session_Role_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.class, ai.grakn.rpc.proto.ConceptProto.Role.Builder.class); } public interface RelationsOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Role.Relations) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Role.Relations} */ public static final class Relations extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Role.Relations) RelationsOrBuilder { // Use Relations.newBuilder() to construct. private Relations(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Relations() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Relations( 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.ConceptProto.internal_static_session_Role_Relations_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Relations_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.Relations.class, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Role.Relations.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Role.Relations.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Role.Relations.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.ConceptProto.internal_static_session_Role_Relations_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Relations_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.class, ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req other = (ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.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.Role.Relations.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Role.Relations.Req) ai.grakn.rpc.proto.ConceptProto.Role.Relations.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Relations_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Relations_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.class, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.internal_static_session_Role_Relations_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req build() { ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req result = new ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.Role.Relations.Req) } // @@protoc_insertion_point(class_scope:session.Role.Relations.Req) private static final ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Role.Relations.Iter) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.Role.Relations.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Role.Relations.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.ConceptProto.internal_static_session_Role_Relations_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Relations_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.class, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Role.Relations.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept relationType = 1;</code> */ boolean hasRelationType(); /** * <code>optional .session.Concept relationType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRelationType(); /** * <code>optional .session.Concept relationType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRelationTypeOrBuilder(); } /** * Protobuf type {@code session.Role.Relations.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Role.Relations.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 (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.ConceptProto.internal_static_session_Role_Relations_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Relations_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res.Builder.class); } public static final int RELATIONTYPE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept relationType_; /** * <code>optional .session.Concept relationType = 1;</code> */ public boolean hasRelationType() { return relationType_ != null; } /** * <code>optional .session.Concept relationType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRelationType() { return relationType_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : relationType_; } /** * <code>optional .session.Concept relationType = 1;</code> */ 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.ConceptProto.Role.Relations.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.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.ConceptProto.Role.Relations.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.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.Role.Relations.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Role.Relations.Iter.Res) ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Relations_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Relations_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Role.Relations.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 (relationTypeBuilder_ == null) { relationType_ = null; } else { relationType_ = null; relationTypeBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Relations_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.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.ConceptProto.Role.Relations.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.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.ConceptProto.Role.Relations.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.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_; /** * <code>optional .session.Concept relationType = 1;</code> */ public boolean hasRelationType() { return relationTypeBuilder_ != null || relationType_ != null; } /** * <code>optional .session.Concept relationType = 1;</code> */ 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(); } } /** * <code>optional .session.Concept relationType = 1;</code> */ 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; } /** * <code>optional .session.Concept relationType = 1;</code> */ 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; } /** * <code>optional .session.Concept relationType = 1;</code> */ 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; } /** * <code>optional .session.Concept relationType = 1;</code> */ public Builder clearRelationType() { if (relationTypeBuilder_ == null) { relationType_ = null; onChanged(); } else { relationType_ = null; relationTypeBuilder_ = null; } return this; } /** * <code>optional .session.Concept relationType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRelationTypeBuilder() { onChanged(); return getRelationTypeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept relationType = 1;</code> */ 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_; } } /** * <code>optional .session.Concept relationType = 1;</code> */ 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.Role.Relations.Iter.Res) } // @@protoc_insertion_point(class_scope:session.Role.Relations.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ 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.ConceptProto.Role.Relations.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter other = (ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.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.Role.Relations.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Role.Relations.Iter) ai.grakn.rpc.proto.ConceptProto.Role.Relations.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Relations_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Relations_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.class, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.internal_static_session_Role_Relations_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter build() { ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter result = new ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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.Role.Relations.Iter) } // @@protoc_insertion_point(class_scope:session.Role.Relations.Iter) private static final ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Role.Relations other = (ai.grakn.rpc.proto.ConceptProto.Role.Relations) 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.ConceptProto.Role.Relations parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations 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.ConceptProto.Role.Relations parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations 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.ConceptProto.Role.Relations parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations 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.ConceptProto.Role.Relations parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations 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.ConceptProto.Role.Relations 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.Role.Relations} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Role.Relations) ai.grakn.rpc.proto.ConceptProto.Role.RelationsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Relations_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Relations_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.Relations.class, ai.grakn.rpc.proto.ConceptProto.Role.Relations.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.internal_static_session_Role_Relations_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Role.Relations getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Role.Relations.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Role.Relations build() { ai.grakn.rpc.proto.ConceptProto.Role.Relations result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Role.Relations buildPartial() { ai.grakn.rpc.proto.ConceptProto.Role.Relations result = new ai.grakn.rpc.proto.ConceptProto.Role.Relations(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.ConceptProto.Role.Relations) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Role.Relations)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Role.Relations other) { if (other == ai.grakn.rpc.proto.ConceptProto.Role.Relations.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.ConceptProto.Role.Relations parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Role.Relations) 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.Role.Relations) } // @@protoc_insertion_point(class_scope:session.Role.Relations) private static final ai.grakn.rpc.proto.ConceptProto.Role.Relations DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Role.Relations(); } public static ai.grakn.rpc.proto.ConceptProto.Role.Relations getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Relations> PARSER = new com.google.protobuf.AbstractParser<Relations>() { public Relations parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Relations(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Relations> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Relations> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Role.Relations getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PlayersOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Role.Players) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Role.Players} */ public static final class Players extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Role.Players) PlayersOrBuilder { // Use Players.newBuilder() to construct. private Players(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Players() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Players( 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.ConceptProto.internal_static_session_Role_Players_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Players_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.Players.class, ai.grakn.rpc.proto.ConceptProto.Role.Players.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Role.Players.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Role.Players.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Role.Players.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.ConceptProto.internal_static_session_Role_Players_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Players_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.class, ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Role.Players.Req other = (ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.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.ConceptProto.Role.Players.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.ConceptProto.Role.Players.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.Role.Players.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Role.Players.Req) ai.grakn.rpc.proto.ConceptProto.Role.Players.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Players_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Players_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.class, ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.internal_static_session_Role_Players_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Role.Players.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Role.Players.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Role.Players.Req build() { ai.grakn.rpc.proto.ConceptProto.Role.Players.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Role.Players.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Role.Players.Req result = new ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Role.Players.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Role.Players.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Role.Players.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.Role.Players.Req) } // @@protoc_insertion_point(class_scope:session.Role.Players.Req) private static final ai.grakn.rpc.proto.ConceptProto.Role.Players.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Role.Players.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Role.Players.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Role.Players.Iter) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.Role.Players.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Role.Players.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.ConceptProto.internal_static_session_Role_Players_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Players_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.class, ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Role.Players.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept type = 1;</code> */ boolean hasType(); /** * <code>optional .session.Concept type = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getType(); /** * <code>optional .session.Concept type = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getTypeOrBuilder(); } /** * Protobuf type {@code session.Role.Players.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Role.Players.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 (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = 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.ConceptProto.internal_static_session_Role_Players_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Players_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept type_; /** * <code>optional .session.Concept type = 1;</code> */ public boolean hasType() { return type_ != null; } /** * <code>optional .session.Concept type = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getType() { return type_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : type_; } /** * <code>optional .session.Concept type = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getTypeOrBuilder() { return getType(); } 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 (type_ != null) { output.writeMessage(1, getType()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } 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.ConceptProto.Role.Players.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType() .equals(other.getType()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.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.ConceptProto.Role.Players.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.ConceptProto.Role.Players.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.ConceptProto.Role.Players.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.ConceptProto.Role.Players.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.ConceptProto.Role.Players.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.ConceptProto.Role.Players.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.Role.Players.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Role.Players.Iter.Res) ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Players_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Players_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Role.Players.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 (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Players_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res(this); if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.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.ConceptProto.Role.Players.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } 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.ConceptProto.Role.Players.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.ConceptProto.Concept type_ = 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> typeBuilder_; /** * <code>optional .session.Concept type = 1;</code> */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** * <code>optional .session.Concept type = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getType() { if (typeBuilder_ == null) { return type_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * <code>optional .session.Concept type = 1;</code> */ public Builder setType(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Concept type = 1;</code> */ public Builder setType( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Concept type = 1;</code> */ public Builder mergeType(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Concept type = 1;</code> */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** * <code>optional .session.Concept type = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept type = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : type_; } } /** * <code>optional .session.Concept type = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } 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.Role.Players.Iter.Res) } // @@protoc_insertion_point(class_scope:session.Role.Players.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ 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.ConceptProto.Role.Players.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter other = (ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.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.ConceptProto.Role.Players.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.ConceptProto.Role.Players.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.Role.Players.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Role.Players.Iter) ai.grakn.rpc.proto.ConceptProto.Role.Players.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Players_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Players_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.class, ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.internal_static_session_Role_Players_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter build() { ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter result = new ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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.Role.Players.Iter) } // @@protoc_insertion_point(class_scope:session.Role.Players.Iter) private static final ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Role.Players other = (ai.grakn.rpc.proto.ConceptProto.Role.Players) 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.ConceptProto.Role.Players parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players 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.ConceptProto.Role.Players parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players 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.ConceptProto.Role.Players parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players 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.ConceptProto.Role.Players parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players 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.ConceptProto.Role.Players 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.Role.Players} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Role.Players) ai.grakn.rpc.proto.ConceptProto.Role.PlayersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Players_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_Players_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.Players.class, ai.grakn.rpc.proto.ConceptProto.Role.Players.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.internal_static_session_Role_Players_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Role.Players getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Role.Players.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Role.Players build() { ai.grakn.rpc.proto.ConceptProto.Role.Players result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Role.Players buildPartial() { ai.grakn.rpc.proto.ConceptProto.Role.Players result = new ai.grakn.rpc.proto.ConceptProto.Role.Players(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.ConceptProto.Role.Players) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Role.Players)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Role.Players other) { if (other == ai.grakn.rpc.proto.ConceptProto.Role.Players.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.ConceptProto.Role.Players parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Role.Players) 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.Role.Players) } // @@protoc_insertion_point(class_scope:session.Role.Players) private static final ai.grakn.rpc.proto.ConceptProto.Role.Players DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Role.Players(); } public static ai.grakn.rpc.proto.ConceptProto.Role.Players getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Players> PARSER = new com.google.protobuf.AbstractParser<Players>() { public Players parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Players(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Players> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Players> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Role.Players 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.ConceptProto.Role)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Role other = (ai.grakn.rpc.proto.ConceptProto.Role) 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.ConceptProto.Role parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role 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.ConceptProto.Role parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Role parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Role parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role 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.ConceptProto.Role parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role 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.ConceptProto.Role parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Role 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.ConceptProto.Role 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.Role} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Role) ai.grakn.rpc.proto.ConceptProto.RoleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Role_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Role.class, ai.grakn.rpc.proto.ConceptProto.Role.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Role.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.ConceptProto.internal_static_session_Role_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Role getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Role.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Role build() { ai.grakn.rpc.proto.ConceptProto.Role result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Role buildPartial() { ai.grakn.rpc.proto.ConceptProto.Role result = new ai.grakn.rpc.proto.ConceptProto.Role(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.ConceptProto.Role) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Role)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Role other) { if (other == ai.grakn.rpc.proto.ConceptProto.Role.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.ConceptProto.Role parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Role) 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.Role) } // @@protoc_insertion_point(class_scope:session.Role) private static final ai.grakn.rpc.proto.ConceptProto.Role DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Role(); } public static ai.grakn.rpc.proto.ConceptProto.Role getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Role> PARSER = new com.google.protobuf.AbstractParser<Role>() { public Role parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Role(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Role> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Role> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Role getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TypeOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type} */ public static final class Type extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type) TypeOrBuilder { // Use Type.newBuilder() to construct. private Type(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Type() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Type( 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.ConceptProto.internal_static_session_Type_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.class, ai.grakn.rpc.proto.ConceptProto.Type.Builder.class); } public interface IsAbstractOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.IsAbstract) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.IsAbstract} */ public static final class IsAbstract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.IsAbstract) IsAbstractOrBuilder { // Use IsAbstract.newBuilder() to construct. private IsAbstract(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private IsAbstract() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private IsAbstract( 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.ConceptProto.internal_static_session_Type_IsAbstract_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_IsAbstract_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.class, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.IsAbstract.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.IsAbstract.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.IsAbstract.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.ConceptProto.internal_static_session_Type_IsAbstract_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_IsAbstract_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req other = (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract.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.Type.IsAbstract.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.IsAbstract.Req) ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_IsAbstract_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_IsAbstract_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.ConceptProto.internal_static_session_Type_IsAbstract_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req build() { ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req result = new ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.Type.IsAbstract.Req) } // @@protoc_insertion_point(class_scope:session.Type.IsAbstract.Req) private static final ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.IsAbstract.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional bool abstract = 1;</code> */ boolean getAbstract(); } /** * Protobuf type {@code session.Type.IsAbstract.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.IsAbstract.Res) ResOrBuilder { // Use Res.newBuilder() to construct. private Res(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Res() { abstract_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Res( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { abstract_ = input.readBool(); 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.ConceptProto.internal_static_session_Type_IsAbstract_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_IsAbstract_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.Builder.class); } public static final int ABSTRACT_FIELD_NUMBER = 1; private boolean abstract_; /** * <code>optional bool abstract = 1;</code> */ public boolean getAbstract() { return abstract_; } 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 (abstract_ != false) { output.writeBool(1, abstract_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (abstract_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, abstract_); } 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.ConceptProto.Type.IsAbstract.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res other = (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res) obj; boolean result = true; result = result && (getAbstract() == other.getAbstract()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + ABSTRACT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAbstract()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract.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.Type.IsAbstract.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.IsAbstract.Res) ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_IsAbstract_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_IsAbstract_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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(); abstract_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_IsAbstract_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res build() { ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res result = new ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res(this); result.abstract_ = abstract_; 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.ConceptProto.Type.IsAbstract.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res.getDefaultInstance()) return this; if (other.getAbstract() != false) { setAbstract(other.getAbstract()); } 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.ConceptProto.Type.IsAbstract.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean abstract_ ; /** * <code>optional bool abstract = 1;</code> */ public boolean getAbstract() { return abstract_; } /** * <code>optional bool abstract = 1;</code> */ public Builder setAbstract(boolean value) { abstract_ = value; onChanged(); return this; } /** * <code>optional bool abstract = 1;</code> */ public Builder clearAbstract() { abstract_ = false; 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.Type.IsAbstract.Res) } // @@protoc_insertion_point(class_scope:session.Type.IsAbstract.Res) private static final ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract other = (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract) 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.ConceptProto.Type.IsAbstract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract 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.ConceptProto.Type.IsAbstract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract 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.ConceptProto.Type.IsAbstract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract 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.ConceptProto.Type.IsAbstract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract 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.ConceptProto.Type.IsAbstract 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.Type.IsAbstract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.IsAbstract) ai.grakn.rpc.proto.ConceptProto.Type.IsAbstractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_IsAbstract_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_IsAbstract_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.class, ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.ConceptProto.internal_static_session_Type_IsAbstract_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract build() { ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract result = new ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract(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.ConceptProto.Type.IsAbstract) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract.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.ConceptProto.Type.IsAbstract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract) 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.Type.IsAbstract) } // @@protoc_insertion_point(class_scope:session.Type.IsAbstract) private static final ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract(); } public static ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<IsAbstract> PARSER = new com.google.protobuf.AbstractParser<IsAbstract>() { public IsAbstract parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IsAbstract(input, extensionRegistry); } }; public static com.google.protobuf.Parser<IsAbstract> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<IsAbstract> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.IsAbstract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SetAbstractOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.SetAbstract) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.SetAbstract} */ public static final class SetAbstract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.SetAbstract) SetAbstractOrBuilder { // Use SetAbstract.newBuilder() to construct. private SetAbstract(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private SetAbstract() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SetAbstract( 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.ConceptProto.internal_static_session_Type_SetAbstract_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_SetAbstract_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.class, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.SetAbstract.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional bool abstract = 1;</code> */ boolean getAbstract(); } /** * Protobuf type {@code session.Type.SetAbstract.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.SetAbstract.Req) ReqOrBuilder { // Use Req.newBuilder() to construct. private Req(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Req() { abstract_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Req( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { abstract_ = input.readBool(); 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.ConceptProto.internal_static_session_Type_SetAbstract_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_SetAbstract_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.Builder.class); } public static final int ABSTRACT_FIELD_NUMBER = 1; private boolean abstract_; /** * <code>optional bool abstract = 1;</code> */ public boolean getAbstract() { return abstract_; } 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 (abstract_ != false) { output.writeBool(1, abstract_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (abstract_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, abstract_); } 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.ConceptProto.Type.SetAbstract.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req other = (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req) obj; boolean result = true; result = result && (getAbstract() == other.getAbstract()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + ABSTRACT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAbstract()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract.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.Type.SetAbstract.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.SetAbstract.Req) ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_SetAbstract_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_SetAbstract_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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(); abstract_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_SetAbstract_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req build() { ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req result = new ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req(this); result.abstract_ = abstract_; 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.ConceptProto.Type.SetAbstract.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req.getDefaultInstance()) return this; if (other.getAbstract() != false) { setAbstract(other.getAbstract()); } 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.ConceptProto.Type.SetAbstract.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean abstract_ ; /** * <code>optional bool abstract = 1;</code> */ public boolean getAbstract() { return abstract_; } /** * <code>optional bool abstract = 1;</code> */ public Builder setAbstract(boolean value) { abstract_ = value; onChanged(); return this; } /** * <code>optional bool abstract = 1;</code> */ public Builder clearAbstract() { abstract_ = false; 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.Type.SetAbstract.Req) } // @@protoc_insertion_point(class_scope:session.Type.SetAbstract.Req) private static final ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.SetAbstract.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.SetAbstract.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.SetAbstract.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.ConceptProto.internal_static_session_Type_SetAbstract_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_SetAbstract_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res other = (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract.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.Type.SetAbstract.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.SetAbstract.Res) ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_SetAbstract_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_SetAbstract_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.ConceptProto.internal_static_session_Type_SetAbstract_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res build() { ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res result = new ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.Type.SetAbstract.Res) } // @@protoc_insertion_point(class_scope:session.Type.SetAbstract.Res) private static final ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract other = (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract) 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.ConceptProto.Type.SetAbstract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract 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.ConceptProto.Type.SetAbstract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract 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.ConceptProto.Type.SetAbstract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract 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.ConceptProto.Type.SetAbstract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract 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.ConceptProto.Type.SetAbstract 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.Type.SetAbstract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.SetAbstract) ai.grakn.rpc.proto.ConceptProto.Type.SetAbstractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_SetAbstract_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_SetAbstract_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.class, ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.ConceptProto.internal_static_session_Type_SetAbstract_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract build() { ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract result = new ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract(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.ConceptProto.Type.SetAbstract) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract.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.ConceptProto.Type.SetAbstract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract) 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.Type.SetAbstract) } // @@protoc_insertion_point(class_scope:session.Type.SetAbstract) private static final ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract(); } public static ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<SetAbstract> PARSER = new com.google.protobuf.AbstractParser<SetAbstract>() { public SetAbstract parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SetAbstract(input, extensionRegistry); } }; public static com.google.protobuf.Parser<SetAbstract> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<SetAbstract> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.SetAbstract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InstancesOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Instances) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Instances} */ public static final class Instances extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Instances) InstancesOrBuilder { // Use Instances.newBuilder() to construct. private Instances(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Instances() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Instances( 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.ConceptProto.internal_static_session_Type_Instances_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Instances_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Instances.class, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Instances.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Instances.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Instances.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.ConceptProto.internal_static_session_Type_Instances_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Instances_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req other = (ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.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.Type.Instances.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Instances.Req) ai.grakn.rpc.proto.ConceptProto.Type.Instances.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Instances_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Instances_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.internal_static_session_Type_Instances_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req build() { ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req result = new ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.Type.Instances.Req) } // @@protoc_insertion_point(class_scope:session.Type.Instances.Req) private static final ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Instances.Iter) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.Type.Instances.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Instances.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.ConceptProto.internal_static_session_Type_Instances_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Instances_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.class, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Instances.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept thing = 1;</code> */ boolean hasThing(); /** * <code>optional .session.Concept thing = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getThing(); /** * <code>optional .session.Concept thing = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getThingOrBuilder(); } /** * Protobuf type {@code session.Type.Instances.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Instances.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 (thing_ != null) { subBuilder = thing_.toBuilder(); } thing_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(thing_); thing_ = 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.ConceptProto.internal_static_session_Type_Instances_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Instances_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.Builder.class); } public static final int THING_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept thing_; /** * <code>optional .session.Concept thing = 1;</code> */ public boolean hasThing() { return thing_ != null; } /** * <code>optional .session.Concept thing = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getThing() { return thing_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : thing_; } /** * <code>optional .session.Concept thing = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getThingOrBuilder() { return getThing(); } 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 (thing_ != null) { output.writeMessage(1, getThing()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (thing_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getThing()); } 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.ConceptProto.Type.Instances.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res) obj; boolean result = true; result = result && (hasThing() == other.hasThing()); if (hasThing()) { result = result && getThing() .equals(other.getThing()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasThing()) { hash = (37 * hash) + THING_FIELD_NUMBER; hash = (53 * hash) + getThing().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.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.Type.Instances.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Instances.Iter.Res) ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Instances_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Instances_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Instances.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 (thingBuilder_ == null) { thing_ = null; } else { thing_ = null; thingBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Instances_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res(this); if (thingBuilder_ == null) { result.thing_ = thing_; } else { result.thing_ = thingBuilder_.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.ConceptProto.Type.Instances.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res.getDefaultInstance()) return this; if (other.hasThing()) { mergeThing(other.getThing()); } 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.ConceptProto.Type.Instances.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.ConceptProto.Concept thing_ = 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> thingBuilder_; /** * <code>optional .session.Concept thing = 1;</code> */ public boolean hasThing() { return thingBuilder_ != null || thing_ != null; } /** * <code>optional .session.Concept thing = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getThing() { if (thingBuilder_ == null) { return thing_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : thing_; } else { return thingBuilder_.getMessage(); } } /** * <code>optional .session.Concept thing = 1;</code> */ public Builder setThing(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (thingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } thing_ = value; onChanged(); } else { thingBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Concept thing = 1;</code> */ public Builder setThing( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (thingBuilder_ == null) { thing_ = builderForValue.build(); onChanged(); } else { thingBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Concept thing = 1;</code> */ public Builder mergeThing(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (thingBuilder_ == null) { if (thing_ != null) { thing_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(thing_).mergeFrom(value).buildPartial(); } else { thing_ = value; } onChanged(); } else { thingBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Concept thing = 1;</code> */ public Builder clearThing() { if (thingBuilder_ == null) { thing_ = null; onChanged(); } else { thing_ = null; thingBuilder_ = null; } return this; } /** * <code>optional .session.Concept thing = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getThingBuilder() { onChanged(); return getThingFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept thing = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getThingOrBuilder() { if (thingBuilder_ != null) { return thingBuilder_.getMessageOrBuilder(); } else { return thing_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : thing_; } } /** * <code>optional .session.Concept thing = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getThingFieldBuilder() { if (thingBuilder_ == null) { thingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( getThing(), getParentForChildren(), isClean()); thing_ = null; } return thingBuilder_; } 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.Type.Instances.Iter.Res) } // @@protoc_insertion_point(class_scope:session.Type.Instances.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ 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.ConceptProto.Type.Instances.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter other = (ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.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.Type.Instances.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Instances.Iter) ai.grakn.rpc.proto.ConceptProto.Type.Instances.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Instances_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Instances_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.class, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.internal_static_session_Type_Instances_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter build() { ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter result = new ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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.Type.Instances.Iter) } // @@protoc_insertion_point(class_scope:session.Type.Instances.Iter) private static final ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Instances other = (ai.grakn.rpc.proto.ConceptProto.Type.Instances) 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.ConceptProto.Type.Instances parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances 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.ConceptProto.Type.Instances parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances 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.ConceptProto.Type.Instances parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances 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.ConceptProto.Type.Instances parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances 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.ConceptProto.Type.Instances 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.Type.Instances} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Instances) ai.grakn.rpc.proto.ConceptProto.Type.InstancesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Instances_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Instances_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Instances.class, ai.grakn.rpc.proto.ConceptProto.Type.Instances.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.internal_static_session_Type_Instances_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Instances getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Instances.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Instances build() { ai.grakn.rpc.proto.ConceptProto.Type.Instances result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Instances buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Instances result = new ai.grakn.rpc.proto.ConceptProto.Type.Instances(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.ConceptProto.Type.Instances) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Instances)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Instances other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Instances.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.ConceptProto.Type.Instances parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Instances) 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.Type.Instances) } // @@protoc_insertion_point(class_scope:session.Type.Instances) private static final ai.grakn.rpc.proto.ConceptProto.Type.Instances DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Instances(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Instances getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Instances> PARSER = new com.google.protobuf.AbstractParser<Instances>() { public Instances parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Instances(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Instances> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Instances> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Instances getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttributesOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Attributes) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Attributes} */ public static final class Attributes extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Attributes) AttributesOrBuilder { // Use Attributes.newBuilder() to construct. private Attributes(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Attributes() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Attributes( 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.ConceptProto.internal_static_session_Type_Attributes_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Attributes_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Attributes.class, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Attributes.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Attributes.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Attributes.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.ConceptProto.internal_static_session_Type_Attributes_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Attributes_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req other = (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.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.Type.Attributes.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Attributes.Req) ai.grakn.rpc.proto.ConceptProto.Type.Attributes.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Attributes_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Attributes_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.internal_static_session_Type_Attributes_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req build() { ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req result = new ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.Type.Attributes.Req) } // @@protoc_insertion_point(class_scope:session.Type.Attributes.Req) private static final ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Attributes.Iter) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.Type.Attributes.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Attributes.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.ConceptProto.internal_static_session_Type_Attributes_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Attributes_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.class, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Attributes.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept attributeType = 1;</code> */ boolean hasAttributeType(); /** * <code>optional .session.Concept attributeType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType(); /** * <code>optional .session.Concept attributeType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeTypeOrBuilder(); } /** * Protobuf type {@code session.Type.Attributes.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Attributes.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 (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.ConceptProto.internal_static_session_Type_Attributes_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Attributes_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res.Builder.class); } public static final int ATTRIBUTETYPE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept attributeType_; /** * <code>optional .session.Concept attributeType = 1;</code> */ public boolean hasAttributeType() { return attributeType_ != null; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType() { return attributeType_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attributeType_; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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.ConceptProto.Type.Attributes.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.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.ConceptProto.Type.Attributes.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.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.Type.Attributes.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Attributes.Iter.Res) ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Attributes_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Attributes_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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 (attributeTypeBuilder_ == null) { attributeType_ = null; } else { attributeType_ = null; attributeTypeBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Attributes_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.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.ConceptProto.Type.Attributes.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.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.ConceptProto.Type.Attributes.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.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_; /** * <code>optional .session.Concept attributeType = 1;</code> */ public boolean hasAttributeType() { return attributeTypeBuilder_ != null || attributeType_ != null; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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(); } } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public Builder clearAttributeType() { if (attributeTypeBuilder_ == null) { attributeType_ = null; onChanged(); } else { attributeType_ = null; attributeTypeBuilder_ = null; } return this; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeTypeBuilder() { onChanged(); return getAttributeTypeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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_; } } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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.Type.Attributes.Iter.Res) } // @@protoc_insertion_point(class_scope:session.Type.Attributes.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ 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.ConceptProto.Type.Attributes.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter other = (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.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.Type.Attributes.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Attributes.Iter) ai.grakn.rpc.proto.ConceptProto.Type.Attributes.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Attributes_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Attributes_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.class, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.internal_static_session_Type_Attributes_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter build() { ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter result = new ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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.Type.Attributes.Iter) } // @@protoc_insertion_point(class_scope:session.Type.Attributes.Iter) private static final ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Attributes other = (ai.grakn.rpc.proto.ConceptProto.Type.Attributes) 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.ConceptProto.Type.Attributes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes 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.ConceptProto.Type.Attributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes 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.ConceptProto.Type.Attributes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes 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.ConceptProto.Type.Attributes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes 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.ConceptProto.Type.Attributes 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.Type.Attributes} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Attributes) ai.grakn.rpc.proto.ConceptProto.Type.AttributesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Attributes_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Attributes_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Attributes.class, ai.grakn.rpc.proto.ConceptProto.Type.Attributes.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.internal_static_session_Type_Attributes_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Attributes getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Attributes.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Attributes build() { ai.grakn.rpc.proto.ConceptProto.Type.Attributes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Attributes buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Attributes result = new ai.grakn.rpc.proto.ConceptProto.Type.Attributes(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.ConceptProto.Type.Attributes) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Attributes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Attributes other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Attributes.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.ConceptProto.Type.Attributes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Attributes) 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.Type.Attributes) } // @@protoc_insertion_point(class_scope:session.Type.Attributes) private static final ai.grakn.rpc.proto.ConceptProto.Type.Attributes DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Attributes(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Attributes getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Attributes> PARSER = new com.google.protobuf.AbstractParser<Attributes>() { public Attributes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Attributes(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Attributes> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Attributes> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Attributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeysOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Keys) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Keys} */ public static final class Keys extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Keys) KeysOrBuilder { // Use Keys.newBuilder() to construct. private Keys(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Keys() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Keys( 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.ConceptProto.internal_static_session_Type_Keys_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Keys_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Keys.class, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Keys.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Keys.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Keys.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.ConceptProto.internal_static_session_Type_Keys_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Keys_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req other = (ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.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.Type.Keys.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Keys.Req) ai.grakn.rpc.proto.ConceptProto.Type.Keys.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Keys_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Keys_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.internal_static_session_Type_Keys_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req build() { ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req result = new ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.Type.Keys.Req) } // @@protoc_insertion_point(class_scope:session.Type.Keys.Req) private static final ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Keys.Iter) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.Type.Keys.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Keys.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.ConceptProto.internal_static_session_Type_Keys_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Keys_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.class, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Keys.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept attributeType = 1;</code> */ boolean hasAttributeType(); /** * <code>optional .session.Concept attributeType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType(); /** * <code>optional .session.Concept attributeType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeTypeOrBuilder(); } /** * Protobuf type {@code session.Type.Keys.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Keys.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 (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.ConceptProto.internal_static_session_Type_Keys_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Keys_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res.Builder.class); } public static final int ATTRIBUTETYPE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept attributeType_; /** * <code>optional .session.Concept attributeType = 1;</code> */ public boolean hasAttributeType() { return attributeType_ != null; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType() { return attributeType_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attributeType_; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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.ConceptProto.Type.Keys.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.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.ConceptProto.Type.Keys.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.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.Type.Keys.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Keys.Iter.Res) ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Keys_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Keys_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Keys.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 (attributeTypeBuilder_ == null) { attributeType_ = null; } else { attributeType_ = null; attributeTypeBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Keys_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.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.ConceptProto.Type.Keys.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.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.ConceptProto.Type.Keys.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.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_; /** * <code>optional .session.Concept attributeType = 1;</code> */ public boolean hasAttributeType() { return attributeTypeBuilder_ != null || attributeType_ != null; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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(); } } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public Builder clearAttributeType() { if (attributeTypeBuilder_ == null) { attributeType_ = null; onChanged(); } else { attributeType_ = null; attributeTypeBuilder_ = null; } return this; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeTypeBuilder() { onChanged(); return getAttributeTypeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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_; } } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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.Type.Keys.Iter.Res) } // @@protoc_insertion_point(class_scope:session.Type.Keys.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ 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.ConceptProto.Type.Keys.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter other = (ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.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.Type.Keys.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Keys.Iter) ai.grakn.rpc.proto.ConceptProto.Type.Keys.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Keys_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Keys_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.class, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.internal_static_session_Type_Keys_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter build() { ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter result = new ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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.Type.Keys.Iter) } // @@protoc_insertion_point(class_scope:session.Type.Keys.Iter) private static final ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Keys other = (ai.grakn.rpc.proto.ConceptProto.Type.Keys) 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.ConceptProto.Type.Keys parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys 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.ConceptProto.Type.Keys parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys 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.ConceptProto.Type.Keys parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys 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.ConceptProto.Type.Keys parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys 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.ConceptProto.Type.Keys 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.Type.Keys} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Keys) ai.grakn.rpc.proto.ConceptProto.Type.KeysOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Keys_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Keys_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Keys.class, ai.grakn.rpc.proto.ConceptProto.Type.Keys.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.internal_static_session_Type_Keys_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Keys getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Keys.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Keys build() { ai.grakn.rpc.proto.ConceptProto.Type.Keys result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Keys buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Keys result = new ai.grakn.rpc.proto.ConceptProto.Type.Keys(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.ConceptProto.Type.Keys) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Keys)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Keys other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Keys.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.ConceptProto.Type.Keys parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Keys) 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.Type.Keys) } // @@protoc_insertion_point(class_scope:session.Type.Keys) private static final ai.grakn.rpc.proto.ConceptProto.Type.Keys DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Keys(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Keys getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Keys> PARSER = new com.google.protobuf.AbstractParser<Keys>() { public Keys parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Keys(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Keys> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Keys> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Keys getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PlayingOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Playing) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Playing} */ public static final class Playing extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Playing) PlayingOrBuilder { // Use Playing.newBuilder() to construct. private Playing(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Playing() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Playing( 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.ConceptProto.internal_static_session_Type_Playing_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Playing_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Playing.class, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Playing.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Playing.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Playing.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.ConceptProto.internal_static_session_Type_Playing_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Playing_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req other = (ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.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.Type.Playing.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Playing.Req) ai.grakn.rpc.proto.ConceptProto.Type.Playing.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Playing_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Playing_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.internal_static_session_Type_Playing_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req build() { ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req result = new ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.Type.Playing.Req) } // @@protoc_insertion_point(class_scope:session.Type.Playing.Req) private static final ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Playing.Iter) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.Type.Playing.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Playing.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.ConceptProto.internal_static_session_Type_Playing_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Playing_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.class, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Playing.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept role = 1;</code> */ boolean hasRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRoleOrBuilder(); } /** * Protobuf type {@code session.Type.Playing.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Playing.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 (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.ConceptProto.internal_static_session_Type_Playing_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Playing_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res.Builder.class); } public static final int ROLE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept role_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRole() { return role_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : role_; } /** * <code>optional .session.Concept role = 1;</code> */ 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.ConceptProto.Type.Playing.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.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.ConceptProto.Type.Playing.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.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.Type.Playing.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Playing.Iter.Res) ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Playing_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Playing_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Playing.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 (roleBuilder_ == null) { role_ = null; } else { role_ = null; roleBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Playing_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.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.ConceptProto.Type.Playing.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.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.ConceptProto.Type.Playing.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.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_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return roleBuilder_ != null || role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ 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(); } } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ public Builder clearRole() { if (roleBuilder_ == null) { role_ = null; onChanged(); } else { role_ = null; roleBuilder_ = null; } return this; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRoleBuilder() { onChanged(); return getRoleFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept role = 1;</code> */ 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_; } } /** * <code>optional .session.Concept role = 1;</code> */ 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.Type.Playing.Iter.Res) } // @@protoc_insertion_point(class_scope:session.Type.Playing.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ 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.ConceptProto.Type.Playing.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter other = (ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.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.Type.Playing.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Playing.Iter) ai.grakn.rpc.proto.ConceptProto.Type.Playing.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Playing_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Playing_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.class, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.internal_static_session_Type_Playing_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter build() { ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter result = new ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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.Type.Playing.Iter) } // @@protoc_insertion_point(class_scope:session.Type.Playing.Iter) private static final ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Playing other = (ai.grakn.rpc.proto.ConceptProto.Type.Playing) 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.ConceptProto.Type.Playing parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing 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.ConceptProto.Type.Playing parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing 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.ConceptProto.Type.Playing parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing 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.ConceptProto.Type.Playing parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing 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.ConceptProto.Type.Playing 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.Type.Playing} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Playing) ai.grakn.rpc.proto.ConceptProto.Type.PlayingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Playing_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Playing_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Playing.class, ai.grakn.rpc.proto.ConceptProto.Type.Playing.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.internal_static_session_Type_Playing_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Playing getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Playing.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Playing build() { ai.grakn.rpc.proto.ConceptProto.Type.Playing result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Playing buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Playing result = new ai.grakn.rpc.proto.ConceptProto.Type.Playing(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.ConceptProto.Type.Playing) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Playing)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Playing other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Playing.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.ConceptProto.Type.Playing parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Playing) 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.Type.Playing) } // @@protoc_insertion_point(class_scope:session.Type.Playing) private static final ai.grakn.rpc.proto.ConceptProto.Type.Playing DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Playing(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Playing getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Playing> PARSER = new com.google.protobuf.AbstractParser<Playing>() { public Playing parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Playing(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Playing> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Playing> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Playing getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeyOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Key) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Key} */ public static final class Key extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Key) KeyOrBuilder { // Use Key.newBuilder() to construct. private Key(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Key() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Key( 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.ConceptProto.internal_static_session_Type_Key_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Key_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Key.class, ai.grakn.rpc.proto.ConceptProto.Type.Key.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Key.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept attributeType = 1;</code> */ boolean hasAttributeType(); /** * <code>optional .session.Concept attributeType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType(); /** * <code>optional .session.Concept attributeType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeTypeOrBuilder(); } /** * Protobuf type {@code session.Type.Key.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Key.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.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.ConceptProto.internal_static_session_Type_Key_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Key_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.Builder.class); } public static final int ATTRIBUTETYPE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept attributeType_; /** * <code>optional .session.Concept attributeType = 1;</code> */ public boolean hasAttributeType() { return attributeType_ != null; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType() { return attributeType_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attributeType_; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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.ConceptProto.Type.Key.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Key.Req other = (ai.grakn.rpc.proto.ConceptProto.Type.Key.Req) 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.ConceptProto.Type.Key.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key.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.ConceptProto.Type.Key.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key.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.ConceptProto.Type.Key.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key.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.ConceptProto.Type.Key.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key.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.ConceptProto.Type.Key.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.ConceptProto.Type.Key.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.ConceptProto.Type.Key.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.Type.Key.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Key.Req) ai.grakn.rpc.proto.ConceptProto.Type.Key.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Key_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Key_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Key.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 (attributeTypeBuilder_ == null) { attributeType_ = null; } else { attributeType_ = null; attributeTypeBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Key_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Key.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Key.Req build() { ai.grakn.rpc.proto.ConceptProto.Type.Key.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Key.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Key.Req result = new ai.grakn.rpc.proto.ConceptProto.Type.Key.Req(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.ConceptProto.Type.Key.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Key.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Key.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Key.Req.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.ConceptProto.Type.Key.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Key.Req) 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_; /** * <code>optional .session.Concept attributeType = 1;</code> */ public boolean hasAttributeType() { return attributeTypeBuilder_ != null || attributeType_ != null; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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(); } } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public Builder clearAttributeType() { if (attributeTypeBuilder_ == null) { attributeType_ = null; onChanged(); } else { attributeType_ = null; attributeTypeBuilder_ = null; } return this; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeTypeBuilder() { onChanged(); return getAttributeTypeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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_; } } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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.Type.Key.Req) } // @@protoc_insertion_point(class_scope:session.Type.Key.Req) private static final ai.grakn.rpc.proto.ConceptProto.Type.Key.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Key.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Key.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Key.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Key.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Key.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.ConceptProto.internal_static_session_Type_Key_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Key_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Key.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.ConceptProto.Type.Key.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Key.Res other = (ai.grakn.rpc.proto.ConceptProto.Type.Key.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.ConceptProto.Type.Key.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key.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.ConceptProto.Type.Key.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key.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.ConceptProto.Type.Key.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key.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.ConceptProto.Type.Key.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key.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.ConceptProto.Type.Key.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.ConceptProto.Type.Key.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.ConceptProto.Type.Key.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.Type.Key.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Key.Res) ai.grakn.rpc.proto.ConceptProto.Type.Key.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Key_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Key_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Key.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.ConceptProto.internal_static_session_Type_Key_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Key.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Key.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Key.Res build() { ai.grakn.rpc.proto.ConceptProto.Type.Key.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Key.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Key.Res result = new ai.grakn.rpc.proto.ConceptProto.Type.Key.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.ConceptProto.Type.Key.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Key.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Key.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Key.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.ConceptProto.Type.Key.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Key.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.Type.Key.Res) } // @@protoc_insertion_point(class_scope:session.Type.Key.Res) private static final ai.grakn.rpc.proto.ConceptProto.Type.Key.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Key.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Key.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.ConceptProto.Type.Key)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Key other = (ai.grakn.rpc.proto.ConceptProto.Type.Key) 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.ConceptProto.Type.Key parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key 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.ConceptProto.Type.Key parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key 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.ConceptProto.Type.Key parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key 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.ConceptProto.Type.Key parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key 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.ConceptProto.Type.Key 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.Type.Key} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Key) ai.grakn.rpc.proto.ConceptProto.Type.KeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Key_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Key_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Key.class, ai.grakn.rpc.proto.ConceptProto.Type.Key.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Key.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.ConceptProto.internal_static_session_Type_Key_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Key getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Key.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Key build() { ai.grakn.rpc.proto.ConceptProto.Type.Key result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Key buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Key result = new ai.grakn.rpc.proto.ConceptProto.Type.Key(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.ConceptProto.Type.Key) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Key)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Key other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Key.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.ConceptProto.Type.Key parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Key) 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.Type.Key) } // @@protoc_insertion_point(class_scope:session.Type.Key) private static final ai.grakn.rpc.proto.ConceptProto.Type.Key DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Key(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Key getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Key> PARSER = new com.google.protobuf.AbstractParser<Key>() { public Key parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Key(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Key> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Key> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Key getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HasOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Has) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Has} */ public static final class Has extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Has) HasOrBuilder { // Use Has.newBuilder() to construct. private Has(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Has() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Has( 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.ConceptProto.internal_static_session_Type_Has_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Has_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Has.class, ai.grakn.rpc.proto.ConceptProto.Type.Has.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Has.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept attributeType = 1;</code> */ boolean hasAttributeType(); /** * <code>optional .session.Concept attributeType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType(); /** * <code>optional .session.Concept attributeType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeTypeOrBuilder(); } /** * Protobuf type {@code session.Type.Has.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Has.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.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.ConceptProto.internal_static_session_Type_Has_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Has_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.Builder.class); } public static final int ATTRIBUTETYPE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept attributeType_; /** * <code>optional .session.Concept attributeType = 1;</code> */ public boolean hasAttributeType() { return attributeType_ != null; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType() { return attributeType_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attributeType_; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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.ConceptProto.Type.Has.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Has.Req other = (ai.grakn.rpc.proto.ConceptProto.Type.Has.Req) 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.ConceptProto.Type.Has.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has.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.ConceptProto.Type.Has.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has.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.ConceptProto.Type.Has.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has.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.ConceptProto.Type.Has.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has.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.ConceptProto.Type.Has.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.ConceptProto.Type.Has.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.ConceptProto.Type.Has.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.Type.Has.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Has.Req) ai.grakn.rpc.proto.ConceptProto.Type.Has.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Has_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Has_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Has.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 (attributeTypeBuilder_ == null) { attributeType_ = null; } else { attributeType_ = null; attributeTypeBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Has_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Has.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Has.Req build() { ai.grakn.rpc.proto.ConceptProto.Type.Has.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Has.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Has.Req result = new ai.grakn.rpc.proto.ConceptProto.Type.Has.Req(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.ConceptProto.Type.Has.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Has.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Has.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Has.Req.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.ConceptProto.Type.Has.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Has.Req) 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_; /** * <code>optional .session.Concept attributeType = 1;</code> */ public boolean hasAttributeType() { return attributeTypeBuilder_ != null || attributeType_ != null; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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(); } } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public Builder clearAttributeType() { if (attributeTypeBuilder_ == null) { attributeType_ = null; onChanged(); } else { attributeType_ = null; attributeTypeBuilder_ = null; } return this; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeTypeBuilder() { onChanged(); return getAttributeTypeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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_; } } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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.Type.Has.Req) } // @@protoc_insertion_point(class_scope:session.Type.Has.Req) private static final ai.grakn.rpc.proto.ConceptProto.Type.Has.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Has.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Has.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Has.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Has.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Has.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.ConceptProto.internal_static_session_Type_Has_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Has_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Has.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.ConceptProto.Type.Has.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Has.Res other = (ai.grakn.rpc.proto.ConceptProto.Type.Has.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.ConceptProto.Type.Has.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has.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.ConceptProto.Type.Has.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has.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.ConceptProto.Type.Has.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has.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.ConceptProto.Type.Has.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has.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.ConceptProto.Type.Has.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.ConceptProto.Type.Has.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.ConceptProto.Type.Has.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.Type.Has.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Has.Res) ai.grakn.rpc.proto.ConceptProto.Type.Has.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Has_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Has_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Has.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.ConceptProto.internal_static_session_Type_Has_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Has.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Has.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Has.Res build() { ai.grakn.rpc.proto.ConceptProto.Type.Has.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Has.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Has.Res result = new ai.grakn.rpc.proto.ConceptProto.Type.Has.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.ConceptProto.Type.Has.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Has.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Has.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Has.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.ConceptProto.Type.Has.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Has.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.Type.Has.Res) } // @@protoc_insertion_point(class_scope:session.Type.Has.Res) private static final ai.grakn.rpc.proto.ConceptProto.Type.Has.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Has.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Has.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.ConceptProto.Type.Has)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Has other = (ai.grakn.rpc.proto.ConceptProto.Type.Has) 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.ConceptProto.Type.Has parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has 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.ConceptProto.Type.Has parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has 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.ConceptProto.Type.Has parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has 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.ConceptProto.Type.Has parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has 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.ConceptProto.Type.Has 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.Type.Has} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Has) ai.grakn.rpc.proto.ConceptProto.Type.HasOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Has_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Has_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Has.class, ai.grakn.rpc.proto.ConceptProto.Type.Has.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Has.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.ConceptProto.internal_static_session_Type_Has_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Has getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Has.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Has build() { ai.grakn.rpc.proto.ConceptProto.Type.Has result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Has buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Has result = new ai.grakn.rpc.proto.ConceptProto.Type.Has(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.ConceptProto.Type.Has) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Has)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Has other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Has.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.ConceptProto.Type.Has parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Has) 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.Type.Has) } // @@protoc_insertion_point(class_scope:session.Type.Has) private static final ai.grakn.rpc.proto.ConceptProto.Type.Has DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Has(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Has getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Has> PARSER = new com.google.protobuf.AbstractParser<Has>() { public Has parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Has(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Has> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Has> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Has getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PlaysOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Plays) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Plays} */ public static final class Plays extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Plays) PlaysOrBuilder { // Use Plays.newBuilder() to construct. private Plays(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Plays() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Plays( 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.ConceptProto.internal_static_session_Type_Plays_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Plays_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Plays.class, ai.grakn.rpc.proto.ConceptProto.Type.Plays.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Plays.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept role = 1;</code> */ boolean hasRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRoleOrBuilder(); } /** * Protobuf type {@code session.Type.Plays.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Plays.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.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.ConceptProto.internal_static_session_Type_Plays_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Plays_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.Builder.class); } public static final int ROLE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept role_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRole() { return role_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : role_; } /** * <code>optional .session.Concept role = 1;</code> */ 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.ConceptProto.Type.Plays.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req other = (ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req) 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.ConceptProto.Type.Plays.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays.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.Type.Plays.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Plays.Req) ai.grakn.rpc.proto.ConceptProto.Type.Plays.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Plays_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Plays_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Plays.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 (roleBuilder_ == null) { role_ = null; } else { role_ = null; roleBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Plays_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req build() { ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req result = new ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req(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.ConceptProto.Type.Plays.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req.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.ConceptProto.Type.Plays.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req) 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_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return roleBuilder_ != null || role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ 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(); } } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ public Builder clearRole() { if (roleBuilder_ == null) { role_ = null; onChanged(); } else { role_ = null; roleBuilder_ = null; } return this; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRoleBuilder() { onChanged(); return getRoleFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept role = 1;</code> */ 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_; } } /** * <code>optional .session.Concept role = 1;</code> */ 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.Type.Plays.Req) } // @@protoc_insertion_point(class_scope:session.Type.Plays.Req) private static final ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Plays.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Plays.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Plays.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Plays.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.ConceptProto.internal_static_session_Type_Plays_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Plays_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res other = (ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays.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.Type.Plays.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Plays.Res) ai.grakn.rpc.proto.ConceptProto.Type.Plays.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Plays_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Plays_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.ConceptProto.internal_static_session_Type_Plays_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res build() { ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res result = new ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.Type.Plays.Res) } // @@protoc_insertion_point(class_scope:session.Type.Plays.Res) private static final ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Plays other = (ai.grakn.rpc.proto.ConceptProto.Type.Plays) 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.ConceptProto.Type.Plays parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays 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.ConceptProto.Type.Plays parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays 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.ConceptProto.Type.Plays parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays 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.ConceptProto.Type.Plays parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays 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.ConceptProto.Type.Plays 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.Type.Plays} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Plays) ai.grakn.rpc.proto.ConceptProto.Type.PlaysOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Plays_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Plays_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Plays.class, ai.grakn.rpc.proto.ConceptProto.Type.Plays.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.ConceptProto.internal_static_session_Type_Plays_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Plays getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Plays.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Plays build() { ai.grakn.rpc.proto.ConceptProto.Type.Plays result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Plays buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Plays result = new ai.grakn.rpc.proto.ConceptProto.Type.Plays(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.ConceptProto.Type.Plays) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Plays)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Plays other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Plays.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.ConceptProto.Type.Plays parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Plays) 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.Type.Plays) } // @@protoc_insertion_point(class_scope:session.Type.Plays) private static final ai.grakn.rpc.proto.ConceptProto.Type.Plays DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Plays(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Plays getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Plays> PARSER = new com.google.protobuf.AbstractParser<Plays>() { public Plays parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Plays(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Plays> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Plays> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Plays getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnkeyOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Unkey) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Unkey} */ public static final class Unkey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Unkey) UnkeyOrBuilder { // Use Unkey.newBuilder() to construct. private Unkey(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Unkey() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Unkey( 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.ConceptProto.internal_static_session_Type_Unkey_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unkey_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unkey.class, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Unkey.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept attributeType = 1;</code> */ boolean hasAttributeType(); /** * <code>optional .session.Concept attributeType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType(); /** * <code>optional .session.Concept attributeType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeTypeOrBuilder(); } /** * Protobuf type {@code session.Type.Unkey.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Unkey.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.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.ConceptProto.internal_static_session_Type_Unkey_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unkey_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.Builder.class); } public static final int ATTRIBUTETYPE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept attributeType_; /** * <code>optional .session.Concept attributeType = 1;</code> */ public boolean hasAttributeType() { return attributeType_ != null; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType() { return attributeType_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attributeType_; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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.ConceptProto.Type.Unkey.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req other = (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req) 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.ConceptProto.Type.Unkey.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey.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.Type.Unkey.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Unkey.Req) ai.grakn.rpc.proto.ConceptProto.Type.Unkey.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unkey_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unkey_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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 (attributeTypeBuilder_ == null) { attributeType_ = null; } else { attributeType_ = null; attributeTypeBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unkey_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req build() { ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req result = new ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req(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.ConceptProto.Type.Unkey.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req.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.ConceptProto.Type.Unkey.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req) 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_; /** * <code>optional .session.Concept attributeType = 1;</code> */ public boolean hasAttributeType() { return attributeTypeBuilder_ != null || attributeType_ != null; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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(); } } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public Builder clearAttributeType() { if (attributeTypeBuilder_ == null) { attributeType_ = null; onChanged(); } else { attributeType_ = null; attributeTypeBuilder_ = null; } return this; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeTypeBuilder() { onChanged(); return getAttributeTypeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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_; } } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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.Type.Unkey.Req) } // @@protoc_insertion_point(class_scope:session.Type.Unkey.Req) private static final ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Unkey.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Unkey.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Unkey.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.ConceptProto.internal_static_session_Type_Unkey_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unkey_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res other = (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey.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.Type.Unkey.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Unkey.Res) ai.grakn.rpc.proto.ConceptProto.Type.Unkey.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unkey_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unkey_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.ConceptProto.internal_static_session_Type_Unkey_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res build() { ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res result = new ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.Type.Unkey.Res) } // @@protoc_insertion_point(class_scope:session.Type.Unkey.Res) private static final ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Unkey other = (ai.grakn.rpc.proto.ConceptProto.Type.Unkey) 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.ConceptProto.Type.Unkey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey 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.ConceptProto.Type.Unkey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey 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.ConceptProto.Type.Unkey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey 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.ConceptProto.Type.Unkey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey 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.ConceptProto.Type.Unkey 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.Type.Unkey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Unkey) ai.grakn.rpc.proto.ConceptProto.Type.UnkeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unkey_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unkey_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unkey.class, ai.grakn.rpc.proto.ConceptProto.Type.Unkey.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.ConceptProto.internal_static_session_Type_Unkey_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Unkey getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Unkey.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Unkey build() { ai.grakn.rpc.proto.ConceptProto.Type.Unkey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Unkey buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Unkey result = new ai.grakn.rpc.proto.ConceptProto.Type.Unkey(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.ConceptProto.Type.Unkey) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Unkey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Unkey other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Unkey.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.ConceptProto.Type.Unkey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Unkey) 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.Type.Unkey) } // @@protoc_insertion_point(class_scope:session.Type.Unkey) private static final ai.grakn.rpc.proto.ConceptProto.Type.Unkey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Unkey(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unkey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Unkey> PARSER = new com.google.protobuf.AbstractParser<Unkey>() { public Unkey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Unkey(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Unkey> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Unkey> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Unkey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnhasOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Unhas) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Unhas} */ public static final class Unhas extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Unhas) UnhasOrBuilder { // Use Unhas.newBuilder() to construct. private Unhas(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Unhas() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Unhas( 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.ConceptProto.internal_static_session_Type_Unhas_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unhas_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unhas.class, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Unhas.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept attributeType = 1;</code> */ boolean hasAttributeType(); /** * <code>optional .session.Concept attributeType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType(); /** * <code>optional .session.Concept attributeType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeTypeOrBuilder(); } /** * Protobuf type {@code session.Type.Unhas.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Unhas.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.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.ConceptProto.internal_static_session_Type_Unhas_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unhas_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.Builder.class); } public static final int ATTRIBUTETYPE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept attributeType_; /** * <code>optional .session.Concept attributeType = 1;</code> */ public boolean hasAttributeType() { return attributeType_ != null; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType() { return attributeType_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attributeType_; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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.ConceptProto.Type.Unhas.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req other = (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req) 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.ConceptProto.Type.Unhas.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas.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.Type.Unhas.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Unhas.Req) ai.grakn.rpc.proto.ConceptProto.Type.Unhas.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unhas_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unhas_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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 (attributeTypeBuilder_ == null) { attributeType_ = null; } else { attributeType_ = null; attributeTypeBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unhas_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req build() { ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req result = new ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req(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.ConceptProto.Type.Unhas.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req.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.ConceptProto.Type.Unhas.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req) 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_; /** * <code>optional .session.Concept attributeType = 1;</code> */ public boolean hasAttributeType() { return attributeTypeBuilder_ != null || attributeType_ != null; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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(); } } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public Builder clearAttributeType() { if (attributeTypeBuilder_ == null) { attributeType_ = null; onChanged(); } else { attributeType_ = null; attributeTypeBuilder_ = null; } return this; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeTypeBuilder() { onChanged(); return getAttributeTypeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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_; } } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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.Type.Unhas.Req) } // @@protoc_insertion_point(class_scope:session.Type.Unhas.Req) private static final ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Unhas.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Unhas.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Unhas.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.ConceptProto.internal_static_session_Type_Unhas_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unhas_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res other = (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas.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.Type.Unhas.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Unhas.Res) ai.grakn.rpc.proto.ConceptProto.Type.Unhas.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unhas_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unhas_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.ConceptProto.internal_static_session_Type_Unhas_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res build() { ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res result = new ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.Type.Unhas.Res) } // @@protoc_insertion_point(class_scope:session.Type.Unhas.Res) private static final ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Unhas other = (ai.grakn.rpc.proto.ConceptProto.Type.Unhas) 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.ConceptProto.Type.Unhas parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas 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.ConceptProto.Type.Unhas parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas 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.ConceptProto.Type.Unhas parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas 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.ConceptProto.Type.Unhas parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas 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.ConceptProto.Type.Unhas 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.Type.Unhas} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Unhas) ai.grakn.rpc.proto.ConceptProto.Type.UnhasOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unhas_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unhas_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unhas.class, ai.grakn.rpc.proto.ConceptProto.Type.Unhas.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.ConceptProto.internal_static_session_Type_Unhas_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Unhas getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Unhas.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Unhas build() { ai.grakn.rpc.proto.ConceptProto.Type.Unhas result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Unhas buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Unhas result = new ai.grakn.rpc.proto.ConceptProto.Type.Unhas(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.ConceptProto.Type.Unhas) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Unhas)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Unhas other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Unhas.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.ConceptProto.Type.Unhas parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Unhas) 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.Type.Unhas) } // @@protoc_insertion_point(class_scope:session.Type.Unhas) private static final ai.grakn.rpc.proto.ConceptProto.Type.Unhas DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Unhas(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unhas getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Unhas> PARSER = new com.google.protobuf.AbstractParser<Unhas>() { public Unhas parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Unhas(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Unhas> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Unhas> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Unhas getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnplayOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Unplay) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Unplay} */ public static final class Unplay extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Unplay) UnplayOrBuilder { // Use Unplay.newBuilder() to construct. private Unplay(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Unplay() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Unplay( 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.ConceptProto.internal_static_session_Type_Unplay_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unplay_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unplay.class, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Unplay.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept role = 1;</code> */ boolean hasRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRoleOrBuilder(); } /** * Protobuf type {@code session.Type.Unplay.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Unplay.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.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.ConceptProto.internal_static_session_Type_Unplay_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unplay_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.Builder.class); } public static final int ROLE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept role_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRole() { return role_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : role_; } /** * <code>optional .session.Concept role = 1;</code> */ 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.ConceptProto.Type.Unplay.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req other = (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req) 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.ConceptProto.Type.Unplay.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay.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.Type.Unplay.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Unplay.Req) ai.grakn.rpc.proto.ConceptProto.Type.Unplay.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unplay_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unplay_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.class, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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 (roleBuilder_ == null) { role_ = null; } else { role_ = null; roleBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unplay_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req build() { ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req result = new ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req(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.ConceptProto.Type.Unplay.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req.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.ConceptProto.Type.Unplay.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req) 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_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return roleBuilder_ != null || role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ 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(); } } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ public Builder clearRole() { if (roleBuilder_ == null) { role_ = null; onChanged(); } else { role_ = null; roleBuilder_ = null; } return this; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRoleBuilder() { onChanged(); return getRoleFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept role = 1;</code> */ 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_; } } /** * <code>optional .session.Concept role = 1;</code> */ 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.Type.Unplay.Req) } // @@protoc_insertion_point(class_scope:session.Type.Unplay.Req) private static final ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Type.Unplay.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Type.Unplay.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Type.Unplay.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.ConceptProto.internal_static_session_Type_Unplay_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unplay_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res other = (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay.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.Type.Unplay.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Unplay.Res) ai.grakn.rpc.proto.ConceptProto.Type.Unplay.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unplay_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unplay_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.class, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.ConceptProto.internal_static_session_Type_Unplay_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res build() { ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res result = new ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.Type.Unplay.Res) } // @@protoc_insertion_point(class_scope:session.Type.Unplay.Res) private static final ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type.Unplay other = (ai.grakn.rpc.proto.ConceptProto.Type.Unplay) 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.ConceptProto.Type.Unplay parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay 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.ConceptProto.Type.Unplay parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay 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.ConceptProto.Type.Unplay parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay 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.ConceptProto.Type.Unplay parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay 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.ConceptProto.Type.Unplay 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.Type.Unplay} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type.Unplay) ai.grakn.rpc.proto.ConceptProto.Type.UnplayOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unplay_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_Unplay_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.Unplay.class, ai.grakn.rpc.proto.ConceptProto.Type.Unplay.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.ConceptProto.internal_static_session_Type_Unplay_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type.Unplay getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.Unplay.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type.Unplay build() { ai.grakn.rpc.proto.ConceptProto.Type.Unplay result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type.Unplay buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type.Unplay result = new ai.grakn.rpc.proto.ConceptProto.Type.Unplay(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.ConceptProto.Type.Unplay) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type.Unplay)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type.Unplay other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.Unplay.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.ConceptProto.Type.Unplay parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type.Unplay) 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.Type.Unplay) } // @@protoc_insertion_point(class_scope:session.Type.Unplay) private static final ai.grakn.rpc.proto.ConceptProto.Type.Unplay DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type.Unplay(); } public static ai.grakn.rpc.proto.ConceptProto.Type.Unplay getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Unplay> PARSER = new com.google.protobuf.AbstractParser<Unplay>() { public Unplay parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Unplay(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Unplay> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Unplay> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type.Unplay 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.ConceptProto.Type)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Type other = (ai.grakn.rpc.proto.ConceptProto.Type) 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.ConceptProto.Type parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type 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.ConceptProto.Type parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Type parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Type parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type 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.ConceptProto.Type parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type 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.ConceptProto.Type parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Type 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.ConceptProto.Type 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.Type} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Type) ai.grakn.rpc.proto.ConceptProto.TypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Type_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Type.class, ai.grakn.rpc.proto.ConceptProto.Type.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Type.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.ConceptProto.internal_static_session_Type_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Type getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Type.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Type build() { ai.grakn.rpc.proto.ConceptProto.Type result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Type buildPartial() { ai.grakn.rpc.proto.ConceptProto.Type result = new ai.grakn.rpc.proto.ConceptProto.Type(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.ConceptProto.Type) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Type)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Type other) { if (other == ai.grakn.rpc.proto.ConceptProto.Type.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.ConceptProto.Type parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Type) 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.Type) } // @@protoc_insertion_point(class_scope:session.Type) private static final ai.grakn.rpc.proto.ConceptProto.Type DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Type(); } public static ai.grakn.rpc.proto.ConceptProto.Type getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Type> PARSER = new com.google.protobuf.AbstractParser<Type>() { public Type parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Type(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Type> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Type> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Type getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EntityTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:session.EntityType) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.EntityType} */ public static final class EntityType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.EntityType) EntityTypeOrBuilder { // Use EntityType.newBuilder() to construct. private EntityType(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private EntityType() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private EntityType( 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.ConceptProto.internal_static_session_EntityType_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_EntityType_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.EntityType.class, ai.grakn.rpc.proto.ConceptProto.EntityType.Builder.class); } public interface CreateOrBuilder extends // @@protoc_insertion_point(interface_extends:session.EntityType.Create) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.EntityType.Create} */ public static final class Create extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.EntityType.Create) CreateOrBuilder { // Use Create.newBuilder() to construct. private Create(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Create() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Create( 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.ConceptProto.internal_static_session_EntityType_Create_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_EntityType_Create_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.EntityType.Create.class, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.EntityType.Create.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.EntityType.Create.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.EntityType.Create.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.ConceptProto.internal_static_session_EntityType_Create_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_EntityType_Create_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.class, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req other = (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create.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.EntityType.Create.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.EntityType.Create.Req) ai.grakn.rpc.proto.ConceptProto.EntityType.Create.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_EntityType_Create_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_EntityType_Create_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.class, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.ConceptProto.internal_static_session_EntityType_Create_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req build() { ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req result = new ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.EntityType.Create.Req) } // @@protoc_insertion_point(class_scope:session.EntityType.Create.Req) private static final ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req(); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.EntityType.Create.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept entity = 1;</code> */ boolean hasEntity(); /** * <code>optional .session.Concept entity = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getEntity(); /** * <code>optional .session.Concept entity = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getEntityOrBuilder(); } /** * Protobuf type {@code session.EntityType.Create.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.EntityType.Create.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 (entity_ != null) { subBuilder = entity_.toBuilder(); } entity_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(entity_); entity_ = 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.ConceptProto.internal_static_session_EntityType_Create_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_EntityType_Create_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.class, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.Builder.class); } public static final int ENTITY_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept entity_; /** * <code>optional .session.Concept entity = 1;</code> */ public boolean hasEntity() { return entity_ != null; } /** * <code>optional .session.Concept entity = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getEntity() { return entity_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : entity_; } /** * <code>optional .session.Concept entity = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getEntityOrBuilder() { return getEntity(); } 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 (entity_ != null) { output.writeMessage(1, getEntity()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (entity_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEntity()); } 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.ConceptProto.EntityType.Create.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res other = (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res) obj; boolean result = true; result = result && (hasEntity() == other.hasEntity()); if (hasEntity()) { result = result && getEntity() .equals(other.getEntity()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasEntity()) { hash = (37 * hash) + ENTITY_FIELD_NUMBER; hash = (53 * hash) + getEntity().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create.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.EntityType.Create.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.EntityType.Create.Res) ai.grakn.rpc.proto.ConceptProto.EntityType.Create.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_EntityType_Create_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_EntityType_Create_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.class, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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 (entityBuilder_ == null) { entity_ = null; } else { entity_ = null; entityBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_EntityType_Create_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res build() { ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res result = new ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res(this); if (entityBuilder_ == null) { result.entity_ = entity_; } else { result.entity_ = entityBuilder_.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.ConceptProto.EntityType.Create.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res.getDefaultInstance()) return this; if (other.hasEntity()) { mergeEntity(other.getEntity()); } 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.ConceptProto.EntityType.Create.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.ConceptProto.Concept entity_ = 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> entityBuilder_; /** * <code>optional .session.Concept entity = 1;</code> */ public boolean hasEntity() { return entityBuilder_ != null || entity_ != null; } /** * <code>optional .session.Concept entity = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getEntity() { if (entityBuilder_ == null) { return entity_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : entity_; } else { return entityBuilder_.getMessage(); } } /** * <code>optional .session.Concept entity = 1;</code> */ public Builder setEntity(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (entityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entity_ = value; onChanged(); } else { entityBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Concept entity = 1;</code> */ public Builder setEntity( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (entityBuilder_ == null) { entity_ = builderForValue.build(); onChanged(); } else { entityBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Concept entity = 1;</code> */ public Builder mergeEntity(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (entityBuilder_ == null) { if (entity_ != null) { entity_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(entity_).mergeFrom(value).buildPartial(); } else { entity_ = value; } onChanged(); } else { entityBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Concept entity = 1;</code> */ public Builder clearEntity() { if (entityBuilder_ == null) { entity_ = null; onChanged(); } else { entity_ = null; entityBuilder_ = null; } return this; } /** * <code>optional .session.Concept entity = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getEntityBuilder() { onChanged(); return getEntityFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept entity = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getEntityOrBuilder() { if (entityBuilder_ != null) { return entityBuilder_.getMessageOrBuilder(); } else { return entity_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : entity_; } } /** * <code>optional .session.Concept entity = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getEntityFieldBuilder() { if (entityBuilder_ == null) { entityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( getEntity(), getParentForChildren(), isClean()); entity_ = null; } return entityBuilder_; } 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.EntityType.Create.Res) } // @@protoc_insertion_point(class_scope:session.EntityType.Create.Res) private static final ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res(); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.EntityType.Create other = (ai.grakn.rpc.proto.ConceptProto.EntityType.Create) 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.ConceptProto.EntityType.Create parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create 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.ConceptProto.EntityType.Create parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create 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.ConceptProto.EntityType.Create parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create 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.ConceptProto.EntityType.Create parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create 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.ConceptProto.EntityType.Create 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.EntityType.Create} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.EntityType.Create) ai.grakn.rpc.proto.ConceptProto.EntityType.CreateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_EntityType_Create_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_EntityType_Create_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.EntityType.Create.class, ai.grakn.rpc.proto.ConceptProto.EntityType.Create.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.ConceptProto.internal_static_session_EntityType_Create_descriptor; } public ai.grakn.rpc.proto.ConceptProto.EntityType.Create getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.EntityType.Create.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.EntityType.Create build() { ai.grakn.rpc.proto.ConceptProto.EntityType.Create result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.EntityType.Create buildPartial() { ai.grakn.rpc.proto.ConceptProto.EntityType.Create result = new ai.grakn.rpc.proto.ConceptProto.EntityType.Create(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.ConceptProto.EntityType.Create) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.EntityType.Create)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.EntityType.Create other) { if (other == ai.grakn.rpc.proto.ConceptProto.EntityType.Create.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.ConceptProto.EntityType.Create parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.EntityType.Create) 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.EntityType.Create) } // @@protoc_insertion_point(class_scope:session.EntityType.Create) private static final ai.grakn.rpc.proto.ConceptProto.EntityType.Create DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.EntityType.Create(); } public static ai.grakn.rpc.proto.ConceptProto.EntityType.Create getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Create> PARSER = new com.google.protobuf.AbstractParser<Create>() { public Create parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Create(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Create> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Create> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.EntityType.Create 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.ConceptProto.EntityType)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.EntityType other = (ai.grakn.rpc.proto.ConceptProto.EntityType) 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.ConceptProto.EntityType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.EntityType 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.ConceptProto.EntityType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.EntityType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.EntityType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.EntityType 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.ConceptProto.EntityType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.EntityType 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.ConceptProto.EntityType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.EntityType 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.ConceptProto.EntityType 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.EntityType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.EntityType) ai.grakn.rpc.proto.ConceptProto.EntityTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_EntityType_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_EntityType_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.EntityType.class, ai.grakn.rpc.proto.ConceptProto.EntityType.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.EntityType.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.ConceptProto.internal_static_session_EntityType_descriptor; } public ai.grakn.rpc.proto.ConceptProto.EntityType getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.EntityType.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.EntityType build() { ai.grakn.rpc.proto.ConceptProto.EntityType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.EntityType buildPartial() { ai.grakn.rpc.proto.ConceptProto.EntityType result = new ai.grakn.rpc.proto.ConceptProto.EntityType(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.ConceptProto.EntityType) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.EntityType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.EntityType other) { if (other == ai.grakn.rpc.proto.ConceptProto.EntityType.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.ConceptProto.EntityType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.EntityType) 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.EntityType) } // @@protoc_insertion_point(class_scope:session.EntityType) private static final ai.grakn.rpc.proto.ConceptProto.EntityType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.EntityType(); } public static ai.grakn.rpc.proto.ConceptProto.EntityType getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<EntityType> PARSER = new com.google.protobuf.AbstractParser<EntityType>() { public EntityType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EntityType(input, extensionRegistry); } }; public static com.google.protobuf.Parser<EntityType> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<EntityType> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.EntityType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RelationTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:session.RelationType) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.RelationType} */ public static final class RelationType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.RelationType) RelationTypeOrBuilder { // Use RelationType.newBuilder() to construct. private RelationType(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private RelationType() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private RelationType( 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.ConceptProto.internal_static_session_RelationType_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Builder.class); } public interface CreateOrBuilder extends // @@protoc_insertion_point(interface_extends:session.RelationType.Create) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.RelationType.Create} */ public static final class Create extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.RelationType.Create) CreateOrBuilder { // Use Create.newBuilder() to construct. private Create(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Create() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Create( 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.ConceptProto.internal_static_session_RelationType_Create_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Create_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Create.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.RelationType.Create.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.RelationType.Create.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.RelationType.Create.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.ConceptProto.internal_static_session_RelationType_Create_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Create_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req other = (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create.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.RelationType.Create.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.RelationType.Create.Req) ai.grakn.rpc.proto.ConceptProto.RelationType.Create.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Create_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Create_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.ConceptProto.internal_static_session_RelationType_Create_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req build() { ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req result = new ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.RelationType.Create.Req) } // @@protoc_insertion_point(class_scope:session.RelationType.Create.Req) private static final ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req(); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.RelationType.Create.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept relation = 1;</code> */ boolean hasRelation(); /** * <code>optional .session.Concept relation = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRelation(); /** * <code>optional .session.Concept relation = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRelationOrBuilder(); } /** * Protobuf type {@code session.RelationType.Create.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.RelationType.Create.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 (relation_ != null) { subBuilder = relation_.toBuilder(); } relation_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(relation_); relation_ = 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.ConceptProto.internal_static_session_RelationType_Create_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Create_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.Builder.class); } public static final int RELATION_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept relation_; /** * <code>optional .session.Concept relation = 1;</code> */ public boolean hasRelation() { return relation_ != null; } /** * <code>optional .session.Concept relation = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRelation() { return relation_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : relation_; } /** * <code>optional .session.Concept relation = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRelationOrBuilder() { return getRelation(); } 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 (relation_ != null) { output.writeMessage(1, getRelation()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (relation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRelation()); } 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.ConceptProto.RelationType.Create.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res other = (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res) obj; boolean result = true; result = result && (hasRelation() == other.hasRelation()); if (hasRelation()) { result = result && getRelation() .equals(other.getRelation()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasRelation()) { hash = (37 * hash) + RELATION_FIELD_NUMBER; hash = (53 * hash) + getRelation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create.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.RelationType.Create.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.RelationType.Create.Res) ai.grakn.rpc.proto.ConceptProto.RelationType.Create.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Create_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Create_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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 (relationBuilder_ == null) { relation_ = null; } else { relation_ = null; relationBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Create_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res build() { ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res result = new ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res(this); if (relationBuilder_ == null) { result.relation_ = relation_; } else { result.relation_ = relationBuilder_.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.ConceptProto.RelationType.Create.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res.getDefaultInstance()) return this; if (other.hasRelation()) { mergeRelation(other.getRelation()); } 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.ConceptProto.RelationType.Create.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.ConceptProto.Concept relation_ = 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> relationBuilder_; /** * <code>optional .session.Concept relation = 1;</code> */ public boolean hasRelation() { return relationBuilder_ != null || relation_ != null; } /** * <code>optional .session.Concept relation = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRelation() { if (relationBuilder_ == null) { return relation_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : relation_; } else { return relationBuilder_.getMessage(); } } /** * <code>optional .session.Concept relation = 1;</code> */ public Builder setRelation(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (relationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relation_ = value; onChanged(); } else { relationBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Concept relation = 1;</code> */ public Builder setRelation( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (relationBuilder_ == null) { relation_ = builderForValue.build(); onChanged(); } else { relationBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Concept relation = 1;</code> */ public Builder mergeRelation(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (relationBuilder_ == null) { if (relation_ != null) { relation_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(relation_).mergeFrom(value).buildPartial(); } else { relation_ = value; } onChanged(); } else { relationBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Concept relation = 1;</code> */ public Builder clearRelation() { if (relationBuilder_ == null) { relation_ = null; onChanged(); } else { relation_ = null; relationBuilder_ = null; } return this; } /** * <code>optional .session.Concept relation = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRelationBuilder() { onChanged(); return getRelationFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept relation = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRelationOrBuilder() { if (relationBuilder_ != null) { return relationBuilder_.getMessageOrBuilder(); } else { return relation_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : relation_; } } /** * <code>optional .session.Concept relation = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getRelationFieldBuilder() { if (relationBuilder_ == null) { relationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( getRelation(), getParentForChildren(), isClean()); relation_ = null; } return relationBuilder_; } 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.RelationType.Create.Res) } // @@protoc_insertion_point(class_scope:session.RelationType.Create.Res) private static final ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res(); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.RelationType.Create other = (ai.grakn.rpc.proto.ConceptProto.RelationType.Create) 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.ConceptProto.RelationType.Create parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create 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.ConceptProto.RelationType.Create parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create 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.ConceptProto.RelationType.Create parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create 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.ConceptProto.RelationType.Create parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create 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.ConceptProto.RelationType.Create 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.RelationType.Create} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.RelationType.Create) ai.grakn.rpc.proto.ConceptProto.RelationType.CreateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Create_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Create_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Create.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Create.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.ConceptProto.internal_static_session_RelationType_Create_descriptor; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Create getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.RelationType.Create.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.RelationType.Create build() { ai.grakn.rpc.proto.ConceptProto.RelationType.Create result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Create buildPartial() { ai.grakn.rpc.proto.ConceptProto.RelationType.Create result = new ai.grakn.rpc.proto.ConceptProto.RelationType.Create(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.ConceptProto.RelationType.Create) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Create)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.RelationType.Create other) { if (other == ai.grakn.rpc.proto.ConceptProto.RelationType.Create.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.ConceptProto.RelationType.Create parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.RelationType.Create) 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.RelationType.Create) } // @@protoc_insertion_point(class_scope:session.RelationType.Create) private static final ai.grakn.rpc.proto.ConceptProto.RelationType.Create DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.RelationType.Create(); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Create getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Create> PARSER = new com.google.protobuf.AbstractParser<Create>() { public Create parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Create(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Create> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Create> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Create getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RolesOrBuilder extends // @@protoc_insertion_point(interface_extends:session.RelationType.Roles) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.RelationType.Roles} */ public static final class Roles extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.RelationType.Roles) RolesOrBuilder { // Use Roles.newBuilder() to construct. private Roles(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Roles() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Roles( 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.ConceptProto.internal_static_session_RelationType_Roles_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Roles_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.RelationType.Roles.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.RelationType.Roles.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.RelationType.Roles.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.ConceptProto.internal_static_session_RelationType_Roles_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Roles_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req other = (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.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.RelationType.Roles.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.RelationType.Roles.Req) ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Roles_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Roles_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.internal_static_session_RelationType_Roles_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req build() { ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req result = new ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.RelationType.Roles.Req) } // @@protoc_insertion_point(class_scope:session.RelationType.Roles.Req) private static final ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req(); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.RelationType.Roles.Iter) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.RelationType.Roles.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.RelationType.Roles.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.ConceptProto.internal_static_session_RelationType_Roles_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Roles_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.RelationType.Roles.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept role = 1;</code> */ boolean hasRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRoleOrBuilder(); } /** * Protobuf type {@code session.RelationType.Roles.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.RelationType.Roles.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 (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.ConceptProto.internal_static_session_RelationType_Roles_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Roles_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res.Builder.class); } public static final int ROLE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept role_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRole() { return role_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : role_; } /** * <code>optional .session.Concept role = 1;</code> */ 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.ConceptProto.RelationType.Roles.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.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.ConceptProto.RelationType.Roles.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.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.RelationType.Roles.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.RelationType.Roles.Iter.Res) ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Roles_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Roles_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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 (roleBuilder_ == null) { role_ = null; } else { role_ = null; roleBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Roles_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.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.ConceptProto.RelationType.Roles.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.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.ConceptProto.RelationType.Roles.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.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_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return roleBuilder_ != null || role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ 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(); } } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ public Builder clearRole() { if (roleBuilder_ == null) { role_ = null; onChanged(); } else { role_ = null; roleBuilder_ = null; } return this; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRoleBuilder() { onChanged(); return getRoleFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept role = 1;</code> */ 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_; } } /** * <code>optional .session.Concept role = 1;</code> */ 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.RelationType.Roles.Iter.Res) } // @@protoc_insertion_point(class_scope:session.RelationType.Roles.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ 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.ConceptProto.RelationType.Roles.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter other = (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.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.RelationType.Roles.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.RelationType.Roles.Iter) ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Roles_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Roles_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.internal_static_session_RelationType_Roles_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter build() { ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter result = new ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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.RelationType.Roles.Iter) } // @@protoc_insertion_point(class_scope:session.RelationType.Roles.Iter) private static final ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.RelationType.Roles other = (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles) 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.ConceptProto.RelationType.Roles parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles 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.ConceptProto.RelationType.Roles parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles 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.ConceptProto.RelationType.Roles parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles 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.ConceptProto.RelationType.Roles parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles 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.ConceptProto.RelationType.Roles 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.RelationType.Roles} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.RelationType.Roles) ai.grakn.rpc.proto.ConceptProto.RelationType.RolesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Roles_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Roles_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.internal_static_session_RelationType_Roles_descriptor; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles build() { ai.grakn.rpc.proto.ConceptProto.RelationType.Roles result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles buildPartial() { ai.grakn.rpc.proto.ConceptProto.RelationType.Roles result = new ai.grakn.rpc.proto.ConceptProto.RelationType.Roles(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.ConceptProto.RelationType.Roles) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Roles)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.RelationType.Roles other) { if (other == ai.grakn.rpc.proto.ConceptProto.RelationType.Roles.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.ConceptProto.RelationType.Roles parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.RelationType.Roles) 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.RelationType.Roles) } // @@protoc_insertion_point(class_scope:session.RelationType.Roles) private static final ai.grakn.rpc.proto.ConceptProto.RelationType.Roles DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.RelationType.Roles(); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Roles getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Roles> PARSER = new com.google.protobuf.AbstractParser<Roles>() { public Roles parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Roles(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Roles> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Roles> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Roles getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RelatesOrBuilder extends // @@protoc_insertion_point(interface_extends:session.RelationType.Relates) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.RelationType.Relates} */ public static final class Relates extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.RelationType.Relates) RelatesOrBuilder { // Use Relates.newBuilder() to construct. private Relates(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Relates() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Relates( 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.ConceptProto.internal_static_session_RelationType_Relates_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Relates_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.RelationType.Relates.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept role = 1;</code> */ boolean hasRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRoleOrBuilder(); } /** * Protobuf type {@code session.RelationType.Relates.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.RelationType.Relates.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.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.ConceptProto.internal_static_session_RelationType_Relates_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Relates_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.Builder.class); } public static final int ROLE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept role_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRole() { return role_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : role_; } /** * <code>optional .session.Concept role = 1;</code> */ 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.ConceptProto.RelationType.Relates.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req other = (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req) 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.ConceptProto.RelationType.Relates.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates.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.RelationType.Relates.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.RelationType.Relates.Req) ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Relates_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Relates_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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 (roleBuilder_ == null) { role_ = null; } else { role_ = null; roleBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Relates_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req build() { ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req result = new ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req(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.ConceptProto.RelationType.Relates.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req.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.ConceptProto.RelationType.Relates.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req) 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_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return roleBuilder_ != null || role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ 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(); } } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ public Builder clearRole() { if (roleBuilder_ == null) { role_ = null; onChanged(); } else { role_ = null; roleBuilder_ = null; } return this; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRoleBuilder() { onChanged(); return getRoleFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept role = 1;</code> */ 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_; } } /** * <code>optional .session.Concept role = 1;</code> */ 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.RelationType.Relates.Req) } // @@protoc_insertion_point(class_scope:session.RelationType.Relates.Req) private static final ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req(); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.RelationType.Relates.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.RelationType.Relates.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.RelationType.Relates.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.ConceptProto.internal_static_session_RelationType_Relates_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Relates_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res other = (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates.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.RelationType.Relates.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.RelationType.Relates.Res) ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Relates_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Relates_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.ConceptProto.internal_static_session_RelationType_Relates_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res build() { ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res result = new ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.RelationType.Relates.Res) } // @@protoc_insertion_point(class_scope:session.RelationType.Relates.Res) private static final ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res(); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.RelationType.Relates other = (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates) 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.ConceptProto.RelationType.Relates parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates 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.ConceptProto.RelationType.Relates parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates 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.ConceptProto.RelationType.Relates parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates 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.ConceptProto.RelationType.Relates parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates 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.ConceptProto.RelationType.Relates 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.RelationType.Relates} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.RelationType.Relates) ai.grakn.rpc.proto.ConceptProto.RelationType.RelatesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Relates_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Relates_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.ConceptProto.internal_static_session_RelationType_Relates_descriptor; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates build() { ai.grakn.rpc.proto.ConceptProto.RelationType.Relates result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates buildPartial() { ai.grakn.rpc.proto.ConceptProto.RelationType.Relates result = new ai.grakn.rpc.proto.ConceptProto.RelationType.Relates(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.ConceptProto.RelationType.Relates) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Relates)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.RelationType.Relates other) { if (other == ai.grakn.rpc.proto.ConceptProto.RelationType.Relates.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.ConceptProto.RelationType.Relates parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.RelationType.Relates) 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.RelationType.Relates) } // @@protoc_insertion_point(class_scope:session.RelationType.Relates) private static final ai.grakn.rpc.proto.ConceptProto.RelationType.Relates DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.RelationType.Relates(); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Relates getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Relates> PARSER = new com.google.protobuf.AbstractParser<Relates>() { public Relates parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Relates(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Relates> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Relates> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Relates getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnrelateOrBuilder extends // @@protoc_insertion_point(interface_extends:session.RelationType.Unrelate) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.RelationType.Unrelate} */ public static final class Unrelate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.RelationType.Unrelate) UnrelateOrBuilder { // Use Unrelate.newBuilder() to construct. private Unrelate(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Unrelate() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Unrelate( 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.ConceptProto.internal_static_session_RelationType_Unrelate_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Unrelate_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.RelationType.Unrelate.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept role = 1;</code> */ boolean hasRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRoleOrBuilder(); } /** * Protobuf type {@code session.RelationType.Unrelate.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.RelationType.Unrelate.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.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.ConceptProto.internal_static_session_RelationType_Unrelate_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Unrelate_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.Builder.class); } public static final int ROLE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept role_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRole() { return role_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : role_; } /** * <code>optional .session.Concept role = 1;</code> */ 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.ConceptProto.RelationType.Unrelate.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req other = (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req) 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.ConceptProto.RelationType.Unrelate.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate.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.RelationType.Unrelate.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.RelationType.Unrelate.Req) ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Unrelate_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Unrelate_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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 (roleBuilder_ == null) { role_ = null; } else { role_ = null; roleBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Unrelate_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req build() { ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req result = new ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req(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.ConceptProto.RelationType.Unrelate.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req.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.ConceptProto.RelationType.Unrelate.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req) 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_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return roleBuilder_ != null || role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ 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(); } } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ public Builder clearRole() { if (roleBuilder_ == null) { role_ = null; onChanged(); } else { role_ = null; roleBuilder_ = null; } return this; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRoleBuilder() { onChanged(); return getRoleFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept role = 1;</code> */ 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_; } } /** * <code>optional .session.Concept role = 1;</code> */ 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.RelationType.Unrelate.Req) } // @@protoc_insertion_point(class_scope:session.RelationType.Unrelate.Req) private static final ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req(); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.RelationType.Unrelate.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.RelationType.Unrelate.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.RelationType.Unrelate.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.ConceptProto.internal_static_session_RelationType_Unrelate_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Unrelate_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res other = (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate.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.RelationType.Unrelate.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.RelationType.Unrelate.Res) ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Unrelate_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Unrelate_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.ConceptProto.internal_static_session_RelationType_Unrelate_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res build() { ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res result = new ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.RelationType.Unrelate.Res) } // @@protoc_insertion_point(class_scope:session.RelationType.Unrelate.Res) private static final ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res(); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate other = (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate) 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.ConceptProto.RelationType.Unrelate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate 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.ConceptProto.RelationType.Unrelate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate 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.ConceptProto.RelationType.Unrelate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate 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.ConceptProto.RelationType.Unrelate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate 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.ConceptProto.RelationType.Unrelate 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.RelationType.Unrelate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.RelationType.Unrelate) ai.grakn.rpc.proto.ConceptProto.RelationType.UnrelateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Unrelate_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_Unrelate_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.ConceptProto.internal_static_session_RelationType_Unrelate_descriptor; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate build() { ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate buildPartial() { ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate result = new ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate(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.ConceptProto.RelationType.Unrelate) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate other) { if (other == ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate.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.ConceptProto.RelationType.Unrelate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate) 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.RelationType.Unrelate) } // @@protoc_insertion_point(class_scope:session.RelationType.Unrelate) private static final ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate(); } public static ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Unrelate> PARSER = new com.google.protobuf.AbstractParser<Unrelate>() { public Unrelate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Unrelate(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Unrelate> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Unrelate> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.RelationType.Unrelate 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.ConceptProto.RelationType)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.RelationType other = (ai.grakn.rpc.proto.ConceptProto.RelationType) 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.ConceptProto.RelationType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType 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.ConceptProto.RelationType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.RelationType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.RelationType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType 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.ConceptProto.RelationType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType 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.ConceptProto.RelationType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.RelationType 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.ConceptProto.RelationType 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.RelationType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.RelationType) ai.grakn.rpc.proto.ConceptProto.RelationTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_RelationType_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.RelationType.class, ai.grakn.rpc.proto.ConceptProto.RelationType.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.RelationType.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.ConceptProto.internal_static_session_RelationType_descriptor; } public ai.grakn.rpc.proto.ConceptProto.RelationType getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.RelationType.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.RelationType build() { ai.grakn.rpc.proto.ConceptProto.RelationType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.RelationType buildPartial() { ai.grakn.rpc.proto.ConceptProto.RelationType result = new ai.grakn.rpc.proto.ConceptProto.RelationType(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.ConceptProto.RelationType) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.RelationType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.RelationType other) { if (other == ai.grakn.rpc.proto.ConceptProto.RelationType.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.ConceptProto.RelationType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.RelationType) 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.RelationType) } // @@protoc_insertion_point(class_scope:session.RelationType) private static final ai.grakn.rpc.proto.ConceptProto.RelationType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.RelationType(); } public static ai.grakn.rpc.proto.ConceptProto.RelationType getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<RelationType> PARSER = new com.google.protobuf.AbstractParser<RelationType>() { public RelationType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RelationType(input, extensionRegistry); } }; public static com.google.protobuf.Parser<RelationType> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<RelationType> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.RelationType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttributeTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AttributeType) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.AttributeType} */ public static final class AttributeType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AttributeType) AttributeTypeOrBuilder { // Use AttributeType.newBuilder() to construct. private AttributeType(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private AttributeType() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private AttributeType( 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.ConceptProto.internal_static_session_AttributeType_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.Builder.class); } /** * Protobuf enum {@code session.AttributeType.DATA_TYPE} */ public enum DATA_TYPE implements com.google.protobuf.ProtocolMessageEnum { /** * <code>STRING = 0;</code> */ STRING(0), /** * <code>BOOLEAN = 1;</code> */ BOOLEAN(1), /** * <code>INTEGER = 2;</code> */ INTEGER(2), /** * <code>LONG = 3;</code> */ LONG(3), /** * <code>FLOAT = 4;</code> */ FLOAT(4), /** * <code>DOUBLE = 5;</code> */ DOUBLE(5), /** * <code>DATE = 6;</code> */ DATE(6), UNRECOGNIZED(-1), ; /** * <code>STRING = 0;</code> */ public static final int STRING_VALUE = 0; /** * <code>BOOLEAN = 1;</code> */ public static final int BOOLEAN_VALUE = 1; /** * <code>INTEGER = 2;</code> */ public static final int INTEGER_VALUE = 2; /** * <code>LONG = 3;</code> */ public static final int LONG_VALUE = 3; /** * <code>FLOAT = 4;</code> */ public static final int FLOAT_VALUE = 4; /** * <code>DOUBLE = 5;</code> */ public static final int DOUBLE_VALUE = 5; /** * <code>DATE = 6;</code> */ public static final int DATE_VALUE = 6; 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 DATA_TYPE valueOf(int value) { return forNumber(value); } public static DATA_TYPE forNumber(int value) { switch (value) { case 0: return STRING; case 1: return BOOLEAN; case 2: return INTEGER; case 3: return LONG; case 4: return FLOAT; case 5: return DOUBLE; case 6: return DATE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<DATA_TYPE> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< DATA_TYPE> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<DATA_TYPE>() { public DATA_TYPE findValueByNumber(int number) { return DATA_TYPE.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.getDescriptor().getEnumTypes().get(0); } private static final DATA_TYPE[] VALUES = values(); public static DATA_TYPE valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private DATA_TYPE(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:session.AttributeType.DATA_TYPE) } public interface CreateOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AttributeType.Create) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.AttributeType.Create} */ public static final class Create extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AttributeType.Create) CreateOrBuilder { // Use Create.newBuilder() to construct. private Create(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Create() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Create( 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.ConceptProto.internal_static_session_AttributeType_Create_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Create_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AttributeType.Create.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.ValueObject value = 1;</code> */ boolean hasValue(); /** * <code>optional .session.ValueObject value = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ValueObject getValue(); /** * <code>optional .session.ValueObject value = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ValueObjectOrBuilder getValueOrBuilder(); } /** * Protobuf type {@code session.AttributeType.Create.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AttributeType.Create.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.ConceptProto.internal_static_session_AttributeType_Create_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Create_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.ValueObject value_; /** * <code>optional .session.ValueObject value = 1;</code> */ public boolean hasValue() { return value_ != null; } /** * <code>optional .session.ValueObject value = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ValueObject getValue() { return value_ == null ? ai.grakn.rpc.proto.ConceptProto.ValueObject.getDefaultInstance() : value_; } /** * <code>optional .session.ValueObject value = 1;</code> */ 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.ConceptProto.AttributeType.Create.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req other = (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.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.AttributeType.Create.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AttributeType.Create.Req) ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Create_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Create_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.internal_static_session_AttributeType_Create_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req build() { ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req result = new ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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_; /** * <code>optional .session.ValueObject value = 1;</code> */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * <code>optional .session.ValueObject value = 1;</code> */ 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(); } } /** * <code>optional .session.ValueObject value = 1;</code> */ 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; } /** * <code>optional .session.ValueObject value = 1;</code> */ 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; } /** * <code>optional .session.ValueObject value = 1;</code> */ 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; } /** * <code>optional .session.ValueObject value = 1;</code> */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * <code>optional .session.ValueObject value = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ValueObject.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** * <code>optional .session.ValueObject value = 1;</code> */ 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_; } } /** * <code>optional .session.ValueObject value = 1;</code> */ 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.AttributeType.Create.Req) } // @@protoc_insertion_point(class_scope:session.AttributeType.Create.Req) private static final ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req(); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AttributeType.Create.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept attribute = 1;</code> */ boolean hasAttribute(); /** * <code>optional .session.Concept attribute = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getAttribute(); /** * <code>optional .session.Concept attribute = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeOrBuilder(); } /** * Protobuf type {@code session.AttributeType.Create.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AttributeType.Create.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.ConceptProto.internal_static_session_AttributeType_Create_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Create_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.Builder.class); } public static final int ATTRIBUTE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept attribute_; /** * <code>optional .session.Concept attribute = 1;</code> */ public boolean hasAttribute() { return attribute_ != null; } /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttribute() { return attribute_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attribute_; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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.ConceptProto.AttributeType.Create.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res other = (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.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.AttributeType.Create.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AttributeType.Create.Res) ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Create_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Create_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.internal_static_session_AttributeType_Create_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res build() { ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res result = new ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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_; /** * <code>optional .session.Concept attribute = 1;</code> */ public boolean hasAttribute() { return attributeBuilder_ != null || attribute_ != null; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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(); } } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ public Builder clearAttribute() { if (attributeBuilder_ == null) { attribute_ = null; onChanged(); } else { attribute_ = null; attributeBuilder_ = null; } return this; } /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeBuilder() { onChanged(); return getAttributeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept attribute = 1;</code> */ 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_; } } /** * <code>optional .session.Concept attribute = 1;</code> */ 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.AttributeType.Create.Res) } // @@protoc_insertion_point(class_scope:session.AttributeType.Create.Res) private static final ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res(); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.AttributeType.Create other = (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create) 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.ConceptProto.AttributeType.Create parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create 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.ConceptProto.AttributeType.Create parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create 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.ConceptProto.AttributeType.Create parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create 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.ConceptProto.AttributeType.Create parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create 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.ConceptProto.AttributeType.Create 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.AttributeType.Create} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AttributeType.Create) ai.grakn.rpc.proto.ConceptProto.AttributeType.CreateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Create_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Create_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.internal_static_session_AttributeType_Create_descriptor; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create build() { ai.grakn.rpc.proto.ConceptProto.AttributeType.Create result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create buildPartial() { ai.grakn.rpc.proto.ConceptProto.AttributeType.Create result = new ai.grakn.rpc.proto.ConceptProto.AttributeType.Create(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.ConceptProto.AttributeType.Create) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.Create)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.AttributeType.Create other) { if (other == ai.grakn.rpc.proto.ConceptProto.AttributeType.Create.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.ConceptProto.AttributeType.Create parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.AttributeType.Create) 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.AttributeType.Create) } // @@protoc_insertion_point(class_scope:session.AttributeType.Create) private static final ai.grakn.rpc.proto.ConceptProto.AttributeType.Create DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.AttributeType.Create(); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Create getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Create> PARSER = new com.google.protobuf.AbstractParser<Create>() { public Create parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Create(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Create> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Create> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Create getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttributeOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AttributeType.Attribute) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.AttributeType.Attribute} */ public static final class Attribute extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AttributeType.Attribute) AttributeOrBuilder { // Use Attribute.newBuilder() to construct. private Attribute(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Attribute() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Attribute( 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.ConceptProto.internal_static_session_AttributeType_Attribute_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Attribute_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AttributeType.Attribute.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.ValueObject value = 1;</code> */ boolean hasValue(); /** * <code>optional .session.ValueObject value = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ValueObject getValue(); /** * <code>optional .session.ValueObject value = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ValueObjectOrBuilder getValueOrBuilder(); } /** * Protobuf type {@code session.AttributeType.Attribute.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AttributeType.Attribute.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.ConceptProto.internal_static_session_AttributeType_Attribute_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Attribute_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.ValueObject value_; /** * <code>optional .session.ValueObject value = 1;</code> */ public boolean hasValue() { return value_ != null; } /** * <code>optional .session.ValueObject value = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ValueObject getValue() { return value_ == null ? ai.grakn.rpc.proto.ConceptProto.ValueObject.getDefaultInstance() : value_; } /** * <code>optional .session.ValueObject value = 1;</code> */ 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.ConceptProto.AttributeType.Attribute.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req other = (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute.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.AttributeType.Attribute.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AttributeType.Attribute.Req) ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Attribute_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Attribute_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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.ConceptProto.internal_static_session_AttributeType_Attribute_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req build() { ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req result = new ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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_; /** * <code>optional .session.ValueObject value = 1;</code> */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * <code>optional .session.ValueObject value = 1;</code> */ 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(); } } /** * <code>optional .session.ValueObject value = 1;</code> */ 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; } /** * <code>optional .session.ValueObject value = 1;</code> */ 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; } /** * <code>optional .session.ValueObject value = 1;</code> */ 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; } /** * <code>optional .session.ValueObject value = 1;</code> */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * <code>optional .session.ValueObject value = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ValueObject.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** * <code>optional .session.ValueObject value = 1;</code> */ 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_; } } /** * <code>optional .session.ValueObject value = 1;</code> */ 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.AttributeType.Attribute.Req) } // @@protoc_insertion_point(class_scope:session.AttributeType.Attribute.Req) private static final ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req(); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AttributeType.Attribute.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept attribute = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getAttribute(); /** * <code>optional .session.Concept attribute = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeOrBuilder(); /** * <code>optional .session.Null null = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.Null getNull(); /** * <code>optional .session.Null null = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.NullOrBuilder getNullOrBuilder(); public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.ResCase getResCase(); } /** * Protobuf type {@code session.AttributeType.Attribute.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AttributeType.Attribute.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.ConceptProto.internal_static_session_AttributeType_Attribute_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Attribute_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.Builder.class); } private int resCase_ = 0; private java.lang.Object res_; public enum ResCase implements com.google.protobuf.Internal.EnumLite { ATTRIBUTE(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 ATTRIBUTE; 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 ATTRIBUTE_FIELD_NUMBER = 1; /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttribute() { if (resCase_ == 1) { return (ai.grakn.rpc.proto.ConceptProto.Concept) res_; } return ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance(); } /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeOrBuilder() { 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; /** * <code>optional .session.Null null = 2;</code> */ 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(); } /** * <code>optional .session.Null null = 2;</code> */ 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.ConceptProto.AttributeType.Attribute.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res other = (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res) obj; boolean result = true; result = result && getResCase().equals( other.getResCase()); if (!result) return false; switch (resCase_) { case 1: result = result && getAttribute() .equals(other.getAttribute()); 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) + ATTRIBUTE_FIELD_NUMBER; hash = (53 * hash) + getAttribute().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.ConceptProto.AttributeType.Attribute.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute.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.AttributeType.Attribute.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AttributeType.Attribute.Res) ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Attribute_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Attribute_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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.ConceptProto.internal_static_session_AttributeType_Attribute_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res build() { ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res result = new ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res(this); if (resCase_ == 1) { if (attributeBuilder_ == null) { result.res_ = res_; } else { result.res_ = attributeBuilder_.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.ConceptProto.AttributeType.Attribute.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res.getDefaultInstance()) return this; switch (other.getResCase()) { case ATTRIBUTE: { mergeAttribute(other.getAttribute()); 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.ConceptProto.AttributeType.Attribute.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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> attributeBuilder_; /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttribute() { if (attributeBuilder_ == 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 attributeBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance(); } } /** * <code>optional .session.Concept attribute = 1;</code> */ public Builder setAttribute(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { attributeBuilder_.setMessage(value); } resCase_ = 1; return this; } /** * <code>optional .session.Concept attribute = 1;</code> */ public Builder setAttribute( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (attributeBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { attributeBuilder_.setMessage(builderForValue.build()); } resCase_ = 1; return this; } /** * <code>optional .session.Concept attribute = 1;</code> */ public Builder mergeAttribute(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (attributeBuilder_ == 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) { attributeBuilder_.mergeFrom(value); } attributeBuilder_.setMessage(value); } resCase_ = 1; return this; } /** * <code>optional .session.Concept attribute = 1;</code> */ public Builder clearAttribute() { if (attributeBuilder_ == null) { if (resCase_ == 1) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 1) { resCase_ = 0; res_ = null; } attributeBuilder_.clear(); } return this; } /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeBuilder() { return getAttributeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeOrBuilder() { if ((resCase_ == 1) && (attributeBuilder_ != null)) { return attributeBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 1) { return (ai.grakn.rpc.proto.ConceptProto.Concept) res_; } return ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance(); } } /** * <code>optional .session.Concept attribute = 1;</code> */ 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) { if (!(resCase_ == 1)) { res_ = ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance(); } 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>( (ai.grakn.rpc.proto.ConceptProto.Concept) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 1; onChanged();; return attributeBuilder_; } 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_; /** * <code>optional .session.Null null = 2;</code> */ 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(); } } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Null.Builder getNullBuilder() { return getNullFieldBuilder().getBuilder(); } /** * <code>optional .session.Null null = 2;</code> */ 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(); } } /** * <code>optional .session.Null null = 2;</code> */ 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.AttributeType.Attribute.Res) } // @@protoc_insertion_point(class_scope:session.AttributeType.Attribute.Res) private static final ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res(); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute other = (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute) 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.ConceptProto.AttributeType.Attribute parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute 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.ConceptProto.AttributeType.Attribute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute 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.ConceptProto.AttributeType.Attribute parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute 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.ConceptProto.AttributeType.Attribute parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute 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.ConceptProto.AttributeType.Attribute 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.AttributeType.Attribute} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AttributeType.Attribute) ai.grakn.rpc.proto.ConceptProto.AttributeType.AttributeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Attribute_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_Attribute_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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.ConceptProto.internal_static_session_AttributeType_Attribute_descriptor; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute build() { ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute buildPartial() { ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute result = new ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute(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.ConceptProto.AttributeType.Attribute) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute other) { if (other == ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute.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.ConceptProto.AttributeType.Attribute parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute) 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.AttributeType.Attribute) } // @@protoc_insertion_point(class_scope:session.AttributeType.Attribute) private static final ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute(); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Attribute> PARSER = new com.google.protobuf.AbstractParser<Attribute>() { public Attribute parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Attribute(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Attribute> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Attribute> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.Attribute getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DataTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AttributeType.DataType) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.AttributeType.DataType} */ public static final class DataType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AttributeType.DataType) DataTypeOrBuilder { // Use DataType.newBuilder() to construct. private DataType(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private DataType() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DataType( 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.ConceptProto.internal_static_session_AttributeType_DataType_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_DataType_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AttributeType.DataType.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.AttributeType.DataType.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AttributeType.DataType.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.ConceptProto.internal_static_session_AttributeType_DataType_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_DataType_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req other = (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType.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.AttributeType.DataType.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AttributeType.DataType.Req) ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_DataType_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_DataType_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.internal_static_session_AttributeType_DataType_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req build() { ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req result = new ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.AttributeType.DataType.Req) } // @@protoc_insertion_point(class_scope:session.AttributeType.DataType.Req) private static final ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req(); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AttributeType.DataType.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 1;</code> */ int getDataTypeValue(); /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE getDataType(); /** * <code>optional .session.Null null = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.Null getNull(); /** * <code>optional .session.Null null = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.NullOrBuilder getNullOrBuilder(); public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.ResCase getResCase(); } /** * Protobuf type {@code session.AttributeType.DataType.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AttributeType.DataType.Res) ResOrBuilder { // Use Res.newBuilder() to construct. private Res(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Res() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Res( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); resCase_ = 1; res_ = rawValue; 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.ConceptProto.internal_static_session_AttributeType_DataType_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_DataType_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.Builder.class); } private int resCase_ = 0; private java.lang.Object res_; public enum ResCase implements com.google.protobuf.Internal.EnumLite { DATATYPE(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 DATATYPE; 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 DATATYPE_FIELD_NUMBER = 1; /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 1;</code> */ public int getDataTypeValue() { if (resCase_ == 1) { return (java.lang.Integer) res_; } return 0; } /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE getDataType() { if (resCase_ == 1) { ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE result = ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE.valueOf( (java.lang.Integer) res_); return result == null ? ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE.UNRECOGNIZED : result; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE.STRING; } public static final int NULL_FIELD_NUMBER = 2; /** * <code>optional .session.Null null = 2;</code> */ 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(); } /** * <code>optional .session.Null null = 2;</code> */ 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.writeEnum(1, ((java.lang.Integer) 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 .computeEnumSize(1, ((java.lang.Integer) 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.ConceptProto.AttributeType.DataType.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res other = (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res) obj; boolean result = true; result = result && getResCase().equals( other.getResCase()); if (!result) return false; switch (resCase_) { case 1: result = result && getDataTypeValue() == other.getDataTypeValue(); 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) + DATATYPE_FIELD_NUMBER; hash = (53 * hash) + getDataTypeValue(); 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.ConceptProto.AttributeType.DataType.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType.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.AttributeType.DataType.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AttributeType.DataType.Res) ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_DataType_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_DataType_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.internal_static_session_AttributeType_DataType_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res build() { ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res result = new ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res(this); if (resCase_ == 1) { result.res_ = res_; } 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.ConceptProto.AttributeType.DataType.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res.getDefaultInstance()) return this; switch (other.getResCase()) { case DATATYPE: { setDataTypeValue(other.getDataTypeValue()); 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.ConceptProto.AttributeType.DataType.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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; } /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 1;</code> */ public int getDataTypeValue() { if (resCase_ == 1) { return ((java.lang.Integer) res_).intValue(); } return 0; } /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 1;</code> */ public Builder setDataTypeValue(int value) { resCase_ = 1; res_ = value; onChanged(); return this; } /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE getDataType() { if (resCase_ == 1) { ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE result = ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE.valueOf( (java.lang.Integer) res_); return result == null ? ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE.UNRECOGNIZED : result; } return ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE.STRING; } /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 1;</code> */ public Builder setDataType(ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE value) { if (value == null) { throw new NullPointerException(); } resCase_ = 1; res_ = value.getNumber(); onChanged(); return this; } /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 1;</code> */ public Builder clearDataType() { if (resCase_ == 1) { resCase_ = 0; res_ = null; onChanged(); } return this; } 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_; /** * <code>optional .session.Null null = 2;</code> */ 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(); } } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Null.Builder getNullBuilder() { return getNullFieldBuilder().getBuilder(); } /** * <code>optional .session.Null null = 2;</code> */ 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(); } } /** * <code>optional .session.Null null = 2;</code> */ 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.AttributeType.DataType.Res) } // @@protoc_insertion_point(class_scope:session.AttributeType.DataType.Res) private static final ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res(); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType other = (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType) 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.ConceptProto.AttributeType.DataType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType 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.ConceptProto.AttributeType.DataType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType 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.ConceptProto.AttributeType.DataType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType 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.ConceptProto.AttributeType.DataType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType 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.ConceptProto.AttributeType.DataType 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.AttributeType.DataType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AttributeType.DataType) ai.grakn.rpc.proto.ConceptProto.AttributeType.DataTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_DataType_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_DataType_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.internal_static_session_AttributeType_DataType_descriptor; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType build() { ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType buildPartial() { ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType result = new ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType(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.ConceptProto.AttributeType.DataType) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType other) { if (other == ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType.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.ConceptProto.AttributeType.DataType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType) 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.AttributeType.DataType) } // @@protoc_insertion_point(class_scope:session.AttributeType.DataType) private static final ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType(); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<DataType> PARSER = new com.google.protobuf.AbstractParser<DataType>() { public DataType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DataType(input, extensionRegistry); } }; public static com.google.protobuf.Parser<DataType> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<DataType> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.DataType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetRegexOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AttributeType.GetRegex) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.AttributeType.GetRegex} */ public static final class GetRegex extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AttributeType.GetRegex) GetRegexOrBuilder { // Use GetRegex.newBuilder() to construct. private GetRegex(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private GetRegex() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetRegex( 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.ConceptProto.internal_static_session_AttributeType_GetRegex_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_GetRegex_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AttributeType.GetRegex.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.AttributeType.GetRegex.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AttributeType.GetRegex.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.ConceptProto.internal_static_session_AttributeType_GetRegex_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_GetRegex_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req other = (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex.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.AttributeType.GetRegex.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AttributeType.GetRegex.Req) ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_GetRegex_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_GetRegex_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.ConceptProto.internal_static_session_AttributeType_GetRegex_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req build() { ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req result = new ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.AttributeType.GetRegex.Req) } // @@protoc_insertion_point(class_scope:session.AttributeType.GetRegex.Req) private static final ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req(); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AttributeType.GetRegex.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional string regex = 1;</code> */ java.lang.String getRegex(); /** * <code>optional string regex = 1;</code> */ com.google.protobuf.ByteString getRegexBytes(); } /** * Protobuf type {@code session.AttributeType.GetRegex.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AttributeType.GetRegex.Res) ResOrBuilder { // Use Res.newBuilder() to construct. private Res(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Res() { regex_ = ""; } @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: { java.lang.String s = input.readStringRequireUtf8(); regex_ = 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.ConceptProto.internal_static_session_AttributeType_GetRegex_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_GetRegex_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.Builder.class); } public static final int REGEX_FIELD_NUMBER = 1; private volatile java.lang.Object regex_; /** * <code>optional string regex = 1;</code> */ public java.lang.String getRegex() { java.lang.Object ref = regex_; 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(); regex_ = s; return s; } } /** * <code>optional string regex = 1;</code> */ public com.google.protobuf.ByteString getRegexBytes() { java.lang.Object ref = regex_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); regex_ = 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 (!getRegexBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, regex_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getRegexBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, regex_); } 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.ConceptProto.AttributeType.GetRegex.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res other = (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res) obj; boolean result = true; result = result && getRegex() .equals(other.getRegex()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + REGEX_FIELD_NUMBER; hash = (53 * hash) + getRegex().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex.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.AttributeType.GetRegex.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AttributeType.GetRegex.Res) ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_GetRegex_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_GetRegex_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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(); regex_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_GetRegex_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res build() { ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res result = new ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res(this); result.regex_ = regex_; 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.ConceptProto.AttributeType.GetRegex.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res.getDefaultInstance()) return this; if (!other.getRegex().isEmpty()) { regex_ = other.regex_; 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.ConceptProto.AttributeType.GetRegex.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object regex_ = ""; /** * <code>optional string regex = 1;</code> */ public java.lang.String getRegex() { java.lang.Object ref = regex_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); regex_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string regex = 1;</code> */ public com.google.protobuf.ByteString getRegexBytes() { java.lang.Object ref = regex_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); regex_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string regex = 1;</code> */ public Builder setRegex( java.lang.String value) { if (value == null) { throw new NullPointerException(); } regex_ = value; onChanged(); return this; } /** * <code>optional string regex = 1;</code> */ public Builder clearRegex() { regex_ = getDefaultInstance().getRegex(); onChanged(); return this; } /** * <code>optional string regex = 1;</code> */ public Builder setRegexBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); regex_ = 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.AttributeType.GetRegex.Res) } // @@protoc_insertion_point(class_scope:session.AttributeType.GetRegex.Res) private static final ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res(); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex other = (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex) 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.ConceptProto.AttributeType.GetRegex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex 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.ConceptProto.AttributeType.GetRegex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex 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.ConceptProto.AttributeType.GetRegex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex 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.ConceptProto.AttributeType.GetRegex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex 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.ConceptProto.AttributeType.GetRegex 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.AttributeType.GetRegex} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AttributeType.GetRegex) ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_GetRegex_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_GetRegex_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.ConceptProto.internal_static_session_AttributeType_GetRegex_descriptor; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex build() { ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex buildPartial() { ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex result = new ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex(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.ConceptProto.AttributeType.GetRegex) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex other) { if (other == ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex.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.ConceptProto.AttributeType.GetRegex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex) 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.AttributeType.GetRegex) } // @@protoc_insertion_point(class_scope:session.AttributeType.GetRegex) private static final ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex(); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<GetRegex> PARSER = new com.google.protobuf.AbstractParser<GetRegex>() { public GetRegex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetRegex(input, extensionRegistry); } }; public static com.google.protobuf.Parser<GetRegex> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<GetRegex> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.GetRegex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SetRegexOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AttributeType.SetRegex) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.AttributeType.SetRegex} */ public static final class SetRegex extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AttributeType.SetRegex) SetRegexOrBuilder { // Use SetRegex.newBuilder() to construct. private SetRegex(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private SetRegex() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SetRegex( 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.ConceptProto.internal_static_session_AttributeType_SetRegex_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_SetRegex_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AttributeType.SetRegex.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional string regex = 1;</code> */ java.lang.String getRegex(); /** * <code>optional string regex = 1;</code> */ com.google.protobuf.ByteString getRegexBytes(); } /** * Protobuf type {@code session.AttributeType.SetRegex.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AttributeType.SetRegex.Req) ReqOrBuilder { // Use Req.newBuilder() to construct. private Req(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Req() { regex_ = ""; } @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(); regex_ = 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.ConceptProto.internal_static_session_AttributeType_SetRegex_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_SetRegex_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.Builder.class); } public static final int REGEX_FIELD_NUMBER = 1; private volatile java.lang.Object regex_; /** * <code>optional string regex = 1;</code> */ public java.lang.String getRegex() { java.lang.Object ref = regex_; 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(); regex_ = s; return s; } } /** * <code>optional string regex = 1;</code> */ public com.google.protobuf.ByteString getRegexBytes() { java.lang.Object ref = regex_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); regex_ = 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 (!getRegexBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, regex_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getRegexBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, regex_); } 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.ConceptProto.AttributeType.SetRegex.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req other = (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req) obj; boolean result = true; result = result && getRegex() .equals(other.getRegex()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + REGEX_FIELD_NUMBER; hash = (53 * hash) + getRegex().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex.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.AttributeType.SetRegex.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AttributeType.SetRegex.Req) ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_SetRegex_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_SetRegex_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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(); regex_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_SetRegex_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req build() { ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req result = new ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req(this); result.regex_ = regex_; 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.ConceptProto.AttributeType.SetRegex.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req.getDefaultInstance()) return this; if (!other.getRegex().isEmpty()) { regex_ = other.regex_; 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.ConceptProto.AttributeType.SetRegex.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object regex_ = ""; /** * <code>optional string regex = 1;</code> */ public java.lang.String getRegex() { java.lang.Object ref = regex_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); regex_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string regex = 1;</code> */ public com.google.protobuf.ByteString getRegexBytes() { java.lang.Object ref = regex_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); regex_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string regex = 1;</code> */ public Builder setRegex( java.lang.String value) { if (value == null) { throw new NullPointerException(); } regex_ = value; onChanged(); return this; } /** * <code>optional string regex = 1;</code> */ public Builder clearRegex() { regex_ = getDefaultInstance().getRegex(); onChanged(); return this; } /** * <code>optional string regex = 1;</code> */ public Builder setRegexBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); regex_ = 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.AttributeType.SetRegex.Req) } // @@protoc_insertion_point(class_scope:session.AttributeType.SetRegex.Req) private static final ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req(); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.AttributeType.SetRegex.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.AttributeType.SetRegex.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.AttributeType.SetRegex.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.ConceptProto.internal_static_session_AttributeType_SetRegex_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_SetRegex_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res other = (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex.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.AttributeType.SetRegex.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AttributeType.SetRegex.Res) ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_SetRegex_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_SetRegex_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.ConceptProto.internal_static_session_AttributeType_SetRegex_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res build() { ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res result = new ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.AttributeType.SetRegex.Res) } // @@protoc_insertion_point(class_scope:session.AttributeType.SetRegex.Res) private static final ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res(); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex other = (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex) 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.ConceptProto.AttributeType.SetRegex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex 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.ConceptProto.AttributeType.SetRegex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex 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.ConceptProto.AttributeType.SetRegex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex 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.ConceptProto.AttributeType.SetRegex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex 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.ConceptProto.AttributeType.SetRegex 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.AttributeType.SetRegex} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AttributeType.SetRegex) ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_SetRegex_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_SetRegex_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.ConceptProto.internal_static_session_AttributeType_SetRegex_descriptor; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex build() { ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex buildPartial() { ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex result = new ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex(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.ConceptProto.AttributeType.SetRegex) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex other) { if (other == ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex.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.ConceptProto.AttributeType.SetRegex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex) 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.AttributeType.SetRegex) } // @@protoc_insertion_point(class_scope:session.AttributeType.SetRegex) private static final ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex(); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<SetRegex> PARSER = new com.google.protobuf.AbstractParser<SetRegex>() { public SetRegex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SetRegex(input, extensionRegistry); } }; public static com.google.protobuf.Parser<SetRegex> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<SetRegex> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.AttributeType.SetRegex 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.ConceptProto.AttributeType)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.AttributeType other = (ai.grakn.rpc.proto.ConceptProto.AttributeType) 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.ConceptProto.AttributeType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType 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.ConceptProto.AttributeType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType 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.ConceptProto.AttributeType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType 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.ConceptProto.AttributeType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType 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.ConceptProto.AttributeType 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.AttributeType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.AttributeType) ai.grakn.rpc.proto.ConceptProto.AttributeTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_AttributeType_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.AttributeType.class, ai.grakn.rpc.proto.ConceptProto.AttributeType.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.AttributeType.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.ConceptProto.internal_static_session_AttributeType_descriptor; } public ai.grakn.rpc.proto.ConceptProto.AttributeType getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.AttributeType.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.AttributeType build() { ai.grakn.rpc.proto.ConceptProto.AttributeType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.AttributeType buildPartial() { ai.grakn.rpc.proto.ConceptProto.AttributeType result = new ai.grakn.rpc.proto.ConceptProto.AttributeType(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.ConceptProto.AttributeType) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.AttributeType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.AttributeType other) { if (other == ai.grakn.rpc.proto.ConceptProto.AttributeType.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.ConceptProto.AttributeType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.AttributeType) 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.AttributeType) } // @@protoc_insertion_point(class_scope:session.AttributeType) private static final ai.grakn.rpc.proto.ConceptProto.AttributeType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.AttributeType(); } public static ai.grakn.rpc.proto.ConceptProto.AttributeType getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<AttributeType> PARSER = new com.google.protobuf.AbstractParser<AttributeType>() { public AttributeType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AttributeType(input, extensionRegistry); } }; public static com.google.protobuf.Parser<AttributeType> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<AttributeType> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.AttributeType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ThingOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Thing} */ public static final class Thing extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing) ThingOrBuilder { // Use Thing.newBuilder() to construct. private Thing(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Thing() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Thing( 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.ConceptProto.internal_static_session_Thing_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.class, ai.grakn.rpc.proto.ConceptProto.Thing.Builder.class); } public interface IsInferredOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.IsInferred) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Thing.IsInferred} */ public static final class IsInferred extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.IsInferred) IsInferredOrBuilder { // Use IsInferred.newBuilder() to construct. private IsInferred(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private IsInferred() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private IsInferred( 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.ConceptProto.internal_static_session_Thing_IsInferred_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_IsInferred_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.class, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.IsInferred.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Thing.IsInferred.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.IsInferred.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.ConceptProto.internal_static_session_Thing_IsInferred_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_IsInferred_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.class, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req other = (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred.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.Thing.IsInferred.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.IsInferred.Req) ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_IsInferred_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_IsInferred_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.class, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.ConceptProto.internal_static_session_Thing_IsInferred_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req build() { ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req result = new ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.Thing.IsInferred.Req) } // @@protoc_insertion_point(class_scope:session.Thing.IsInferred.Req) private static final ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.IsInferred.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional bool inferred = 1;</code> */ boolean getInferred(); } /** * Protobuf type {@code session.Thing.IsInferred.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.IsInferred.Res) ResOrBuilder { // Use Res.newBuilder() to construct. private Res(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Res() { inferred_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Res( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { inferred_ = input.readBool(); 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.ConceptProto.internal_static_session_Thing_IsInferred_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_IsInferred_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.class, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.Builder.class); } public static final int INFERRED_FIELD_NUMBER = 1; private boolean inferred_; /** * <code>optional bool inferred = 1;</code> */ public boolean getInferred() { return inferred_; } 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 (inferred_ != false) { output.writeBool(1, inferred_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (inferred_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, inferred_); } 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.ConceptProto.Thing.IsInferred.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res other = (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res) obj; boolean result = true; result = result && (getInferred() == other.getInferred()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + INFERRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getInferred()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred.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.Thing.IsInferred.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.IsInferred.Res) ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_IsInferred_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_IsInferred_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.class, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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(); inferred_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_IsInferred_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res build() { ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res result = new ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res(this); result.inferred_ = inferred_; 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.ConceptProto.Thing.IsInferred.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res.getDefaultInstance()) return this; if (other.getInferred() != false) { setInferred(other.getInferred()); } 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.ConceptProto.Thing.IsInferred.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean inferred_ ; /** * <code>optional bool inferred = 1;</code> */ public boolean getInferred() { return inferred_; } /** * <code>optional bool inferred = 1;</code> */ public Builder setInferred(boolean value) { inferred_ = value; onChanged(); return this; } /** * <code>optional bool inferred = 1;</code> */ public Builder clearInferred() { inferred_ = false; 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.Thing.IsInferred.Res) } // @@protoc_insertion_point(class_scope:session.Thing.IsInferred.Res) private static final ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred other = (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred) 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.ConceptProto.Thing.IsInferred parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred 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.ConceptProto.Thing.IsInferred parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred 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.ConceptProto.Thing.IsInferred parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred 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.ConceptProto.Thing.IsInferred parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred 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.ConceptProto.Thing.IsInferred 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.Thing.IsInferred} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.IsInferred) ai.grakn.rpc.proto.ConceptProto.Thing.IsInferredOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_IsInferred_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_IsInferred_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.class, ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.ConceptProto.internal_static_session_Thing_IsInferred_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred build() { ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred result = new ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred(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.ConceptProto.Thing.IsInferred) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred.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.ConceptProto.Thing.IsInferred parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred) 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.Thing.IsInferred) } // @@protoc_insertion_point(class_scope:session.Thing.IsInferred) private static final ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<IsInferred> PARSER = new com.google.protobuf.AbstractParser<IsInferred>() { public IsInferred parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IsInferred(input, extensionRegistry); } }; public static com.google.protobuf.Parser<IsInferred> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<IsInferred> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.IsInferred getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TypeOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Type) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Thing.Type} */ public static final class Type extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Type) TypeOrBuilder { // Use Type.newBuilder() to construct. private Type(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Type() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Type( 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.ConceptProto.internal_static_session_Thing_Type_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Type_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Type.class, ai.grakn.rpc.proto.ConceptProto.Thing.Type.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Type.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Thing.Type.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Type.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.ConceptProto.internal_static_session_Thing_Type_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Type_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.class, ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req other = (ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type.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.Thing.Type.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Type.Req) ai.grakn.rpc.proto.ConceptProto.Thing.Type.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Type_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Type_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.class, ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.ConceptProto.internal_static_session_Thing_Type_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req build() { ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req result = new ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.Thing.Type.Req) } // @@protoc_insertion_point(class_scope:session.Thing.Type.Req) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Type.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Type.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept type = 1;</code> */ boolean hasType(); /** * <code>optional .session.Concept type = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getType(); /** * <code>optional .session.Concept type = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getTypeOrBuilder(); } /** * Protobuf type {@code session.Thing.Type.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Type.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 (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = 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.ConceptProto.internal_static_session_Thing_Type_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Type_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.class, ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept type_; /** * <code>optional .session.Concept type = 1;</code> */ public boolean hasType() { return type_ != null; } /** * <code>optional .session.Concept type = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getType() { return type_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : type_; } /** * <code>optional .session.Concept type = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getTypeOrBuilder() { return getType(); } 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 (type_ != null) { output.writeMessage(1, getType()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } 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.ConceptProto.Thing.Type.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res other = (ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType() .equals(other.getType()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type.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.Thing.Type.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Type.Res) ai.grakn.rpc.proto.ConceptProto.Thing.Type.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Type_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Type_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.class, ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Type.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 (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Type_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res build() { ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res result = new ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res(this); if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.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.ConceptProto.Thing.Type.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } 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.ConceptProto.Thing.Type.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.ConceptProto.Concept type_ = 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> typeBuilder_; /** * <code>optional .session.Concept type = 1;</code> */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** * <code>optional .session.Concept type = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getType() { if (typeBuilder_ == null) { return type_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * <code>optional .session.Concept type = 1;</code> */ public Builder setType(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Concept type = 1;</code> */ public Builder setType( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Concept type = 1;</code> */ public Builder mergeType(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Concept type = 1;</code> */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** * <code>optional .session.Concept type = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept type = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : type_; } } /** * <code>optional .session.Concept type = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } 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.Thing.Type.Res) } // @@protoc_insertion_point(class_scope:session.Thing.Type.Res) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Type other = (ai.grakn.rpc.proto.ConceptProto.Thing.Type) 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.ConceptProto.Thing.Type parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type 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.ConceptProto.Thing.Type parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type 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.ConceptProto.Thing.Type parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type 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.ConceptProto.Thing.Type parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type 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.ConceptProto.Thing.Type 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.Thing.Type} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Type) ai.grakn.rpc.proto.ConceptProto.Thing.TypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Type_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Type_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Type.class, ai.grakn.rpc.proto.ConceptProto.Thing.Type.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.ConceptProto.internal_static_session_Thing_Type_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Type getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Type.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Type build() { ai.grakn.rpc.proto.ConceptProto.Thing.Type result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Type buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Type result = new ai.grakn.rpc.proto.ConceptProto.Thing.Type(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.ConceptProto.Thing.Type) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Type)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Type other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Type.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.ConceptProto.Thing.Type parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Type) 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.Thing.Type) } // @@protoc_insertion_point(class_scope:session.Thing.Type) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Type DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Type(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Type getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Type> PARSER = new com.google.protobuf.AbstractParser<Type>() { public Type parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Type(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Type> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Type> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Type getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeysOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Keys) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Thing.Keys} */ public static final class Keys extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Keys) KeysOrBuilder { // Use Keys.newBuilder() to construct. private Keys(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Keys() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Keys( 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.ConceptProto.internal_static_session_Thing_Keys_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Keys_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Keys.class, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Keys.Req) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> getAttributeTypesList(); /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getAttributeTypes(int index); /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ int getAttributeTypesCount(); /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ java.util.List<? extends ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getAttributeTypesOrBuilderList(); /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeTypesOrBuilder( int index); } /** * Protobuf type {@code session.Thing.Keys.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Keys.Req) ReqOrBuilder { // Use Req.newBuilder() to construct. private Req(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Req() { attributeTypes_ = java.util.Collections.emptyList(); } @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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { attributeTypes_ = new java.util.ArrayList<ai.grakn.rpc.proto.ConceptProto.Concept>(); mutable_bitField0_ |= 0x00000001; } attributeTypes_.add( input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { attributeTypes_ = java.util.Collections.unmodifiableList(attributeTypes_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Keys_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Keys_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.class, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.Builder.class); } public static final int ATTRIBUTETYPES_FIELD_NUMBER = 1; private java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> attributeTypes_; /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> getAttributeTypesList() { return attributeTypes_; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public java.util.List<? extends ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getAttributeTypesOrBuilderList() { return attributeTypes_; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public int getAttributeTypesCount() { return attributeTypes_.size(); } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttributeTypes(int index) { return attributeTypes_.get(index); } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeTypesOrBuilder( int index) { return attributeTypes_.get(index); } 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 { for (int i = 0; i < attributeTypes_.size(); i++) { output.writeMessage(1, attributeTypes_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < attributeTypes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, attributeTypes_.get(i)); } 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.ConceptProto.Thing.Keys.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req other = (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req) obj; boolean result = true; result = result && getAttributeTypesList() .equals(other.getAttributeTypesList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getAttributeTypesCount() > 0) { hash = (37 * hash) + ATTRIBUTETYPES_FIELD_NUMBER; hash = (53 * hash) + getAttributeTypesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.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.Thing.Keys.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Keys.Req) ai.grakn.rpc.proto.ConceptProto.Thing.Keys.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Keys_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Keys_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.class, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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) { getAttributeTypesFieldBuilder(); } } public Builder clear() { super.clear(); if (attributeTypesBuilder_ == null) { attributeTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { attributeTypesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Keys_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req build() { ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req result = new ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req(this); int from_bitField0_ = bitField0_; if (attributeTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { attributeTypes_ = java.util.Collections.unmodifiableList(attributeTypes_); bitField0_ = (bitField0_ & ~0x00000001); } result.attributeTypes_ = attributeTypes_; } else { result.attributeTypes_ = attributeTypesBuilder_.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.ConceptProto.Thing.Keys.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req.getDefaultInstance()) return this; if (attributeTypesBuilder_ == null) { if (!other.attributeTypes_.isEmpty()) { if (attributeTypes_.isEmpty()) { attributeTypes_ = other.attributeTypes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAttributeTypesIsMutable(); attributeTypes_.addAll(other.attributeTypes_); } onChanged(); } } else { if (!other.attributeTypes_.isEmpty()) { if (attributeTypesBuilder_.isEmpty()) { attributeTypesBuilder_.dispose(); attributeTypesBuilder_ = null; attributeTypes_ = other.attributeTypes_; bitField0_ = (bitField0_ & ~0x00000001); attributeTypesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttributeTypesFieldBuilder() : null; } else { attributeTypesBuilder_.addAllMessages(other.attributeTypes_); } } } 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.ConceptProto.Thing.Keys.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> attributeTypes_ = java.util.Collections.emptyList(); private void ensureAttributeTypesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { attributeTypes_ = new java.util.ArrayList<ai.grakn.rpc.proto.ConceptProto.Concept>(attributeTypes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> attributeTypesBuilder_; /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> getAttributeTypesList() { if (attributeTypesBuilder_ == null) { return java.util.Collections.unmodifiableList(attributeTypes_); } else { return attributeTypesBuilder_.getMessageList(); } } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public int getAttributeTypesCount() { if (attributeTypesBuilder_ == null) { return attributeTypes_.size(); } else { return attributeTypesBuilder_.getCount(); } } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttributeTypes(int index) { if (attributeTypesBuilder_ == null) { return attributeTypes_.get(index); } else { return attributeTypesBuilder_.getMessage(index); } } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder setAttributeTypes( int index, ai.grakn.rpc.proto.ConceptProto.Concept value) { if (attributeTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeTypesIsMutable(); attributeTypes_.set(index, value); onChanged(); } else { attributeTypesBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder setAttributeTypes( int index, ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (attributeTypesBuilder_ == null) { ensureAttributeTypesIsMutable(); attributeTypes_.set(index, builderForValue.build()); onChanged(); } else { attributeTypesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder addAttributeTypes(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (attributeTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeTypesIsMutable(); attributeTypes_.add(value); onChanged(); } else { attributeTypesBuilder_.addMessage(value); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder addAttributeTypes( int index, ai.grakn.rpc.proto.ConceptProto.Concept value) { if (attributeTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeTypesIsMutable(); attributeTypes_.add(index, value); onChanged(); } else { attributeTypesBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder addAttributeTypes( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (attributeTypesBuilder_ == null) { ensureAttributeTypesIsMutable(); attributeTypes_.add(builderForValue.build()); onChanged(); } else { attributeTypesBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder addAttributeTypes( int index, ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (attributeTypesBuilder_ == null) { ensureAttributeTypesIsMutable(); attributeTypes_.add(index, builderForValue.build()); onChanged(); } else { attributeTypesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder addAllAttributeTypes( java.lang.Iterable<? extends ai.grakn.rpc.proto.ConceptProto.Concept> values) { if (attributeTypesBuilder_ == null) { ensureAttributeTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attributeTypes_); onChanged(); } else { attributeTypesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder clearAttributeTypes() { if (attributeTypesBuilder_ == null) { attributeTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { attributeTypesBuilder_.clear(); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder removeAttributeTypes(int index) { if (attributeTypesBuilder_ == null) { ensureAttributeTypesIsMutable(); attributeTypes_.remove(index); onChanged(); } else { attributeTypesBuilder_.remove(index); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeTypesBuilder( int index) { return getAttributeTypesFieldBuilder().getBuilder(index); } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeTypesOrBuilder( int index) { if (attributeTypesBuilder_ == null) { return attributeTypes_.get(index); } else { return attributeTypesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public java.util.List<? extends ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getAttributeTypesOrBuilderList() { if (attributeTypesBuilder_ != null) { return attributeTypesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attributeTypes_); } } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder addAttributeTypesBuilder() { return getAttributeTypesFieldBuilder().addBuilder( ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance()); } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder addAttributeTypesBuilder( int index) { return getAttributeTypesFieldBuilder().addBuilder( index, ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance()); } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept.Builder> getAttributeTypesBuilderList() { return getAttributeTypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getAttributeTypesFieldBuilder() { if (attributeTypesBuilder_ == null) { attributeTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( attributeTypes_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); attributeTypes_ = null; } return attributeTypesBuilder_; } 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.Thing.Keys.Req) } // @@protoc_insertion_point(class_scope:session.Thing.Keys.Req) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Keys.Iter) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.Thing.Keys.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Keys.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.ConceptProto.internal_static_session_Thing_Keys_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Keys_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.class, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Keys.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept attribute = 1;</code> */ boolean hasAttribute(); /** * <code>optional .session.Concept attribute = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getAttribute(); /** * <code>optional .session.Concept attribute = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeOrBuilder(); } /** * Protobuf type {@code session.Thing.Keys.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Keys.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.ConceptProto.internal_static_session_Thing_Keys_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Keys_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res.Builder.class); } public static final int ATTRIBUTE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept attribute_; /** * <code>optional .session.Concept attribute = 1;</code> */ public boolean hasAttribute() { return attribute_ != null; } /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttribute() { return attribute_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attribute_; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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.ConceptProto.Thing.Keys.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.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.Thing.Keys.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Keys.Iter.Res) ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Keys_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Keys_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.internal_static_session_Thing_Keys_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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_; /** * <code>optional .session.Concept attribute = 1;</code> */ public boolean hasAttribute() { return attributeBuilder_ != null || attribute_ != null; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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(); } } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ public Builder clearAttribute() { if (attributeBuilder_ == null) { attribute_ = null; onChanged(); } else { attribute_ = null; attributeBuilder_ = null; } return this; } /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeBuilder() { onChanged(); return getAttributeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept attribute = 1;</code> */ 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_; } } /** * <code>optional .session.Concept attribute = 1;</code> */ 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.Thing.Keys.Iter.Res) } // @@protoc_insertion_point(class_scope:session.Thing.Keys.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ 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.ConceptProto.Thing.Keys.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter other = (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.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.Thing.Keys.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Keys.Iter) ai.grakn.rpc.proto.ConceptProto.Thing.Keys.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Keys_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Keys_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.class, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.internal_static_session_Thing_Keys_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter build() { ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter result = new ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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.Thing.Keys.Iter) } // @@protoc_insertion_point(class_scope:session.Thing.Keys.Iter) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Keys other = (ai.grakn.rpc.proto.ConceptProto.Thing.Keys) 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.ConceptProto.Thing.Keys parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys 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.ConceptProto.Thing.Keys parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys 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.ConceptProto.Thing.Keys parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys 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.ConceptProto.Thing.Keys parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys 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.ConceptProto.Thing.Keys 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.Thing.Keys} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Keys) ai.grakn.rpc.proto.ConceptProto.Thing.KeysOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Keys_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Keys_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Keys.class, ai.grakn.rpc.proto.ConceptProto.Thing.Keys.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.internal_static_session_Thing_Keys_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Keys getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Keys.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Keys build() { ai.grakn.rpc.proto.ConceptProto.Thing.Keys result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Keys buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Keys result = new ai.grakn.rpc.proto.ConceptProto.Thing.Keys(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.ConceptProto.Thing.Keys) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Keys)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Keys other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Keys.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.ConceptProto.Thing.Keys parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Keys) 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.Thing.Keys) } // @@protoc_insertion_point(class_scope:session.Thing.Keys) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Keys DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Keys(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Keys getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Keys> PARSER = new com.google.protobuf.AbstractParser<Keys>() { public Keys parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Keys(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Keys> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Keys> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Keys getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttributesOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Attributes) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Thing.Attributes} */ public static final class Attributes extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Attributes) AttributesOrBuilder { // Use Attributes.newBuilder() to construct. private Attributes(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Attributes() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Attributes( 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.ConceptProto.internal_static_session_Thing_Attributes_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Attributes_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.class, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Attributes.Req) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> getAttributeTypesList(); /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getAttributeTypes(int index); /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ int getAttributeTypesCount(); /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ java.util.List<? extends ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getAttributeTypesOrBuilderList(); /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeTypesOrBuilder( int index); } /** * Protobuf type {@code session.Thing.Attributes.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Attributes.Req) ReqOrBuilder { // Use Req.newBuilder() to construct. private Req(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Req() { attributeTypes_ = java.util.Collections.emptyList(); } @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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { attributeTypes_ = new java.util.ArrayList<ai.grakn.rpc.proto.ConceptProto.Concept>(); mutable_bitField0_ |= 0x00000001; } attributeTypes_.add( input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { attributeTypes_ = java.util.Collections.unmodifiableList(attributeTypes_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Attributes_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Attributes_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.class, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.Builder.class); } public static final int ATTRIBUTETYPES_FIELD_NUMBER = 1; private java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> attributeTypes_; /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> getAttributeTypesList() { return attributeTypes_; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public java.util.List<? extends ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getAttributeTypesOrBuilderList() { return attributeTypes_; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public int getAttributeTypesCount() { return attributeTypes_.size(); } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttributeTypes(int index) { return attributeTypes_.get(index); } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeTypesOrBuilder( int index) { return attributeTypes_.get(index); } 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 { for (int i = 0; i < attributeTypes_.size(); i++) { output.writeMessage(1, attributeTypes_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < attributeTypes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, attributeTypes_.get(i)); } 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.ConceptProto.Thing.Attributes.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req other = (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req) obj; boolean result = true; result = result && getAttributeTypesList() .equals(other.getAttributeTypesList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getAttributeTypesCount() > 0) { hash = (37 * hash) + ATTRIBUTETYPES_FIELD_NUMBER; hash = (53 * hash) + getAttributeTypesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.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.Thing.Attributes.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Attributes.Req) ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Attributes_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Attributes_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.class, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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) { getAttributeTypesFieldBuilder(); } } public Builder clear() { super.clear(); if (attributeTypesBuilder_ == null) { attributeTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { attributeTypesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Attributes_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req build() { ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req result = new ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req(this); int from_bitField0_ = bitField0_; if (attributeTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { attributeTypes_ = java.util.Collections.unmodifiableList(attributeTypes_); bitField0_ = (bitField0_ & ~0x00000001); } result.attributeTypes_ = attributeTypes_; } else { result.attributeTypes_ = attributeTypesBuilder_.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.ConceptProto.Thing.Attributes.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req.getDefaultInstance()) return this; if (attributeTypesBuilder_ == null) { if (!other.attributeTypes_.isEmpty()) { if (attributeTypes_.isEmpty()) { attributeTypes_ = other.attributeTypes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAttributeTypesIsMutable(); attributeTypes_.addAll(other.attributeTypes_); } onChanged(); } } else { if (!other.attributeTypes_.isEmpty()) { if (attributeTypesBuilder_.isEmpty()) { attributeTypesBuilder_.dispose(); attributeTypesBuilder_ = null; attributeTypes_ = other.attributeTypes_; bitField0_ = (bitField0_ & ~0x00000001); attributeTypesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttributeTypesFieldBuilder() : null; } else { attributeTypesBuilder_.addAllMessages(other.attributeTypes_); } } } 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.ConceptProto.Thing.Attributes.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> attributeTypes_ = java.util.Collections.emptyList(); private void ensureAttributeTypesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { attributeTypes_ = new java.util.ArrayList<ai.grakn.rpc.proto.ConceptProto.Concept>(attributeTypes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> attributeTypesBuilder_; /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> getAttributeTypesList() { if (attributeTypesBuilder_ == null) { return java.util.Collections.unmodifiableList(attributeTypes_); } else { return attributeTypesBuilder_.getMessageList(); } } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public int getAttributeTypesCount() { if (attributeTypesBuilder_ == null) { return attributeTypes_.size(); } else { return attributeTypesBuilder_.getCount(); } } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttributeTypes(int index) { if (attributeTypesBuilder_ == null) { return attributeTypes_.get(index); } else { return attributeTypesBuilder_.getMessage(index); } } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder setAttributeTypes( int index, ai.grakn.rpc.proto.ConceptProto.Concept value) { if (attributeTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeTypesIsMutable(); attributeTypes_.set(index, value); onChanged(); } else { attributeTypesBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder setAttributeTypes( int index, ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (attributeTypesBuilder_ == null) { ensureAttributeTypesIsMutable(); attributeTypes_.set(index, builderForValue.build()); onChanged(); } else { attributeTypesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder addAttributeTypes(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (attributeTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeTypesIsMutable(); attributeTypes_.add(value); onChanged(); } else { attributeTypesBuilder_.addMessage(value); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder addAttributeTypes( int index, ai.grakn.rpc.proto.ConceptProto.Concept value) { if (attributeTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeTypesIsMutable(); attributeTypes_.add(index, value); onChanged(); } else { attributeTypesBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder addAttributeTypes( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (attributeTypesBuilder_ == null) { ensureAttributeTypesIsMutable(); attributeTypes_.add(builderForValue.build()); onChanged(); } else { attributeTypesBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder addAttributeTypes( int index, ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (attributeTypesBuilder_ == null) { ensureAttributeTypesIsMutable(); attributeTypes_.add(index, builderForValue.build()); onChanged(); } else { attributeTypesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder addAllAttributeTypes( java.lang.Iterable<? extends ai.grakn.rpc.proto.ConceptProto.Concept> values) { if (attributeTypesBuilder_ == null) { ensureAttributeTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attributeTypes_); onChanged(); } else { attributeTypesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder clearAttributeTypes() { if (attributeTypesBuilder_ == null) { attributeTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { attributeTypesBuilder_.clear(); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public Builder removeAttributeTypes(int index) { if (attributeTypesBuilder_ == null) { ensureAttributeTypesIsMutable(); attributeTypes_.remove(index); onChanged(); } else { attributeTypesBuilder_.remove(index); } return this; } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeTypesBuilder( int index) { return getAttributeTypesFieldBuilder().getBuilder(index); } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeTypesOrBuilder( int index) { if (attributeTypesBuilder_ == null) { return attributeTypes_.get(index); } else { return attributeTypesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public java.util.List<? extends ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getAttributeTypesOrBuilderList() { if (attributeTypesBuilder_ != null) { return attributeTypesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attributeTypes_); } } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder addAttributeTypesBuilder() { return getAttributeTypesFieldBuilder().addBuilder( ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance()); } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder addAttributeTypesBuilder( int index) { return getAttributeTypesFieldBuilder().addBuilder( index, ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance()); } /** * <code>repeated .session.Concept attributeTypes = 1;</code> */ public java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept.Builder> getAttributeTypesBuilderList() { return getAttributeTypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getAttributeTypesFieldBuilder() { if (attributeTypesBuilder_ == null) { attributeTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( attributeTypes_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); attributeTypes_ = null; } return attributeTypesBuilder_; } 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.Thing.Attributes.Req) } // @@protoc_insertion_point(class_scope:session.Thing.Attributes.Req) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Attributes.Iter) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.Thing.Attributes.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Attributes.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.ConceptProto.internal_static_session_Thing_Attributes_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Attributes_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.class, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Attributes.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept attribute = 1;</code> */ boolean hasAttribute(); /** * <code>optional .session.Concept attribute = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getAttribute(); /** * <code>optional .session.Concept attribute = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeOrBuilder(); } /** * Protobuf type {@code session.Thing.Attributes.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Attributes.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.ConceptProto.internal_static_session_Thing_Attributes_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Attributes_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res.Builder.class); } public static final int ATTRIBUTE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept attribute_; /** * <code>optional .session.Concept attribute = 1;</code> */ public boolean hasAttribute() { return attribute_ != null; } /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttribute() { return attribute_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attribute_; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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.ConceptProto.Thing.Attributes.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.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.Thing.Attributes.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Attributes.Iter.Res) ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Attributes_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Attributes_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.internal_static_session_Thing_Attributes_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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_; /** * <code>optional .session.Concept attribute = 1;</code> */ public boolean hasAttribute() { return attributeBuilder_ != null || attribute_ != null; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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(); } } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ public Builder clearAttribute() { if (attributeBuilder_ == null) { attribute_ = null; onChanged(); } else { attribute_ = null; attributeBuilder_ = null; } return this; } /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeBuilder() { onChanged(); return getAttributeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept attribute = 1;</code> */ 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_; } } /** * <code>optional .session.Concept attribute = 1;</code> */ 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.Thing.Attributes.Iter.Res) } // @@protoc_insertion_point(class_scope:session.Thing.Attributes.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ 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.ConceptProto.Thing.Attributes.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter other = (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.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.Thing.Attributes.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Attributes.Iter) ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Attributes_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Attributes_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.class, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.internal_static_session_Thing_Attributes_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter build() { ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter result = new ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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.Thing.Attributes.Iter) } // @@protoc_insertion_point(class_scope:session.Thing.Attributes.Iter) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Attributes other = (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes) 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.ConceptProto.Thing.Attributes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes 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.ConceptProto.Thing.Attributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes 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.ConceptProto.Thing.Attributes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes 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.ConceptProto.Thing.Attributes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes 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.ConceptProto.Thing.Attributes 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.Thing.Attributes} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Attributes) ai.grakn.rpc.proto.ConceptProto.Thing.AttributesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Attributes_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Attributes_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.class, ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.internal_static_session_Thing_Attributes_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes build() { ai.grakn.rpc.proto.ConceptProto.Thing.Attributes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Attributes result = new ai.grakn.rpc.proto.ConceptProto.Thing.Attributes(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.ConceptProto.Thing.Attributes) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Attributes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Attributes other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Attributes.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.ConceptProto.Thing.Attributes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Attributes) 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.Thing.Attributes) } // @@protoc_insertion_point(class_scope:session.Thing.Attributes) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Attributes DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Attributes(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Attributes getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Attributes> PARSER = new com.google.protobuf.AbstractParser<Attributes>() { public Attributes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Attributes(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Attributes> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Attributes> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Attributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RelationsOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Relations) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Thing.Relations} */ public static final class Relations extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Relations) RelationsOrBuilder { // Use Relations.newBuilder() to construct. private Relations(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Relations() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Relations( 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.ConceptProto.internal_static_session_Thing_Relations_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relations_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Relations.class, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Relations.Req) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .session.Concept roles = 1;</code> */ java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> getRolesList(); /** * <code>repeated .session.Concept roles = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRoles(int index); /** * <code>repeated .session.Concept roles = 1;</code> */ int getRolesCount(); /** * <code>repeated .session.Concept roles = 1;</code> */ java.util.List<? extends ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getRolesOrBuilderList(); /** * <code>repeated .session.Concept roles = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRolesOrBuilder( int index); } /** * Protobuf type {@code session.Thing.Relations.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Relations.Req) ReqOrBuilder { // Use Req.newBuilder() to construct. private Req(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Req() { roles_ = java.util.Collections.emptyList(); } @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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { roles_ = new java.util.ArrayList<ai.grakn.rpc.proto.ConceptProto.Concept>(); mutable_bitField0_ |= 0x00000001; } roles_.add( input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { roles_ = java.util.Collections.unmodifiableList(roles_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relations_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relations_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.class, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.Builder.class); } public static final int ROLES_FIELD_NUMBER = 1; private java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> roles_; /** * <code>repeated .session.Concept roles = 1;</code> */ public java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> getRolesList() { return roles_; } /** * <code>repeated .session.Concept roles = 1;</code> */ public java.util.List<? extends ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getRolesOrBuilderList() { return roles_; } /** * <code>repeated .session.Concept roles = 1;</code> */ public int getRolesCount() { return roles_.size(); } /** * <code>repeated .session.Concept roles = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRoles(int index) { return roles_.get(index); } /** * <code>repeated .session.Concept roles = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRolesOrBuilder( int index) { return roles_.get(index); } 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 { for (int i = 0; i < roles_.size(); i++) { output.writeMessage(1, roles_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < roles_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, roles_.get(i)); } 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.ConceptProto.Thing.Relations.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req other = (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req) obj; boolean result = true; result = result && getRolesList() .equals(other.getRolesList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getRolesCount() > 0) { hash = (37 * hash) + ROLES_FIELD_NUMBER; hash = (53 * hash) + getRolesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.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.Thing.Relations.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Relations.Req) ai.grakn.rpc.proto.ConceptProto.Thing.Relations.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relations_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relations_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.class, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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) { getRolesFieldBuilder(); } } public Builder clear() { super.clear(); if (rolesBuilder_ == null) { roles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { rolesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relations_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req build() { ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req result = new ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req(this); int from_bitField0_ = bitField0_; if (rolesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { roles_ = java.util.Collections.unmodifiableList(roles_); bitField0_ = (bitField0_ & ~0x00000001); } result.roles_ = roles_; } else { result.roles_ = rolesBuilder_.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.ConceptProto.Thing.Relations.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req.getDefaultInstance()) return this; if (rolesBuilder_ == null) { if (!other.roles_.isEmpty()) { if (roles_.isEmpty()) { roles_ = other.roles_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRolesIsMutable(); roles_.addAll(other.roles_); } onChanged(); } } else { if (!other.roles_.isEmpty()) { if (rolesBuilder_.isEmpty()) { rolesBuilder_.dispose(); rolesBuilder_ = null; roles_ = other.roles_; bitField0_ = (bitField0_ & ~0x00000001); rolesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRolesFieldBuilder() : null; } else { rolesBuilder_.addAllMessages(other.roles_); } } } 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.ConceptProto.Thing.Relations.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> roles_ = java.util.Collections.emptyList(); private void ensureRolesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { roles_ = new java.util.ArrayList<ai.grakn.rpc.proto.ConceptProto.Concept>(roles_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> rolesBuilder_; /** * <code>repeated .session.Concept roles = 1;</code> */ public java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> getRolesList() { if (rolesBuilder_ == null) { return java.util.Collections.unmodifiableList(roles_); } else { return rolesBuilder_.getMessageList(); } } /** * <code>repeated .session.Concept roles = 1;</code> */ public int getRolesCount() { if (rolesBuilder_ == null) { return roles_.size(); } else { return rolesBuilder_.getCount(); } } /** * <code>repeated .session.Concept roles = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRoles(int index) { if (rolesBuilder_ == null) { return roles_.get(index); } else { return rolesBuilder_.getMessage(index); } } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder setRoles( int index, ai.grakn.rpc.proto.ConceptProto.Concept value) { if (rolesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.set(index, value); onChanged(); } else { rolesBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder setRoles( int index, ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (rolesBuilder_ == null) { ensureRolesIsMutable(); roles_.set(index, builderForValue.build()); onChanged(); } else { rolesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder addRoles(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (rolesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.add(value); onChanged(); } else { rolesBuilder_.addMessage(value); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder addRoles( int index, ai.grakn.rpc.proto.ConceptProto.Concept value) { if (rolesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.add(index, value); onChanged(); } else { rolesBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder addRoles( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (rolesBuilder_ == null) { ensureRolesIsMutable(); roles_.add(builderForValue.build()); onChanged(); } else { rolesBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder addRoles( int index, ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (rolesBuilder_ == null) { ensureRolesIsMutable(); roles_.add(index, builderForValue.build()); onChanged(); } else { rolesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder addAllRoles( java.lang.Iterable<? extends ai.grakn.rpc.proto.ConceptProto.Concept> values) { if (rolesBuilder_ == null) { ensureRolesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, roles_); onChanged(); } else { rolesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder clearRoles() { if (rolesBuilder_ == null) { roles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { rolesBuilder_.clear(); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder removeRoles(int index) { if (rolesBuilder_ == null) { ensureRolesIsMutable(); roles_.remove(index); onChanged(); } else { rolesBuilder_.remove(index); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRolesBuilder( int index) { return getRolesFieldBuilder().getBuilder(index); } /** * <code>repeated .session.Concept roles = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRolesOrBuilder( int index) { if (rolesBuilder_ == null) { return roles_.get(index); } else { return rolesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .session.Concept roles = 1;</code> */ public java.util.List<? extends ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getRolesOrBuilderList() { if (rolesBuilder_ != null) { return rolesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(roles_); } } /** * <code>repeated .session.Concept roles = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder addRolesBuilder() { return getRolesFieldBuilder().addBuilder( ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance()); } /** * <code>repeated .session.Concept roles = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder addRolesBuilder( int index) { return getRolesFieldBuilder().addBuilder( index, ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance()); } /** * <code>repeated .session.Concept roles = 1;</code> */ public java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept.Builder> getRolesBuilderList() { return getRolesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getRolesFieldBuilder() { if (rolesBuilder_ == null) { rolesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( roles_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); roles_ = null; } return rolesBuilder_; } 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.Thing.Relations.Req) } // @@protoc_insertion_point(class_scope:session.Thing.Relations.Req) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Relations.Iter) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.Thing.Relations.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Relations.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.ConceptProto.internal_static_session_Thing_Relations_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relations_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.class, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Relations.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept relation = 1;</code> */ boolean hasRelation(); /** * <code>optional .session.Concept relation = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRelation(); /** * <code>optional .session.Concept relation = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRelationOrBuilder(); } /** * Protobuf type {@code session.Thing.Relations.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Relations.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 (relation_ != null) { subBuilder = relation_.toBuilder(); } relation_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(relation_); relation_ = 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.ConceptProto.internal_static_session_Thing_Relations_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relations_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.Builder.class); } public static final int RELATION_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept relation_; /** * <code>optional .session.Concept relation = 1;</code> */ public boolean hasRelation() { return relation_ != null; } /** * <code>optional .session.Concept relation = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRelation() { return relation_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : relation_; } /** * <code>optional .session.Concept relation = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRelationOrBuilder() { return getRelation(); } 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 (relation_ != null) { output.writeMessage(1, getRelation()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (relation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRelation()); } 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.ConceptProto.Thing.Relations.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res) obj; boolean result = true; result = result && (hasRelation() == other.hasRelation()); if (hasRelation()) { result = result && getRelation() .equals(other.getRelation()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasRelation()) { hash = (37 * hash) + RELATION_FIELD_NUMBER; hash = (53 * hash) + getRelation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.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.Thing.Relations.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Relations.Iter.Res) ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relations_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relations_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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 (relationBuilder_ == null) { relation_ = null; } else { relation_ = null; relationBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relations_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res(this); if (relationBuilder_ == null) { result.relation_ = relation_; } else { result.relation_ = relationBuilder_.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.ConceptProto.Thing.Relations.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res.getDefaultInstance()) return this; if (other.hasRelation()) { mergeRelation(other.getRelation()); } 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.ConceptProto.Thing.Relations.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.ConceptProto.Concept relation_ = 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> relationBuilder_; /** * <code>optional .session.Concept relation = 1;</code> */ public boolean hasRelation() { return relationBuilder_ != null || relation_ != null; } /** * <code>optional .session.Concept relation = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRelation() { if (relationBuilder_ == null) { return relation_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : relation_; } else { return relationBuilder_.getMessage(); } } /** * <code>optional .session.Concept relation = 1;</code> */ public Builder setRelation(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (relationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relation_ = value; onChanged(); } else { relationBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Concept relation = 1;</code> */ public Builder setRelation( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (relationBuilder_ == null) { relation_ = builderForValue.build(); onChanged(); } else { relationBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Concept relation = 1;</code> */ public Builder mergeRelation(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (relationBuilder_ == null) { if (relation_ != null) { relation_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(relation_).mergeFrom(value).buildPartial(); } else { relation_ = value; } onChanged(); } else { relationBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Concept relation = 1;</code> */ public Builder clearRelation() { if (relationBuilder_ == null) { relation_ = null; onChanged(); } else { relation_ = null; relationBuilder_ = null; } return this; } /** * <code>optional .session.Concept relation = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRelationBuilder() { onChanged(); return getRelationFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept relation = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRelationOrBuilder() { if (relationBuilder_ != null) { return relationBuilder_.getMessageOrBuilder(); } else { return relation_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : relation_; } } /** * <code>optional .session.Concept relation = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getRelationFieldBuilder() { if (relationBuilder_ == null) { relationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( getRelation(), getParentForChildren(), isClean()); relation_ = null; } return relationBuilder_; } 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.Thing.Relations.Iter.Res) } // @@protoc_insertion_point(class_scope:session.Thing.Relations.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ 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.ConceptProto.Thing.Relations.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter other = (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.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.Thing.Relations.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Relations.Iter) ai.grakn.rpc.proto.ConceptProto.Thing.Relations.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relations_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relations_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.class, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.internal_static_session_Thing_Relations_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter build() { ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter result = new ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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.Thing.Relations.Iter) } // @@protoc_insertion_point(class_scope:session.Thing.Relations.Iter) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Relations other = (ai.grakn.rpc.proto.ConceptProto.Thing.Relations) 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.ConceptProto.Thing.Relations parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations 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.ConceptProto.Thing.Relations parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations 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.ConceptProto.Thing.Relations parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations 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.ConceptProto.Thing.Relations parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations 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.ConceptProto.Thing.Relations 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.Thing.Relations} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Relations) ai.grakn.rpc.proto.ConceptProto.Thing.RelationsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relations_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relations_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Relations.class, ai.grakn.rpc.proto.ConceptProto.Thing.Relations.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.internal_static_session_Thing_Relations_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relations getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Relations.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Relations build() { ai.grakn.rpc.proto.ConceptProto.Thing.Relations result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relations buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Relations result = new ai.grakn.rpc.proto.ConceptProto.Thing.Relations(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.ConceptProto.Thing.Relations) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Relations)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Relations other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Relations.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.ConceptProto.Thing.Relations parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Relations) 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.Thing.Relations) } // @@protoc_insertion_point(class_scope:session.Thing.Relations) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Relations DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Relations(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relations getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Relations> PARSER = new com.google.protobuf.AbstractParser<Relations>() { public Relations parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Relations(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Relations> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Relations> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relations getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RolesOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Roles) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Thing.Roles} */ public static final class Roles extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Roles) RolesOrBuilder { // Use Roles.newBuilder() to construct. private Roles(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Roles() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Roles( 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.ConceptProto.internal_static_session_Thing_Roles_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Roles_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Roles.class, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Roles.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Thing.Roles.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Roles.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.ConceptProto.internal_static_session_Thing_Roles_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Roles_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.class, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req other = (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.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.Thing.Roles.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Roles.Req) ai.grakn.rpc.proto.ConceptProto.Thing.Roles.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Roles_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Roles_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.class, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.internal_static_session_Thing_Roles_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req build() { ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req result = new ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.Thing.Roles.Req) } // @@protoc_insertion_point(class_scope:session.Thing.Roles.Req) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Roles.Iter) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.Thing.Roles.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Roles.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.ConceptProto.internal_static_session_Thing_Roles_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Roles_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.class, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Roles.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept role = 1;</code> */ boolean hasRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRoleOrBuilder(); } /** * Protobuf type {@code session.Thing.Roles.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Roles.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 (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.ConceptProto.internal_static_session_Thing_Roles_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Roles_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res.Builder.class); } public static final int ROLE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept role_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRole() { return role_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : role_; } /** * <code>optional .session.Concept role = 1;</code> */ 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.ConceptProto.Thing.Roles.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.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.ConceptProto.Thing.Roles.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.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.Thing.Roles.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Roles.Iter.Res) ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Roles_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Roles_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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 (roleBuilder_ == null) { role_ = null; } else { role_ = null; roleBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Roles_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.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.ConceptProto.Thing.Roles.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.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.ConceptProto.Thing.Roles.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.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_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return roleBuilder_ != null || role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ 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(); } } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ public Builder clearRole() { if (roleBuilder_ == null) { role_ = null; onChanged(); } else { role_ = null; roleBuilder_ = null; } return this; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRoleBuilder() { onChanged(); return getRoleFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept role = 1;</code> */ 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_; } } /** * <code>optional .session.Concept role = 1;</code> */ 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.Thing.Roles.Iter.Res) } // @@protoc_insertion_point(class_scope:session.Thing.Roles.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ 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.ConceptProto.Thing.Roles.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter other = (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.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.Thing.Roles.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Roles.Iter) ai.grakn.rpc.proto.ConceptProto.Thing.Roles.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Roles_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Roles_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.class, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.internal_static_session_Thing_Roles_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter build() { ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter result = new ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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.Thing.Roles.Iter) } // @@protoc_insertion_point(class_scope:session.Thing.Roles.Iter) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Roles other = (ai.grakn.rpc.proto.ConceptProto.Thing.Roles) 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.ConceptProto.Thing.Roles parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles 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.ConceptProto.Thing.Roles parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles 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.ConceptProto.Thing.Roles parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles 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.ConceptProto.Thing.Roles parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles 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.ConceptProto.Thing.Roles 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.Thing.Roles} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Roles) ai.grakn.rpc.proto.ConceptProto.Thing.RolesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Roles_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Roles_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Roles.class, ai.grakn.rpc.proto.ConceptProto.Thing.Roles.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.internal_static_session_Thing_Roles_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Roles getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Roles.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Roles build() { ai.grakn.rpc.proto.ConceptProto.Thing.Roles result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Roles buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Roles result = new ai.grakn.rpc.proto.ConceptProto.Thing.Roles(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.ConceptProto.Thing.Roles) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Roles)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Roles other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Roles.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.ConceptProto.Thing.Roles parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Roles) 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.Thing.Roles) } // @@protoc_insertion_point(class_scope:session.Thing.Roles) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Roles DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Roles(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Roles getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Roles> PARSER = new com.google.protobuf.AbstractParser<Roles>() { public Roles parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Roles(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Roles> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Roles> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Roles getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RelhasOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Relhas) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Thing.Relhas} */ public static final class Relhas extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Relhas) RelhasOrBuilder { // Use Relhas.newBuilder() to construct. private Relhas(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Relhas() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Relhas( 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.ConceptProto.internal_static_session_Thing_Relhas_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relhas_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.class, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Relhas.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept attribute = 1;</code> */ boolean hasAttribute(); /** * <code>optional .session.Concept attribute = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getAttribute(); /** * <code>optional .session.Concept attribute = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeOrBuilder(); } /** * Protobuf type {@code session.Thing.Relhas.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Relhas.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.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.ConceptProto.internal_static_session_Thing_Relhas_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relhas_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.class, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.Builder.class); } public static final int ATTRIBUTE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept attribute_; /** * <code>optional .session.Concept attribute = 1;</code> */ public boolean hasAttribute() { return attribute_ != null; } /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttribute() { return attribute_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attribute_; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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.ConceptProto.Thing.Relhas.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req other = (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req) 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.ConceptProto.Thing.Relhas.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.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.ConceptProto.Thing.Relhas.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.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.ConceptProto.Thing.Relhas.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.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.ConceptProto.Thing.Relhas.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.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.ConceptProto.Thing.Relhas.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.ConceptProto.Thing.Relhas.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.ConceptProto.Thing.Relhas.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.Thing.Relhas.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Relhas.Req) ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relhas_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relhas_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.class, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.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 (attributeBuilder_ == null) { attribute_ = null; } else { attribute_ = null; attributeBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relhas_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req build() { ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req result = new ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req(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.ConceptProto.Thing.Relhas.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req.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.ConceptProto.Thing.Relhas.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req) 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_; /** * <code>optional .session.Concept attribute = 1;</code> */ public boolean hasAttribute() { return attributeBuilder_ != null || attribute_ != null; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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(); } } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ public Builder clearAttribute() { if (attributeBuilder_ == null) { attribute_ = null; onChanged(); } else { attribute_ = null; attributeBuilder_ = null; } return this; } /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeBuilder() { onChanged(); return getAttributeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept attribute = 1;</code> */ 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_; } } /** * <code>optional .session.Concept attribute = 1;</code> */ 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.Thing.Relhas.Req) } // @@protoc_insertion_point(class_scope:session.Thing.Relhas.Req) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Relhas.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept relation = 1;</code> */ boolean hasRelation(); /** * <code>optional .session.Concept relation = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRelation(); /** * <code>optional .session.Concept relation = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRelationOrBuilder(); } /** * Protobuf type {@code session.Thing.Relhas.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Relhas.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 (relation_ != null) { subBuilder = relation_.toBuilder(); } relation_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(relation_); relation_ = 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.ConceptProto.internal_static_session_Thing_Relhas_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relhas_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.class, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.Builder.class); } public static final int RELATION_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept relation_; /** * <code>optional .session.Concept relation = 1;</code> */ public boolean hasRelation() { return relation_ != null; } /** * <code>optional .session.Concept relation = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRelation() { return relation_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : relation_; } /** * <code>optional .session.Concept relation = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRelationOrBuilder() { return getRelation(); } 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 (relation_ != null) { output.writeMessage(1, getRelation()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (relation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRelation()); } 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.ConceptProto.Thing.Relhas.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res other = (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res) obj; boolean result = true; result = result && (hasRelation() == other.hasRelation()); if (hasRelation()) { result = result && getRelation() .equals(other.getRelation()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasRelation()) { hash = (37 * hash) + RELATION_FIELD_NUMBER; hash = (53 * hash) + getRelation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.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.ConceptProto.Thing.Relhas.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.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.ConceptProto.Thing.Relhas.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.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.ConceptProto.Thing.Relhas.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.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.ConceptProto.Thing.Relhas.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.ConceptProto.Thing.Relhas.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.ConceptProto.Thing.Relhas.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.Thing.Relhas.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Relhas.Res) ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relhas_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relhas_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.class, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.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 (relationBuilder_ == null) { relation_ = null; } else { relation_ = null; relationBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relhas_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res build() { ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res result = new ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res(this); if (relationBuilder_ == null) { result.relation_ = relation_; } else { result.relation_ = relationBuilder_.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.ConceptProto.Thing.Relhas.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res.getDefaultInstance()) return this; if (other.hasRelation()) { mergeRelation(other.getRelation()); } 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.ConceptProto.Thing.Relhas.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.ConceptProto.Concept relation_ = 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> relationBuilder_; /** * <code>optional .session.Concept relation = 1;</code> */ public boolean hasRelation() { return relationBuilder_ != null || relation_ != null; } /** * <code>optional .session.Concept relation = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRelation() { if (relationBuilder_ == null) { return relation_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : relation_; } else { return relationBuilder_.getMessage(); } } /** * <code>optional .session.Concept relation = 1;</code> */ public Builder setRelation(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (relationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relation_ = value; onChanged(); } else { relationBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Concept relation = 1;</code> */ public Builder setRelation( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (relationBuilder_ == null) { relation_ = builderForValue.build(); onChanged(); } else { relationBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Concept relation = 1;</code> */ public Builder mergeRelation(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (relationBuilder_ == null) { if (relation_ != null) { relation_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(relation_).mergeFrom(value).buildPartial(); } else { relation_ = value; } onChanged(); } else { relationBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Concept relation = 1;</code> */ public Builder clearRelation() { if (relationBuilder_ == null) { relation_ = null; onChanged(); } else { relation_ = null; relationBuilder_ = null; } return this; } /** * <code>optional .session.Concept relation = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRelationBuilder() { onChanged(); return getRelationFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept relation = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRelationOrBuilder() { if (relationBuilder_ != null) { return relationBuilder_.getMessageOrBuilder(); } else { return relation_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : relation_; } } /** * <code>optional .session.Concept relation = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getRelationFieldBuilder() { if (relationBuilder_ == null) { relationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( getRelation(), getParentForChildren(), isClean()); relation_ = null; } return relationBuilder_; } 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.Thing.Relhas.Res) } // @@protoc_insertion_point(class_scope:session.Thing.Relhas.Res) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.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.ConceptProto.Thing.Relhas)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Relhas other = (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas) 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.ConceptProto.Thing.Relhas parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas 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.ConceptProto.Thing.Relhas parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas 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.ConceptProto.Thing.Relhas parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas 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.ConceptProto.Thing.Relhas parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas 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.ConceptProto.Thing.Relhas 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.Thing.Relhas} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Relhas) ai.grakn.rpc.proto.ConceptProto.Thing.RelhasOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relhas_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Relhas_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.class, ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.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.ConceptProto.internal_static_session_Thing_Relhas_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas build() { ai.grakn.rpc.proto.ConceptProto.Thing.Relhas result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Relhas result = new ai.grakn.rpc.proto.ConceptProto.Thing.Relhas(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.ConceptProto.Thing.Relhas) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Relhas)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Relhas other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Relhas.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.ConceptProto.Thing.Relhas parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Relhas) 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.Thing.Relhas) } // @@protoc_insertion_point(class_scope:session.Thing.Relhas) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Relhas DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Relhas(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Relhas getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Relhas> PARSER = new com.google.protobuf.AbstractParser<Relhas>() { public Relhas parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Relhas(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Relhas> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Relhas> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Relhas getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnhasOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Unhas) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Thing.Unhas} */ public static final class Unhas extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Unhas) UnhasOrBuilder { // Use Unhas.newBuilder() to construct. private Unhas(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Unhas() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Unhas( 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.ConceptProto.internal_static_session_Thing_Unhas_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Unhas_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.class, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Unhas.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept attribute = 1;</code> */ boolean hasAttribute(); /** * <code>optional .session.Concept attribute = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getAttribute(); /** * <code>optional .session.Concept attribute = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeOrBuilder(); } /** * Protobuf type {@code session.Thing.Unhas.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Unhas.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.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.ConceptProto.internal_static_session_Thing_Unhas_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Unhas_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.class, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.Builder.class); } public static final int ATTRIBUTE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept attribute_; /** * <code>optional .session.Concept attribute = 1;</code> */ public boolean hasAttribute() { return attribute_ != null; } /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttribute() { return attribute_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attribute_; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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.ConceptProto.Thing.Unhas.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req other = (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req) 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.ConceptProto.Thing.Unhas.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas.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.Thing.Unhas.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Unhas.Req) ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Unhas_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Unhas_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.class, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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 (attributeBuilder_ == null) { attribute_ = null; } else { attribute_ = null; attributeBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Unhas_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req build() { ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req result = new ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req(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.ConceptProto.Thing.Unhas.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req.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.ConceptProto.Thing.Unhas.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req) 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_; /** * <code>optional .session.Concept attribute = 1;</code> */ public boolean hasAttribute() { return attributeBuilder_ != null || attribute_ != null; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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(); } } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ public Builder clearAttribute() { if (attributeBuilder_ == null) { attribute_ = null; onChanged(); } else { attribute_ = null; attributeBuilder_ = null; } return this; } /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeBuilder() { onChanged(); return getAttributeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept attribute = 1;</code> */ 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_; } } /** * <code>optional .session.Concept attribute = 1;</code> */ 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.Thing.Unhas.Req) } // @@protoc_insertion_point(class_scope:session.Thing.Unhas.Req) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Thing.Unhas.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Thing.Unhas.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Thing.Unhas.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.ConceptProto.internal_static_session_Thing_Unhas_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Unhas_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.class, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res other = (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas.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.Thing.Unhas.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Unhas.Res) ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Unhas_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Unhas_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.class, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.ConceptProto.internal_static_session_Thing_Unhas_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res build() { ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res result = new ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.Thing.Unhas.Res) } // @@protoc_insertion_point(class_scope:session.Thing.Unhas.Res) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing.Unhas other = (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas) 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.ConceptProto.Thing.Unhas parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas 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.ConceptProto.Thing.Unhas parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas 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.ConceptProto.Thing.Unhas parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas 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.ConceptProto.Thing.Unhas parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas 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.ConceptProto.Thing.Unhas 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.Thing.Unhas} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing.Unhas) ai.grakn.rpc.proto.ConceptProto.Thing.UnhasOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Unhas_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_Unhas_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.class, ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.ConceptProto.internal_static_session_Thing_Unhas_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas build() { ai.grakn.rpc.proto.ConceptProto.Thing.Unhas result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing.Unhas result = new ai.grakn.rpc.proto.ConceptProto.Thing.Unhas(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.ConceptProto.Thing.Unhas) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing.Unhas)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing.Unhas other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.Unhas.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.ConceptProto.Thing.Unhas parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing.Unhas) 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.Thing.Unhas) } // @@protoc_insertion_point(class_scope:session.Thing.Unhas) private static final ai.grakn.rpc.proto.ConceptProto.Thing.Unhas DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing.Unhas(); } public static ai.grakn.rpc.proto.ConceptProto.Thing.Unhas getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Unhas> PARSER = new com.google.protobuf.AbstractParser<Unhas>() { public Unhas parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Unhas(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Unhas> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Unhas> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing.Unhas 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.ConceptProto.Thing)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Thing other = (ai.grakn.rpc.proto.ConceptProto.Thing) 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.ConceptProto.Thing parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing 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.ConceptProto.Thing parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Thing parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Thing parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing 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.ConceptProto.Thing parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing 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.ConceptProto.Thing parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Thing 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.ConceptProto.Thing 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.Thing} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Thing) ai.grakn.rpc.proto.ConceptProto.ThingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Thing_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Thing.class, ai.grakn.rpc.proto.ConceptProto.Thing.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Thing.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.ConceptProto.internal_static_session_Thing_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Thing getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Thing.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Thing build() { ai.grakn.rpc.proto.ConceptProto.Thing result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Thing buildPartial() { ai.grakn.rpc.proto.ConceptProto.Thing result = new ai.grakn.rpc.proto.ConceptProto.Thing(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.ConceptProto.Thing) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Thing)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Thing other) { if (other == ai.grakn.rpc.proto.ConceptProto.Thing.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.ConceptProto.Thing parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Thing) 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.Thing) } // @@protoc_insertion_point(class_scope:session.Thing) private static final ai.grakn.rpc.proto.ConceptProto.Thing DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Thing(); } public static ai.grakn.rpc.proto.ConceptProto.Thing getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Thing> PARSER = new com.google.protobuf.AbstractParser<Thing>() { public Thing parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Thing(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Thing> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Thing> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Thing getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RelationOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Relation) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Relation} */ public static final class Relation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Relation) RelationOrBuilder { // Use Relation.newBuilder() to construct. private Relation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Relation() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Relation( 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.ConceptProto.internal_static_session_Relation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.class, ai.grakn.rpc.proto.ConceptProto.Relation.Builder.class); } public interface RolePlayersMapOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Relation.RolePlayersMap) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Relation.RolePlayersMap} */ public static final class RolePlayersMap extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Relation.RolePlayersMap) RolePlayersMapOrBuilder { // Use RolePlayersMap.newBuilder() to construct. private RolePlayersMap(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private RolePlayersMap() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private RolePlayersMap( 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.ConceptProto.internal_static_session_Relation_RolePlayersMap_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayersMap_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.class, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Relation.RolePlayersMap.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Relation.RolePlayersMap.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Relation.RolePlayersMap.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.ConceptProto.internal_static_session_Relation_RolePlayersMap_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayersMap_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.class, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req other = (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.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.Relation.RolePlayersMap.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Relation.RolePlayersMap.Req) ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayersMap_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayersMap_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.class, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.internal_static_session_Relation_RolePlayersMap_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req build() { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req result = new ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.Relation.RolePlayersMap.Req) } // @@protoc_insertion_point(class_scope:session.Relation.RolePlayersMap.Req) private static final ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Relation.RolePlayersMap.Iter) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.Relation.RolePlayersMap.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Relation.RolePlayersMap.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.ConceptProto.internal_static_session_Relation_RolePlayersMap_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayersMap_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.class, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Relation.RolePlayersMap.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept role = 1;</code> */ boolean hasRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRoleOrBuilder(); /** * <code>optional .session.Concept player = 2;</code> */ boolean hasPlayer(); /** * <code>optional .session.Concept player = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getPlayer(); /** * <code>optional .session.Concept player = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getPlayerOrBuilder(); } /** * Protobuf type {@code session.Relation.RolePlayersMap.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Relation.RolePlayersMap.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 (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; } case 18: { ai.grakn.rpc.proto.ConceptProto.Concept.Builder subBuilder = null; if (player_ != null) { subBuilder = player_.toBuilder(); } player_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(player_); player_ = 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.ConceptProto.internal_static_session_Relation_RolePlayersMap_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayersMap_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.Builder.class); } public static final int ROLE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept role_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRole() { return role_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : role_; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRoleOrBuilder() { return getRole(); } public static final int PLAYER_FIELD_NUMBER = 2; private ai.grakn.rpc.proto.ConceptProto.Concept player_; /** * <code>optional .session.Concept player = 2;</code> */ public boolean hasPlayer() { return player_ != null; } /** * <code>optional .session.Concept player = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getPlayer() { return player_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : player_; } /** * <code>optional .session.Concept player = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getPlayerOrBuilder() { return getPlayer(); } 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()); } if (player_ != null) { output.writeMessage(2, getPlayer()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (role_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRole()); } if (player_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPlayer()); } 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.ConceptProto.Relation.RolePlayersMap.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res) obj; boolean result = true; result = result && (hasRole() == other.hasRole()); if (hasRole()) { result = result && getRole() .equals(other.getRole()); } result = result && (hasPlayer() == other.hasPlayer()); if (hasPlayer()) { result = result && getPlayer() .equals(other.getPlayer()); } 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(); } if (hasPlayer()) { hash = (37 * hash) + PLAYER_FIELD_NUMBER; hash = (53 * hash) + getPlayer().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.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.Relation.RolePlayersMap.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Relation.RolePlayersMap.Iter.Res) ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayersMap_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayersMap_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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 (roleBuilder_ == null) { role_ = null; } else { role_ = null; roleBuilder_ = null; } if (playerBuilder_ == null) { player_ = null; } else { player_ = null; playerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayersMap_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res(this); if (roleBuilder_ == null) { result.role_ = role_; } else { result.role_ = roleBuilder_.build(); } if (playerBuilder_ == null) { result.player_ = player_; } else { result.player_ = playerBuilder_.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.ConceptProto.Relation.RolePlayersMap.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res.getDefaultInstance()) return this; if (other.hasRole()) { mergeRole(other.getRole()); } if (other.hasPlayer()) { mergePlayer(other.getPlayer()); } 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.ConceptProto.Relation.RolePlayersMap.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.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_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return roleBuilder_ != null || role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ 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(); } } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ public Builder clearRole() { if (roleBuilder_ == null) { role_ = null; onChanged(); } else { role_ = null; roleBuilder_ = null; } return this; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRoleBuilder() { onChanged(); return getRoleFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept role = 1;</code> */ 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_; } } /** * <code>optional .session.Concept role = 1;</code> */ 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_; } private ai.grakn.rpc.proto.ConceptProto.Concept player_ = 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> playerBuilder_; /** * <code>optional .session.Concept player = 2;</code> */ public boolean hasPlayer() { return playerBuilder_ != null || player_ != null; } /** * <code>optional .session.Concept player = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getPlayer() { if (playerBuilder_ == null) { return player_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : player_; } else { return playerBuilder_.getMessage(); } } /** * <code>optional .session.Concept player = 2;</code> */ public Builder setPlayer(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (playerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } player_ = value; onChanged(); } else { playerBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Concept player = 2;</code> */ public Builder setPlayer( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (playerBuilder_ == null) { player_ = builderForValue.build(); onChanged(); } else { playerBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Concept player = 2;</code> */ public Builder mergePlayer(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (playerBuilder_ == null) { if (player_ != null) { player_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(player_).mergeFrom(value).buildPartial(); } else { player_ = value; } onChanged(); } else { playerBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Concept player = 2;</code> */ public Builder clearPlayer() { if (playerBuilder_ == null) { player_ = null; onChanged(); } else { player_ = null; playerBuilder_ = null; } return this; } /** * <code>optional .session.Concept player = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getPlayerBuilder() { onChanged(); return getPlayerFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept player = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getPlayerOrBuilder() { if (playerBuilder_ != null) { return playerBuilder_.getMessageOrBuilder(); } else { return player_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : player_; } } /** * <code>optional .session.Concept player = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getPlayerFieldBuilder() { if (playerBuilder_ == null) { playerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( getPlayer(), getParentForChildren(), isClean()); player_ = null; } return playerBuilder_; } 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.Relation.RolePlayersMap.Iter.Res) } // @@protoc_insertion_point(class_scope:session.Relation.RolePlayersMap.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ 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.ConceptProto.Relation.RolePlayersMap.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter other = (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.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.Relation.RolePlayersMap.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Relation.RolePlayersMap.Iter) ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayersMap_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayersMap_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.class, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.internal_static_session_Relation_RolePlayersMap_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter build() { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter result = new ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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.Relation.RolePlayersMap.Iter) } // @@protoc_insertion_point(class_scope:session.Relation.RolePlayersMap.Iter) private static final ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap other = (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap) 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.ConceptProto.Relation.RolePlayersMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap 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.ConceptProto.Relation.RolePlayersMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap 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.ConceptProto.Relation.RolePlayersMap parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap 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.ConceptProto.Relation.RolePlayersMap parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap 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.ConceptProto.Relation.RolePlayersMap 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.Relation.RolePlayersMap} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Relation.RolePlayersMap) ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayersMap_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayersMap_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.class, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.internal_static_session_Relation_RolePlayersMap_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap build() { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap buildPartial() { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap result = new ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap(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.ConceptProto.Relation.RolePlayersMap) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap other) { if (other == ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap.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.ConceptProto.Relation.RolePlayersMap parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap) 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.Relation.RolePlayersMap) } // @@protoc_insertion_point(class_scope:session.Relation.RolePlayersMap) private static final ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap(); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<RolePlayersMap> PARSER = new com.google.protobuf.AbstractParser<RolePlayersMap>() { public RolePlayersMap parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RolePlayersMap(input, extensionRegistry); } }; public static com.google.protobuf.Parser<RolePlayersMap> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<RolePlayersMap> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersMap getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RolePlayersOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Relation.RolePlayers) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Relation.RolePlayers} */ public static final class RolePlayers extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Relation.RolePlayers) RolePlayersOrBuilder { // Use RolePlayers.newBuilder() to construct. private RolePlayers(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private RolePlayers() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private RolePlayers( 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.ConceptProto.internal_static_session_Relation_RolePlayers_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayers_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.class, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Relation.RolePlayers.Req) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .session.Concept roles = 1;</code> */ java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> getRolesList(); /** * <code>repeated .session.Concept roles = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRoles(int index); /** * <code>repeated .session.Concept roles = 1;</code> */ int getRolesCount(); /** * <code>repeated .session.Concept roles = 1;</code> */ java.util.List<? extends ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getRolesOrBuilderList(); /** * <code>repeated .session.Concept roles = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRolesOrBuilder( int index); } /** * Protobuf type {@code session.Relation.RolePlayers.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Relation.RolePlayers.Req) ReqOrBuilder { // Use Req.newBuilder() to construct. private Req(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Req() { roles_ = java.util.Collections.emptyList(); } @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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { roles_ = new java.util.ArrayList<ai.grakn.rpc.proto.ConceptProto.Concept>(); mutable_bitField0_ |= 0x00000001; } roles_.add( input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { roles_ = java.util.Collections.unmodifiableList(roles_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayers_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayers_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.class, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.Builder.class); } public static final int ROLES_FIELD_NUMBER = 1; private java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> roles_; /** * <code>repeated .session.Concept roles = 1;</code> */ public java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> getRolesList() { return roles_; } /** * <code>repeated .session.Concept roles = 1;</code> */ public java.util.List<? extends ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getRolesOrBuilderList() { return roles_; } /** * <code>repeated .session.Concept roles = 1;</code> */ public int getRolesCount() { return roles_.size(); } /** * <code>repeated .session.Concept roles = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRoles(int index) { return roles_.get(index); } /** * <code>repeated .session.Concept roles = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRolesOrBuilder( int index) { return roles_.get(index); } 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 { for (int i = 0; i < roles_.size(); i++) { output.writeMessage(1, roles_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < roles_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, roles_.get(i)); } 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.ConceptProto.Relation.RolePlayers.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req other = (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req) obj; boolean result = true; result = result && getRolesList() .equals(other.getRolesList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getRolesCount() > 0) { hash = (37 * hash) + ROLES_FIELD_NUMBER; hash = (53 * hash) + getRolesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.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.Relation.RolePlayers.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Relation.RolePlayers.Req) ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayers_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayers_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.class, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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) { getRolesFieldBuilder(); } } public Builder clear() { super.clear(); if (rolesBuilder_ == null) { roles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { rolesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayers_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req build() { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req result = new ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req(this); int from_bitField0_ = bitField0_; if (rolesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { roles_ = java.util.Collections.unmodifiableList(roles_); bitField0_ = (bitField0_ & ~0x00000001); } result.roles_ = roles_; } else { result.roles_ = rolesBuilder_.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.ConceptProto.Relation.RolePlayers.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req.getDefaultInstance()) return this; if (rolesBuilder_ == null) { if (!other.roles_.isEmpty()) { if (roles_.isEmpty()) { roles_ = other.roles_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRolesIsMutable(); roles_.addAll(other.roles_); } onChanged(); } } else { if (!other.roles_.isEmpty()) { if (rolesBuilder_.isEmpty()) { rolesBuilder_.dispose(); rolesBuilder_ = null; roles_ = other.roles_; bitField0_ = (bitField0_ & ~0x00000001); rolesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRolesFieldBuilder() : null; } else { rolesBuilder_.addAllMessages(other.roles_); } } } 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.ConceptProto.Relation.RolePlayers.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> roles_ = java.util.Collections.emptyList(); private void ensureRolesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { roles_ = new java.util.ArrayList<ai.grakn.rpc.proto.ConceptProto.Concept>(roles_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> rolesBuilder_; /** * <code>repeated .session.Concept roles = 1;</code> */ public java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept> getRolesList() { if (rolesBuilder_ == null) { return java.util.Collections.unmodifiableList(roles_); } else { return rolesBuilder_.getMessageList(); } } /** * <code>repeated .session.Concept roles = 1;</code> */ public int getRolesCount() { if (rolesBuilder_ == null) { return roles_.size(); } else { return rolesBuilder_.getCount(); } } /** * <code>repeated .session.Concept roles = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRoles(int index) { if (rolesBuilder_ == null) { return roles_.get(index); } else { return rolesBuilder_.getMessage(index); } } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder setRoles( int index, ai.grakn.rpc.proto.ConceptProto.Concept value) { if (rolesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.set(index, value); onChanged(); } else { rolesBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder setRoles( int index, ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (rolesBuilder_ == null) { ensureRolesIsMutable(); roles_.set(index, builderForValue.build()); onChanged(); } else { rolesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder addRoles(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (rolesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.add(value); onChanged(); } else { rolesBuilder_.addMessage(value); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder addRoles( int index, ai.grakn.rpc.proto.ConceptProto.Concept value) { if (rolesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.add(index, value); onChanged(); } else { rolesBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder addRoles( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (rolesBuilder_ == null) { ensureRolesIsMutable(); roles_.add(builderForValue.build()); onChanged(); } else { rolesBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder addRoles( int index, ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (rolesBuilder_ == null) { ensureRolesIsMutable(); roles_.add(index, builderForValue.build()); onChanged(); } else { rolesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder addAllRoles( java.lang.Iterable<? extends ai.grakn.rpc.proto.ConceptProto.Concept> values) { if (rolesBuilder_ == null) { ensureRolesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, roles_); onChanged(); } else { rolesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder clearRoles() { if (rolesBuilder_ == null) { roles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { rolesBuilder_.clear(); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public Builder removeRoles(int index) { if (rolesBuilder_ == null) { ensureRolesIsMutable(); roles_.remove(index); onChanged(); } else { rolesBuilder_.remove(index); } return this; } /** * <code>repeated .session.Concept roles = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRolesBuilder( int index) { return getRolesFieldBuilder().getBuilder(index); } /** * <code>repeated .session.Concept roles = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRolesOrBuilder( int index) { if (rolesBuilder_ == null) { return roles_.get(index); } else { return rolesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .session.Concept roles = 1;</code> */ public java.util.List<? extends ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getRolesOrBuilderList() { if (rolesBuilder_ != null) { return rolesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(roles_); } } /** * <code>repeated .session.Concept roles = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder addRolesBuilder() { return getRolesFieldBuilder().addBuilder( ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance()); } /** * <code>repeated .session.Concept roles = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder addRolesBuilder( int index) { return getRolesFieldBuilder().addBuilder( index, ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance()); } /** * <code>repeated .session.Concept roles = 1;</code> */ public java.util.List<ai.grakn.rpc.proto.ConceptProto.Concept.Builder> getRolesBuilderList() { return getRolesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getRolesFieldBuilder() { if (rolesBuilder_ == null) { rolesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( roles_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); roles_ = null; } return rolesBuilder_; } 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.Relation.RolePlayers.Req) } // @@protoc_insertion_point(class_scope:session.Relation.RolePlayers.Req) private static final ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Relation.RolePlayers.Iter) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.Relation.RolePlayers.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Relation.RolePlayers.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.ConceptProto.internal_static_session_Relation_RolePlayers_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayers_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.class, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Relation.RolePlayers.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept thing = 1;</code> */ boolean hasThing(); /** * <code>optional .session.Concept thing = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getThing(); /** * <code>optional .session.Concept thing = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getThingOrBuilder(); } /** * Protobuf type {@code session.Relation.RolePlayers.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Relation.RolePlayers.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 (thing_ != null) { subBuilder = thing_.toBuilder(); } thing_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(thing_); thing_ = 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.ConceptProto.internal_static_session_Relation_RolePlayers_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayers_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.Builder.class); } public static final int THING_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept thing_; /** * <code>optional .session.Concept thing = 1;</code> */ public boolean hasThing() { return thing_ != null; } /** * <code>optional .session.Concept thing = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getThing() { return thing_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : thing_; } /** * <code>optional .session.Concept thing = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getThingOrBuilder() { return getThing(); } 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 (thing_ != null) { output.writeMessage(1, getThing()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (thing_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getThing()); } 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.ConceptProto.Relation.RolePlayers.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res) obj; boolean result = true; result = result && (hasThing() == other.hasThing()); if (hasThing()) { result = result && getThing() .equals(other.getThing()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasThing()) { hash = (37 * hash) + THING_FIELD_NUMBER; hash = (53 * hash) + getThing().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.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.Relation.RolePlayers.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Relation.RolePlayers.Iter.Res) ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayers_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayers_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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 (thingBuilder_ == null) { thing_ = null; } else { thing_ = null; thingBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayers_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res(this); if (thingBuilder_ == null) { result.thing_ = thing_; } else { result.thing_ = thingBuilder_.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.ConceptProto.Relation.RolePlayers.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res.getDefaultInstance()) return this; if (other.hasThing()) { mergeThing(other.getThing()); } 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.ConceptProto.Relation.RolePlayers.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.ConceptProto.Concept thing_ = 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> thingBuilder_; /** * <code>optional .session.Concept thing = 1;</code> */ public boolean hasThing() { return thingBuilder_ != null || thing_ != null; } /** * <code>optional .session.Concept thing = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getThing() { if (thingBuilder_ == null) { return thing_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : thing_; } else { return thingBuilder_.getMessage(); } } /** * <code>optional .session.Concept thing = 1;</code> */ public Builder setThing(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (thingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } thing_ = value; onChanged(); } else { thingBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Concept thing = 1;</code> */ public Builder setThing( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (thingBuilder_ == null) { thing_ = builderForValue.build(); onChanged(); } else { thingBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Concept thing = 1;</code> */ public Builder mergeThing(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (thingBuilder_ == null) { if (thing_ != null) { thing_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(thing_).mergeFrom(value).buildPartial(); } else { thing_ = value; } onChanged(); } else { thingBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Concept thing = 1;</code> */ public Builder clearThing() { if (thingBuilder_ == null) { thing_ = null; onChanged(); } else { thing_ = null; thingBuilder_ = null; } return this; } /** * <code>optional .session.Concept thing = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getThingBuilder() { onChanged(); return getThingFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept thing = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getThingOrBuilder() { if (thingBuilder_ != null) { return thingBuilder_.getMessageOrBuilder(); } else { return thing_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : thing_; } } /** * <code>optional .session.Concept thing = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getThingFieldBuilder() { if (thingBuilder_ == null) { thingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( getThing(), getParentForChildren(), isClean()); thing_ = null; } return thingBuilder_; } 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.Relation.RolePlayers.Iter.Res) } // @@protoc_insertion_point(class_scope:session.Relation.RolePlayers.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ 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.ConceptProto.Relation.RolePlayers.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter other = (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.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.Relation.RolePlayers.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Relation.RolePlayers.Iter) ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayers_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayers_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.class, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.internal_static_session_Relation_RolePlayers_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter build() { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter result = new ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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.Relation.RolePlayers.Iter) } // @@protoc_insertion_point(class_scope:session.Relation.RolePlayers.Iter) private static final ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers other = (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers) 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.ConceptProto.Relation.RolePlayers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers 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.ConceptProto.Relation.RolePlayers parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers 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.ConceptProto.Relation.RolePlayers parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers 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.ConceptProto.Relation.RolePlayers parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers 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.ConceptProto.Relation.RolePlayers 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.Relation.RolePlayers} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Relation.RolePlayers) ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayers_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_RolePlayers_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.class, ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.internal_static_session_Relation_RolePlayers_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers build() { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers buildPartial() { ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers result = new ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers(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.ConceptProto.Relation.RolePlayers) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers other) { if (other == ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers.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.ConceptProto.Relation.RolePlayers parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers) 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.Relation.RolePlayers) } // @@protoc_insertion_point(class_scope:session.Relation.RolePlayers) private static final ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers(); } public static ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<RolePlayers> PARSER = new com.google.protobuf.AbstractParser<RolePlayers>() { public RolePlayers parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RolePlayers(input, extensionRegistry); } }; public static com.google.protobuf.Parser<RolePlayers> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<RolePlayers> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Relation.RolePlayers getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AssignOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Relation.Assign) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Relation.Assign} */ public static final class Assign extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Relation.Assign) AssignOrBuilder { // Use Assign.newBuilder() to construct. private Assign(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Assign() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Assign( 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.ConceptProto.internal_static_session_Relation_Assign_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Assign_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.Assign.class, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Relation.Assign.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept role = 1;</code> */ boolean hasRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRoleOrBuilder(); /** * <code>optional .session.Concept player = 2;</code> */ boolean hasPlayer(); /** * <code>optional .session.Concept player = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getPlayer(); /** * <code>optional .session.Concept player = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getPlayerOrBuilder(); } /** * Protobuf type {@code session.Relation.Assign.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Relation.Assign.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.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; } case 18: { ai.grakn.rpc.proto.ConceptProto.Concept.Builder subBuilder = null; if (player_ != null) { subBuilder = player_.toBuilder(); } player_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(player_); player_ = 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.ConceptProto.internal_static_session_Relation_Assign_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Assign_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.class, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.Builder.class); } public static final int ROLE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept role_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRole() { return role_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : role_; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRoleOrBuilder() { return getRole(); } public static final int PLAYER_FIELD_NUMBER = 2; private ai.grakn.rpc.proto.ConceptProto.Concept player_; /** * <code>optional .session.Concept player = 2;</code> */ public boolean hasPlayer() { return player_ != null; } /** * <code>optional .session.Concept player = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getPlayer() { return player_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : player_; } /** * <code>optional .session.Concept player = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getPlayerOrBuilder() { return getPlayer(); } 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()); } if (player_ != null) { output.writeMessage(2, getPlayer()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (role_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRole()); } if (player_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPlayer()); } 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.ConceptProto.Relation.Assign.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req other = (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req) obj; boolean result = true; result = result && (hasRole() == other.hasRole()); if (hasRole()) { result = result && getRole() .equals(other.getRole()); } result = result && (hasPlayer() == other.hasPlayer()); if (hasPlayer()) { result = result && getPlayer() .equals(other.getPlayer()); } 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(); } if (hasPlayer()) { hash = (37 * hash) + PLAYER_FIELD_NUMBER; hash = (53 * hash) + getPlayer().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign.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.Relation.Assign.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Relation.Assign.Req) ai.grakn.rpc.proto.ConceptProto.Relation.Assign.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Assign_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Assign_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.class, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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 (roleBuilder_ == null) { role_ = null; } else { role_ = null; roleBuilder_ = null; } if (playerBuilder_ == null) { player_ = null; } else { player_ = null; playerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Assign_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req build() { ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req result = new ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req(this); if (roleBuilder_ == null) { result.role_ = role_; } else { result.role_ = roleBuilder_.build(); } if (playerBuilder_ == null) { result.player_ = player_; } else { result.player_ = playerBuilder_.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.ConceptProto.Relation.Assign.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req.getDefaultInstance()) return this; if (other.hasRole()) { mergeRole(other.getRole()); } if (other.hasPlayer()) { mergePlayer(other.getPlayer()); } 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.ConceptProto.Relation.Assign.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req) 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_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return roleBuilder_ != null || role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ 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(); } } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ public Builder clearRole() { if (roleBuilder_ == null) { role_ = null; onChanged(); } else { role_ = null; roleBuilder_ = null; } return this; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRoleBuilder() { onChanged(); return getRoleFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept role = 1;</code> */ 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_; } } /** * <code>optional .session.Concept role = 1;</code> */ 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_; } private ai.grakn.rpc.proto.ConceptProto.Concept player_ = 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> playerBuilder_; /** * <code>optional .session.Concept player = 2;</code> */ public boolean hasPlayer() { return playerBuilder_ != null || player_ != null; } /** * <code>optional .session.Concept player = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getPlayer() { if (playerBuilder_ == null) { return player_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : player_; } else { return playerBuilder_.getMessage(); } } /** * <code>optional .session.Concept player = 2;</code> */ public Builder setPlayer(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (playerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } player_ = value; onChanged(); } else { playerBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Concept player = 2;</code> */ public Builder setPlayer( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (playerBuilder_ == null) { player_ = builderForValue.build(); onChanged(); } else { playerBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Concept player = 2;</code> */ public Builder mergePlayer(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (playerBuilder_ == null) { if (player_ != null) { player_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(player_).mergeFrom(value).buildPartial(); } else { player_ = value; } onChanged(); } else { playerBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Concept player = 2;</code> */ public Builder clearPlayer() { if (playerBuilder_ == null) { player_ = null; onChanged(); } else { player_ = null; playerBuilder_ = null; } return this; } /** * <code>optional .session.Concept player = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getPlayerBuilder() { onChanged(); return getPlayerFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept player = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getPlayerOrBuilder() { if (playerBuilder_ != null) { return playerBuilder_.getMessageOrBuilder(); } else { return player_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : player_; } } /** * <code>optional .session.Concept player = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getPlayerFieldBuilder() { if (playerBuilder_ == null) { playerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( getPlayer(), getParentForChildren(), isClean()); player_ = null; } return playerBuilder_; } 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.Relation.Assign.Req) } // @@protoc_insertion_point(class_scope:session.Relation.Assign.Req) private static final ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Relation.Assign.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Relation.Assign.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Relation.Assign.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.ConceptProto.internal_static_session_Relation_Assign_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Assign_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.class, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res other = (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign.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.Relation.Assign.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Relation.Assign.Res) ai.grakn.rpc.proto.ConceptProto.Relation.Assign.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Assign_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Assign_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.class, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.ConceptProto.internal_static_session_Relation_Assign_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res build() { ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res result = new ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.Relation.Assign.Res) } // @@protoc_insertion_point(class_scope:session.Relation.Assign.Res) private static final ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Relation.Assign other = (ai.grakn.rpc.proto.ConceptProto.Relation.Assign) 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.ConceptProto.Relation.Assign parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign 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.ConceptProto.Relation.Assign parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign 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.ConceptProto.Relation.Assign parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign 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.ConceptProto.Relation.Assign parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign 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.ConceptProto.Relation.Assign 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.Relation.Assign} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Relation.Assign) ai.grakn.rpc.proto.ConceptProto.Relation.AssignOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Assign_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Assign_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.Assign.class, ai.grakn.rpc.proto.ConceptProto.Relation.Assign.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.ConceptProto.internal_static_session_Relation_Assign_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Relation.Assign getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Relation.Assign.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Relation.Assign build() { ai.grakn.rpc.proto.ConceptProto.Relation.Assign result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Relation.Assign buildPartial() { ai.grakn.rpc.proto.ConceptProto.Relation.Assign result = new ai.grakn.rpc.proto.ConceptProto.Relation.Assign(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.ConceptProto.Relation.Assign) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.Assign)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Relation.Assign other) { if (other == ai.grakn.rpc.proto.ConceptProto.Relation.Assign.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.ConceptProto.Relation.Assign parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Relation.Assign) 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.Relation.Assign) } // @@protoc_insertion_point(class_scope:session.Relation.Assign) private static final ai.grakn.rpc.proto.ConceptProto.Relation.Assign DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Relation.Assign(); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Assign getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Assign> PARSER = new com.google.protobuf.AbstractParser<Assign>() { public Assign parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Assign(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Assign> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Assign> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Relation.Assign getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnassignOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Relation.Unassign) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Relation.Unassign} */ public static final class Unassign extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Relation.Unassign) UnassignOrBuilder { // Use Unassign.newBuilder() to construct. private Unassign(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Unassign() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Unassign( 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.ConceptProto.internal_static_session_Relation_Unassign_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Unassign_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.class, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Relation.Unassign.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept role = 1;</code> */ boolean hasRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRoleOrBuilder(); /** * <code>optional .session.Concept player = 2;</code> */ boolean hasPlayer(); /** * <code>optional .session.Concept player = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getPlayer(); /** * <code>optional .session.Concept player = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getPlayerOrBuilder(); } /** * Protobuf type {@code session.Relation.Unassign.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Relation.Unassign.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.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; } case 18: { ai.grakn.rpc.proto.ConceptProto.Concept.Builder subBuilder = null; if (player_ != null) { subBuilder = player_.toBuilder(); } player_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(player_); player_ = 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.ConceptProto.internal_static_session_Relation_Unassign_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Unassign_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.class, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.Builder.class); } public static final int ROLE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept role_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRole() { return role_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : role_; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRoleOrBuilder() { return getRole(); } public static final int PLAYER_FIELD_NUMBER = 2; private ai.grakn.rpc.proto.ConceptProto.Concept player_; /** * <code>optional .session.Concept player = 2;</code> */ public boolean hasPlayer() { return player_ != null; } /** * <code>optional .session.Concept player = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getPlayer() { return player_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : player_; } /** * <code>optional .session.Concept player = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getPlayerOrBuilder() { return getPlayer(); } 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()); } if (player_ != null) { output.writeMessage(2, getPlayer()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (role_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRole()); } if (player_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPlayer()); } 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.ConceptProto.Relation.Unassign.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req other = (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req) obj; boolean result = true; result = result && (hasRole() == other.hasRole()); if (hasRole()) { result = result && getRole() .equals(other.getRole()); } result = result && (hasPlayer() == other.hasPlayer()); if (hasPlayer()) { result = result && getPlayer() .equals(other.getPlayer()); } 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(); } if (hasPlayer()) { hash = (37 * hash) + PLAYER_FIELD_NUMBER; hash = (53 * hash) + getPlayer().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign.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.Relation.Unassign.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Relation.Unassign.Req) ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Unassign_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Unassign_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.class, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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 (roleBuilder_ == null) { role_ = null; } else { role_ = null; roleBuilder_ = null; } if (playerBuilder_ == null) { player_ = null; } else { player_ = null; playerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Unassign_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req build() { ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req result = new ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req(this); if (roleBuilder_ == null) { result.role_ = role_; } else { result.role_ = roleBuilder_.build(); } if (playerBuilder_ == null) { result.player_ = player_; } else { result.player_ = playerBuilder_.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.ConceptProto.Relation.Unassign.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req.getDefaultInstance()) return this; if (other.hasRole()) { mergeRole(other.getRole()); } if (other.hasPlayer()) { mergePlayer(other.getPlayer()); } 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.ConceptProto.Relation.Unassign.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req) 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_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return roleBuilder_ != null || role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ 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(); } } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ public Builder clearRole() { if (roleBuilder_ == null) { role_ = null; onChanged(); } else { role_ = null; roleBuilder_ = null; } return this; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRoleBuilder() { onChanged(); return getRoleFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept role = 1;</code> */ 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_; } } /** * <code>optional .session.Concept role = 1;</code> */ 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_; } private ai.grakn.rpc.proto.ConceptProto.Concept player_ = 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> playerBuilder_; /** * <code>optional .session.Concept player = 2;</code> */ public boolean hasPlayer() { return playerBuilder_ != null || player_ != null; } /** * <code>optional .session.Concept player = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getPlayer() { if (playerBuilder_ == null) { return player_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : player_; } else { return playerBuilder_.getMessage(); } } /** * <code>optional .session.Concept player = 2;</code> */ public Builder setPlayer(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (playerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } player_ = value; onChanged(); } else { playerBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Concept player = 2;</code> */ public Builder setPlayer( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (playerBuilder_ == null) { player_ = builderForValue.build(); onChanged(); } else { playerBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Concept player = 2;</code> */ public Builder mergePlayer(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (playerBuilder_ == null) { if (player_ != null) { player_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(player_).mergeFrom(value).buildPartial(); } else { player_ = value; } onChanged(); } else { playerBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Concept player = 2;</code> */ public Builder clearPlayer() { if (playerBuilder_ == null) { player_ = null; onChanged(); } else { player_ = null; playerBuilder_ = null; } return this; } /** * <code>optional .session.Concept player = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getPlayerBuilder() { onChanged(); return getPlayerFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept player = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getPlayerOrBuilder() { if (playerBuilder_ != null) { return playerBuilder_.getMessageOrBuilder(); } else { return player_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : player_; } } /** * <code>optional .session.Concept player = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getPlayerFieldBuilder() { if (playerBuilder_ == null) { playerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( getPlayer(), getParentForChildren(), isClean()); player_ = null; } return playerBuilder_; } 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.Relation.Unassign.Req) } // @@protoc_insertion_point(class_scope:session.Relation.Unassign.Req) private static final ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Relation.Unassign.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Relation.Unassign.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Relation.Unassign.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.ConceptProto.internal_static_session_Relation_Unassign_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Unassign_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.class, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res other = (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign.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.Relation.Unassign.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Relation.Unassign.Res) ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Unassign_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Unassign_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.class, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.ConceptProto.internal_static_session_Relation_Unassign_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res build() { ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res result = new ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.Relation.Unassign.Res) } // @@protoc_insertion_point(class_scope:session.Relation.Unassign.Res) private static final ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Relation.Unassign other = (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign) 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.ConceptProto.Relation.Unassign parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign 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.ConceptProto.Relation.Unassign parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign 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.ConceptProto.Relation.Unassign parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign 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.ConceptProto.Relation.Unassign parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign 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.ConceptProto.Relation.Unassign 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.Relation.Unassign} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Relation.Unassign) ai.grakn.rpc.proto.ConceptProto.Relation.UnassignOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Unassign_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_Unassign_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.class, ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.ConceptProto.internal_static_session_Relation_Unassign_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign build() { ai.grakn.rpc.proto.ConceptProto.Relation.Unassign result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign buildPartial() { ai.grakn.rpc.proto.ConceptProto.Relation.Unassign result = new ai.grakn.rpc.proto.ConceptProto.Relation.Unassign(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.ConceptProto.Relation.Unassign) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation.Unassign)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Relation.Unassign other) { if (other == ai.grakn.rpc.proto.ConceptProto.Relation.Unassign.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.ConceptProto.Relation.Unassign parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Relation.Unassign) 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.Relation.Unassign) } // @@protoc_insertion_point(class_scope:session.Relation.Unassign) private static final ai.grakn.rpc.proto.ConceptProto.Relation.Unassign DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Relation.Unassign(); } public static ai.grakn.rpc.proto.ConceptProto.Relation.Unassign getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Unassign> PARSER = new com.google.protobuf.AbstractParser<Unassign>() { public Unassign parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Unassign(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Unassign> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Unassign> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Relation.Unassign 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.ConceptProto.Relation)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Relation other = (ai.grakn.rpc.proto.ConceptProto.Relation) 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.ConceptProto.Relation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation 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.ConceptProto.Relation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Relation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Relation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation 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.ConceptProto.Relation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation 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.ConceptProto.Relation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Relation 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.ConceptProto.Relation 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.Relation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Relation) ai.grakn.rpc.proto.ConceptProto.RelationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Relation_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Relation.class, ai.grakn.rpc.proto.ConceptProto.Relation.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Relation.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.ConceptProto.internal_static_session_Relation_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Relation getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Relation.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Relation build() { ai.grakn.rpc.proto.ConceptProto.Relation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Relation buildPartial() { ai.grakn.rpc.proto.ConceptProto.Relation result = new ai.grakn.rpc.proto.ConceptProto.Relation(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.ConceptProto.Relation) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Relation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Relation other) { if (other == ai.grakn.rpc.proto.ConceptProto.Relation.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.ConceptProto.Relation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Relation) 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.Relation) } // @@protoc_insertion_point(class_scope:session.Relation) private static final ai.grakn.rpc.proto.ConceptProto.Relation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Relation(); } public static ai.grakn.rpc.proto.ConceptProto.Relation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Relation> PARSER = new com.google.protobuf.AbstractParser<Relation>() { public Relation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Relation(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Relation> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Relation> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Relation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttributeOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Attribute) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Attribute} */ public static final class Attribute extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Attribute) AttributeOrBuilder { // Use Attribute.newBuilder() to construct. private Attribute(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Attribute() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Attribute( 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.ConceptProto.internal_static_session_Attribute_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Attribute.class, ai.grakn.rpc.proto.ConceptProto.Attribute.Builder.class); } public interface ValueOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Attribute.Value) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Attribute.Value} */ public static final class Value extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Attribute.Value) ValueOrBuilder { // Use Value.newBuilder() to construct. private Value(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Value() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Value( 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.ConceptProto.internal_static_session_Attribute_Value_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Attribute.Value.class, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Attribute.Value.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Attribute.Value.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Attribute.Value.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.ConceptProto.internal_static_session_Attribute_Value_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Value_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.class, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req other = (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value.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.Attribute.Value.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Attribute.Value.Req) ai.grakn.rpc.proto.ConceptProto.Attribute.Value.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Value_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Value_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.class, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.ConceptProto.internal_static_session_Attribute_Value_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req build() { ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req result = new ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.Attribute.Value.Req) } // @@protoc_insertion_point(class_scope:session.Attribute.Value.Req) private static final ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Attribute.Value.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.ValueObject value = 1;</code> */ boolean hasValue(); /** * <code>optional .session.ValueObject value = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ValueObject getValue(); /** * <code>optional .session.ValueObject value = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ValueObjectOrBuilder getValueOrBuilder(); } /** * Protobuf type {@code session.Attribute.Value.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Attribute.Value.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.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.ConceptProto.internal_static_session_Attribute_Value_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Value_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.class, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.ValueObject value_; /** * <code>optional .session.ValueObject value = 1;</code> */ public boolean hasValue() { return value_ != null; } /** * <code>optional .session.ValueObject value = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ValueObject getValue() { return value_ == null ? ai.grakn.rpc.proto.ConceptProto.ValueObject.getDefaultInstance() : value_; } /** * <code>optional .session.ValueObject value = 1;</code> */ 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.ConceptProto.Attribute.Value.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res other = (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res) 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.ConceptProto.Attribute.Value.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value.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.Attribute.Value.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Attribute.Value.Res) ai.grakn.rpc.proto.ConceptProto.Attribute.Value.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Value_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Value_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.class, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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 (valueBuilder_ == null) { value_ = null; } else { value_ = null; valueBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Value_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res build() { ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res result = new ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res(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.ConceptProto.Attribute.Value.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res.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.ConceptProto.Attribute.Value.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res) 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_; /** * <code>optional .session.ValueObject value = 1;</code> */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * <code>optional .session.ValueObject value = 1;</code> */ 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(); } } /** * <code>optional .session.ValueObject value = 1;</code> */ 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; } /** * <code>optional .session.ValueObject value = 1;</code> */ 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; } /** * <code>optional .session.ValueObject value = 1;</code> */ 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; } /** * <code>optional .session.ValueObject value = 1;</code> */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * <code>optional .session.ValueObject value = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ValueObject.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** * <code>optional .session.ValueObject value = 1;</code> */ 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_; } } /** * <code>optional .session.ValueObject value = 1;</code> */ 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.Attribute.Value.Res) } // @@protoc_insertion_point(class_scope:session.Attribute.Value.Res) private static final ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Attribute.Value other = (ai.grakn.rpc.proto.ConceptProto.Attribute.Value) 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.ConceptProto.Attribute.Value parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value 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.ConceptProto.Attribute.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value 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.ConceptProto.Attribute.Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value 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.ConceptProto.Attribute.Value parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value 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.ConceptProto.Attribute.Value 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.Attribute.Value} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Attribute.Value) ai.grakn.rpc.proto.ConceptProto.Attribute.ValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Value_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Attribute.Value.class, ai.grakn.rpc.proto.ConceptProto.Attribute.Value.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.ConceptProto.internal_static_session_Attribute_Value_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Value getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Attribute.Value.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Attribute.Value build() { ai.grakn.rpc.proto.ConceptProto.Attribute.Value result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Value buildPartial() { ai.grakn.rpc.proto.ConceptProto.Attribute.Value result = new ai.grakn.rpc.proto.ConceptProto.Attribute.Value(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.ConceptProto.Attribute.Value) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Attribute.Value)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Attribute.Value other) { if (other == ai.grakn.rpc.proto.ConceptProto.Attribute.Value.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.ConceptProto.Attribute.Value parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Attribute.Value) 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.Attribute.Value) } // @@protoc_insertion_point(class_scope:session.Attribute.Value) private static final ai.grakn.rpc.proto.ConceptProto.Attribute.Value DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Attribute.Value(); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Value getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Value> PARSER = new com.google.protobuf.AbstractParser<Value>() { public Value parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Value(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Value> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Value> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Value getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OwnersOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Attribute.Owners) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Attribute.Owners} */ public static final class Owners extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Attribute.Owners) OwnersOrBuilder { // Use Owners.newBuilder() to construct. private Owners(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Owners() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Owners( 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.ConceptProto.internal_static_session_Attribute_Owners_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Owners_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.class, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Attribute.Owners.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Attribute.Owners.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Attribute.Owners.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.ConceptProto.internal_static_session_Attribute_Owners_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Owners_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.class, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req other = (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.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.Attribute.Owners.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Attribute.Owners.Req) ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Owners_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Owners_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.class, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.internal_static_session_Attribute_Owners_Req_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req build() { ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req buildPartial() { ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req result = new ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.Req) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req other) { if (other == ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.Attribute.Owners.Req) } // @@protoc_insertion_point(class_scope:session.Attribute.Owners.Req) private static final ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req(); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Attribute.Owners.Iter) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.Attribute.Owners.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Attribute.Owners.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.ConceptProto.internal_static_session_Attribute_Owners_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Owners_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.class, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Builder.class); } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Attribute.Owners.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Concept thing = 1;</code> */ boolean hasThing(); /** * <code>optional .session.Concept thing = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getThing(); /** * <code>optional .session.Concept thing = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getThingOrBuilder(); } /** * Protobuf type {@code session.Attribute.Owners.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Attribute.Owners.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 (thing_ != null) { subBuilder = thing_.toBuilder(); } thing_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(thing_); thing_ = 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.ConceptProto.internal_static_session_Attribute_Owners_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Owners_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.Builder.class); } public static final int THING_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Concept thing_; /** * <code>optional .session.Concept thing = 1;</code> */ public boolean hasThing() { return thing_ != null; } /** * <code>optional .session.Concept thing = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getThing() { return thing_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : thing_; } /** * <code>optional .session.Concept thing = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getThingOrBuilder() { return getThing(); } 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 (thing_ != null) { output.writeMessage(1, getThing()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (thing_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getThing()); } 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.ConceptProto.Attribute.Owners.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res other = (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res) obj; boolean result = true; result = result && (hasThing() == other.hasThing()); if (hasThing()) { result = result && getThing() .equals(other.getThing()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasThing()) { hash = (37 * hash) + THING_FIELD_NUMBER; hash = (53 * hash) + getThing().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.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.Attribute.Owners.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Attribute.Owners.Iter.Res) ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Owners_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Owners_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.class, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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 (thingBuilder_ == null) { thing_ = null; } else { thing_ = null; thingBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Owners_Iter_Res_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res build() { ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res buildPartial() { ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res result = new ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res(this); if (thingBuilder_ == null) { result.thing_ = thing_; } else { result.thing_ = thingBuilder_.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.ConceptProto.Attribute.Owners.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res other) { if (other == ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res.getDefaultInstance()) return this; if (other.hasThing()) { mergeThing(other.getThing()); } 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.ConceptProto.Attribute.Owners.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.ConceptProto.Concept thing_ = 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> thingBuilder_; /** * <code>optional .session.Concept thing = 1;</code> */ public boolean hasThing() { return thingBuilder_ != null || thing_ != null; } /** * <code>optional .session.Concept thing = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getThing() { if (thingBuilder_ == null) { return thing_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : thing_; } else { return thingBuilder_.getMessage(); } } /** * <code>optional .session.Concept thing = 1;</code> */ public Builder setThing(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (thingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } thing_ = value; onChanged(); } else { thingBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Concept thing = 1;</code> */ public Builder setThing( ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) { if (thingBuilder_ == null) { thing_ = builderForValue.build(); onChanged(); } else { thingBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Concept thing = 1;</code> */ public Builder mergeThing(ai.grakn.rpc.proto.ConceptProto.Concept value) { if (thingBuilder_ == null) { if (thing_ != null) { thing_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(thing_).mergeFrom(value).buildPartial(); } else { thing_ = value; } onChanged(); } else { thingBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Concept thing = 1;</code> */ public Builder clearThing() { if (thingBuilder_ == null) { thing_ = null; onChanged(); } else { thing_ = null; thingBuilder_ = null; } return this; } /** * <code>optional .session.Concept thing = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getThingBuilder() { onChanged(); return getThingFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept thing = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getThingOrBuilder() { if (thingBuilder_ != null) { return thingBuilder_.getMessageOrBuilder(); } else { return thing_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : thing_; } } /** * <code>optional .session.Concept thing = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> getThingFieldBuilder() { if (thingBuilder_ == null) { thingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>( getThing(), getParentForChildren(), isClean()); thing_ = null; } return thingBuilder_; } 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.Attribute.Owners.Iter.Res) } // @@protoc_insertion_point(class_scope:session.Attribute.Owners.Iter.Res) private static final ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res(); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ 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.ConceptProto.Attribute.Owners.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter other = (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.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.Attribute.Owners.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Attribute.Owners.Iter) ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Owners_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Owners_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.class, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.internal_static_session_Attribute_Owners_Iter_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter build() { ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter buildPartial() { ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter result = new ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.Iter) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter other) { if (other == ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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.Attribute.Owners.Iter) } // @@protoc_insertion_point(class_scope:session.Attribute.Owners.Iter) private static final ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter(); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Attribute.Owners other = (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners) 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.ConceptProto.Attribute.Owners parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners 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.ConceptProto.Attribute.Owners parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners 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.ConceptProto.Attribute.Owners parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners 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.ConceptProto.Attribute.Owners parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners 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.ConceptProto.Attribute.Owners 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.Attribute.Owners} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Attribute.Owners) ai.grakn.rpc.proto.ConceptProto.Attribute.OwnersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Owners_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_Owners_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.class, ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.internal_static_session_Attribute_Owners_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners build() { ai.grakn.rpc.proto.ConceptProto.Attribute.Owners result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners buildPartial() { ai.grakn.rpc.proto.ConceptProto.Attribute.Owners result = new ai.grakn.rpc.proto.ConceptProto.Attribute.Owners(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.ConceptProto.Attribute.Owners) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Attribute.Owners)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Attribute.Owners other) { if (other == ai.grakn.rpc.proto.ConceptProto.Attribute.Owners.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.ConceptProto.Attribute.Owners parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Attribute.Owners) 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.Attribute.Owners) } // @@protoc_insertion_point(class_scope:session.Attribute.Owners) private static final ai.grakn.rpc.proto.ConceptProto.Attribute.Owners DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Attribute.Owners(); } public static ai.grakn.rpc.proto.ConceptProto.Attribute.Owners getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Owners> PARSER = new com.google.protobuf.AbstractParser<Owners>() { public Owners parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Owners(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Owners> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Owners> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Attribute.Owners 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.ConceptProto.Attribute)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.Attribute other = (ai.grakn.rpc.proto.ConceptProto.Attribute) 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.ConceptProto.Attribute parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Attribute 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.ConceptProto.Attribute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.Attribute parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.Attribute parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute 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.ConceptProto.Attribute parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute 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.ConceptProto.Attribute parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.Attribute 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.ConceptProto.Attribute 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.Attribute} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Attribute) ai.grakn.rpc.proto.ConceptProto.AttributeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_Attribute_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.Attribute.class, ai.grakn.rpc.proto.ConceptProto.Attribute.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.Attribute.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.ConceptProto.internal_static_session_Attribute_descriptor; } public ai.grakn.rpc.proto.ConceptProto.Attribute getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.Attribute.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.Attribute build() { ai.grakn.rpc.proto.ConceptProto.Attribute result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.Attribute buildPartial() { ai.grakn.rpc.proto.ConceptProto.Attribute result = new ai.grakn.rpc.proto.ConceptProto.Attribute(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.ConceptProto.Attribute) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.Attribute)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.Attribute other) { if (other == ai.grakn.rpc.proto.ConceptProto.Attribute.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.ConceptProto.Attribute parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.Attribute) 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.Attribute) } // @@protoc_insertion_point(class_scope:session.Attribute) private static final ai.grakn.rpc.proto.ConceptProto.Attribute DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.Attribute(); } public static ai.grakn.rpc.proto.ConceptProto.Attribute getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Attribute> PARSER = new com.google.protobuf.AbstractParser<Attribute>() { public Attribute parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Attribute(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Attribute> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Attribute> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.Attribute getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValueObjectOrBuilder extends // @@protoc_insertion_point(interface_extends:session.ValueObject) com.google.protobuf.MessageOrBuilder { /** * <code>optional string string = 1;</code> */ java.lang.String getString(); /** * <code>optional string string = 1;</code> */ com.google.protobuf.ByteString getStringBytes(); /** * <code>optional bool boolean = 2;</code> */ boolean getBoolean(); /** * <code>optional int32 integer = 3;</code> */ int getInteger(); /** * <code>optional int64 long = 4;</code> */ long getLong(); /** * <code>optional float float = 5;</code> */ float getFloat(); /** * <code>optional double double = 6;</code> */ double getDouble(); /** * <pre> * time since epoch in milliseconds * </pre> * * <code>optional int64 date = 7;</code> */ long getDate(); public ai.grakn.rpc.proto.ConceptProto.ValueObject.ValueCase getValueCase(); } /** * Protobuf type {@code session.ValueObject} */ public static final class ValueObject extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.ValueObject) ValueObjectOrBuilder { // Use ValueObject.newBuilder() to construct. private ValueObject(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ValueObject() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ValueObject( 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(); valueCase_ = 1; value_ = s; break; } case 16: { valueCase_ = 2; value_ = input.readBool(); break; } case 24: { valueCase_ = 3; value_ = input.readInt32(); break; } case 32: { valueCase_ = 4; value_ = input.readInt64(); break; } case 45: { valueCase_ = 5; value_ = input.readFloat(); break; } case 49: { valueCase_ = 6; value_ = input.readDouble(); break; } case 56: { valueCase_ = 7; value_ = input.readInt64(); 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.ConceptProto.internal_static_session_ValueObject_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_ValueObject_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.ValueObject.class, ai.grakn.rpc.proto.ConceptProto.ValueObject.Builder.class); } private int valueCase_ = 0; private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite { STRING(1), BOOLEAN(2), INTEGER(3), LONG(4), FLOAT(5), DOUBLE(6), DATE(7), VALUE_NOT_SET(0); private final int value; private ValueCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 1: return STRING; case 2: return BOOLEAN; case 3: return INTEGER; case 4: return LONG; case 5: return FLOAT; case 6: return DOUBLE; case 7: return DATE; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int STRING_FIELD_NUMBER = 1; /** * <code>optional string string = 1;</code> */ public java.lang.String getString() { java.lang.Object ref = ""; if (valueCase_ == 1) { ref = value_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 1) { value_ = s; } return s; } } /** * <code>optional string string = 1;</code> */ public com.google.protobuf.ByteString getStringBytes() { java.lang.Object ref = ""; if (valueCase_ == 1) { ref = value_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 1) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BOOLEAN_FIELD_NUMBER = 2; /** * <code>optional bool boolean = 2;</code> */ public boolean getBoolean() { if (valueCase_ == 2) { return (java.lang.Boolean) value_; } return false; } public static final int INTEGER_FIELD_NUMBER = 3; /** * <code>optional int32 integer = 3;</code> */ public int getInteger() { if (valueCase_ == 3) { return (java.lang.Integer) value_; } return 0; } public static final int LONG_FIELD_NUMBER = 4; /** * <code>optional int64 long = 4;</code> */ public long getLong() { if (valueCase_ == 4) { return (java.lang.Long) value_; } return 0L; } public static final int FLOAT_FIELD_NUMBER = 5; /** * <code>optional float float = 5;</code> */ public float getFloat() { if (valueCase_ == 5) { return (java.lang.Float) value_; } return 0F; } public static final int DOUBLE_FIELD_NUMBER = 6; /** * <code>optional double double = 6;</code> */ public double getDouble() { if (valueCase_ == 6) { return (java.lang.Double) value_; } return 0D; } public static final int DATE_FIELD_NUMBER = 7; /** * <pre> * time since epoch in milliseconds * </pre> * * <code>optional int64 date = 7;</code> */ public long getDate() { if (valueCase_ == 7) { return (java.lang.Long) value_; } return 0L; } 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 (valueCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } if (valueCase_ == 2) { output.writeBool( 2, (boolean)((java.lang.Boolean) value_)); } if (valueCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) value_)); } if (valueCase_ == 4) { output.writeInt64( 4, (long)((java.lang.Long) value_)); } if (valueCase_ == 5) { output.writeFloat( 5, (float)((java.lang.Float) value_)); } if (valueCase_ == 6) { output.writeDouble( 6, (double)((java.lang.Double) value_)); } if (valueCase_ == 7) { output.writeInt64( 7, (long)((java.lang.Long) value_)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (valueCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (valueCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 2, (boolean)((java.lang.Boolean) value_)); } if (valueCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) value_)); } if (valueCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 4, (long)((java.lang.Long) value_)); } if (valueCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeFloatSize( 5, (float)((java.lang.Float) value_)); } if (valueCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize( 6, (double)((java.lang.Double) value_)); } if (valueCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 7, (long)((java.lang.Long) value_)); } 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.ConceptProto.ValueObject)) { return super.equals(obj); } ai.grakn.rpc.proto.ConceptProto.ValueObject other = (ai.grakn.rpc.proto.ConceptProto.ValueObject) obj; boolean result = true; result = result && getValueCase().equals( other.getValueCase()); if (!result) return false; switch (valueCase_) { case 1: result = result && getString() .equals(other.getString()); break; case 2: result = result && (getBoolean() == other.getBoolean()); break; case 3: result = result && (getInteger() == other.getInteger()); break; case 4: result = result && (getLong() == other.getLong()); break; case 5: result = result && ( java.lang.Float.floatToIntBits(getFloat()) == java.lang.Float.floatToIntBits( other.getFloat())); break; case 6: result = result && ( java.lang.Double.doubleToLongBits(getDouble()) == java.lang.Double.doubleToLongBits( other.getDouble())); break; case 7: result = result && (getDate() == other.getDate()); 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 (valueCase_) { case 1: hash = (37 * hash) + STRING_FIELD_NUMBER; hash = (53 * hash) + getString().hashCode(); break; case 2: hash = (37 * hash) + BOOLEAN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBoolean()); break; case 3: hash = (37 * hash) + INTEGER_FIELD_NUMBER; hash = (53 * hash) + getInteger(); break; case 4: hash = (37 * hash) + LONG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLong()); break; case 5: hash = (37 * hash) + FLOAT_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getFloat()); break; case 6: hash = (37 * hash) + DOUBLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDouble())); break; case 7: hash = (37 * hash) + DATE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDate()); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.ConceptProto.ValueObject parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.ValueObject 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.ConceptProto.ValueObject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.ConceptProto.ValueObject parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.ConceptProto.ValueObject parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.ValueObject 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.ConceptProto.ValueObject parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.ValueObject 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.ConceptProto.ValueObject parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.ConceptProto.ValueObject 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.ConceptProto.ValueObject 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.ValueObject} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.ValueObject) ai.grakn.rpc.proto.ConceptProto.ValueObjectOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_ValueObject_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_ValueObject_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.ConceptProto.ValueObject.class, ai.grakn.rpc.proto.ConceptProto.ValueObject.Builder.class); } // Construct using ai.grakn.rpc.proto.ConceptProto.ValueObject.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(); valueCase_ = 0; value_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.ConceptProto.internal_static_session_ValueObject_descriptor; } public ai.grakn.rpc.proto.ConceptProto.ValueObject getDefaultInstanceForType() { return ai.grakn.rpc.proto.ConceptProto.ValueObject.getDefaultInstance(); } public ai.grakn.rpc.proto.ConceptProto.ValueObject build() { ai.grakn.rpc.proto.ConceptProto.ValueObject result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.ConceptProto.ValueObject buildPartial() { ai.grakn.rpc.proto.ConceptProto.ValueObject result = new ai.grakn.rpc.proto.ConceptProto.ValueObject(this); if (valueCase_ == 1) { result.value_ = value_; } if (valueCase_ == 2) { result.value_ = value_; } if (valueCase_ == 3) { result.value_ = value_; } if (valueCase_ == 4) { result.value_ = value_; } if (valueCase_ == 5) { result.value_ = value_; } if (valueCase_ == 6) { result.value_ = value_; } if (valueCase_ == 7) { result.value_ = value_; } result.valueCase_ = valueCase_; 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.ConceptProto.ValueObject) { return mergeFrom((ai.grakn.rpc.proto.ConceptProto.ValueObject)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.ConceptProto.ValueObject other) { if (other == ai.grakn.rpc.proto.ConceptProto.ValueObject.getDefaultInstance()) return this; switch (other.getValueCase()) { case STRING: { valueCase_ = 1; value_ = other.value_; onChanged(); break; } case BOOLEAN: { setBoolean(other.getBoolean()); break; } case INTEGER: { setInteger(other.getInteger()); break; } case LONG: { setLong(other.getLong()); break; } case FLOAT: { setFloat(other.getFloat()); break; } case DOUBLE: { setDouble(other.getDouble()); break; } case DATE: { setDate(other.getDate()); break; } case VALUE_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.ConceptProto.ValueObject parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.ConceptProto.ValueObject) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } /** * <code>optional string string = 1;</code> */ public java.lang.String getString() { java.lang.Object ref = ""; if (valueCase_ == 1) { ref = value_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 1) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string string = 1;</code> */ public com.google.protobuf.ByteString getStringBytes() { java.lang.Object ref = ""; if (valueCase_ == 1) { ref = value_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 1) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string string = 1;</code> */ public Builder setString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 1; value_ = value; onChanged(); return this; } /** * <code>optional string string = 1;</code> */ public Builder clearString() { if (valueCase_ == 1) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>optional string string = 1;</code> */ public Builder setStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 1; value_ = value; onChanged(); return this; } /** * <code>optional bool boolean = 2;</code> */ public boolean getBoolean() { if (valueCase_ == 2) { return (java.lang.Boolean) value_; } return false; } /** * <code>optional bool boolean = 2;</code> */ public Builder setBoolean(boolean value) { valueCase_ = 2; value_ = value; onChanged(); return this; } /** * <code>optional bool boolean = 2;</code> */ public Builder clearBoolean() { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>optional int32 integer = 3;</code> */ public int getInteger() { if (valueCase_ == 3) { return (java.lang.Integer) value_; } return 0; } /** * <code>optional int32 integer = 3;</code> */ public Builder setInteger(int value) { valueCase_ = 3; value_ = value; onChanged(); return this; } /** * <code>optional int32 integer = 3;</code> */ public Builder clearInteger() { if (valueCase_ == 3) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>optional int64 long = 4;</code> */ public long getLong() { if (valueCase_ == 4) { return (java.lang.Long) value_; } return 0L; } /** * <code>optional int64 long = 4;</code> */ public Builder setLong(long value) { valueCase_ = 4; value_ = value; onChanged(); return this; } /** * <code>optional int64 long = 4;</code> */ public Builder clearLong() { if (valueCase_ == 4) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>optional float float = 5;</code> */ public float getFloat() { if (valueCase_ == 5) { return (java.lang.Float) value_; } return 0F; } /** * <code>optional float float = 5;</code> */ public Builder setFloat(float value) { valueCase_ = 5; value_ = value; onChanged(); return this; } /** * <code>optional float float = 5;</code> */ public Builder clearFloat() { if (valueCase_ == 5) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>optional double double = 6;</code> */ public double getDouble() { if (valueCase_ == 6) { return (java.lang.Double) value_; } return 0D; } /** * <code>optional double double = 6;</code> */ public Builder setDouble(double value) { valueCase_ = 6; value_ = value; onChanged(); return this; } /** * <code>optional double double = 6;</code> */ public Builder clearDouble() { if (valueCase_ == 6) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <pre> * time since epoch in milliseconds * </pre> * * <code>optional int64 date = 7;</code> */ public long getDate() { if (valueCase_ == 7) { return (java.lang.Long) value_; } return 0L; } /** * <pre> * time since epoch in milliseconds * </pre> * * <code>optional int64 date = 7;</code> */ public Builder setDate(long value) { valueCase_ = 7; value_ = value; onChanged(); return this; } /** * <pre> * time since epoch in milliseconds * </pre> * * <code>optional int64 date = 7;</code> */ public Builder clearDate() { if (valueCase_ == 7) { valueCase_ = 0; value_ = null; 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.ValueObject) } // @@protoc_insertion_point(class_scope:session.ValueObject) private static final ai.grakn.rpc.proto.ConceptProto.ValueObject DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.ConceptProto.ValueObject(); } public static ai.grakn.rpc.proto.ConceptProto.ValueObject getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ValueObject> PARSER = new com.google.protobuf.AbstractParser<ValueObject>() { public ValueObject parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ValueObject(input, extensionRegistry); } }; public static com.google.protobuf.Parser<ValueObject> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ValueObject> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.ConceptProto.ValueObject getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Method_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Method_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Method_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Method_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Method_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Method_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Method_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Method_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Method_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Method_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Null_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Null_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Concept_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Concept_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Concept_Delete_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Concept_Delete_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Concept_Delete_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Concept_Delete_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Concept_Delete_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Concept_Delete_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_GetLabel_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_GetLabel_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_GetLabel_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_GetLabel_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_GetLabel_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_GetLabel_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_SetLabel_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_SetLabel_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_SetLabel_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_SetLabel_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_SetLabel_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_SetLabel_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_IsImplicit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_IsImplicit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_IsImplicit_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_IsImplicit_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_IsImplicit_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_IsImplicit_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_GetSup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_GetSup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_GetSup_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_GetSup_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_GetSup_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_GetSup_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_SetSup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_SetSup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_SetSup_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_SetSup_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_SetSup_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_SetSup_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_Sups_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_Sups_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_Sups_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_Sups_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_Sups_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_Sups_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_Sups_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_Sups_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_Subs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_Subs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_Subs_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_Subs_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_Subs_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_Subs_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_SchemaConcept_Subs_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_SchemaConcept_Subs_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Rule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Rule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Rule_When_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Rule_When_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Rule_When_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Rule_When_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Rule_When_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Rule_When_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Rule_Then_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Rule_Then_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Rule_Then_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Rule_Then_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Rule_Then_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Rule_Then_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Role_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Role_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Role_Relations_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Role_Relations_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Role_Relations_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Role_Relations_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Role_Relations_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Role_Relations_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Role_Relations_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Role_Relations_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Role_Players_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Role_Players_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Role_Players_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Role_Players_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Role_Players_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Role_Players_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Role_Players_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Role_Players_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_IsAbstract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_IsAbstract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_IsAbstract_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_IsAbstract_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_IsAbstract_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_IsAbstract_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_SetAbstract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_SetAbstract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_SetAbstract_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_SetAbstract_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_SetAbstract_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_SetAbstract_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Instances_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Instances_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Instances_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Instances_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Instances_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Instances_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Instances_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Instances_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Attributes_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Attributes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Attributes_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Attributes_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Attributes_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Attributes_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Attributes_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Attributes_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Keys_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Keys_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Keys_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Keys_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Keys_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Keys_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Keys_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Keys_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Playing_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Playing_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Playing_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Playing_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Playing_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Playing_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Playing_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Playing_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Key_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Key_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Key_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Key_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Key_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Key_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Has_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Has_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Has_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Has_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Has_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Has_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Plays_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Plays_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Plays_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Plays_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Plays_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Plays_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Unkey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Unkey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Unkey_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Unkey_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Unkey_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Unkey_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Unhas_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Unhas_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Unhas_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Unhas_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Unhas_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Unhas_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Unplay_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Unplay_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Unplay_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Unplay_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Type_Unplay_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Type_Unplay_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_EntityType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_EntityType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_EntityType_Create_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_EntityType_Create_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_EntityType_Create_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_EntityType_Create_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_EntityType_Create_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_EntityType_Create_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_RelationType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_RelationType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_RelationType_Create_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_RelationType_Create_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_RelationType_Create_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_RelationType_Create_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_RelationType_Create_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_RelationType_Create_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_RelationType_Roles_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_RelationType_Roles_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_RelationType_Roles_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_RelationType_Roles_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_RelationType_Roles_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_RelationType_Roles_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_RelationType_Roles_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_RelationType_Roles_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_RelationType_Relates_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_RelationType_Relates_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_RelationType_Relates_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_RelationType_Relates_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_RelationType_Relates_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_RelationType_Relates_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_RelationType_Unrelate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_RelationType_Unrelate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_RelationType_Unrelate_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_RelationType_Unrelate_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_RelationType_Unrelate_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_RelationType_Unrelate_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AttributeType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AttributeType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AttributeType_Create_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AttributeType_Create_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AttributeType_Create_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AttributeType_Create_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AttributeType_Create_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AttributeType_Create_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AttributeType_Attribute_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AttributeType_Attribute_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AttributeType_Attribute_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AttributeType_Attribute_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AttributeType_Attribute_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AttributeType_Attribute_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AttributeType_DataType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AttributeType_DataType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AttributeType_DataType_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AttributeType_DataType_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AttributeType_DataType_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AttributeType_DataType_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AttributeType_GetRegex_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AttributeType_GetRegex_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AttributeType_GetRegex_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AttributeType_GetRegex_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AttributeType_GetRegex_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AttributeType_GetRegex_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AttributeType_SetRegex_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AttributeType_SetRegex_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AttributeType_SetRegex_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AttributeType_SetRegex_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_AttributeType_SetRegex_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_AttributeType_SetRegex_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_IsInferred_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_IsInferred_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_IsInferred_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_IsInferred_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_IsInferred_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_IsInferred_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Type_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Type_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Type_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Type_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Type_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Type_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Keys_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Keys_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Keys_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Keys_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Keys_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Keys_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Keys_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Keys_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Attributes_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Attributes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Attributes_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Attributes_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Attributes_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Attributes_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Attributes_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Attributes_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Relations_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Relations_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Relations_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Relations_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Relations_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Relations_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Relations_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Relations_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Roles_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Roles_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Roles_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Roles_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Roles_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Roles_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Roles_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Roles_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Relhas_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Relhas_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Relhas_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Relhas_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Relhas_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Relhas_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Unhas_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Unhas_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Unhas_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Unhas_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Thing_Unhas_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Thing_Unhas_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Relation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Relation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Relation_RolePlayersMap_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Relation_RolePlayersMap_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Relation_RolePlayersMap_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Relation_RolePlayersMap_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Relation_RolePlayersMap_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Relation_RolePlayersMap_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Relation_RolePlayersMap_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Relation_RolePlayersMap_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Relation_RolePlayers_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Relation_RolePlayers_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Relation_RolePlayers_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Relation_RolePlayers_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Relation_RolePlayers_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Relation_RolePlayers_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Relation_RolePlayers_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Relation_RolePlayers_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Relation_Assign_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Relation_Assign_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Relation_Assign_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Relation_Assign_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Relation_Assign_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Relation_Assign_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Relation_Unassign_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Relation_Unassign_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Relation_Unassign_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Relation_Unassign_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Relation_Unassign_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Relation_Unassign_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Attribute_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Attribute_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Attribute_Value_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Attribute_Value_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Attribute_Value_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Attribute_Value_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Attribute_Value_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Attribute_Value_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Attribute_Owners_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Attribute_Owners_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Attribute_Owners_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Attribute_Owners_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Attribute_Owners_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Attribute_Owners_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Attribute_Owners_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Attribute_Owners_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_ValueObject_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_ValueObject_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\rConcept.proto\022\007session\"\3638\n\006Method\032\351\027\n\003" + "Req\0229\n\022concept_delete_req\030d \001(\0132\033.sessio" + "n.Concept.Delete.ReqH\000\022N\n\034schemaConcept_" + "isImplicit_req\030\310\001 \001(\0132%.session.SchemaCo" + "ncept.IsImplicit.ReqH\000\022J\n\032schemaConcept_" + "getLabel_req\030\311\001 \001(\0132#.session.SchemaConc" + "ept.GetLabel.ReqH\000\022J\n\032schemaConcept_setL" + "abel_req\030\312\001 \001(\0132#.session.SchemaConcept." + "SetLabel.ReqH\000\022F\n\030schemaConcept_getSup_r" + "eq\030\313\001 \001(\0132!.session.SchemaConcept.GetSup", ".ReqH\000\022F\n\030schemaConcept_setSup_req\030\314\001 \001(" + "\0132!.session.SchemaConcept.SetSup.ReqH\000\022B" + "\n\026schemaConcept_sups_req\030\315\001 \001(\0132\037.sessio" + "n.SchemaConcept.Sups.ReqH\000\022B\n\026schemaConc" + "ept_subs_req\030\316\001 \001(\0132\037.session.SchemaConc" + "ept.Subs.ReqH\000\0220\n\rrule_when_req\030\254\002 \001(\0132\026" + ".session.Rule.When.ReqH\000\0220\n\rrule_then_re" + "q\030\255\002 \001(\0132\026.session.Rule.Then.ReqH\000\022:\n\022ro" + "le_relations_req\030\221\003 \001(\0132\033.session.Role.R" + "elations.ReqH\000\0226\n\020role_players_req\030\222\003 \001(", "\0132\031.session.Role.Players.ReqH\000\022<\n\023type_i" + "sAbstract_req\030\364\003 \001(\0132\034.session.Type.IsAb" + "stract.ReqH\000\022>\n\024type_setAbstract_req\030\365\003 " + "\001(\0132\035.session.Type.SetAbstract.ReqH\000\022:\n\022" + "type_instances_req\030\366\003 \001(\0132\033.session.Type" + ".Instances.ReqH\000\0220\n\rtype_keys_req\030\367\003 \001(\013" + "2\026.session.Type.Keys.ReqH\000\022<\n\023type_attri" + "butes_req\030\370\003 \001(\0132\034.session.Type.Attribut" + "es.ReqH\000\0226\n\020type_playing_req\030\371\003 \001(\0132\031.se" + "ssion.Type.Playing.ReqH\000\022.\n\014type_has_req", "\030\372\003 \001(\0132\025.session.Type.Has.ReqH\000\022.\n\014type" + "_key_req\030\373\003 \001(\0132\025.session.Type.Key.ReqH\000" + "\0222\n\016type_plays_req\030\374\003 \001(\0132\027.session.Type" + ".Plays.ReqH\000\0222\n\016type_unhas_req\030\375\003 \001(\0132\027." + "session.Type.Unhas.ReqH\000\0222\n\016type_unkey_r" + "eq\030\376\003 \001(\0132\027.session.Type.Unkey.ReqH\000\0224\n\017" + "type_unplay_req\030\377\003 \001(\0132\030.session.Type.Un" + "play.ReqH\000\022@\n\025entityType_create_req\030\330\004 \001" + "(\0132\036.session.EntityType.Create.ReqH\000\022D\n\027" + "relationType_create_req\030\274\005 \001(\0132 .session", ".RelationType.Create.ReqH\000\022B\n\026relationTy" + "pe_roles_req\030\275\005 \001(\0132\037.session.RelationTy" + "pe.Roles.ReqH\000\022F\n\030relationType_relates_r" + "eq\030\276\005 \001(\0132!.session.RelationType.Relates" + ".ReqH\000\022H\n\031relationType_unrelate_req\030\277\005 \001" + "(\0132\".session.RelationType.Unrelate.ReqH\000" + "\022F\n\030attributeType_create_req\030\240\006 \001(\0132!.se" + "ssion.AttributeType.Create.ReqH\000\022L\n\033attr" + "ibuteType_attribute_req\030\241\006 \001(\0132$.session" + ".AttributeType.Attribute.ReqH\000\022J\n\032attrib", "uteType_dataType_req\030\242\006 \001(\0132#.session.At" + "tributeType.DataType.ReqH\000\022J\n\032attributeT" + "ype_getRegex_req\030\243\006 \001(\0132#.session.Attrib" + "uteType.GetRegex.ReqH\000\022J\n\032attributeType_" + "setRegex_req\030\244\006 \001(\0132#.session.AttributeT" + "ype.SetRegex.ReqH\000\0222\n\016thing_type_req\030\204\007 " + "\001(\0132\027.session.Thing.Type.ReqH\000\022>\n\024thing_" + "isInferred_req\030\205\007 \001(\0132\035.session.Thing.Is" + "Inferred.ReqH\000\0222\n\016thing_keys_req\030\206\007 \001(\0132" + "\027.session.Thing.Keys.ReqH\000\022>\n\024thing_attr", "ibutes_req\030\207\007 \001(\0132\035.session.Thing.Attrib" + "utes.ReqH\000\022<\n\023thing_relations_req\030\210\007 \001(\013" + "2\034.session.Thing.Relations.ReqH\000\0224\n\017thin" + "g_roles_req\030\211\007 \001(\0132\030.session.Thing.Roles" + ".ReqH\000\0226\n\020thing_relhas_req\030\212\007 \001(\0132\031.sess" + "ion.Thing.Relhas.ReqH\000\0224\n\017thing_unhas_re" + "q\030\213\007 \001(\0132\030.session.Thing.Unhas.ReqH\000\022L\n\033" + "relation_rolePlayersMap_req\030\350\007 \001(\0132$.ses" + "sion.Relation.RolePlayersMap.ReqH\000\022F\n\030re" + "lation_rolePlayers_req\030\351\007 \001(\0132!.session.", "Relation.RolePlayers.ReqH\000\022<\n\023relation_a" + "ssign_req\030\352\007 \001(\0132\034.session.Relation.Assi" + "gn.ReqH\000\022@\n\025relation_unassign_req\030\353\007 \001(\013" + "2\036.session.Relation.Unassign.ReqH\000\022<\n\023at" + "tribute_value_req\030\314\010 \001(\0132\034.session.Attri" + "bute.Value.ReqH\000\022>\n\024attribute_owners_req" + "\030\315\010 \001(\0132\035.session.Attribute.Owners.ReqH\000" + "B\005\n\003req\032\211\030\n\003Res\0229\n\022concept_delete_res\030d " + "\001(\0132\033.session.Concept.Delete.ResH\000\022N\n\034sc" + "hemaConcept_isImplicit_res\030\310\001 \001(\0132%.sess", "ion.SchemaConcept.IsImplicit.ResH\000\022J\n\032sc" + "hemaConcept_getLabel_res\030\311\001 \001(\0132#.sessio" + "n.SchemaConcept.GetLabel.ResH\000\022J\n\032schema" + "Concept_setLabel_res\030\312\001 \001(\0132#.session.Sc" + "hemaConcept.SetLabel.ResH\000\022F\n\030schemaConc" + "ept_getSup_res\030\313\001 \001(\0132!.session.SchemaCo" + "ncept.GetSup.ResH\000\022F\n\030schemaConcept_setS" + "up_res\030\314\001 \001(\0132!.session.SchemaConcept.Se" + "tSup.ResH\000\022D\n\027schemaConcept_sups_iter\030\315\001" + " \001(\0132 .session.SchemaConcept.Sups.IterH\000", "\022D\n\027schemaConcept_subs_iter\030\316\001 \001(\0132 .ses" + "sion.SchemaConcept.Subs.IterH\000\0220\n\rrule_w" + "hen_res\030\254\002 \001(\0132\026.session.Rule.When.ResH\000" + "\0220\n\rrule_then_res\030\255\002 \001(\0132\026.session.Rule." + "Then.ResH\000\022<\n\023role_relations_iter\030\221\003 \001(\013" + "2\034.session.Role.Relations.IterH\000\0228\n\021role" + "_players_iter\030\222\003 \001(\0132\032.session.Role.Play" + "ers.IterH\000\022<\n\023type_isAbstract_res\030\364\003 \001(\013" + "2\034.session.Type.IsAbstract.ResH\000\022>\n\024type" + "_setAbstract_res\030\365\003 \001(\0132\035.session.Type.S", "etAbstract.ResH\000\022<\n\023type_instances_iter\030" + "\366\003 \001(\0132\034.session.Type.Instances.IterH\000\0222" + "\n\016type_keys_iter\030\367\003 \001(\0132\027.session.Type.K" + "eys.IterH\000\022>\n\024type_attributes_iter\030\370\003 \001(" + "\0132\035.session.Type.Attributes.IterH\000\0228\n\021ty" + "pe_playing_iter\030\371\003 \001(\0132\032.session.Type.Pl" + "aying.IterH\000\022.\n\014type_has_res\030\372\003 \001(\0132\025.se" + "ssion.Type.Has.ResH\000\022.\n\014type_key_res\030\373\003 " + "\001(\0132\025.session.Type.Key.ResH\000\0222\n\016type_pla" + "ys_res\030\374\003 \001(\0132\027.session.Type.Plays.ResH\000", "\0222\n\016type_unhas_res\030\375\003 \001(\0132\027.session.Type" + ".Unhas.ResH\000\0222\n\016type_unkey_res\030\376\003 \001(\0132\027." + "session.Type.Unkey.ResH\000\0224\n\017type_unplay_" + "res\030\377\003 \001(\0132\030.session.Type.Unplay.ResH\000\022@" + "\n\025entityType_create_res\030\330\004 \001(\0132\036.session" + ".EntityType.Create.ResH\000\022D\n\027relationType" + "_create_res\030\274\005 \001(\0132 .session.RelationTyp" + "e.Create.ResH\000\022D\n\027relationType_roles_ite" + "r\030\275\005 \001(\0132 .session.RelationType.Roles.It" + "erH\000\022F\n\030relationType_relates_res\030\276\005 \001(\0132", "!.session.RelationType.Relates.ResH\000\022H\n\031" + "relationType_unrelate_res\030\277\005 \001(\0132\".sessi" + "on.RelationType.Unrelate.ResH\000\022F\n\030attrib" + "uteType_create_res\030\240\006 \001(\0132!.session.Attr" + "ibuteType.Create.ResH\000\022L\n\033attributeType_" + "attribute_res\030\241\006 \001(\0132$.session.Attribute" + "Type.Attribute.ResH\000\022J\n\032attributeType_da" + "taType_res\030\242\006 \001(\0132#.session.AttributeTyp" + "e.DataType.ResH\000\022J\n\032attributeType_getReg" + "ex_res\030\243\006 \001(\0132#.session.AttributeType.Ge", "tRegex.ResH\000\022J\n\032attributeType_setRegex_r" + "es\030\244\006 \001(\0132#.session.AttributeType.SetReg" + "ex.ResH\000\0222\n\016thing_type_res\030\204\007 \001(\0132\027.sess" + "ion.Thing.Type.ResH\000\022>\n\024thing_isInferred" + "_res\030\205\007 \001(\0132\035.session.Thing.IsInferred.R" + "esH\000\0224\n\017thing_keys_iter\030\206\007 \001(\0132\030.session" + ".Thing.Keys.IterH\000\022@\n\025thing_attributes_i" + "ter\030\207\007 \001(\0132\036.session.Thing.Attributes.It" + "erH\000\022>\n\024thing_relations_iter\030\210\007 \001(\0132\035.se" + "ssion.Thing.Relations.IterH\000\0226\n\020thing_ro", "les_iter\030\211\007 \001(\0132\031.session.Thing.Roles.It" + "erH\000\0226\n\020thing_relhas_res\030\212\007 \001(\0132\031.sessio" + "n.Thing.Relhas.ResH\000\0224\n\017thing_unhas_res\030" + "\213\007 \001(\0132\030.session.Thing.Unhas.ResH\000\022N\n\034re" + "lation_rolePlayersMap_iter\030\350\007 \001(\0132%.sess" + "ion.Relation.RolePlayersMap.IterH\000\022H\n\031re" + "lation_rolePlayers_iter\030\351\007 \001(\0132\".session" + ".Relation.RolePlayers.IterH\000\022<\n\023relation" + "_assign_res\030\352\007 \001(\0132\034.session.Relation.As" + "sign.ResH\000\022@\n\025relation_unassign_res\030\353\007 \001", "(\0132\036.session.Relation.Unassign.ResH\000\022<\n\023" + "attribute_value_res\030\314\010 \001(\0132\034.session.Att" + "ribute.Value.ResH\000\022@\n\025attribute_owners_i" + "ter\030\315\010 \001(\0132\036.session.Attribute.Owners.It" + "erH\000B\005\n\003res\032\360\010\n\004Iter\032\347\010\n\003Res\022J\n\033schemaCo" + "ncept_sups_iter_res\030\315\001 \001(\0132$.session.Sch" + "emaConcept.Sups.Iter.Res\022J\n\033schemaConcep" + "t_subs_iter_res\030\316\001 \001(\0132$.session.SchemaC" + "oncept.Subs.Iter.Res\022B\n\027role_relations_i" + "ter_res\030\221\003 \001(\0132 .session.Role.Relations.", "Iter.Res\022>\n\025role_players_iter_res\030\222\003 \001(\013" + "2\036.session.Role.Players.Iter.Res\022B\n\027type" + "_instances_iter_res\030\366\003 \001(\0132 .session.Typ" + "e.Instances.Iter.Res\0228\n\022type_keys_iter_r" + "es\030\367\003 \001(\0132\033.session.Type.Keys.Iter.Res\022D" + "\n\030type_attributes_iter_res\030\370\003 \001(\0132!.sess" + "ion.Type.Attributes.Iter.Res\022>\n\025type_pla" + "ying_iter_res\030\371\003 \001(\0132\036.session.Type.Play" + "ing.Iter.Res\022J\n\033relationType_roles_iter_" + "res\030\275\005 \001(\0132$.session.RelationType.Roles.", "Iter.Res\022:\n\023thing_keys_iter_res\030\206\007 \001(\0132\034" + ".session.Thing.Keys.Iter.Res\022F\n\031thing_at" + "tributes_iter_res\030\207\007 \001(\0132\".session.Thing" + ".Attributes.Iter.Res\022D\n\030thing_relations_" + "iter_res\030\210\007 \001(\0132!.session.Thing.Relation" + "s.Iter.Res\022<\n\024thing_roles_iter_res\030\211\007 \001(" + "\0132\035.session.Thing.Roles.Iter.Res\022T\n rela" + "tion_rolePlayersMap_iter_res\030\350\007 \001(\0132).se" + "ssion.Relation.RolePlayersMap.Iter.Res\022N" + "\n\035relation_rolePlayers_iter_res\030\351\007 \001(\0132&", ".session.Relation.RolePlayers.Iter.Res\022F" + "\n\031attribute_owners_iter_res\030\315\010 \001(\0132\".ses" + "sion.Attribute.Owners.Iter.Res\"\006\n\004Null\"\355" + "\001\n\007Concept\022\n\n\002id\030\001 \001(\t\022,\n\010baseType\030\002 \001(\016" + "2\032.session.Concept.BASE_TYPE\032\026\n\006Delete\032\005" + "\n\003Req\032\005\n\003Res\"\217\001\n\tBASE_TYPE\022\r\n\tMETA_TYPE\020" + "\000\022\017\n\013ENTITY_TYPE\020\001\022\021\n\rRELATION_TYPE\020\002\022\022\n" + "\016ATTRIBUTE_TYPE\020\003\022\010\n\004ROLE\020\004\022\010\n\004RULE\020\005\022\n\n" + "\006ENTITY\020\006\022\014\n\010RELATION\020\007\022\r\n\tATTRIBUTE\020\010\"\337" + "\003\n\rSchemaConcept\032\'\n\010GetLabel\032\005\n\003Req\032\024\n\003R", "es\022\r\n\005label\030\001 \001(\t\032\'\n\010SetLabel\032\024\n\003Req\022\r\n\005" + "label\030\001 \001(\t\032\005\n\003Res\032,\n\nIsImplicit\032\005\n\003Req\032" + "\027\n\003Res\022\020\n\010implicit\030\001 \001(\010\032g\n\006GetSup\032\005\n\003Re" + "q\032V\n\003Res\022)\n\rschemaConcept\030\001 \001(\0132\020.sessio" + "n.ConceptH\000\022\035\n\004null\030\002 \001(\0132\r.session.Null" + "H\000B\005\n\003res\032?\n\006SetSup\032.\n\003Req\022\'\n\rschemaConc" + "ept\030\001 \001(\0132\020.session.Concept\032\005\n\003Res\032Q\n\004Su" + "ps\032\005\n\003Req\032B\n\004Iter\022\n\n\002id\030\001 \001(\005\032.\n\003Res\022\'\n\r" + "schemaConcept\030\001 \001(\0132\020.session.Concept\032Q\n" + "\004Subs\032\005\n\003Req\032B\n\004Iter\022\n\n\002id\030\001 \001(\005\032.\n\003Res\022", "\'\n\rschemaConcept\030\001 \001(\0132\020.session.Concept" + "\"\244\001\n\004Rule\032M\n\004When\032\005\n\003Req\032>\n\003Res\022\021\n\007patte" + "rn\030\001 \001(\tH\000\022\035\n\004null\030\002 \001(\0132\r.session.NullH" + "\000B\005\n\003res\032M\n\004Then\032\005\n\003Req\032>\n\003Res\022\021\n\007patter" + "n\030\001 \001(\tH\000\022\035\n\004null\030\002 \001(\0132\r.session.NullH\000" + "B\005\n\003res\"\252\001\n\004Role\032U\n\tRelations\032\005\n\003Req\032A\n\004" + "Iter\022\n\n\002id\030\001 \001(\005\032-\n\003Res\022&\n\014relationType\030" + "\001 \001(\0132\020.session.Concept\032K\n\007Players\032\005\n\003Re" + "q\0329\n\004Iter\022\n\n\002id\030\001 \001(\005\032%\n\003Res\022\036\n\004type\030\001 \001" + "(\0132\020.session.Concept\"\227\006\n\004Type\032,\n\nIsAbstr", "act\032\005\n\003Req\032\027\n\003Res\022\020\n\010abstract\030\001 \001(\010\032-\n\013S" + "etAbstract\032\027\n\003Req\022\020\n\010abstract\030\001 \001(\010\032\005\n\003R" + "es\032N\n\tInstances\032\005\n\003Req\032:\n\004Iter\022\n\n\002id\030\001 \001" + "(\005\032&\n\003Res\022\037\n\005thing\030\001 \001(\0132\020.session.Conce" + "pt\032W\n\nAttributes\032\005\n\003Req\032B\n\004Iter\022\n\n\002id\030\001 " + "\001(\005\032.\n\003Res\022\'\n\rattributeType\030\001 \001(\0132\020.sess" + "ion.Concept\032Q\n\004Keys\032\005\n\003Req\032B\n\004Iter\022\n\n\002id" + "\030\001 \001(\005\032.\n\003Res\022\'\n\rattributeType\030\001 \001(\0132\020.s" + "ession.Concept\032K\n\007Playing\032\005\n\003Req\0329\n\004Iter" + "\022\n\n\002id\030\001 \001(\005\032%\n\003Res\022\036\n\004role\030\001 \001(\0132\020.sess", "ion.Concept\032<\n\003Key\032.\n\003Req\022\'\n\rattributeTy" + "pe\030\001 \001(\0132\020.session.Concept\032\005\n\003Res\032<\n\003Has" + "\032.\n\003Req\022\'\n\rattributeType\030\001 \001(\0132\020.session" + ".Concept\032\005\n\003Res\0325\n\005Plays\032%\n\003Req\022\036\n\004role\030" + "\001 \001(\0132\020.session.Concept\032\005\n\003Res\032>\n\005Unkey\032" + ".\n\003Req\022\'\n\rattributeType\030\001 \001(\0132\020.session." + "Concept\032\005\n\003Res\032>\n\005Unhas\032.\n\003Req\022\'\n\rattrib" + "uteType\030\001 \001(\0132\020.session.Concept\032\005\n\003Res\0326" + "\n\006Unplay\032%\n\003Req\022\036\n\004role\030\001 \001(\0132\020.session." + "Concept\032\005\n\003Res\"F\n\nEntityType\0328\n\006Create\032\005", "\n\003Req\032\'\n\003Res\022 \n\006entity\030\001 \001(\0132\020.session.C" + "oncept\"\210\002\n\014RelationType\032:\n\006Create\032\005\n\003Req" + "\032)\n\003Res\022\"\n\010relation\030\001 \001(\0132\020.session.Conc" + "ept\032I\n\005Roles\032\005\n\003Req\0329\n\004Iter\022\n\n\002id\030\001 \001(\005\032" + "%\n\003Res\022\036\n\004role\030\001 \001(\0132\020.session.Concept\0327" + "\n\007Relates\032%\n\003Req\022\036\n\004role\030\001 \001(\0132\020.session" + ".Concept\032\005\n\003Res\0328\n\010Unrelate\032%\n\003Req\022\036\n\004ro" + "le\030\001 \001(\0132\020.session.Concept\032\005\n\003Res\"\245\004\n\rAt" + "tributeType\032`\n\006Create\032*\n\003Req\022#\n\005value\030\001 " + "\001(\0132\024.session.ValueObject\032*\n\003Res\022#\n\tattr", "ibute\030\001 \001(\0132\020.session.Concept\032\213\001\n\tAttrib" + "ute\032*\n\003Req\022#\n\005value\030\001 \001(\0132\024.session.Valu" + "eObject\032R\n\003Res\022%\n\tattribute\030\001 \001(\0132\020.sess" + "ion.ConceptH\000\022\035\n\004null\030\002 \001(\0132\r.session.Nu" + "llH\000B\005\n\003res\032t\n\010DataType\032\005\n\003Req\032a\n\003Res\0224\n" + "\010dataType\030\001 \001(\0162 .session.AttributeType." + "DATA_TYPEH\000\022\035\n\004null\030\002 \001(\0132\r.session.Null" + "H\000B\005\n\003res\032\'\n\010GetRegex\032\005\n\003Req\032\024\n\003Res\022\r\n\005r" + "egex\030\001 \001(\t\032\'\n\010SetRegex\032\024\n\003Req\022\r\n\005regex\030\001" + " \001(\t\032\005\n\003Res\"\\\n\tDATA_TYPE\022\n\n\006STRING\020\000\022\013\n\007", "BOOLEAN\020\001\022\013\n\007INTEGER\020\002\022\010\n\004LONG\020\003\022\t\n\005FLOA" + "T\020\004\022\n\n\006DOUBLE\020\005\022\010\n\004DATE\020\006\"\277\005\n\005Thing\032,\n\nI" + "sInferred\032\005\n\003Req\032\027\n\003Res\022\020\n\010inferred\030\001 \001(" + "\010\0324\n\004Type\032\005\n\003Req\032%\n\003Res\022\036\n\004type\030\001 \001(\0132\020." + "session.Concept\032w\n\004Keys\032/\n\003Req\022(\n\016attrib" + "uteTypes\030\001 \003(\0132\020.session.Concept\032>\n\004Iter" + "\022\n\n\002id\030\001 \001(\005\032*\n\003Res\022#\n\tattribute\030\001 \001(\0132\020" + ".session.Concept\032}\n\nAttributes\032/\n\003Req\022(\n" + "\016attributeTypes\030\001 \003(\0132\020.session.Concept\032" + ">\n\004Iter\022\n\n\002id\030\001 \001(\005\032*\n\003Res\022#\n\tattribute\030", "\001 \001(\0132\020.session.Concept\032r\n\tRelations\032&\n\003" + "Req\022\037\n\005roles\030\001 \003(\0132\020.session.Concept\032=\n\004" + "Iter\022\n\n\002id\030\001 \001(\005\032)\n\003Res\022\"\n\010relation\030\001 \001(" + "\0132\020.session.Concept\032I\n\005Roles\032\005\n\003Req\0329\n\004I" + "ter\022\n\n\002id\030\001 \001(\005\032%\n\003Res\022\036\n\004role\030\001 \001(\0132\020.s" + "ession.Concept\032_\n\006Relhas\032*\n\003Req\022#\n\tattri" + "bute\030\001 \001(\0132\020.session.Concept\032)\n\003Res\022\"\n\010r" + "elation\030\001 \001(\0132\020.session.Concept\032:\n\005Unhas" + "\032*\n\003Req\022#\n\tattribute\030\001 \001(\0132\020.session.Con" + "cept\032\005\n\003Res\"\251\003\n\010Relation\032t\n\016RolePlayersM", "ap\032\005\n\003Req\032[\n\004Iter\022\n\n\002id\030\001 \001(\005\032G\n\003Res\022\036\n\004" + "role\030\001 \001(\0132\020.session.Concept\022 \n\006player\030\002" + " \001(\0132\020.session.Concept\032q\n\013RolePlayers\032&\n" + "\003Req\022\037\n\005roles\030\001 \003(\0132\020.session.Concept\032:\n" + "\004Iter\022\n\n\002id\030\001 \001(\005\032&\n\003Res\022\037\n\005thing\030\001 \001(\0132" + "\020.session.Concept\032X\n\006Assign\032G\n\003Req\022\036\n\004ro" + "le\030\001 \001(\0132\020.session.Concept\022 \n\006player\030\002 \001" + "(\0132\020.session.Concept\032\005\n\003Res\032Z\n\010Unassign\032" + "G\n\003Req\022\036\n\004role\030\001 \001(\0132\020.session.Concept\022 " + "\n\006player\030\002 \001(\0132\020.session.Concept\032\005\n\003Res\"", "\224\001\n\tAttribute\032:\n\005Value\032\005\n\003Req\032*\n\003Res\022#\n\005" + "value\030\001 \001(\0132\024.session.ValueObject\032K\n\006Own" + "ers\032\005\n\003Req\032:\n\004Iter\022\n\n\002id\030\001 \001(\005\032&\n\003Res\022\037\n" + "\005thing\030\001 \001(\0132\020.session.Concept\"\221\001\n\013Value" + "Object\022\020\n\006string\030\001 \001(\tH\000\022\021\n\007boolean\030\002 \001(" + "\010H\000\022\021\n\007integer\030\003 \001(\005H\000\022\016\n\004long\030\004 \001(\003H\000\022\017" + "\n\005float\030\005 \001(\002H\000\022\020\n\006double\030\006 \001(\001H\000\022\016\n\004dat" + "e\030\007 \001(\003H\000B\007\n\005valueB\"\n\022ai.grakn.rpc.proto" + "B\014ConceptProtob\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_session_Method_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_session_Method_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Method_descriptor, new java.lang.String[] { }); internal_static_session_Method_Req_descriptor = internal_static_session_Method_descriptor.getNestedTypes().get(0); internal_static_session_Method_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Method_Req_descriptor, new java.lang.String[] { "ConceptDeleteReq", "SchemaConceptIsImplicitReq", "SchemaConceptGetLabelReq", "SchemaConceptSetLabelReq", "SchemaConceptGetSupReq", "SchemaConceptSetSupReq", "SchemaConceptSupsReq", "SchemaConceptSubsReq", "RuleWhenReq", "RuleThenReq", "RoleRelationsReq", "RolePlayersReq", "TypeIsAbstractReq", "TypeSetAbstractReq", "TypeInstancesReq", "TypeKeysReq", "TypeAttributesReq", "TypePlayingReq", "TypeHasReq", "TypeKeyReq", "TypePlaysReq", "TypeUnhasReq", "TypeUnkeyReq", "TypeUnplayReq", "EntityTypeCreateReq", "RelationTypeCreateReq", "RelationTypeRolesReq", "RelationTypeRelatesReq", "RelationTypeUnrelateReq", "AttributeTypeCreateReq", "AttributeTypeAttributeReq", "AttributeTypeDataTypeReq", "AttributeTypeGetRegexReq", "AttributeTypeSetRegexReq", "ThingTypeReq", "ThingIsInferredReq", "ThingKeysReq", "ThingAttributesReq", "ThingRelationsReq", "ThingRolesReq", "ThingRelhasReq", "ThingUnhasReq", "RelationRolePlayersMapReq", "RelationRolePlayersReq", "RelationAssignReq", "RelationUnassignReq", "AttributeValueReq", "AttributeOwnersReq", "Req", }); internal_static_session_Method_Res_descriptor = internal_static_session_Method_descriptor.getNestedTypes().get(1); internal_static_session_Method_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Method_Res_descriptor, new java.lang.String[] { "ConceptDeleteRes", "SchemaConceptIsImplicitRes", "SchemaConceptGetLabelRes", "SchemaConceptSetLabelRes", "SchemaConceptGetSupRes", "SchemaConceptSetSupRes", "SchemaConceptSupsIter", "SchemaConceptSubsIter", "RuleWhenRes", "RuleThenRes", "RoleRelationsIter", "RolePlayersIter", "TypeIsAbstractRes", "TypeSetAbstractRes", "TypeInstancesIter", "TypeKeysIter", "TypeAttributesIter", "TypePlayingIter", "TypeHasRes", "TypeKeyRes", "TypePlaysRes", "TypeUnhasRes", "TypeUnkeyRes", "TypeUnplayRes", "EntityTypeCreateRes", "RelationTypeCreateRes", "RelationTypeRolesIter", "RelationTypeRelatesRes", "RelationTypeUnrelateRes", "AttributeTypeCreateRes", "AttributeTypeAttributeRes", "AttributeTypeDataTypeRes", "AttributeTypeGetRegexRes", "AttributeTypeSetRegexRes", "ThingTypeRes", "ThingIsInferredRes", "ThingKeysIter", "ThingAttributesIter", "ThingRelationsIter", "ThingRolesIter", "ThingRelhasRes", "ThingUnhasRes", "RelationRolePlayersMapIter", "RelationRolePlayersIter", "RelationAssignRes", "RelationUnassignRes", "AttributeValueRes", "AttributeOwnersIter", "Res", }); internal_static_session_Method_Iter_descriptor = internal_static_session_Method_descriptor.getNestedTypes().get(2); internal_static_session_Method_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Method_Iter_descriptor, new java.lang.String[] { }); internal_static_session_Method_Iter_Res_descriptor = internal_static_session_Method_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Method_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Method_Iter_Res_descriptor, new java.lang.String[] { "SchemaConceptSupsIterRes", "SchemaConceptSubsIterRes", "RoleRelationsIterRes", "RolePlayersIterRes", "TypeInstancesIterRes", "TypeKeysIterRes", "TypeAttributesIterRes", "TypePlayingIterRes", "RelationTypeRolesIterRes", "ThingKeysIterRes", "ThingAttributesIterRes", "ThingRelationsIterRes", "ThingRolesIterRes", "RelationRolePlayersMapIterRes", "RelationRolePlayersIterRes", "AttributeOwnersIterRes", }); internal_static_session_Null_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_session_Null_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Null_descriptor, new java.lang.String[] { }); internal_static_session_Concept_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_session_Concept_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Concept_descriptor, new java.lang.String[] { "Id", "BaseType", }); internal_static_session_Concept_Delete_descriptor = internal_static_session_Concept_descriptor.getNestedTypes().get(0); internal_static_session_Concept_Delete_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Concept_Delete_descriptor, new java.lang.String[] { }); internal_static_session_Concept_Delete_Req_descriptor = internal_static_session_Concept_Delete_descriptor.getNestedTypes().get(0); internal_static_session_Concept_Delete_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Concept_Delete_Req_descriptor, new java.lang.String[] { }); internal_static_session_Concept_Delete_Res_descriptor = internal_static_session_Concept_Delete_descriptor.getNestedTypes().get(1); internal_static_session_Concept_Delete_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Concept_Delete_Res_descriptor, new java.lang.String[] { }); internal_static_session_SchemaConcept_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_session_SchemaConcept_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_descriptor, new java.lang.String[] { }); internal_static_session_SchemaConcept_GetLabel_descriptor = internal_static_session_SchemaConcept_descriptor.getNestedTypes().get(0); internal_static_session_SchemaConcept_GetLabel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_GetLabel_descriptor, new java.lang.String[] { }); internal_static_session_SchemaConcept_GetLabel_Req_descriptor = internal_static_session_SchemaConcept_GetLabel_descriptor.getNestedTypes().get(0); internal_static_session_SchemaConcept_GetLabel_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_GetLabel_Req_descriptor, new java.lang.String[] { }); internal_static_session_SchemaConcept_GetLabel_Res_descriptor = internal_static_session_SchemaConcept_GetLabel_descriptor.getNestedTypes().get(1); internal_static_session_SchemaConcept_GetLabel_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_GetLabel_Res_descriptor, new java.lang.String[] { "Label", }); internal_static_session_SchemaConcept_SetLabel_descriptor = internal_static_session_SchemaConcept_descriptor.getNestedTypes().get(1); internal_static_session_SchemaConcept_SetLabel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_SetLabel_descriptor, new java.lang.String[] { }); internal_static_session_SchemaConcept_SetLabel_Req_descriptor = internal_static_session_SchemaConcept_SetLabel_descriptor.getNestedTypes().get(0); internal_static_session_SchemaConcept_SetLabel_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_SetLabel_Req_descriptor, new java.lang.String[] { "Label", }); internal_static_session_SchemaConcept_SetLabel_Res_descriptor = internal_static_session_SchemaConcept_SetLabel_descriptor.getNestedTypes().get(1); internal_static_session_SchemaConcept_SetLabel_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_SetLabel_Res_descriptor, new java.lang.String[] { }); internal_static_session_SchemaConcept_IsImplicit_descriptor = internal_static_session_SchemaConcept_descriptor.getNestedTypes().get(2); internal_static_session_SchemaConcept_IsImplicit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_IsImplicit_descriptor, new java.lang.String[] { }); internal_static_session_SchemaConcept_IsImplicit_Req_descriptor = internal_static_session_SchemaConcept_IsImplicit_descriptor.getNestedTypes().get(0); internal_static_session_SchemaConcept_IsImplicit_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_IsImplicit_Req_descriptor, new java.lang.String[] { }); internal_static_session_SchemaConcept_IsImplicit_Res_descriptor = internal_static_session_SchemaConcept_IsImplicit_descriptor.getNestedTypes().get(1); internal_static_session_SchemaConcept_IsImplicit_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_IsImplicit_Res_descriptor, new java.lang.String[] { "Implicit", }); internal_static_session_SchemaConcept_GetSup_descriptor = internal_static_session_SchemaConcept_descriptor.getNestedTypes().get(3); internal_static_session_SchemaConcept_GetSup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_GetSup_descriptor, new java.lang.String[] { }); internal_static_session_SchemaConcept_GetSup_Req_descriptor = internal_static_session_SchemaConcept_GetSup_descriptor.getNestedTypes().get(0); internal_static_session_SchemaConcept_GetSup_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_GetSup_Req_descriptor, new java.lang.String[] { }); internal_static_session_SchemaConcept_GetSup_Res_descriptor = internal_static_session_SchemaConcept_GetSup_descriptor.getNestedTypes().get(1); internal_static_session_SchemaConcept_GetSup_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_GetSup_Res_descriptor, new java.lang.String[] { "SchemaConcept", "Null", "Res", }); internal_static_session_SchemaConcept_SetSup_descriptor = internal_static_session_SchemaConcept_descriptor.getNestedTypes().get(4); internal_static_session_SchemaConcept_SetSup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_SetSup_descriptor, new java.lang.String[] { }); internal_static_session_SchemaConcept_SetSup_Req_descriptor = internal_static_session_SchemaConcept_SetSup_descriptor.getNestedTypes().get(0); internal_static_session_SchemaConcept_SetSup_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_SetSup_Req_descriptor, new java.lang.String[] { "SchemaConcept", }); internal_static_session_SchemaConcept_SetSup_Res_descriptor = internal_static_session_SchemaConcept_SetSup_descriptor.getNestedTypes().get(1); internal_static_session_SchemaConcept_SetSup_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_SetSup_Res_descriptor, new java.lang.String[] { }); internal_static_session_SchemaConcept_Sups_descriptor = internal_static_session_SchemaConcept_descriptor.getNestedTypes().get(5); internal_static_session_SchemaConcept_Sups_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_Sups_descriptor, new java.lang.String[] { }); internal_static_session_SchemaConcept_Sups_Req_descriptor = internal_static_session_SchemaConcept_Sups_descriptor.getNestedTypes().get(0); internal_static_session_SchemaConcept_Sups_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_Sups_Req_descriptor, new java.lang.String[] { }); internal_static_session_SchemaConcept_Sups_Iter_descriptor = internal_static_session_SchemaConcept_Sups_descriptor.getNestedTypes().get(1); internal_static_session_SchemaConcept_Sups_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_Sups_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_SchemaConcept_Sups_Iter_Res_descriptor = internal_static_session_SchemaConcept_Sups_Iter_descriptor.getNestedTypes().get(0); internal_static_session_SchemaConcept_Sups_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_Sups_Iter_Res_descriptor, new java.lang.String[] { "SchemaConcept", }); internal_static_session_SchemaConcept_Subs_descriptor = internal_static_session_SchemaConcept_descriptor.getNestedTypes().get(6); internal_static_session_SchemaConcept_Subs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_Subs_descriptor, new java.lang.String[] { }); internal_static_session_SchemaConcept_Subs_Req_descriptor = internal_static_session_SchemaConcept_Subs_descriptor.getNestedTypes().get(0); internal_static_session_SchemaConcept_Subs_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_Subs_Req_descriptor, new java.lang.String[] { }); internal_static_session_SchemaConcept_Subs_Iter_descriptor = internal_static_session_SchemaConcept_Subs_descriptor.getNestedTypes().get(1); internal_static_session_SchemaConcept_Subs_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_Subs_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_SchemaConcept_Subs_Iter_Res_descriptor = internal_static_session_SchemaConcept_Subs_Iter_descriptor.getNestedTypes().get(0); internal_static_session_SchemaConcept_Subs_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_SchemaConcept_Subs_Iter_Res_descriptor, new java.lang.String[] { "SchemaConcept", }); internal_static_session_Rule_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_session_Rule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Rule_descriptor, new java.lang.String[] { }); internal_static_session_Rule_When_descriptor = internal_static_session_Rule_descriptor.getNestedTypes().get(0); internal_static_session_Rule_When_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Rule_When_descriptor, new java.lang.String[] { }); internal_static_session_Rule_When_Req_descriptor = internal_static_session_Rule_When_descriptor.getNestedTypes().get(0); internal_static_session_Rule_When_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Rule_When_Req_descriptor, new java.lang.String[] { }); internal_static_session_Rule_When_Res_descriptor = internal_static_session_Rule_When_descriptor.getNestedTypes().get(1); internal_static_session_Rule_When_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Rule_When_Res_descriptor, new java.lang.String[] { "Pattern", "Null", "Res", }); internal_static_session_Rule_Then_descriptor = internal_static_session_Rule_descriptor.getNestedTypes().get(1); internal_static_session_Rule_Then_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Rule_Then_descriptor, new java.lang.String[] { }); internal_static_session_Rule_Then_Req_descriptor = internal_static_session_Rule_Then_descriptor.getNestedTypes().get(0); internal_static_session_Rule_Then_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Rule_Then_Req_descriptor, new java.lang.String[] { }); internal_static_session_Rule_Then_Res_descriptor = internal_static_session_Rule_Then_descriptor.getNestedTypes().get(1); internal_static_session_Rule_Then_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Rule_Then_Res_descriptor, new java.lang.String[] { "Pattern", "Null", "Res", }); internal_static_session_Role_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_session_Role_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Role_descriptor, new java.lang.String[] { }); internal_static_session_Role_Relations_descriptor = internal_static_session_Role_descriptor.getNestedTypes().get(0); internal_static_session_Role_Relations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Role_Relations_descriptor, new java.lang.String[] { }); internal_static_session_Role_Relations_Req_descriptor = internal_static_session_Role_Relations_descriptor.getNestedTypes().get(0); internal_static_session_Role_Relations_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Role_Relations_Req_descriptor, new java.lang.String[] { }); internal_static_session_Role_Relations_Iter_descriptor = internal_static_session_Role_Relations_descriptor.getNestedTypes().get(1); internal_static_session_Role_Relations_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Role_Relations_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Role_Relations_Iter_Res_descriptor = internal_static_session_Role_Relations_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Role_Relations_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Role_Relations_Iter_Res_descriptor, new java.lang.String[] { "RelationType", }); internal_static_session_Role_Players_descriptor = internal_static_session_Role_descriptor.getNestedTypes().get(1); internal_static_session_Role_Players_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Role_Players_descriptor, new java.lang.String[] { }); internal_static_session_Role_Players_Req_descriptor = internal_static_session_Role_Players_descriptor.getNestedTypes().get(0); internal_static_session_Role_Players_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Role_Players_Req_descriptor, new java.lang.String[] { }); internal_static_session_Role_Players_Iter_descriptor = internal_static_session_Role_Players_descriptor.getNestedTypes().get(1); internal_static_session_Role_Players_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Role_Players_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Role_Players_Iter_Res_descriptor = internal_static_session_Role_Players_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Role_Players_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Role_Players_Iter_Res_descriptor, new java.lang.String[] { "Type", }); internal_static_session_Type_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_session_Type_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_descriptor, new java.lang.String[] { }); internal_static_session_Type_IsAbstract_descriptor = internal_static_session_Type_descriptor.getNestedTypes().get(0); internal_static_session_Type_IsAbstract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_IsAbstract_descriptor, new java.lang.String[] { }); internal_static_session_Type_IsAbstract_Req_descriptor = internal_static_session_Type_IsAbstract_descriptor.getNestedTypes().get(0); internal_static_session_Type_IsAbstract_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_IsAbstract_Req_descriptor, new java.lang.String[] { }); internal_static_session_Type_IsAbstract_Res_descriptor = internal_static_session_Type_IsAbstract_descriptor.getNestedTypes().get(1); internal_static_session_Type_IsAbstract_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_IsAbstract_Res_descriptor, new java.lang.String[] { "Abstract", }); internal_static_session_Type_SetAbstract_descriptor = internal_static_session_Type_descriptor.getNestedTypes().get(1); internal_static_session_Type_SetAbstract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_SetAbstract_descriptor, new java.lang.String[] { }); internal_static_session_Type_SetAbstract_Req_descriptor = internal_static_session_Type_SetAbstract_descriptor.getNestedTypes().get(0); internal_static_session_Type_SetAbstract_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_SetAbstract_Req_descriptor, new java.lang.String[] { "Abstract", }); internal_static_session_Type_SetAbstract_Res_descriptor = internal_static_session_Type_SetAbstract_descriptor.getNestedTypes().get(1); internal_static_session_Type_SetAbstract_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_SetAbstract_Res_descriptor, new java.lang.String[] { }); internal_static_session_Type_Instances_descriptor = internal_static_session_Type_descriptor.getNestedTypes().get(2); internal_static_session_Type_Instances_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Instances_descriptor, new java.lang.String[] { }); internal_static_session_Type_Instances_Req_descriptor = internal_static_session_Type_Instances_descriptor.getNestedTypes().get(0); internal_static_session_Type_Instances_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Instances_Req_descriptor, new java.lang.String[] { }); internal_static_session_Type_Instances_Iter_descriptor = internal_static_session_Type_Instances_descriptor.getNestedTypes().get(1); internal_static_session_Type_Instances_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Instances_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Type_Instances_Iter_Res_descriptor = internal_static_session_Type_Instances_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Type_Instances_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Instances_Iter_Res_descriptor, new java.lang.String[] { "Thing", }); internal_static_session_Type_Attributes_descriptor = internal_static_session_Type_descriptor.getNestedTypes().get(3); internal_static_session_Type_Attributes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Attributes_descriptor, new java.lang.String[] { }); internal_static_session_Type_Attributes_Req_descriptor = internal_static_session_Type_Attributes_descriptor.getNestedTypes().get(0); internal_static_session_Type_Attributes_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Attributes_Req_descriptor, new java.lang.String[] { }); internal_static_session_Type_Attributes_Iter_descriptor = internal_static_session_Type_Attributes_descriptor.getNestedTypes().get(1); internal_static_session_Type_Attributes_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Attributes_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Type_Attributes_Iter_Res_descriptor = internal_static_session_Type_Attributes_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Type_Attributes_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Attributes_Iter_Res_descriptor, new java.lang.String[] { "AttributeType", }); internal_static_session_Type_Keys_descriptor = internal_static_session_Type_descriptor.getNestedTypes().get(4); internal_static_session_Type_Keys_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Keys_descriptor, new java.lang.String[] { }); internal_static_session_Type_Keys_Req_descriptor = internal_static_session_Type_Keys_descriptor.getNestedTypes().get(0); internal_static_session_Type_Keys_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Keys_Req_descriptor, new java.lang.String[] { }); internal_static_session_Type_Keys_Iter_descriptor = internal_static_session_Type_Keys_descriptor.getNestedTypes().get(1); internal_static_session_Type_Keys_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Keys_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Type_Keys_Iter_Res_descriptor = internal_static_session_Type_Keys_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Type_Keys_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Keys_Iter_Res_descriptor, new java.lang.String[] { "AttributeType", }); internal_static_session_Type_Playing_descriptor = internal_static_session_Type_descriptor.getNestedTypes().get(5); internal_static_session_Type_Playing_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Playing_descriptor, new java.lang.String[] { }); internal_static_session_Type_Playing_Req_descriptor = internal_static_session_Type_Playing_descriptor.getNestedTypes().get(0); internal_static_session_Type_Playing_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Playing_Req_descriptor, new java.lang.String[] { }); internal_static_session_Type_Playing_Iter_descriptor = internal_static_session_Type_Playing_descriptor.getNestedTypes().get(1); internal_static_session_Type_Playing_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Playing_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Type_Playing_Iter_Res_descriptor = internal_static_session_Type_Playing_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Type_Playing_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Playing_Iter_Res_descriptor, new java.lang.String[] { "Role", }); internal_static_session_Type_Key_descriptor = internal_static_session_Type_descriptor.getNestedTypes().get(6); internal_static_session_Type_Key_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Key_descriptor, new java.lang.String[] { }); internal_static_session_Type_Key_Req_descriptor = internal_static_session_Type_Key_descriptor.getNestedTypes().get(0); internal_static_session_Type_Key_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Key_Req_descriptor, new java.lang.String[] { "AttributeType", }); internal_static_session_Type_Key_Res_descriptor = internal_static_session_Type_Key_descriptor.getNestedTypes().get(1); internal_static_session_Type_Key_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Key_Res_descriptor, new java.lang.String[] { }); internal_static_session_Type_Has_descriptor = internal_static_session_Type_descriptor.getNestedTypes().get(7); internal_static_session_Type_Has_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Has_descriptor, new java.lang.String[] { }); internal_static_session_Type_Has_Req_descriptor = internal_static_session_Type_Has_descriptor.getNestedTypes().get(0); internal_static_session_Type_Has_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Has_Req_descriptor, new java.lang.String[] { "AttributeType", }); internal_static_session_Type_Has_Res_descriptor = internal_static_session_Type_Has_descriptor.getNestedTypes().get(1); internal_static_session_Type_Has_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Has_Res_descriptor, new java.lang.String[] { }); internal_static_session_Type_Plays_descriptor = internal_static_session_Type_descriptor.getNestedTypes().get(8); internal_static_session_Type_Plays_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Plays_descriptor, new java.lang.String[] { }); internal_static_session_Type_Plays_Req_descriptor = internal_static_session_Type_Plays_descriptor.getNestedTypes().get(0); internal_static_session_Type_Plays_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Plays_Req_descriptor, new java.lang.String[] { "Role", }); internal_static_session_Type_Plays_Res_descriptor = internal_static_session_Type_Plays_descriptor.getNestedTypes().get(1); internal_static_session_Type_Plays_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Plays_Res_descriptor, new java.lang.String[] { }); internal_static_session_Type_Unkey_descriptor = internal_static_session_Type_descriptor.getNestedTypes().get(9); internal_static_session_Type_Unkey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Unkey_descriptor, new java.lang.String[] { }); internal_static_session_Type_Unkey_Req_descriptor = internal_static_session_Type_Unkey_descriptor.getNestedTypes().get(0); internal_static_session_Type_Unkey_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Unkey_Req_descriptor, new java.lang.String[] { "AttributeType", }); internal_static_session_Type_Unkey_Res_descriptor = internal_static_session_Type_Unkey_descriptor.getNestedTypes().get(1); internal_static_session_Type_Unkey_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Unkey_Res_descriptor, new java.lang.String[] { }); internal_static_session_Type_Unhas_descriptor = internal_static_session_Type_descriptor.getNestedTypes().get(10); internal_static_session_Type_Unhas_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Unhas_descriptor, new java.lang.String[] { }); internal_static_session_Type_Unhas_Req_descriptor = internal_static_session_Type_Unhas_descriptor.getNestedTypes().get(0); internal_static_session_Type_Unhas_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Unhas_Req_descriptor, new java.lang.String[] { "AttributeType", }); internal_static_session_Type_Unhas_Res_descriptor = internal_static_session_Type_Unhas_descriptor.getNestedTypes().get(1); internal_static_session_Type_Unhas_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Unhas_Res_descriptor, new java.lang.String[] { }); internal_static_session_Type_Unplay_descriptor = internal_static_session_Type_descriptor.getNestedTypes().get(11); internal_static_session_Type_Unplay_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Unplay_descriptor, new java.lang.String[] { }); internal_static_session_Type_Unplay_Req_descriptor = internal_static_session_Type_Unplay_descriptor.getNestedTypes().get(0); internal_static_session_Type_Unplay_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Unplay_Req_descriptor, new java.lang.String[] { "Role", }); internal_static_session_Type_Unplay_Res_descriptor = internal_static_session_Type_Unplay_descriptor.getNestedTypes().get(1); internal_static_session_Type_Unplay_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Type_Unplay_Res_descriptor, new java.lang.String[] { }); internal_static_session_EntityType_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_session_EntityType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_EntityType_descriptor, new java.lang.String[] { }); internal_static_session_EntityType_Create_descriptor = internal_static_session_EntityType_descriptor.getNestedTypes().get(0); internal_static_session_EntityType_Create_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_EntityType_Create_descriptor, new java.lang.String[] { }); internal_static_session_EntityType_Create_Req_descriptor = internal_static_session_EntityType_Create_descriptor.getNestedTypes().get(0); internal_static_session_EntityType_Create_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_EntityType_Create_Req_descriptor, new java.lang.String[] { }); internal_static_session_EntityType_Create_Res_descriptor = internal_static_session_EntityType_Create_descriptor.getNestedTypes().get(1); internal_static_session_EntityType_Create_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_EntityType_Create_Res_descriptor, new java.lang.String[] { "Entity", }); internal_static_session_RelationType_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_session_RelationType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_RelationType_descriptor, new java.lang.String[] { }); internal_static_session_RelationType_Create_descriptor = internal_static_session_RelationType_descriptor.getNestedTypes().get(0); internal_static_session_RelationType_Create_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_RelationType_Create_descriptor, new java.lang.String[] { }); internal_static_session_RelationType_Create_Req_descriptor = internal_static_session_RelationType_Create_descriptor.getNestedTypes().get(0); internal_static_session_RelationType_Create_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_RelationType_Create_Req_descriptor, new java.lang.String[] { }); internal_static_session_RelationType_Create_Res_descriptor = internal_static_session_RelationType_Create_descriptor.getNestedTypes().get(1); internal_static_session_RelationType_Create_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_RelationType_Create_Res_descriptor, new java.lang.String[] { "Relation", }); internal_static_session_RelationType_Roles_descriptor = internal_static_session_RelationType_descriptor.getNestedTypes().get(1); internal_static_session_RelationType_Roles_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_RelationType_Roles_descriptor, new java.lang.String[] { }); internal_static_session_RelationType_Roles_Req_descriptor = internal_static_session_RelationType_Roles_descriptor.getNestedTypes().get(0); internal_static_session_RelationType_Roles_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_RelationType_Roles_Req_descriptor, new java.lang.String[] { }); internal_static_session_RelationType_Roles_Iter_descriptor = internal_static_session_RelationType_Roles_descriptor.getNestedTypes().get(1); internal_static_session_RelationType_Roles_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_RelationType_Roles_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_RelationType_Roles_Iter_Res_descriptor = internal_static_session_RelationType_Roles_Iter_descriptor.getNestedTypes().get(0); internal_static_session_RelationType_Roles_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_RelationType_Roles_Iter_Res_descriptor, new java.lang.String[] { "Role", }); internal_static_session_RelationType_Relates_descriptor = internal_static_session_RelationType_descriptor.getNestedTypes().get(2); internal_static_session_RelationType_Relates_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_RelationType_Relates_descriptor, new java.lang.String[] { }); internal_static_session_RelationType_Relates_Req_descriptor = internal_static_session_RelationType_Relates_descriptor.getNestedTypes().get(0); internal_static_session_RelationType_Relates_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_RelationType_Relates_Req_descriptor, new java.lang.String[] { "Role", }); internal_static_session_RelationType_Relates_Res_descriptor = internal_static_session_RelationType_Relates_descriptor.getNestedTypes().get(1); internal_static_session_RelationType_Relates_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_RelationType_Relates_Res_descriptor, new java.lang.String[] { }); internal_static_session_RelationType_Unrelate_descriptor = internal_static_session_RelationType_descriptor.getNestedTypes().get(3); internal_static_session_RelationType_Unrelate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_RelationType_Unrelate_descriptor, new java.lang.String[] { }); internal_static_session_RelationType_Unrelate_Req_descriptor = internal_static_session_RelationType_Unrelate_descriptor.getNestedTypes().get(0); internal_static_session_RelationType_Unrelate_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_RelationType_Unrelate_Req_descriptor, new java.lang.String[] { "Role", }); internal_static_session_RelationType_Unrelate_Res_descriptor = internal_static_session_RelationType_Unrelate_descriptor.getNestedTypes().get(1); internal_static_session_RelationType_Unrelate_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_RelationType_Unrelate_Res_descriptor, new java.lang.String[] { }); internal_static_session_AttributeType_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_session_AttributeType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AttributeType_descriptor, new java.lang.String[] { }); internal_static_session_AttributeType_Create_descriptor = internal_static_session_AttributeType_descriptor.getNestedTypes().get(0); internal_static_session_AttributeType_Create_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AttributeType_Create_descriptor, new java.lang.String[] { }); internal_static_session_AttributeType_Create_Req_descriptor = internal_static_session_AttributeType_Create_descriptor.getNestedTypes().get(0); internal_static_session_AttributeType_Create_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AttributeType_Create_Req_descriptor, new java.lang.String[] { "Value", }); internal_static_session_AttributeType_Create_Res_descriptor = internal_static_session_AttributeType_Create_descriptor.getNestedTypes().get(1); internal_static_session_AttributeType_Create_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AttributeType_Create_Res_descriptor, new java.lang.String[] { "Attribute", }); internal_static_session_AttributeType_Attribute_descriptor = internal_static_session_AttributeType_descriptor.getNestedTypes().get(1); internal_static_session_AttributeType_Attribute_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AttributeType_Attribute_descriptor, new java.lang.String[] { }); internal_static_session_AttributeType_Attribute_Req_descriptor = internal_static_session_AttributeType_Attribute_descriptor.getNestedTypes().get(0); internal_static_session_AttributeType_Attribute_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AttributeType_Attribute_Req_descriptor, new java.lang.String[] { "Value", }); internal_static_session_AttributeType_Attribute_Res_descriptor = internal_static_session_AttributeType_Attribute_descriptor.getNestedTypes().get(1); internal_static_session_AttributeType_Attribute_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AttributeType_Attribute_Res_descriptor, new java.lang.String[] { "Attribute", "Null", "Res", }); internal_static_session_AttributeType_DataType_descriptor = internal_static_session_AttributeType_descriptor.getNestedTypes().get(2); internal_static_session_AttributeType_DataType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AttributeType_DataType_descriptor, new java.lang.String[] { }); internal_static_session_AttributeType_DataType_Req_descriptor = internal_static_session_AttributeType_DataType_descriptor.getNestedTypes().get(0); internal_static_session_AttributeType_DataType_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AttributeType_DataType_Req_descriptor, new java.lang.String[] { }); internal_static_session_AttributeType_DataType_Res_descriptor = internal_static_session_AttributeType_DataType_descriptor.getNestedTypes().get(1); internal_static_session_AttributeType_DataType_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AttributeType_DataType_Res_descriptor, new java.lang.String[] { "DataType", "Null", "Res", }); internal_static_session_AttributeType_GetRegex_descriptor = internal_static_session_AttributeType_descriptor.getNestedTypes().get(3); internal_static_session_AttributeType_GetRegex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AttributeType_GetRegex_descriptor, new java.lang.String[] { }); internal_static_session_AttributeType_GetRegex_Req_descriptor = internal_static_session_AttributeType_GetRegex_descriptor.getNestedTypes().get(0); internal_static_session_AttributeType_GetRegex_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AttributeType_GetRegex_Req_descriptor, new java.lang.String[] { }); internal_static_session_AttributeType_GetRegex_Res_descriptor = internal_static_session_AttributeType_GetRegex_descriptor.getNestedTypes().get(1); internal_static_session_AttributeType_GetRegex_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AttributeType_GetRegex_Res_descriptor, new java.lang.String[] { "Regex", }); internal_static_session_AttributeType_SetRegex_descriptor = internal_static_session_AttributeType_descriptor.getNestedTypes().get(4); internal_static_session_AttributeType_SetRegex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AttributeType_SetRegex_descriptor, new java.lang.String[] { }); internal_static_session_AttributeType_SetRegex_Req_descriptor = internal_static_session_AttributeType_SetRegex_descriptor.getNestedTypes().get(0); internal_static_session_AttributeType_SetRegex_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AttributeType_SetRegex_Req_descriptor, new java.lang.String[] { "Regex", }); internal_static_session_AttributeType_SetRegex_Res_descriptor = internal_static_session_AttributeType_SetRegex_descriptor.getNestedTypes().get(1); internal_static_session_AttributeType_SetRegex_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_AttributeType_SetRegex_Res_descriptor, new java.lang.String[] { }); internal_static_session_Thing_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_session_Thing_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_descriptor, new java.lang.String[] { }); internal_static_session_Thing_IsInferred_descriptor = internal_static_session_Thing_descriptor.getNestedTypes().get(0); internal_static_session_Thing_IsInferred_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_IsInferred_descriptor, new java.lang.String[] { }); internal_static_session_Thing_IsInferred_Req_descriptor = internal_static_session_Thing_IsInferred_descriptor.getNestedTypes().get(0); internal_static_session_Thing_IsInferred_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_IsInferred_Req_descriptor, new java.lang.String[] { }); internal_static_session_Thing_IsInferred_Res_descriptor = internal_static_session_Thing_IsInferred_descriptor.getNestedTypes().get(1); internal_static_session_Thing_IsInferred_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_IsInferred_Res_descriptor, new java.lang.String[] { "Inferred", }); internal_static_session_Thing_Type_descriptor = internal_static_session_Thing_descriptor.getNestedTypes().get(1); internal_static_session_Thing_Type_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Type_descriptor, new java.lang.String[] { }); internal_static_session_Thing_Type_Req_descriptor = internal_static_session_Thing_Type_descriptor.getNestedTypes().get(0); internal_static_session_Thing_Type_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Type_Req_descriptor, new java.lang.String[] { }); internal_static_session_Thing_Type_Res_descriptor = internal_static_session_Thing_Type_descriptor.getNestedTypes().get(1); internal_static_session_Thing_Type_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Type_Res_descriptor, new java.lang.String[] { "Type", }); internal_static_session_Thing_Keys_descriptor = internal_static_session_Thing_descriptor.getNestedTypes().get(2); internal_static_session_Thing_Keys_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Keys_descriptor, new java.lang.String[] { }); internal_static_session_Thing_Keys_Req_descriptor = internal_static_session_Thing_Keys_descriptor.getNestedTypes().get(0); internal_static_session_Thing_Keys_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Keys_Req_descriptor, new java.lang.String[] { "AttributeTypes", }); internal_static_session_Thing_Keys_Iter_descriptor = internal_static_session_Thing_Keys_descriptor.getNestedTypes().get(1); internal_static_session_Thing_Keys_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Keys_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Thing_Keys_Iter_Res_descriptor = internal_static_session_Thing_Keys_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Thing_Keys_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Keys_Iter_Res_descriptor, new java.lang.String[] { "Attribute", }); internal_static_session_Thing_Attributes_descriptor = internal_static_session_Thing_descriptor.getNestedTypes().get(3); internal_static_session_Thing_Attributes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Attributes_descriptor, new java.lang.String[] { }); internal_static_session_Thing_Attributes_Req_descriptor = internal_static_session_Thing_Attributes_descriptor.getNestedTypes().get(0); internal_static_session_Thing_Attributes_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Attributes_Req_descriptor, new java.lang.String[] { "AttributeTypes", }); internal_static_session_Thing_Attributes_Iter_descriptor = internal_static_session_Thing_Attributes_descriptor.getNestedTypes().get(1); internal_static_session_Thing_Attributes_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Attributes_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Thing_Attributes_Iter_Res_descriptor = internal_static_session_Thing_Attributes_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Thing_Attributes_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Attributes_Iter_Res_descriptor, new java.lang.String[] { "Attribute", }); internal_static_session_Thing_Relations_descriptor = internal_static_session_Thing_descriptor.getNestedTypes().get(4); internal_static_session_Thing_Relations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Relations_descriptor, new java.lang.String[] { }); internal_static_session_Thing_Relations_Req_descriptor = internal_static_session_Thing_Relations_descriptor.getNestedTypes().get(0); internal_static_session_Thing_Relations_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Relations_Req_descriptor, new java.lang.String[] { "Roles", }); internal_static_session_Thing_Relations_Iter_descriptor = internal_static_session_Thing_Relations_descriptor.getNestedTypes().get(1); internal_static_session_Thing_Relations_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Relations_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Thing_Relations_Iter_Res_descriptor = internal_static_session_Thing_Relations_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Thing_Relations_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Relations_Iter_Res_descriptor, new java.lang.String[] { "Relation", }); internal_static_session_Thing_Roles_descriptor = internal_static_session_Thing_descriptor.getNestedTypes().get(5); internal_static_session_Thing_Roles_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Roles_descriptor, new java.lang.String[] { }); internal_static_session_Thing_Roles_Req_descriptor = internal_static_session_Thing_Roles_descriptor.getNestedTypes().get(0); internal_static_session_Thing_Roles_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Roles_Req_descriptor, new java.lang.String[] { }); internal_static_session_Thing_Roles_Iter_descriptor = internal_static_session_Thing_Roles_descriptor.getNestedTypes().get(1); internal_static_session_Thing_Roles_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Roles_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Thing_Roles_Iter_Res_descriptor = internal_static_session_Thing_Roles_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Thing_Roles_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Roles_Iter_Res_descriptor, new java.lang.String[] { "Role", }); internal_static_session_Thing_Relhas_descriptor = internal_static_session_Thing_descriptor.getNestedTypes().get(6); internal_static_session_Thing_Relhas_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Relhas_descriptor, new java.lang.String[] { }); internal_static_session_Thing_Relhas_Req_descriptor = internal_static_session_Thing_Relhas_descriptor.getNestedTypes().get(0); internal_static_session_Thing_Relhas_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Relhas_Req_descriptor, new java.lang.String[] { "Attribute", }); internal_static_session_Thing_Relhas_Res_descriptor = internal_static_session_Thing_Relhas_descriptor.getNestedTypes().get(1); internal_static_session_Thing_Relhas_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Relhas_Res_descriptor, new java.lang.String[] { "Relation", }); internal_static_session_Thing_Unhas_descriptor = internal_static_session_Thing_descriptor.getNestedTypes().get(7); internal_static_session_Thing_Unhas_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Unhas_descriptor, new java.lang.String[] { }); internal_static_session_Thing_Unhas_Req_descriptor = internal_static_session_Thing_Unhas_descriptor.getNestedTypes().get(0); internal_static_session_Thing_Unhas_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Unhas_Req_descriptor, new java.lang.String[] { "Attribute", }); internal_static_session_Thing_Unhas_Res_descriptor = internal_static_session_Thing_Unhas_descriptor.getNestedTypes().get(1); internal_static_session_Thing_Unhas_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Thing_Unhas_Res_descriptor, new java.lang.String[] { }); internal_static_session_Relation_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_session_Relation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Relation_descriptor, new java.lang.String[] { }); internal_static_session_Relation_RolePlayersMap_descriptor = internal_static_session_Relation_descriptor.getNestedTypes().get(0); internal_static_session_Relation_RolePlayersMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Relation_RolePlayersMap_descriptor, new java.lang.String[] { }); internal_static_session_Relation_RolePlayersMap_Req_descriptor = internal_static_session_Relation_RolePlayersMap_descriptor.getNestedTypes().get(0); internal_static_session_Relation_RolePlayersMap_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Relation_RolePlayersMap_Req_descriptor, new java.lang.String[] { }); internal_static_session_Relation_RolePlayersMap_Iter_descriptor = internal_static_session_Relation_RolePlayersMap_descriptor.getNestedTypes().get(1); internal_static_session_Relation_RolePlayersMap_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Relation_RolePlayersMap_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Relation_RolePlayersMap_Iter_Res_descriptor = internal_static_session_Relation_RolePlayersMap_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Relation_RolePlayersMap_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Relation_RolePlayersMap_Iter_Res_descriptor, new java.lang.String[] { "Role", "Player", }); internal_static_session_Relation_RolePlayers_descriptor = internal_static_session_Relation_descriptor.getNestedTypes().get(1); internal_static_session_Relation_RolePlayers_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Relation_RolePlayers_descriptor, new java.lang.String[] { }); internal_static_session_Relation_RolePlayers_Req_descriptor = internal_static_session_Relation_RolePlayers_descriptor.getNestedTypes().get(0); internal_static_session_Relation_RolePlayers_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Relation_RolePlayers_Req_descriptor, new java.lang.String[] { "Roles", }); internal_static_session_Relation_RolePlayers_Iter_descriptor = internal_static_session_Relation_RolePlayers_descriptor.getNestedTypes().get(1); internal_static_session_Relation_RolePlayers_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Relation_RolePlayers_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Relation_RolePlayers_Iter_Res_descriptor = internal_static_session_Relation_RolePlayers_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Relation_RolePlayers_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Relation_RolePlayers_Iter_Res_descriptor, new java.lang.String[] { "Thing", }); internal_static_session_Relation_Assign_descriptor = internal_static_session_Relation_descriptor.getNestedTypes().get(2); internal_static_session_Relation_Assign_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Relation_Assign_descriptor, new java.lang.String[] { }); internal_static_session_Relation_Assign_Req_descriptor = internal_static_session_Relation_Assign_descriptor.getNestedTypes().get(0); internal_static_session_Relation_Assign_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Relation_Assign_Req_descriptor, new java.lang.String[] { "Role", "Player", }); internal_static_session_Relation_Assign_Res_descriptor = internal_static_session_Relation_Assign_descriptor.getNestedTypes().get(1); internal_static_session_Relation_Assign_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Relation_Assign_Res_descriptor, new java.lang.String[] { }); internal_static_session_Relation_Unassign_descriptor = internal_static_session_Relation_descriptor.getNestedTypes().get(3); internal_static_session_Relation_Unassign_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Relation_Unassign_descriptor, new java.lang.String[] { }); internal_static_session_Relation_Unassign_Req_descriptor = internal_static_session_Relation_Unassign_descriptor.getNestedTypes().get(0); internal_static_session_Relation_Unassign_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Relation_Unassign_Req_descriptor, new java.lang.String[] { "Role", "Player", }); internal_static_session_Relation_Unassign_Res_descriptor = internal_static_session_Relation_Unassign_descriptor.getNestedTypes().get(1); internal_static_session_Relation_Unassign_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Relation_Unassign_Res_descriptor, new java.lang.String[] { }); internal_static_session_Attribute_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_session_Attribute_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Attribute_descriptor, new java.lang.String[] { }); internal_static_session_Attribute_Value_descriptor = internal_static_session_Attribute_descriptor.getNestedTypes().get(0); internal_static_session_Attribute_Value_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Attribute_Value_descriptor, new java.lang.String[] { }); internal_static_session_Attribute_Value_Req_descriptor = internal_static_session_Attribute_Value_descriptor.getNestedTypes().get(0); internal_static_session_Attribute_Value_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Attribute_Value_Req_descriptor, new java.lang.String[] { }); internal_static_session_Attribute_Value_Res_descriptor = internal_static_session_Attribute_Value_descriptor.getNestedTypes().get(1); internal_static_session_Attribute_Value_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Attribute_Value_Res_descriptor, new java.lang.String[] { "Value", }); internal_static_session_Attribute_Owners_descriptor = internal_static_session_Attribute_descriptor.getNestedTypes().get(1); internal_static_session_Attribute_Owners_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Attribute_Owners_descriptor, new java.lang.String[] { }); internal_static_session_Attribute_Owners_Req_descriptor = internal_static_session_Attribute_Owners_descriptor.getNestedTypes().get(0); internal_static_session_Attribute_Owners_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Attribute_Owners_Req_descriptor, new java.lang.String[] { }); internal_static_session_Attribute_Owners_Iter_descriptor = internal_static_session_Attribute_Owners_descriptor.getNestedTypes().get(1); internal_static_session_Attribute_Owners_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Attribute_Owners_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Attribute_Owners_Iter_Res_descriptor = internal_static_session_Attribute_Owners_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Attribute_Owners_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Attribute_Owners_Iter_Res_descriptor, new java.lang.String[] { "Thing", }); internal_static_session_ValueObject_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_session_ValueObject_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_ValueObject_descriptor, new java.lang.String[] { "String", "Boolean", "Integer", "Long", "Float", "Double", "Date", "Value", }); } // @@protoc_insertion_point(outer_class_scope) }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/rpc
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/rpc/proto/KeyspaceProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Keyspace.proto package ai.grakn.rpc.proto; public final class KeyspaceProto { private KeyspaceProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface KeyspaceOrBuilder extends // @@protoc_insertion_point(interface_extends:keyspace.Keyspace) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code keyspace.Keyspace} */ public static final class Keyspace extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:keyspace.Keyspace) KeyspaceOrBuilder { // Use Keyspace.newBuilder() to construct. private Keyspace(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Keyspace() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Keyspace( 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.KeyspaceProto.internal_static_keyspace_Keyspace_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Builder.class); } public interface RetrieveOrBuilder extends // @@protoc_insertion_point(interface_extends:keyspace.Keyspace.Retrieve) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code keyspace.Keyspace.Retrieve} */ public static final class Retrieve extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:keyspace.Keyspace.Retrieve) RetrieveOrBuilder { // Use Retrieve.newBuilder() to construct. private Retrieve(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Retrieve() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Retrieve( 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.KeyspaceProto.internal_static_keyspace_Keyspace_Retrieve_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Retrieve_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:keyspace.Keyspace.Retrieve.Req) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code keyspace.Keyspace.Retrieve.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:keyspace.Keyspace.Retrieve.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.KeyspaceProto.internal_static_keyspace_Keyspace_Retrieve_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Retrieve_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req other = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve.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 keyspace.Keyspace.Retrieve.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:keyspace.Keyspace.Retrieve.Req) ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Retrieve_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Retrieve_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.internal_static_keyspace_Keyspace_Retrieve_Req_descriptor; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req build() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req buildPartial() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req result = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve.Req) { return mergeFrom((ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req other) { if (other == ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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:keyspace.Keyspace.Retrieve.Req) } // @@protoc_insertion_point(class_scope:keyspace.Keyspace.Retrieve.Req) private static final ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req(); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:keyspace.Keyspace.Retrieve.Res) com.google.protobuf.MessageOrBuilder { /** * <code>repeated string names = 1;</code> */ java.util.List<java.lang.String> getNamesList(); /** * <code>repeated string names = 1;</code> */ int getNamesCount(); /** * <code>repeated string names = 1;</code> */ java.lang.String getNames(int index); /** * <code>repeated string names = 1;</code> */ com.google.protobuf.ByteString getNamesBytes(int index); } /** * Protobuf type {@code keyspace.Keyspace.Retrieve.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:keyspace.Keyspace.Retrieve.Res) ResOrBuilder { // Use Res.newBuilder() to construct. private Res(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Res() { names_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @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: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { names_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } names_.add(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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { names_ = names_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Retrieve_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Retrieve_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res.Builder.class); } public static final int NAMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList names_; /** * <code>repeated string names = 1;</code> */ public com.google.protobuf.ProtocolStringList getNamesList() { return names_; } /** * <code>repeated string names = 1;</code> */ public int getNamesCount() { return names_.size(); } /** * <code>repeated string names = 1;</code> */ public java.lang.String getNames(int index) { return names_.get(index); } /** * <code>repeated string names = 1;</code> */ public com.google.protobuf.ByteString getNamesBytes(int index) { return names_.getByteString(index); } 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 { for (int i = 0; i < names_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, names_.getRaw(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < names_.size(); i++) { dataSize += computeStringSizeNoTag(names_.getRaw(i)); } size += dataSize; size += 1 * getNamesList().size(); } 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.KeyspaceProto.Keyspace.Retrieve.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res other = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res) obj; boolean result = true; result = result && getNamesList() .equals(other.getNamesList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getNamesCount() > 0) { hash = (37 * hash) + NAMES_FIELD_NUMBER; hash = (53 * hash) + getNamesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve.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 keyspace.Keyspace.Retrieve.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:keyspace.Keyspace.Retrieve.Res) ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Retrieve_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Retrieve_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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(); names_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Retrieve_Res_descriptor; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res build() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res buildPartial() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res result = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { names_ = names_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.names_ = names_; 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.KeyspaceProto.Keyspace.Retrieve.Res) { return mergeFrom((ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res other) { if (other == ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res.getDefaultInstance()) return this; if (!other.names_.isEmpty()) { if (names_.isEmpty()) { names_ = other.names_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNamesIsMutable(); names_.addAll(other.names_); } 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.KeyspaceProto.Keyspace.Retrieve.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList names_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNamesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { names_ = new com.google.protobuf.LazyStringArrayList(names_); bitField0_ |= 0x00000001; } } /** * <code>repeated string names = 1;</code> */ public com.google.protobuf.ProtocolStringList getNamesList() { return names_.getUnmodifiableView(); } /** * <code>repeated string names = 1;</code> */ public int getNamesCount() { return names_.size(); } /** * <code>repeated string names = 1;</code> */ public java.lang.String getNames(int index) { return names_.get(index); } /** * <code>repeated string names = 1;</code> */ public com.google.protobuf.ByteString getNamesBytes(int index) { return names_.getByteString(index); } /** * <code>repeated string names = 1;</code> */ public Builder setNames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNamesIsMutable(); names_.set(index, value); onChanged(); return this; } /** * <code>repeated string names = 1;</code> */ public Builder addNames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNamesIsMutable(); names_.add(value); onChanged(); return this; } /** * <code>repeated string names = 1;</code> */ public Builder addAllNames( java.lang.Iterable<java.lang.String> values) { ensureNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, names_); onChanged(); return this; } /** * <code>repeated string names = 1;</code> */ public Builder clearNames() { names_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>repeated string names = 1;</code> */ public Builder addNamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureNamesIsMutable(); names_.add(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:keyspace.Keyspace.Retrieve.Res) } // @@protoc_insertion_point(class_scope:keyspace.Keyspace.Retrieve.Res) private static final ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res(); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve)) { return super.equals(obj); } ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve other = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve) 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.KeyspaceProto.Keyspace.Retrieve parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve 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.KeyspaceProto.Keyspace.Retrieve parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve 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.KeyspaceProto.Keyspace.Retrieve parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve 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.KeyspaceProto.Keyspace.Retrieve parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve 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.KeyspaceProto.Keyspace.Retrieve 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 keyspace.Keyspace.Retrieve} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:keyspace.Keyspace.Retrieve) ai.grakn.rpc.proto.KeyspaceProto.Keyspace.RetrieveOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Retrieve_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Retrieve_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Builder.class); } // Construct using ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.internal_static_keyspace_Keyspace_Retrieve_descriptor; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve getDefaultInstanceForType() { return ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.getDefaultInstance(); } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve build() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve buildPartial() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve result = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve(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.KeyspaceProto.Keyspace.Retrieve) { return mergeFrom((ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve other) { if (other == ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.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.KeyspaceProto.Keyspace.Retrieve parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve) 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:keyspace.Keyspace.Retrieve) } // @@protoc_insertion_point(class_scope:keyspace.Keyspace.Retrieve) private static final ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve(); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Retrieve> PARSER = new com.google.protobuf.AbstractParser<Retrieve>() { public Retrieve parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Retrieve(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Retrieve> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Retrieve> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateOrBuilder extends // @@protoc_insertion_point(interface_extends:keyspace.Keyspace.Create) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code keyspace.Keyspace.Create} */ public static final class Create extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:keyspace.Keyspace.Create) CreateOrBuilder { // Use Create.newBuilder() to construct. private Create(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Create() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Create( 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.KeyspaceProto.internal_static_keyspace_Keyspace_Create_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Create_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:keyspace.Keyspace.Create.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional string name = 1;</code> */ java.lang.String getName(); /** * <code>optional string name = 1;</code> */ com.google.protobuf.ByteString getNameBytes(); } /** * Protobuf type {@code keyspace.Keyspace.Create.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:keyspace.Keyspace.Create.Req) ReqOrBuilder { // Use Req.newBuilder() to construct. private Req(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Req() { name_ = ""; } @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(); name_ = 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.KeyspaceProto.internal_static_keyspace_Keyspace_Create_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Create_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * <code>optional string name = 1;</code> */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * <code>optional string name = 1;</code> */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } 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.KeyspaceProto.Keyspace.Create.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req other = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req) obj; boolean result = true; result = result && getName() .equals(other.getName()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create.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 keyspace.Keyspace.Create.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:keyspace.Keyspace.Create.Req) ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Create_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Create_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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(); name_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Create_Req_descriptor; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req build() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req buildPartial() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req result = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req(this); result.name_ = name_; 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.KeyspaceProto.Keyspace.Create.Req) { return mergeFrom((ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req other) { if (other == ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; 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.KeyspaceProto.Keyspace.Create.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * <code>optional string name = 1;</code> */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string name = 1;</code> */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string name = 1;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * <code>optional string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>optional string name = 1;</code> */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = 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:keyspace.Keyspace.Create.Req) } // @@protoc_insertion_point(class_scope:keyspace.Keyspace.Create.Req) private static final ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req(); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:keyspace.Keyspace.Create.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code keyspace.Keyspace.Create.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:keyspace.Keyspace.Create.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.KeyspaceProto.internal_static_keyspace_Keyspace_Create_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Create_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res other = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create.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 keyspace.Keyspace.Create.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:keyspace.Keyspace.Create.Res) ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Create_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Create_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.internal_static_keyspace_Keyspace_Create_Res_descriptor; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res build() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res buildPartial() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res result = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create.Res) { return mergeFrom((ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res other) { if (other == ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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:keyspace.Keyspace.Create.Res) } // @@protoc_insertion_point(class_scope:keyspace.Keyspace.Create.Res) private static final ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res(); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create)) { return super.equals(obj); } ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create other = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create) 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.KeyspaceProto.Keyspace.Create parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create 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.KeyspaceProto.Keyspace.Create parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create 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.KeyspaceProto.Keyspace.Create parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create 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.KeyspaceProto.Keyspace.Create parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create 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.KeyspaceProto.Keyspace.Create 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 keyspace.Keyspace.Create} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:keyspace.Keyspace.Create) ai.grakn.rpc.proto.KeyspaceProto.Keyspace.CreateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Create_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Create_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Builder.class); } // Construct using ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.internal_static_keyspace_Keyspace_Create_descriptor; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create getDefaultInstanceForType() { return ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.getDefaultInstance(); } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create build() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create buildPartial() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create result = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create(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.KeyspaceProto.Keyspace.Create) { return mergeFrom((ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create other) { if (other == ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.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.KeyspaceProto.Keyspace.Create parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create) 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:keyspace.Keyspace.Create) } // @@protoc_insertion_point(class_scope:keyspace.Keyspace.Create) private static final ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create(); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Create> PARSER = new com.google.protobuf.AbstractParser<Create>() { public Create parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Create(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Create> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Create> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteOrBuilder extends // @@protoc_insertion_point(interface_extends:keyspace.Keyspace.Delete) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code keyspace.Keyspace.Delete} */ public static final class Delete extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:keyspace.Keyspace.Delete) DeleteOrBuilder { // Use Delete.newBuilder() to construct. private Delete(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Delete() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Delete( 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.KeyspaceProto.internal_static_keyspace_Keyspace_Delete_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Delete_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:keyspace.Keyspace.Delete.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional string name = 1;</code> */ java.lang.String getName(); /** * <code>optional string name = 1;</code> */ com.google.protobuf.ByteString getNameBytes(); } /** * Protobuf type {@code keyspace.Keyspace.Delete.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:keyspace.Keyspace.Delete.Req) ReqOrBuilder { // Use Req.newBuilder() to construct. private Req(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Req() { name_ = ""; } @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(); name_ = 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.KeyspaceProto.internal_static_keyspace_Keyspace_Delete_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Delete_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * <code>optional string name = 1;</code> */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * <code>optional string name = 1;</code> */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } 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.KeyspaceProto.Keyspace.Delete.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req other = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req) obj; boolean result = true; result = result && getName() .equals(other.getName()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete.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 keyspace.Keyspace.Delete.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:keyspace.Keyspace.Delete.Req) ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Delete_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Delete_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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(); name_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Delete_Req_descriptor; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req build() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req buildPartial() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req result = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req(this); result.name_ = name_; 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.KeyspaceProto.Keyspace.Delete.Req) { return mergeFrom((ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req other) { if (other == ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; 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.KeyspaceProto.Keyspace.Delete.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * <code>optional string name = 1;</code> */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string name = 1;</code> */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string name = 1;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * <code>optional string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>optional string name = 1;</code> */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = 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:keyspace.Keyspace.Delete.Req) } // @@protoc_insertion_point(class_scope:keyspace.Keyspace.Delete.Req) private static final ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req(); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:keyspace.Keyspace.Delete.Res) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code keyspace.Keyspace.Delete.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:keyspace.Keyspace.Delete.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.KeyspaceProto.internal_static_keyspace_Keyspace_Delete_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Delete_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res other = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete.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 keyspace.Keyspace.Delete.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:keyspace.Keyspace.Delete.Res) ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Delete_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Delete_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.internal_static_keyspace_Keyspace_Delete_Res_descriptor; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res build() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res buildPartial() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res result = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete.Res) { return mergeFrom((ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res other) { if (other == ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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:keyspace.Keyspace.Delete.Res) } // @@protoc_insertion_point(class_scope:keyspace.Keyspace.Delete.Res) private static final ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res(); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete)) { return super.equals(obj); } ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete other = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete) 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.KeyspaceProto.Keyspace.Delete parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete 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.KeyspaceProto.Keyspace.Delete parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete 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.KeyspaceProto.Keyspace.Delete parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete 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.KeyspaceProto.Keyspace.Delete parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete 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.KeyspaceProto.Keyspace.Delete 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 keyspace.Keyspace.Delete} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:keyspace.Keyspace.Delete) ai.grakn.rpc.proto.KeyspaceProto.Keyspace.DeleteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Delete_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_Delete_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Builder.class); } // Construct using ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.internal_static_keyspace_Keyspace_Delete_descriptor; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete getDefaultInstanceForType() { return ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.getDefaultInstance(); } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete build() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete buildPartial() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete result = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete(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.KeyspaceProto.Keyspace.Delete) { return mergeFrom((ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete other) { if (other == ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.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.KeyspaceProto.Keyspace.Delete parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete) 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:keyspace.Keyspace.Delete) } // @@protoc_insertion_point(class_scope:keyspace.Keyspace.Delete) private static final ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete(); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Delete> PARSER = new com.google.protobuf.AbstractParser<Delete>() { public Delete parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Delete(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Delete> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Delete> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete 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.KeyspaceProto.Keyspace)) { return super.equals(obj); } ai.grakn.rpc.proto.KeyspaceProto.Keyspace other = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace) 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.KeyspaceProto.Keyspace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace 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.KeyspaceProto.Keyspace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace 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.KeyspaceProto.Keyspace parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace 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.KeyspaceProto.Keyspace parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace 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.KeyspaceProto.Keyspace 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 keyspace.Keyspace} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:keyspace.Keyspace) ai.grakn.rpc.proto.KeyspaceProto.KeyspaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.KeyspaceProto.internal_static_keyspace_Keyspace_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.class, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Builder.class); } // Construct using ai.grakn.rpc.proto.KeyspaceProto.Keyspace.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.KeyspaceProto.internal_static_keyspace_Keyspace_descriptor; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace getDefaultInstanceForType() { return ai.grakn.rpc.proto.KeyspaceProto.Keyspace.getDefaultInstance(); } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace build() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace buildPartial() { ai.grakn.rpc.proto.KeyspaceProto.Keyspace result = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace(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.KeyspaceProto.Keyspace) { return mergeFrom((ai.grakn.rpc.proto.KeyspaceProto.Keyspace)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.KeyspaceProto.Keyspace other) { if (other == ai.grakn.rpc.proto.KeyspaceProto.Keyspace.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.KeyspaceProto.Keyspace parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.KeyspaceProto.Keyspace) 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:keyspace.Keyspace) } // @@protoc_insertion_point(class_scope:keyspace.Keyspace) private static final ai.grakn.rpc.proto.KeyspaceProto.Keyspace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.KeyspaceProto.Keyspace(); } public static ai.grakn.rpc.proto.KeyspaceProto.Keyspace getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Keyspace> PARSER = new com.google.protobuf.AbstractParser<Keyspace>() { public Keyspace parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Keyspace(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Keyspace> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Keyspace> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.KeyspaceProto.Keyspace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_keyspace_Keyspace_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_keyspace_Keyspace_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_keyspace_Keyspace_Retrieve_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_keyspace_Keyspace_Retrieve_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_keyspace_Keyspace_Retrieve_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_keyspace_Keyspace_Retrieve_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_keyspace_Keyspace_Retrieve_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_keyspace_Keyspace_Retrieve_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_keyspace_Keyspace_Create_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_keyspace_Keyspace_Create_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_keyspace_Keyspace_Create_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_keyspace_Keyspace_Create_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_keyspace_Keyspace_Create_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_keyspace_Keyspace_Create_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_keyspace_Keyspace_Delete_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_keyspace_Keyspace_Delete_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_keyspace_Keyspace_Delete_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_keyspace_Keyspace_Delete_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_keyspace_Keyspace_Delete_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_keyspace_Keyspace_Delete_Res_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\016Keyspace.proto\022\010keyspace\"\177\n\010Keyspace\032\'" + "\n\010Retrieve\032\005\n\003Req\032\024\n\003Res\022\r\n\005names\030\001 \003(\t\032" + "$\n\006Create\032\023\n\003Req\022\014\n\004name\030\001 \001(\t\032\005\n\003Res\032$\n" + "\006Delete\032\023\n\003Req\022\014\n\004name\030\001 \001(\t\032\005\n\003Res2\357\001\n\017" + "KeyspaceService\022F\n\006create\022\035.keyspace.Key" + "space.Create.Req\032\035.keyspace.Keyspace.Cre" + "ate.Res\022L\n\010retrieve\022\037.keyspace.Keyspace." + "Retrieve.Req\032\037.keyspace.Keyspace.Retriev" + "e.Res\022F\n\006delete\022\035.keyspace.Keyspace.Dele" + "te.Req\032\035.keyspace.Keyspace.Delete.ResB#\n", "\022ai.grakn.rpc.protoB\rKeyspaceProtob\006prot" + "o3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_keyspace_Keyspace_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_keyspace_Keyspace_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_keyspace_Keyspace_descriptor, new java.lang.String[] { }); internal_static_keyspace_Keyspace_Retrieve_descriptor = internal_static_keyspace_Keyspace_descriptor.getNestedTypes().get(0); internal_static_keyspace_Keyspace_Retrieve_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_keyspace_Keyspace_Retrieve_descriptor, new java.lang.String[] { }); internal_static_keyspace_Keyspace_Retrieve_Req_descriptor = internal_static_keyspace_Keyspace_Retrieve_descriptor.getNestedTypes().get(0); internal_static_keyspace_Keyspace_Retrieve_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_keyspace_Keyspace_Retrieve_Req_descriptor, new java.lang.String[] { }); internal_static_keyspace_Keyspace_Retrieve_Res_descriptor = internal_static_keyspace_Keyspace_Retrieve_descriptor.getNestedTypes().get(1); internal_static_keyspace_Keyspace_Retrieve_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_keyspace_Keyspace_Retrieve_Res_descriptor, new java.lang.String[] { "Names", }); internal_static_keyspace_Keyspace_Create_descriptor = internal_static_keyspace_Keyspace_descriptor.getNestedTypes().get(1); internal_static_keyspace_Keyspace_Create_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_keyspace_Keyspace_Create_descriptor, new java.lang.String[] { }); internal_static_keyspace_Keyspace_Create_Req_descriptor = internal_static_keyspace_Keyspace_Create_descriptor.getNestedTypes().get(0); internal_static_keyspace_Keyspace_Create_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_keyspace_Keyspace_Create_Req_descriptor, new java.lang.String[] { "Name", }); internal_static_keyspace_Keyspace_Create_Res_descriptor = internal_static_keyspace_Keyspace_Create_descriptor.getNestedTypes().get(1); internal_static_keyspace_Keyspace_Create_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_keyspace_Keyspace_Create_Res_descriptor, new java.lang.String[] { }); internal_static_keyspace_Keyspace_Delete_descriptor = internal_static_keyspace_Keyspace_descriptor.getNestedTypes().get(2); internal_static_keyspace_Keyspace_Delete_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_keyspace_Keyspace_Delete_descriptor, new java.lang.String[] { }); internal_static_keyspace_Keyspace_Delete_Req_descriptor = internal_static_keyspace_Keyspace_Delete_descriptor.getNestedTypes().get(0); internal_static_keyspace_Keyspace_Delete_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_keyspace_Keyspace_Delete_Req_descriptor, new java.lang.String[] { "Name", }); internal_static_keyspace_Keyspace_Delete_Res_descriptor = internal_static_keyspace_Keyspace_Delete_descriptor.getNestedTypes().get(1); internal_static_keyspace_Keyspace_Delete_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_keyspace_Keyspace_Delete_Res_descriptor, new java.lang.String[] { }); } // @@protoc_insertion_point(outer_class_scope) }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/rpc
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/rpc/proto/KeyspaceServiceGrpc.java
package ai.grakn.rpc.proto; import static io.grpc.stub.ClientCalls.asyncUnaryCall; import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; import static io.grpc.stub.ClientCalls.blockingUnaryCall; import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; import static io.grpc.stub.ClientCalls.futureUnaryCall; import static io.grpc.MethodDescriptor.generateFullMethodName; import static io.grpc.stub.ServerCalls.asyncUnaryCall; import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; /** */ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.2.0)", comments = "Source: Keyspace.proto") public final class KeyspaceServiceGrpc { private KeyspaceServiceGrpc() {} public static final String SERVICE_NAME = "keyspace.KeyspaceService"; // Static method descriptors that strictly reflect the proto. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor<ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res> METHOD_CREATE = io.grpc.MethodDescriptor.create( io.grpc.MethodDescriptor.MethodType.UNARY, generateFullMethodName( "keyspace.KeyspaceService", "create"), io.grpc.protobuf.ProtoUtils.marshaller(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req.getDefaultInstance()), io.grpc.protobuf.ProtoUtils.marshaller(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res.getDefaultInstance())); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor<ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res> METHOD_RETRIEVE = io.grpc.MethodDescriptor.create( io.grpc.MethodDescriptor.MethodType.UNARY, generateFullMethodName( "keyspace.KeyspaceService", "retrieve"), io.grpc.protobuf.ProtoUtils.marshaller(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req.getDefaultInstance()), io.grpc.protobuf.ProtoUtils.marshaller(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res.getDefaultInstance())); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor<ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res> METHOD_DELETE = io.grpc.MethodDescriptor.create( io.grpc.MethodDescriptor.MethodType.UNARY, generateFullMethodName( "keyspace.KeyspaceService", "delete"), io.grpc.protobuf.ProtoUtils.marshaller(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req.getDefaultInstance()), io.grpc.protobuf.ProtoUtils.marshaller(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res.getDefaultInstance())); /** * Creates a new async stub that supports all call types for the service */ public static KeyspaceServiceStub newStub(io.grpc.Channel channel) { return new KeyspaceServiceStub(channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static KeyspaceServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { return new KeyspaceServiceBlockingStub(channel); } /** * Creates a new ListenableFuture-style stub that supports unary and streaming output calls on the service */ public static KeyspaceServiceFutureStub newFutureStub( io.grpc.Channel channel) { return new KeyspaceServiceFutureStub(channel); } /** */ public static abstract class KeyspaceServiceImplBase implements io.grpc.BindableService { /** */ public void create(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req request, io.grpc.stub.StreamObserver<ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res> responseObserver) { asyncUnimplementedUnaryCall(METHOD_CREATE, responseObserver); } /** */ public void retrieve(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req request, io.grpc.stub.StreamObserver<ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res> responseObserver) { asyncUnimplementedUnaryCall(METHOD_RETRIEVE, responseObserver); } /** */ public void delete(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req request, io.grpc.stub.StreamObserver<ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res> responseObserver) { asyncUnimplementedUnaryCall(METHOD_DELETE, responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( METHOD_CREATE, asyncUnaryCall( new MethodHandlers< ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res>( this, METHODID_CREATE))) .addMethod( METHOD_RETRIEVE, asyncUnaryCall( new MethodHandlers< ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res>( this, METHODID_RETRIEVE))) .addMethod( METHOD_DELETE, asyncUnaryCall( new MethodHandlers< ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req, ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res>( this, METHODID_DELETE))) .build(); } } /** */ public static final class KeyspaceServiceStub extends io.grpc.stub.AbstractStub<KeyspaceServiceStub> { private KeyspaceServiceStub(io.grpc.Channel channel) { super(channel); } private KeyspaceServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected KeyspaceServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new KeyspaceServiceStub(channel, callOptions); } /** */ public void create(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req request, io.grpc.stub.StreamObserver<ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res> responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_CREATE, getCallOptions()), request, responseObserver); } /** */ public void retrieve(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req request, io.grpc.stub.StreamObserver<ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res> responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_RETRIEVE, getCallOptions()), request, responseObserver); } /** */ public void delete(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req request, io.grpc.stub.StreamObserver<ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res> responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_DELETE, getCallOptions()), request, responseObserver); } } /** */ public static final class KeyspaceServiceBlockingStub extends io.grpc.stub.AbstractStub<KeyspaceServiceBlockingStub> { private KeyspaceServiceBlockingStub(io.grpc.Channel channel) { super(channel); } private KeyspaceServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected KeyspaceServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new KeyspaceServiceBlockingStub(channel, callOptions); } /** */ public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res create(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req request) { return blockingUnaryCall( getChannel(), METHOD_CREATE, getCallOptions(), request); } /** */ public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res retrieve(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req request) { return blockingUnaryCall( getChannel(), METHOD_RETRIEVE, getCallOptions(), request); } /** */ public ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res delete(ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req request) { return blockingUnaryCall( getChannel(), METHOD_DELETE, getCallOptions(), request); } } /** */ public static final class KeyspaceServiceFutureStub extends io.grpc.stub.AbstractStub<KeyspaceServiceFutureStub> { private KeyspaceServiceFutureStub(io.grpc.Channel channel) { super(channel); } private KeyspaceServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected KeyspaceServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new KeyspaceServiceFutureStub(channel, callOptions); } /** */ public com.google.common.util.concurrent.ListenableFuture<ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res> create( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req request) { return futureUnaryCall( getChannel().newCall(METHOD_CREATE, getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture<ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res> retrieve( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req request) { return futureUnaryCall( getChannel().newCall(METHOD_RETRIEVE, getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture<ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res> delete( ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req request) { return futureUnaryCall( getChannel().newCall(METHOD_DELETE, getCallOptions()), request); } } private static final int METHODID_CREATE = 0; private static final int METHODID_RETRIEVE = 1; private static final int METHODID_DELETE = 2; private static final class MethodHandlers<Req, Resp> implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { private final KeyspaceServiceImplBase serviceImpl; private final int methodId; MethodHandlers(KeyspaceServiceImplBase serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) { switch (methodId) { case METHODID_CREATE: serviceImpl.create((ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Req) request, (io.grpc.stub.StreamObserver<ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Create.Res>) responseObserver); break; case METHODID_RETRIEVE: serviceImpl.retrieve((ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Req) request, (io.grpc.stub.StreamObserver<ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Retrieve.Res>) responseObserver); break; case METHODID_DELETE: serviceImpl.delete((ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Req) request, (io.grpc.stub.StreamObserver<ai.grakn.rpc.proto.KeyspaceProto.Keyspace.Delete.Res>) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver<Req> invoke( io.grpc.stub.StreamObserver<Resp> responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } private static final class KeyspaceServiceDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier { @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return ai.grakn.rpc.proto.KeyspaceProto.getDescriptor(); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (KeyspaceServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new KeyspaceServiceDescriptorSupplier()) .addMethod(METHOD_CREATE) .addMethod(METHOD_RETRIEVE) .addMethod(METHOD_DELETE) .build(); } } } return result; } }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/rpc
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/rpc/proto/SessionProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Session.proto package ai.grakn.rpc.proto; public final class SessionProto { private SessionProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface TransactionOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Transaction) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Transaction} */ public static final class Transaction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Transaction) TransactionOrBuilder { // Use Transaction.newBuilder() to construct. private Transaction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Transaction() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Transaction( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.class, ai.grakn.rpc.proto.SessionProto.Transaction.Builder.class); } /** * Protobuf enum {@code session.Transaction.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * <code>READ = 0;</code> */ READ(0), /** * <code>WRITE = 1;</code> */ WRITE(1), /** * <code>BATCH = 2;</code> */ BATCH(2), UNRECOGNIZED(-1), ; /** * <code>READ = 0;</code> */ public static final int READ_VALUE = 0; /** * <code>WRITE = 1;</code> */ public static final int WRITE_VALUE = 1; /** * <code>BATCH = 2;</code> */ public static final int BATCH_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return READ; case 1: return WRITE; case 2: return BATCH; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Type> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Type>() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.Transaction.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:session.Transaction.Type) } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Transaction.Req) com.google.protobuf.MessageOrBuilder { /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ int getMetadataCount(); /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ boolean containsMetadata( java.lang.String key); /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, java.lang.String> getMetadata(); /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ java.util.Map<java.lang.String, java.lang.String> getMetadataMap(); /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ java.lang.String getMetadataOrDefault( java.lang.String key, java.lang.String defaultValue); /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ java.lang.String getMetadataOrThrow( java.lang.String key); /** * <code>optional .session.Transaction.Open.Req open_req = 1;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req getOpenReq(); /** * <code>optional .session.Transaction.Open.Req open_req = 1;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Open.ReqOrBuilder getOpenReqOrBuilder(); /** * <code>optional .session.Transaction.Commit.Req commit_req = 2;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req getCommitReq(); /** * <code>optional .session.Transaction.Commit.Req commit_req = 2;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ReqOrBuilder getCommitReqOrBuilder(); /** * <code>optional .session.Transaction.Query.Req query_req = 3;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req getQueryReq(); /** * <code>optional .session.Transaction.Query.Req query_req = 3;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Query.ReqOrBuilder getQueryReqOrBuilder(); /** * <code>optional .session.Transaction.Iter.Req iterate_req = 4;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req getIterateReq(); /** * <code>optional .session.Transaction.Iter.Req iterate_req = 4;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ReqOrBuilder getIterateReqOrBuilder(); /** * <code>optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req getGetSchemaConceptReq(); /** * <code>optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ReqOrBuilder getGetSchemaConceptReqOrBuilder(); /** * <code>optional .session.Transaction.GetConcept.Req getConcept_req = 6;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req getGetConceptReq(); /** * <code>optional .session.Transaction.GetConcept.Req getConcept_req = 6;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ReqOrBuilder getGetConceptReqOrBuilder(); /** * <code>optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req getGetAttributesReq(); /** * <code>optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.ReqOrBuilder getGetAttributesReqOrBuilder(); /** * <code>optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req getPutEntityTypeReq(); /** * <code>optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ReqOrBuilder getPutEntityTypeReqOrBuilder(); /** * <code>optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req getPutAttributeTypeReq(); /** * <code>optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ReqOrBuilder getPutAttributeTypeReqOrBuilder(); /** * <code>optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req getPutRelationTypeReq(); /** * <code>optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ReqOrBuilder getPutRelationTypeReqOrBuilder(); /** * <code>optional .session.Transaction.PutRole.Req putRole_req = 11;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req getPutRoleReq(); /** * <code>optional .session.Transaction.PutRole.Req putRole_req = 11;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ReqOrBuilder getPutRoleReqOrBuilder(); /** * <code>optional .session.Transaction.PutRule.Req putRule_req = 12;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req getPutRuleReq(); /** * <code>optional .session.Transaction.PutRule.Req putRule_req = 12;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ReqOrBuilder getPutRuleReqOrBuilder(); /** * <code>optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req getConceptMethodReq(); /** * <code>optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ReqOrBuilder getConceptMethodReqOrBuilder(); public ai.grakn.rpc.proto.SessionProto.Transaction.Req.ReqCase getReqCase(); } /** * Protobuf type {@code session.Transaction.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Transaction.Req) ReqOrBuilder { // Use Req.newBuilder() to construct. private Req(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Req() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Req( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.Builder subBuilder = null; if (reqCase_ == 1) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 1; break; } case 18: { ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.Builder subBuilder = null; if (reqCase_ == 2) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 2; break; } case 26: { ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.Builder subBuilder = null; if (reqCase_ == 3) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 3; break; } case 34: { ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.Builder subBuilder = null; if (reqCase_ == 4) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 4; break; } case 42: { ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.Builder subBuilder = null; if (reqCase_ == 5) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 5; break; } case 50: { ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.Builder subBuilder = null; if (reqCase_ == 6) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 6; break; } case 58: { ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.Builder subBuilder = null; if (reqCase_ == 7) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 7; break; } case 66: { ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.Builder subBuilder = null; if (reqCase_ == 8) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 8; break; } case 74: { ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.Builder subBuilder = null; if (reqCase_ == 9) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 9; break; } case 82: { ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.Builder subBuilder = null; if (reqCase_ == 10) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 10; break; } case 90: { ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.Builder subBuilder = null; if (reqCase_ == 11) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 11; break; } case 98: { ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.Builder subBuilder = null; if (reqCase_ == 12) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 12; break; } case 106: { ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.Builder subBuilder = null; if (reqCase_ == 13) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_).toBuilder(); } req_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_); req_ = subBuilder.buildPartial(); } reqCase_ = 13; break; } case 8002: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { metadata_ = com.google.protobuf.MapField.newMapField( MetadataDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry<java.lang.String, java.lang.String> metadata = input.readMessage( MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); metadata_.getMutableMap().put(metadata.getKey(), metadata.getValue()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Req_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1000: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.Req.Builder.class); } private int bitField0_; private int reqCase_ = 0; private java.lang.Object req_; public enum ReqCase implements com.google.protobuf.Internal.EnumLite { OPEN_REQ(1), COMMIT_REQ(2), QUERY_REQ(3), ITERATE_REQ(4), GETSCHEMACONCEPT_REQ(5), GETCONCEPT_REQ(6), GETATTRIBUTES_REQ(7), PUTENTITYTYPE_REQ(8), PUTATTRIBUTETYPE_REQ(9), PUTRELATIONTYPE_REQ(10), PUTROLE_REQ(11), PUTRULE_REQ(12), CONCEPTMETHOD_REQ(13), REQ_NOT_SET(0); private final int value; private ReqCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ReqCase valueOf(int value) { return forNumber(value); } public static ReqCase forNumber(int value) { switch (value) { case 1: return OPEN_REQ; case 2: return COMMIT_REQ; case 3: return QUERY_REQ; case 4: return ITERATE_REQ; case 5: return GETSCHEMACONCEPT_REQ; case 6: return GETCONCEPT_REQ; case 7: return GETATTRIBUTES_REQ; case 8: return PUTENTITYTYPE_REQ; case 9: return PUTATTRIBUTETYPE_REQ; case 10: return PUTRELATIONTYPE_REQ; case 11: return PUTROLE_REQ; case 12: return PUTRULE_REQ; case 13: return CONCEPTMETHOD_REQ; case 0: return REQ_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ReqCase getReqCase() { return ReqCase.forNumber( reqCase_); } public static final int METADATA_FIELD_NUMBER = 1000; private static final class MetadataDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, java.lang.String>newDefaultInstance( ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Req_MetadataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> metadata_; private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMetadata() { return getMetadataMap(); } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() { return internalGetMetadata().getMap(); } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public java.lang.String getMetadataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public java.lang.String getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int OPEN_REQ_FIELD_NUMBER = 1; /** * <code>optional .session.Transaction.Open.Req open_req = 1;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req getOpenReq() { if (reqCase_ == 1) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance(); } /** * <code>optional .session.Transaction.Open.Req open_req = 1;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Open.ReqOrBuilder getOpenReqOrBuilder() { if (reqCase_ == 1) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance(); } public static final int COMMIT_REQ_FIELD_NUMBER = 2; /** * <code>optional .session.Transaction.Commit.Req commit_req = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req getCommitReq() { if (reqCase_ == 2) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.getDefaultInstance(); } /** * <code>optional .session.Transaction.Commit.Req commit_req = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ReqOrBuilder getCommitReqOrBuilder() { if (reqCase_ == 2) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.getDefaultInstance(); } public static final int QUERY_REQ_FIELD_NUMBER = 3; /** * <code>optional .session.Transaction.Query.Req query_req = 3;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req getQueryReq() { if (reqCase_ == 3) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.getDefaultInstance(); } /** * <code>optional .session.Transaction.Query.Req query_req = 3;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Query.ReqOrBuilder getQueryReqOrBuilder() { if (reqCase_ == 3) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.getDefaultInstance(); } public static final int ITERATE_REQ_FIELD_NUMBER = 4; /** * <code>optional .session.Transaction.Iter.Req iterate_req = 4;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req getIterateReq() { if (reqCase_ == 4) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance(); } /** * <code>optional .session.Transaction.Iter.Req iterate_req = 4;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ReqOrBuilder getIterateReqOrBuilder() { if (reqCase_ == 4) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance(); } public static final int GETSCHEMACONCEPT_REQ_FIELD_NUMBER = 5; /** * <code>optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req getGetSchemaConceptReq() { if (reqCase_ == 5) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.getDefaultInstance(); } /** * <code>optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ReqOrBuilder getGetSchemaConceptReqOrBuilder() { if (reqCase_ == 5) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.getDefaultInstance(); } public static final int GETCONCEPT_REQ_FIELD_NUMBER = 6; /** * <code>optional .session.Transaction.GetConcept.Req getConcept_req = 6;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req getGetConceptReq() { if (reqCase_ == 6) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.getDefaultInstance(); } /** * <code>optional .session.Transaction.GetConcept.Req getConcept_req = 6;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ReqOrBuilder getGetConceptReqOrBuilder() { if (reqCase_ == 6) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.getDefaultInstance(); } public static final int GETATTRIBUTES_REQ_FIELD_NUMBER = 7; /** * <code>optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req getGetAttributesReq() { if (reqCase_ == 7) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.getDefaultInstance(); } /** * <code>optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.ReqOrBuilder getGetAttributesReqOrBuilder() { if (reqCase_ == 7) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.getDefaultInstance(); } public static final int PUTENTITYTYPE_REQ_FIELD_NUMBER = 8; /** * <code>optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req getPutEntityTypeReq() { if (reqCase_ == 8) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.getDefaultInstance(); } /** * <code>optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ReqOrBuilder getPutEntityTypeReqOrBuilder() { if (reqCase_ == 8) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.getDefaultInstance(); } public static final int PUTATTRIBUTETYPE_REQ_FIELD_NUMBER = 9; /** * <code>optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req getPutAttributeTypeReq() { if (reqCase_ == 9) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.getDefaultInstance(); } /** * <code>optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ReqOrBuilder getPutAttributeTypeReqOrBuilder() { if (reqCase_ == 9) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.getDefaultInstance(); } public static final int PUTRELATIONTYPE_REQ_FIELD_NUMBER = 10; /** * <code>optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req getPutRelationTypeReq() { if (reqCase_ == 10) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.getDefaultInstance(); } /** * <code>optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ReqOrBuilder getPutRelationTypeReqOrBuilder() { if (reqCase_ == 10) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.getDefaultInstance(); } public static final int PUTROLE_REQ_FIELD_NUMBER = 11; /** * <code>optional .session.Transaction.PutRole.Req putRole_req = 11;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req getPutRoleReq() { if (reqCase_ == 11) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.getDefaultInstance(); } /** * <code>optional .session.Transaction.PutRole.Req putRole_req = 11;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ReqOrBuilder getPutRoleReqOrBuilder() { if (reqCase_ == 11) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.getDefaultInstance(); } public static final int PUTRULE_REQ_FIELD_NUMBER = 12; /** * <code>optional .session.Transaction.PutRule.Req putRule_req = 12;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req getPutRuleReq() { if (reqCase_ == 12) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.getDefaultInstance(); } /** * <code>optional .session.Transaction.PutRule.Req putRule_req = 12;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ReqOrBuilder getPutRuleReqOrBuilder() { if (reqCase_ == 12) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.getDefaultInstance(); } public static final int CONCEPTMETHOD_REQ_FIELD_NUMBER = 13; /** * <code>optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req getConceptMethodReq() { if (reqCase_ == 13) { return (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.getDefaultInstance(); } /** * <code>optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ReqOrBuilder getConceptMethodReqOrBuilder() { if (reqCase_ == 13) { return (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (reqCase_ == 1) { output.writeMessage(1, (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_); } if (reqCase_ == 2) { output.writeMessage(2, (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_); } if (reqCase_ == 3) { output.writeMessage(3, (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_); } if (reqCase_ == 4) { output.writeMessage(4, (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_); } if (reqCase_ == 5) { output.writeMessage(5, (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_); } if (reqCase_ == 6) { output.writeMessage(6, (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_); } if (reqCase_ == 7) { output.writeMessage(7, (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_); } if (reqCase_ == 8) { output.writeMessage(8, (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_); } if (reqCase_ == 9) { output.writeMessage(9, (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_); } if (reqCase_ == 10) { output.writeMessage(10, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_); } if (reqCase_ == 11) { output.writeMessage(11, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_); } if (reqCase_ == 12) { output.writeMessage(12, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_); } if (reqCase_ == 13) { output.writeMessage(13, (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_); } for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : internalGetMetadata().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> metadata = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); output.writeMessage(1000, metadata); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (reqCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_); } if (reqCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_); } if (reqCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_); } if (reqCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_); } if (reqCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_); } if (reqCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_); } if (reqCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_); } if (reqCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_); } if (reqCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_); } if (reqCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_); } if (reqCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_); } if (reqCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_); } if (reqCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_); } for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : internalGetMetadata().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> metadata = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1000, metadata); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.SessionProto.Transaction.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.Req) obj; boolean result = true; result = result && internalGetMetadata().equals( other.internalGetMetadata()); result = result && getReqCase().equals( other.getReqCase()); if (!result) return false; switch (reqCase_) { case 1: result = result && getOpenReq() .equals(other.getOpenReq()); break; case 2: result = result && getCommitReq() .equals(other.getCommitReq()); break; case 3: result = result && getQueryReq() .equals(other.getQueryReq()); break; case 4: result = result && getIterateReq() .equals(other.getIterateReq()); break; case 5: result = result && getGetSchemaConceptReq() .equals(other.getGetSchemaConceptReq()); break; case 6: result = result && getGetConceptReq() .equals(other.getGetConceptReq()); break; case 7: result = result && getGetAttributesReq() .equals(other.getGetAttributesReq()); break; case 8: result = result && getPutEntityTypeReq() .equals(other.getPutEntityTypeReq()); break; case 9: result = result && getPutAttributeTypeReq() .equals(other.getPutAttributeTypeReq()); break; case 10: result = result && getPutRelationTypeReq() .equals(other.getPutRelationTypeReq()); break; case 11: result = result && getPutRoleReq() .equals(other.getPutRoleReq()); break; case 12: result = result && getPutRuleReq() .equals(other.getPutRuleReq()); break; case 13: result = result && getConceptMethodReq() .equals(other.getConceptMethodReq()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (!internalGetMetadata().getMap().isEmpty()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } switch (reqCase_) { case 1: hash = (37 * hash) + OPEN_REQ_FIELD_NUMBER; hash = (53 * hash) + getOpenReq().hashCode(); break; case 2: hash = (37 * hash) + COMMIT_REQ_FIELD_NUMBER; hash = (53 * hash) + getCommitReq().hashCode(); break; case 3: hash = (37 * hash) + QUERY_REQ_FIELD_NUMBER; hash = (53 * hash) + getQueryReq().hashCode(); break; case 4: hash = (37 * hash) + ITERATE_REQ_FIELD_NUMBER; hash = (53 * hash) + getIterateReq().hashCode(); break; case 5: hash = (37 * hash) + GETSCHEMACONCEPT_REQ_FIELD_NUMBER; hash = (53 * hash) + getGetSchemaConceptReq().hashCode(); break; case 6: hash = (37 * hash) + GETCONCEPT_REQ_FIELD_NUMBER; hash = (53 * hash) + getGetConceptReq().hashCode(); break; case 7: hash = (37 * hash) + GETATTRIBUTES_REQ_FIELD_NUMBER; hash = (53 * hash) + getGetAttributesReq().hashCode(); break; case 8: hash = (37 * hash) + PUTENTITYTYPE_REQ_FIELD_NUMBER; hash = (53 * hash) + getPutEntityTypeReq().hashCode(); break; case 9: hash = (37 * hash) + PUTATTRIBUTETYPE_REQ_FIELD_NUMBER; hash = (53 * hash) + getPutAttributeTypeReq().hashCode(); break; case 10: hash = (37 * hash) + PUTRELATIONTYPE_REQ_FIELD_NUMBER; hash = (53 * hash) + getPutRelationTypeReq().hashCode(); break; case 11: hash = (37 * hash) + PUTROLE_REQ_FIELD_NUMBER; hash = (53 * hash) + getPutRoleReq().hashCode(); break; case 12: hash = (37 * hash) + PUTRULE_REQ_FIELD_NUMBER; hash = (53 * hash) + getPutRuleReq().hashCode(); break; case 13: hash = (37 * hash) + CONCEPTMETHOD_REQ_FIELD_NUMBER; hash = (53 * hash) + getConceptMethodReq().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.SessionProto.Transaction.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Req parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Req parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Req parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Req parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Req parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Req parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Req prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code session.Transaction.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Transaction.Req) ai.grakn.rpc.proto.SessionProto.Transaction.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Req_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1000: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1000: return internalGetMutableMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Req.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); internalGetMutableMetadata().clear(); reqCase_ = 0; req_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Req_descriptor; } public ai.grakn.rpc.proto.SessionProto.Transaction.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.SessionProto.Transaction.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.SessionProto.Transaction.Req build() { ai.grakn.rpc.proto.SessionProto.Transaction.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.SessionProto.Transaction.Req buildPartial() { ai.grakn.rpc.proto.SessionProto.Transaction.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.Req(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); if (reqCase_ == 1) { if (openReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = openReqBuilder_.build(); } } if (reqCase_ == 2) { if (commitReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = commitReqBuilder_.build(); } } if (reqCase_ == 3) { if (queryReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = queryReqBuilder_.build(); } } if (reqCase_ == 4) { if (iterateReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = iterateReqBuilder_.build(); } } if (reqCase_ == 5) { if (getSchemaConceptReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = getSchemaConceptReqBuilder_.build(); } } if (reqCase_ == 6) { if (getConceptReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = getConceptReqBuilder_.build(); } } if (reqCase_ == 7) { if (getAttributesReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = getAttributesReqBuilder_.build(); } } if (reqCase_ == 8) { if (putEntityTypeReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = putEntityTypeReqBuilder_.build(); } } if (reqCase_ == 9) { if (putAttributeTypeReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = putAttributeTypeReqBuilder_.build(); } } if (reqCase_ == 10) { if (putRelationTypeReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = putRelationTypeReqBuilder_.build(); } } if (reqCase_ == 11) { if (putRoleReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = putRoleReqBuilder_.build(); } } if (reqCase_ == 12) { if (putRuleReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = putRuleReqBuilder_.build(); } } if (reqCase_ == 13) { if (conceptMethodReqBuilder_ == null) { result.req_ = req_; } else { result.req_ = conceptMethodReqBuilder_.build(); } } result.bitField0_ = to_bitField0_; result.reqCase_ = reqCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Req) { return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Req other) { if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Req.getDefaultInstance()) return this; internalGetMutableMetadata().mergeFrom( other.internalGetMetadata()); switch (other.getReqCase()) { case OPEN_REQ: { mergeOpenReq(other.getOpenReq()); break; } case COMMIT_REQ: { mergeCommitReq(other.getCommitReq()); break; } case QUERY_REQ: { mergeQueryReq(other.getQueryReq()); break; } case ITERATE_REQ: { mergeIterateReq(other.getIterateReq()); break; } case GETSCHEMACONCEPT_REQ: { mergeGetSchemaConceptReq(other.getGetSchemaConceptReq()); break; } case GETCONCEPT_REQ: { mergeGetConceptReq(other.getGetConceptReq()); break; } case GETATTRIBUTES_REQ: { mergeGetAttributesReq(other.getGetAttributesReq()); break; } case PUTENTITYTYPE_REQ: { mergePutEntityTypeReq(other.getPutEntityTypeReq()); break; } case PUTATTRIBUTETYPE_REQ: { mergePutAttributeTypeReq(other.getPutAttributeTypeReq()); break; } case PUTRELATIONTYPE_REQ: { mergePutRelationTypeReq(other.getPutRelationTypeReq()); break; } case PUTROLE_REQ: { mergePutRoleReq(other.getPutRoleReq()); break; } case PUTRULE_REQ: { mergePutRuleReq(other.getPutRuleReq()); break; } case CONCEPTMETHOD_REQ: { mergeConceptMethodReq(other.getConceptMethodReq()); break; } case REQ_NOT_SET: { break; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ai.grakn.rpc.proto.SessionProto.Transaction.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Req) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int reqCase_ = 0; private java.lang.Object req_; public ReqCase getReqCase() { return ReqCase.forNumber( reqCase_); } public Builder clearReq() { reqCase_ = 0; req_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, java.lang.String> metadata_; private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableMetadata() { onChanged();; if (metadata_ == null) { metadata_ = com.google.protobuf.MapField.newMapField( MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); } return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMetadata() { return getMetadataMap(); } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() { return internalGetMetadata().getMap(); } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public java.lang.String getMetadataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public java.lang.String getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMetadata() { getMutableMetadata().clear(); return this; } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public Builder removeMetadata( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } getMutableMetadata().remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMutableMetadata() { return internalGetMutableMetadata().getMutableMap(); } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public Builder putMetadata( java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } getMutableMetadata().put(key, value); return this; } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public Builder putAllMetadata( java.util.Map<java.lang.String, java.lang.String> values) { getMutableMetadata().putAll(values); return this; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Open.ReqOrBuilder> openReqBuilder_; /** * <code>optional .session.Transaction.Open.Req open_req = 1;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req getOpenReq() { if (openReqBuilder_ == null) { if (reqCase_ == 1) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance(); } else { if (reqCase_ == 1) { return openReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Open.Req open_req = 1;</code> */ public Builder setOpenReq(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req value) { if (openReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { openReqBuilder_.setMessage(value); } reqCase_ = 1; return this; } /** * <code>optional .session.Transaction.Open.Req open_req = 1;</code> */ public Builder setOpenReq( ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.Builder builderForValue) { if (openReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { openReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 1; return this; } /** * <code>optional .session.Transaction.Open.Req open_req = 1;</code> */ public Builder mergeOpenReq(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req value) { if (openReqBuilder_ == null) { if (reqCase_ == 1 && req_ != ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 1) { openReqBuilder_.mergeFrom(value); } openReqBuilder_.setMessage(value); } reqCase_ = 1; return this; } /** * <code>optional .session.Transaction.Open.Req open_req = 1;</code> */ public Builder clearOpenReq() { if (openReqBuilder_ == null) { if (reqCase_ == 1) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 1) { reqCase_ = 0; req_ = null; } openReqBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.Open.Req open_req = 1;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.Builder getOpenReqBuilder() { return getOpenReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.Open.Req open_req = 1;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Open.ReqOrBuilder getOpenReqOrBuilder() { if ((reqCase_ == 1) && (openReqBuilder_ != null)) { return openReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 1) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Open.Req open_req = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Open.ReqOrBuilder> getOpenReqFieldBuilder() { if (openReqBuilder_ == null) { if (!(reqCase_ == 1)) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance(); } openReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Open.ReqOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 1; onChanged();; return openReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ReqOrBuilder> commitReqBuilder_; /** * <code>optional .session.Transaction.Commit.Req commit_req = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req getCommitReq() { if (commitReqBuilder_ == null) { if (reqCase_ == 2) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.getDefaultInstance(); } else { if (reqCase_ == 2) { return commitReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Commit.Req commit_req = 2;</code> */ public Builder setCommitReq(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req value) { if (commitReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { commitReqBuilder_.setMessage(value); } reqCase_ = 2; return this; } /** * <code>optional .session.Transaction.Commit.Req commit_req = 2;</code> */ public Builder setCommitReq( ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.Builder builderForValue) { if (commitReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { commitReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 2; return this; } /** * <code>optional .session.Transaction.Commit.Req commit_req = 2;</code> */ public Builder mergeCommitReq(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req value) { if (commitReqBuilder_ == null) { if (reqCase_ == 2 && req_ != ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 2) { commitReqBuilder_.mergeFrom(value); } commitReqBuilder_.setMessage(value); } reqCase_ = 2; return this; } /** * <code>optional .session.Transaction.Commit.Req commit_req = 2;</code> */ public Builder clearCommitReq() { if (commitReqBuilder_ == null) { if (reqCase_ == 2) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 2) { reqCase_ = 0; req_ = null; } commitReqBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.Commit.Req commit_req = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.Builder getCommitReqBuilder() { return getCommitReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.Commit.Req commit_req = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ReqOrBuilder getCommitReqOrBuilder() { if ((reqCase_ == 2) && (commitReqBuilder_ != null)) { return commitReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 2) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Commit.Req commit_req = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ReqOrBuilder> getCommitReqFieldBuilder() { if (commitReqBuilder_ == null) { if (!(reqCase_ == 2)) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.getDefaultInstance(); } commitReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ReqOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 2; onChanged();; return commitReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.ReqOrBuilder> queryReqBuilder_; /** * <code>optional .session.Transaction.Query.Req query_req = 3;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req getQueryReq() { if (queryReqBuilder_ == null) { if (reqCase_ == 3) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.getDefaultInstance(); } else { if (reqCase_ == 3) { return queryReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Query.Req query_req = 3;</code> */ public Builder setQueryReq(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req value) { if (queryReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { queryReqBuilder_.setMessage(value); } reqCase_ = 3; return this; } /** * <code>optional .session.Transaction.Query.Req query_req = 3;</code> */ public Builder setQueryReq( ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.Builder builderForValue) { if (queryReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { queryReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 3; return this; } /** * <code>optional .session.Transaction.Query.Req query_req = 3;</code> */ public Builder mergeQueryReq(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req value) { if (queryReqBuilder_ == null) { if (reqCase_ == 3 && req_ != ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 3) { queryReqBuilder_.mergeFrom(value); } queryReqBuilder_.setMessage(value); } reqCase_ = 3; return this; } /** * <code>optional .session.Transaction.Query.Req query_req = 3;</code> */ public Builder clearQueryReq() { if (queryReqBuilder_ == null) { if (reqCase_ == 3) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 3) { reqCase_ = 0; req_ = null; } queryReqBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.Query.Req query_req = 3;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.Builder getQueryReqBuilder() { return getQueryReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.Query.Req query_req = 3;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Query.ReqOrBuilder getQueryReqOrBuilder() { if ((reqCase_ == 3) && (queryReqBuilder_ != null)) { return queryReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 3) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Query.Req query_req = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.ReqOrBuilder> getQueryReqFieldBuilder() { if (queryReqBuilder_ == null) { if (!(reqCase_ == 3)) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.getDefaultInstance(); } queryReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.ReqOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 3; onChanged();; return queryReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ReqOrBuilder> iterateReqBuilder_; /** * <code>optional .session.Transaction.Iter.Req iterate_req = 4;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req getIterateReq() { if (iterateReqBuilder_ == null) { if (reqCase_ == 4) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance(); } else { if (reqCase_ == 4) { return iterateReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Iter.Req iterate_req = 4;</code> */ public Builder setIterateReq(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req value) { if (iterateReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { iterateReqBuilder_.setMessage(value); } reqCase_ = 4; return this; } /** * <code>optional .session.Transaction.Iter.Req iterate_req = 4;</code> */ public Builder setIterateReq( ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.Builder builderForValue) { if (iterateReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { iterateReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 4; return this; } /** * <code>optional .session.Transaction.Iter.Req iterate_req = 4;</code> */ public Builder mergeIterateReq(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req value) { if (iterateReqBuilder_ == null) { if (reqCase_ == 4 && req_ != ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 4) { iterateReqBuilder_.mergeFrom(value); } iterateReqBuilder_.setMessage(value); } reqCase_ = 4; return this; } /** * <code>optional .session.Transaction.Iter.Req iterate_req = 4;</code> */ public Builder clearIterateReq() { if (iterateReqBuilder_ == null) { if (reqCase_ == 4) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 4) { reqCase_ = 0; req_ = null; } iterateReqBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.Iter.Req iterate_req = 4;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.Builder getIterateReqBuilder() { return getIterateReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.Iter.Req iterate_req = 4;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ReqOrBuilder getIterateReqOrBuilder() { if ((reqCase_ == 4) && (iterateReqBuilder_ != null)) { return iterateReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 4) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Iter.Req iterate_req = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ReqOrBuilder> getIterateReqFieldBuilder() { if (iterateReqBuilder_ == null) { if (!(reqCase_ == 4)) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance(); } iterateReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ReqOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 4; onChanged();; return iterateReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ReqOrBuilder> getSchemaConceptReqBuilder_; /** * <code>optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req getGetSchemaConceptReq() { if (getSchemaConceptReqBuilder_ == null) { if (reqCase_ == 5) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.getDefaultInstance(); } else { if (reqCase_ == 5) { return getSchemaConceptReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;</code> */ public Builder setGetSchemaConceptReq(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req value) { if (getSchemaConceptReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { getSchemaConceptReqBuilder_.setMessage(value); } reqCase_ = 5; return this; } /** * <code>optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;</code> */ public Builder setGetSchemaConceptReq( ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.Builder builderForValue) { if (getSchemaConceptReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { getSchemaConceptReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 5; return this; } /** * <code>optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;</code> */ public Builder mergeGetSchemaConceptReq(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req value) { if (getSchemaConceptReqBuilder_ == null) { if (reqCase_ == 5 && req_ != ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 5) { getSchemaConceptReqBuilder_.mergeFrom(value); } getSchemaConceptReqBuilder_.setMessage(value); } reqCase_ = 5; return this; } /** * <code>optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;</code> */ public Builder clearGetSchemaConceptReq() { if (getSchemaConceptReqBuilder_ == null) { if (reqCase_ == 5) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 5) { reqCase_ = 0; req_ = null; } getSchemaConceptReqBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.Builder getGetSchemaConceptReqBuilder() { return getGetSchemaConceptReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ReqOrBuilder getGetSchemaConceptReqOrBuilder() { if ((reqCase_ == 5) && (getSchemaConceptReqBuilder_ != null)) { return getSchemaConceptReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 5) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ReqOrBuilder> getGetSchemaConceptReqFieldBuilder() { if (getSchemaConceptReqBuilder_ == null) { if (!(reqCase_ == 5)) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.getDefaultInstance(); } getSchemaConceptReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ReqOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 5; onChanged();; return getSchemaConceptReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ReqOrBuilder> getConceptReqBuilder_; /** * <code>optional .session.Transaction.GetConcept.Req getConcept_req = 6;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req getGetConceptReq() { if (getConceptReqBuilder_ == null) { if (reqCase_ == 6) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.getDefaultInstance(); } else { if (reqCase_ == 6) { return getConceptReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.GetConcept.Req getConcept_req = 6;</code> */ public Builder setGetConceptReq(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req value) { if (getConceptReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { getConceptReqBuilder_.setMessage(value); } reqCase_ = 6; return this; } /** * <code>optional .session.Transaction.GetConcept.Req getConcept_req = 6;</code> */ public Builder setGetConceptReq( ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.Builder builderForValue) { if (getConceptReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { getConceptReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 6; return this; } /** * <code>optional .session.Transaction.GetConcept.Req getConcept_req = 6;</code> */ public Builder mergeGetConceptReq(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req value) { if (getConceptReqBuilder_ == null) { if (reqCase_ == 6 && req_ != ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 6) { getConceptReqBuilder_.mergeFrom(value); } getConceptReqBuilder_.setMessage(value); } reqCase_ = 6; return this; } /** * <code>optional .session.Transaction.GetConcept.Req getConcept_req = 6;</code> */ public Builder clearGetConceptReq() { if (getConceptReqBuilder_ == null) { if (reqCase_ == 6) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 6) { reqCase_ = 0; req_ = null; } getConceptReqBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.GetConcept.Req getConcept_req = 6;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.Builder getGetConceptReqBuilder() { return getGetConceptReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.GetConcept.Req getConcept_req = 6;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ReqOrBuilder getGetConceptReqOrBuilder() { if ((reqCase_ == 6) && (getConceptReqBuilder_ != null)) { return getConceptReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 6) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.GetConcept.Req getConcept_req = 6;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ReqOrBuilder> getGetConceptReqFieldBuilder() { if (getConceptReqBuilder_ == null) { if (!(reqCase_ == 6)) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.getDefaultInstance(); } getConceptReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ReqOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 6; onChanged();; return getConceptReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.ReqOrBuilder> getAttributesReqBuilder_; /** * <code>optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req getGetAttributesReq() { if (getAttributesReqBuilder_ == null) { if (reqCase_ == 7) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.getDefaultInstance(); } else { if (reqCase_ == 7) { return getAttributesReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;</code> */ public Builder setGetAttributesReq(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req value) { if (getAttributesReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { getAttributesReqBuilder_.setMessage(value); } reqCase_ = 7; return this; } /** * <code>optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;</code> */ public Builder setGetAttributesReq( ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.Builder builderForValue) { if (getAttributesReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { getAttributesReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 7; return this; } /** * <code>optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;</code> */ public Builder mergeGetAttributesReq(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req value) { if (getAttributesReqBuilder_ == null) { if (reqCase_ == 7 && req_ != ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 7) { getAttributesReqBuilder_.mergeFrom(value); } getAttributesReqBuilder_.setMessage(value); } reqCase_ = 7; return this; } /** * <code>optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;</code> */ public Builder clearGetAttributesReq() { if (getAttributesReqBuilder_ == null) { if (reqCase_ == 7) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 7) { reqCase_ = 0; req_ = null; } getAttributesReqBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.Builder getGetAttributesReqBuilder() { return getGetAttributesReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.ReqOrBuilder getGetAttributesReqOrBuilder() { if ((reqCase_ == 7) && (getAttributesReqBuilder_ != null)) { return getAttributesReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 7) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.ReqOrBuilder> getGetAttributesReqFieldBuilder() { if (getAttributesReqBuilder_ == null) { if (!(reqCase_ == 7)) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.getDefaultInstance(); } getAttributesReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.ReqOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 7; onChanged();; return getAttributesReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ReqOrBuilder> putEntityTypeReqBuilder_; /** * <code>optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req getPutEntityTypeReq() { if (putEntityTypeReqBuilder_ == null) { if (reqCase_ == 8) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.getDefaultInstance(); } else { if (reqCase_ == 8) { return putEntityTypeReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;</code> */ public Builder setPutEntityTypeReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req value) { if (putEntityTypeReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { putEntityTypeReqBuilder_.setMessage(value); } reqCase_ = 8; return this; } /** * <code>optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;</code> */ public Builder setPutEntityTypeReq( ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.Builder builderForValue) { if (putEntityTypeReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { putEntityTypeReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 8; return this; } /** * <code>optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;</code> */ public Builder mergePutEntityTypeReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req value) { if (putEntityTypeReqBuilder_ == null) { if (reqCase_ == 8 && req_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 8) { putEntityTypeReqBuilder_.mergeFrom(value); } putEntityTypeReqBuilder_.setMessage(value); } reqCase_ = 8; return this; } /** * <code>optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;</code> */ public Builder clearPutEntityTypeReq() { if (putEntityTypeReqBuilder_ == null) { if (reqCase_ == 8) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 8) { reqCase_ = 0; req_ = null; } putEntityTypeReqBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.Builder getPutEntityTypeReqBuilder() { return getPutEntityTypeReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ReqOrBuilder getPutEntityTypeReqOrBuilder() { if ((reqCase_ == 8) && (putEntityTypeReqBuilder_ != null)) { return putEntityTypeReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 8) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ReqOrBuilder> getPutEntityTypeReqFieldBuilder() { if (putEntityTypeReqBuilder_ == null) { if (!(reqCase_ == 8)) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.getDefaultInstance(); } putEntityTypeReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ReqOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 8; onChanged();; return putEntityTypeReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ReqOrBuilder> putAttributeTypeReqBuilder_; /** * <code>optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req getPutAttributeTypeReq() { if (putAttributeTypeReqBuilder_ == null) { if (reqCase_ == 9) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.getDefaultInstance(); } else { if (reqCase_ == 9) { return putAttributeTypeReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;</code> */ public Builder setPutAttributeTypeReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req value) { if (putAttributeTypeReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { putAttributeTypeReqBuilder_.setMessage(value); } reqCase_ = 9; return this; } /** * <code>optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;</code> */ public Builder setPutAttributeTypeReq( ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.Builder builderForValue) { if (putAttributeTypeReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { putAttributeTypeReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 9; return this; } /** * <code>optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;</code> */ public Builder mergePutAttributeTypeReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req value) { if (putAttributeTypeReqBuilder_ == null) { if (reqCase_ == 9 && req_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 9) { putAttributeTypeReqBuilder_.mergeFrom(value); } putAttributeTypeReqBuilder_.setMessage(value); } reqCase_ = 9; return this; } /** * <code>optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;</code> */ public Builder clearPutAttributeTypeReq() { if (putAttributeTypeReqBuilder_ == null) { if (reqCase_ == 9) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 9) { reqCase_ = 0; req_ = null; } putAttributeTypeReqBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.Builder getPutAttributeTypeReqBuilder() { return getPutAttributeTypeReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ReqOrBuilder getPutAttributeTypeReqOrBuilder() { if ((reqCase_ == 9) && (putAttributeTypeReqBuilder_ != null)) { return putAttributeTypeReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 9) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ReqOrBuilder> getPutAttributeTypeReqFieldBuilder() { if (putAttributeTypeReqBuilder_ == null) { if (!(reqCase_ == 9)) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.getDefaultInstance(); } putAttributeTypeReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ReqOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 9; onChanged();; return putAttributeTypeReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ReqOrBuilder> putRelationTypeReqBuilder_; /** * <code>optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req getPutRelationTypeReq() { if (putRelationTypeReqBuilder_ == null) { if (reqCase_ == 10) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.getDefaultInstance(); } else { if (reqCase_ == 10) { return putRelationTypeReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;</code> */ public Builder setPutRelationTypeReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req value) { if (putRelationTypeReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { putRelationTypeReqBuilder_.setMessage(value); } reqCase_ = 10; return this; } /** * <code>optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;</code> */ public Builder setPutRelationTypeReq( ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.Builder builderForValue) { if (putRelationTypeReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { putRelationTypeReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 10; return this; } /** * <code>optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;</code> */ public Builder mergePutRelationTypeReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req value) { if (putRelationTypeReqBuilder_ == null) { if (reqCase_ == 10 && req_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 10) { putRelationTypeReqBuilder_.mergeFrom(value); } putRelationTypeReqBuilder_.setMessage(value); } reqCase_ = 10; return this; } /** * <code>optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;</code> */ public Builder clearPutRelationTypeReq() { if (putRelationTypeReqBuilder_ == null) { if (reqCase_ == 10) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 10) { reqCase_ = 0; req_ = null; } putRelationTypeReqBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.Builder getPutRelationTypeReqBuilder() { return getPutRelationTypeReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ReqOrBuilder getPutRelationTypeReqOrBuilder() { if ((reqCase_ == 10) && (putRelationTypeReqBuilder_ != null)) { return putRelationTypeReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 10) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ReqOrBuilder> getPutRelationTypeReqFieldBuilder() { if (putRelationTypeReqBuilder_ == null) { if (!(reqCase_ == 10)) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.getDefaultInstance(); } putRelationTypeReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ReqOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 10; onChanged();; return putRelationTypeReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ReqOrBuilder> putRoleReqBuilder_; /** * <code>optional .session.Transaction.PutRole.Req putRole_req = 11;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req getPutRoleReq() { if (putRoleReqBuilder_ == null) { if (reqCase_ == 11) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.getDefaultInstance(); } else { if (reqCase_ == 11) { return putRoleReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutRole.Req putRole_req = 11;</code> */ public Builder setPutRoleReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req value) { if (putRoleReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { putRoleReqBuilder_.setMessage(value); } reqCase_ = 11; return this; } /** * <code>optional .session.Transaction.PutRole.Req putRole_req = 11;</code> */ public Builder setPutRoleReq( ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.Builder builderForValue) { if (putRoleReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { putRoleReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 11; return this; } /** * <code>optional .session.Transaction.PutRole.Req putRole_req = 11;</code> */ public Builder mergePutRoleReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req value) { if (putRoleReqBuilder_ == null) { if (reqCase_ == 11 && req_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 11) { putRoleReqBuilder_.mergeFrom(value); } putRoleReqBuilder_.setMessage(value); } reqCase_ = 11; return this; } /** * <code>optional .session.Transaction.PutRole.Req putRole_req = 11;</code> */ public Builder clearPutRoleReq() { if (putRoleReqBuilder_ == null) { if (reqCase_ == 11) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 11) { reqCase_ = 0; req_ = null; } putRoleReqBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.PutRole.Req putRole_req = 11;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.Builder getPutRoleReqBuilder() { return getPutRoleReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.PutRole.Req putRole_req = 11;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ReqOrBuilder getPutRoleReqOrBuilder() { if ((reqCase_ == 11) && (putRoleReqBuilder_ != null)) { return putRoleReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 11) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutRole.Req putRole_req = 11;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ReqOrBuilder> getPutRoleReqFieldBuilder() { if (putRoleReqBuilder_ == null) { if (!(reqCase_ == 11)) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.getDefaultInstance(); } putRoleReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ReqOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 11; onChanged();; return putRoleReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ReqOrBuilder> putRuleReqBuilder_; /** * <code>optional .session.Transaction.PutRule.Req putRule_req = 12;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req getPutRuleReq() { if (putRuleReqBuilder_ == null) { if (reqCase_ == 12) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.getDefaultInstance(); } else { if (reqCase_ == 12) { return putRuleReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutRule.Req putRule_req = 12;</code> */ public Builder setPutRuleReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req value) { if (putRuleReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { putRuleReqBuilder_.setMessage(value); } reqCase_ = 12; return this; } /** * <code>optional .session.Transaction.PutRule.Req putRule_req = 12;</code> */ public Builder setPutRuleReq( ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.Builder builderForValue) { if (putRuleReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { putRuleReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 12; return this; } /** * <code>optional .session.Transaction.PutRule.Req putRule_req = 12;</code> */ public Builder mergePutRuleReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req value) { if (putRuleReqBuilder_ == null) { if (reqCase_ == 12 && req_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 12) { putRuleReqBuilder_.mergeFrom(value); } putRuleReqBuilder_.setMessage(value); } reqCase_ = 12; return this; } /** * <code>optional .session.Transaction.PutRule.Req putRule_req = 12;</code> */ public Builder clearPutRuleReq() { if (putRuleReqBuilder_ == null) { if (reqCase_ == 12) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 12) { reqCase_ = 0; req_ = null; } putRuleReqBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.PutRule.Req putRule_req = 12;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.Builder getPutRuleReqBuilder() { return getPutRuleReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.PutRule.Req putRule_req = 12;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ReqOrBuilder getPutRuleReqOrBuilder() { if ((reqCase_ == 12) && (putRuleReqBuilder_ != null)) { return putRuleReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 12) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutRule.Req putRule_req = 12;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ReqOrBuilder> getPutRuleReqFieldBuilder() { if (putRuleReqBuilder_ == null) { if (!(reqCase_ == 12)) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.getDefaultInstance(); } putRuleReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ReqOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 12; onChanged();; return putRuleReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ReqOrBuilder> conceptMethodReqBuilder_; /** * <code>optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req getConceptMethodReq() { if (conceptMethodReqBuilder_ == null) { if (reqCase_ == 13) { return (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.getDefaultInstance(); } else { if (reqCase_ == 13) { return conceptMethodReqBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;</code> */ public Builder setConceptMethodReq(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req value) { if (conceptMethodReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } req_ = value; onChanged(); } else { conceptMethodReqBuilder_.setMessage(value); } reqCase_ = 13; return this; } /** * <code>optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;</code> */ public Builder setConceptMethodReq( ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.Builder builderForValue) { if (conceptMethodReqBuilder_ == null) { req_ = builderForValue.build(); onChanged(); } else { conceptMethodReqBuilder_.setMessage(builderForValue.build()); } reqCase_ = 13; return this; } /** * <code>optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;</code> */ public Builder mergeConceptMethodReq(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req value) { if (conceptMethodReqBuilder_ == null) { if (reqCase_ == 13 && req_ != ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.getDefaultInstance()) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_) .mergeFrom(value).buildPartial(); } else { req_ = value; } onChanged(); } else { if (reqCase_ == 13) { conceptMethodReqBuilder_.mergeFrom(value); } conceptMethodReqBuilder_.setMessage(value); } reqCase_ = 13; return this; } /** * <code>optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;</code> */ public Builder clearConceptMethodReq() { if (conceptMethodReqBuilder_ == null) { if (reqCase_ == 13) { reqCase_ = 0; req_ = null; onChanged(); } } else { if (reqCase_ == 13) { reqCase_ = 0; req_ = null; } conceptMethodReqBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.Builder getConceptMethodReqBuilder() { return getConceptMethodReqFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ReqOrBuilder getConceptMethodReqOrBuilder() { if ((reqCase_ == 13) && (conceptMethodReqBuilder_ != null)) { return conceptMethodReqBuilder_.getMessageOrBuilder(); } else { if (reqCase_ == 13) { return (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_; } return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.getDefaultInstance(); } } /** * <code>optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ReqOrBuilder> getConceptMethodReqFieldBuilder() { if (conceptMethodReqBuilder_ == null) { if (!(reqCase_ == 13)) { req_ = ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.getDefaultInstance(); } conceptMethodReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ReqOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_, getParentForChildren(), isClean()); req_ = null; } reqCase_ = 13; onChanged();; return conceptMethodReqBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:session.Transaction.Req) } // @@protoc_insertion_point(class_scope:session.Transaction.Req) private static final ai.grakn.rpc.proto.SessionProto.Transaction.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Req(); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.SessionProto.Transaction.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Transaction.Res) com.google.protobuf.MessageOrBuilder { /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ int getMetadataCount(); /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ boolean containsMetadata( java.lang.String key); /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, java.lang.String> getMetadata(); /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ java.util.Map<java.lang.String, java.lang.String> getMetadataMap(); /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ java.lang.String getMetadataOrDefault( java.lang.String key, java.lang.String defaultValue); /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ java.lang.String getMetadataOrThrow( java.lang.String key); /** * <code>optional .session.Transaction.Open.Res open_res = 1;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res getOpenRes(); /** * <code>optional .session.Transaction.Open.Res open_res = 1;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Open.ResOrBuilder getOpenResOrBuilder(); /** * <code>optional .session.Transaction.Commit.Res commit_res = 2;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res getCommitRes(); /** * <code>optional .session.Transaction.Commit.Res commit_res = 2;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ResOrBuilder getCommitResOrBuilder(); /** * <code>optional .session.Transaction.Query.Iter query_iter = 3;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter getQueryIter(); /** * <code>optional .session.Transaction.Query.Iter query_iter = 3;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Query.IterOrBuilder getQueryIterOrBuilder(); /** * <code>optional .session.Transaction.Iter.Res iterate_res = 4;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res getIterateRes(); /** * <code>optional .session.Transaction.Iter.Res iterate_res = 4;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ResOrBuilder getIterateResOrBuilder(); /** * <code>optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res getGetSchemaConceptRes(); /** * <code>optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ResOrBuilder getGetSchemaConceptResOrBuilder(); /** * <code>optional .session.Transaction.GetConcept.Res getConcept_res = 6;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res getGetConceptRes(); /** * <code>optional .session.Transaction.GetConcept.Res getConcept_res = 6;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ResOrBuilder getGetConceptResOrBuilder(); /** * <code>optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter getGetAttributesIter(); /** * <code>optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.IterOrBuilder getGetAttributesIterOrBuilder(); /** * <code>optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res getPutEntityTypeRes(); /** * <code>optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ResOrBuilder getPutEntityTypeResOrBuilder(); /** * <code>optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res getPutAttributeTypeRes(); /** * <code>optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ResOrBuilder getPutAttributeTypeResOrBuilder(); /** * <code>optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res getPutRelationTypeRes(); /** * <code>optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ResOrBuilder getPutRelationTypeResOrBuilder(); /** * <code>optional .session.Transaction.PutRole.Res putRole_res = 11;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res getPutRoleRes(); /** * <code>optional .session.Transaction.PutRole.Res putRole_res = 11;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ResOrBuilder getPutRoleResOrBuilder(); /** * <code>optional .session.Transaction.PutRule.Res putRule_res = 12;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res getPutRuleRes(); /** * <code>optional .session.Transaction.PutRule.Res putRule_res = 12;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ResOrBuilder getPutRuleResOrBuilder(); /** * <code>optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res getConceptMethodRes(); /** * <code>optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ResOrBuilder getConceptMethodResOrBuilder(); public ai.grakn.rpc.proto.SessionProto.Transaction.Res.ResCase getResCase(); } /** * Protobuf type {@code session.Transaction.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Transaction.Res) ResOrBuilder { // Use Res.newBuilder() to construct. private Res(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Res() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Res( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.Builder subBuilder = null; if (resCase_ == 1) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 1; break; } case 18: { ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.Builder subBuilder = null; if (resCase_ == 2) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 2; break; } case 26: { ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Builder subBuilder = null; if (resCase_ == 3) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 3; break; } case 34: { ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.Builder subBuilder = null; if (resCase_ == 4) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 4; break; } case 42: { ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.Builder subBuilder = null; if (resCase_ == 5) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 5; break; } case 50: { ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.Builder subBuilder = null; if (resCase_ == 6) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 6; break; } case 58: { ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Builder subBuilder = null; if (resCase_ == 7) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_); res_ = subBuilder.buildPartial(); } resCase_ = 7; break; } case 66: { ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.Builder subBuilder = null; if (resCase_ == 8) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 8; break; } case 74: { ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.Builder subBuilder = null; if (resCase_ == 9) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 9; break; } case 82: { ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.Builder subBuilder = null; if (resCase_ == 10) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 10; break; } case 90: { ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.Builder subBuilder = null; if (resCase_ == 11) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 11; break; } case 98: { ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.Builder subBuilder = null; if (resCase_ == 12) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 12; break; } case 106: { ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.Builder subBuilder = null; if (resCase_ == 13) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 13; break; } case 8002: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { metadata_ = com.google.protobuf.MapField.newMapField( MetadataDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry<java.lang.String, java.lang.String> metadata = input.readMessage( MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); metadata_.getMutableMap().put(metadata.getKey(), metadata.getValue()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Res_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1000: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.Res.Builder.class); } private int bitField0_; private int resCase_ = 0; private java.lang.Object res_; public enum ResCase implements com.google.protobuf.Internal.EnumLite { OPEN_RES(1), COMMIT_RES(2), QUERY_ITER(3), ITERATE_RES(4), GETSCHEMACONCEPT_RES(5), GETCONCEPT_RES(6), GETATTRIBUTES_ITER(7), PUTENTITYTYPE_RES(8), PUTATTRIBUTETYPE_RES(9), PUTRELATIONTYPE_RES(10), PUTROLE_RES(11), PUTRULE_RES(12), CONCEPTMETHOD_RES(13), RES_NOT_SET(0); private final int value; private ResCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ResCase valueOf(int value) { return forNumber(value); } public static ResCase forNumber(int value) { switch (value) { case 1: return OPEN_RES; case 2: return COMMIT_RES; case 3: return QUERY_ITER; case 4: return ITERATE_RES; case 5: return GETSCHEMACONCEPT_RES; case 6: return GETCONCEPT_RES; case 7: return GETATTRIBUTES_ITER; case 8: return PUTENTITYTYPE_RES; case 9: return PUTATTRIBUTETYPE_RES; case 10: return PUTRELATIONTYPE_RES; case 11: return PUTROLE_RES; case 12: return PUTRULE_RES; case 13: return CONCEPTMETHOD_RES; case 0: return RES_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ResCase getResCase() { return ResCase.forNumber( resCase_); } public static final int METADATA_FIELD_NUMBER = 1000; private static final class MetadataDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, java.lang.String>newDefaultInstance( ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Res_MetadataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> metadata_; private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMetadata() { return getMetadataMap(); } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() { return internalGetMetadata().getMap(); } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public java.lang.String getMetadataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public java.lang.String getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int OPEN_RES_FIELD_NUMBER = 1; /** * <code>optional .session.Transaction.Open.Res open_res = 1;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res getOpenRes() { if (resCase_ == 1) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.getDefaultInstance(); } /** * <code>optional .session.Transaction.Open.Res open_res = 1;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Open.ResOrBuilder getOpenResOrBuilder() { if (resCase_ == 1) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.getDefaultInstance(); } public static final int COMMIT_RES_FIELD_NUMBER = 2; /** * <code>optional .session.Transaction.Commit.Res commit_res = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res getCommitRes() { if (resCase_ == 2) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.getDefaultInstance(); } /** * <code>optional .session.Transaction.Commit.Res commit_res = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ResOrBuilder getCommitResOrBuilder() { if (resCase_ == 2) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.getDefaultInstance(); } public static final int QUERY_ITER_FIELD_NUMBER = 3; /** * <code>optional .session.Transaction.Query.Iter query_iter = 3;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter getQueryIter() { if (resCase_ == 3) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.getDefaultInstance(); } /** * <code>optional .session.Transaction.Query.Iter query_iter = 3;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Query.IterOrBuilder getQueryIterOrBuilder() { if (resCase_ == 3) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.getDefaultInstance(); } public static final int ITERATE_RES_FIELD_NUMBER = 4; /** * <code>optional .session.Transaction.Iter.Res iterate_res = 4;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res getIterateRes() { if (resCase_ == 4) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance(); } /** * <code>optional .session.Transaction.Iter.Res iterate_res = 4;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ResOrBuilder getIterateResOrBuilder() { if (resCase_ == 4) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance(); } public static final int GETSCHEMACONCEPT_RES_FIELD_NUMBER = 5; /** * <code>optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res getGetSchemaConceptRes() { if (resCase_ == 5) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.getDefaultInstance(); } /** * <code>optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ResOrBuilder getGetSchemaConceptResOrBuilder() { if (resCase_ == 5) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.getDefaultInstance(); } public static final int GETCONCEPT_RES_FIELD_NUMBER = 6; /** * <code>optional .session.Transaction.GetConcept.Res getConcept_res = 6;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res getGetConceptRes() { if (resCase_ == 6) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.getDefaultInstance(); } /** * <code>optional .session.Transaction.GetConcept.Res getConcept_res = 6;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ResOrBuilder getGetConceptResOrBuilder() { if (resCase_ == 6) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.getDefaultInstance(); } public static final int GETATTRIBUTES_ITER_FIELD_NUMBER = 7; /** * <code>optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter getGetAttributesIter() { if (resCase_ == 7) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.getDefaultInstance(); } /** * <code>optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.IterOrBuilder getGetAttributesIterOrBuilder() { if (resCase_ == 7) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.getDefaultInstance(); } public static final int PUTENTITYTYPE_RES_FIELD_NUMBER = 8; /** * <code>optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res getPutEntityTypeRes() { if (resCase_ == 8) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.getDefaultInstance(); } /** * <code>optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ResOrBuilder getPutEntityTypeResOrBuilder() { if (resCase_ == 8) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.getDefaultInstance(); } public static final int PUTATTRIBUTETYPE_RES_FIELD_NUMBER = 9; /** * <code>optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res getPutAttributeTypeRes() { if (resCase_ == 9) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.getDefaultInstance(); } /** * <code>optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ResOrBuilder getPutAttributeTypeResOrBuilder() { if (resCase_ == 9) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.getDefaultInstance(); } public static final int PUTRELATIONTYPE_RES_FIELD_NUMBER = 10; /** * <code>optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res getPutRelationTypeRes() { if (resCase_ == 10) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.getDefaultInstance(); } /** * <code>optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ResOrBuilder getPutRelationTypeResOrBuilder() { if (resCase_ == 10) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.getDefaultInstance(); } public static final int PUTROLE_RES_FIELD_NUMBER = 11; /** * <code>optional .session.Transaction.PutRole.Res putRole_res = 11;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res getPutRoleRes() { if (resCase_ == 11) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.getDefaultInstance(); } /** * <code>optional .session.Transaction.PutRole.Res putRole_res = 11;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ResOrBuilder getPutRoleResOrBuilder() { if (resCase_ == 11) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.getDefaultInstance(); } public static final int PUTRULE_RES_FIELD_NUMBER = 12; /** * <code>optional .session.Transaction.PutRule.Res putRule_res = 12;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res getPutRuleRes() { if (resCase_ == 12) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.getDefaultInstance(); } /** * <code>optional .session.Transaction.PutRule.Res putRule_res = 12;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ResOrBuilder getPutRuleResOrBuilder() { if (resCase_ == 12) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.getDefaultInstance(); } public static final int CONCEPTMETHOD_RES_FIELD_NUMBER = 13; /** * <code>optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res getConceptMethodRes() { if (resCase_ == 13) { return (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.getDefaultInstance(); } /** * <code>optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ResOrBuilder getConceptMethodResOrBuilder() { if (resCase_ == 13) { return (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (resCase_ == 1) { output.writeMessage(1, (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_); } if (resCase_ == 2) { output.writeMessage(2, (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_); } if (resCase_ == 3) { output.writeMessage(3, (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_); } if (resCase_ == 4) { output.writeMessage(4, (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_); } if (resCase_ == 5) { output.writeMessage(5, (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_); } if (resCase_ == 6) { output.writeMessage(6, (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_); } if (resCase_ == 7) { output.writeMessage(7, (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_); } if (resCase_ == 8) { output.writeMessage(8, (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_); } if (resCase_ == 9) { output.writeMessage(9, (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_); } if (resCase_ == 10) { output.writeMessage(10, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_); } if (resCase_ == 11) { output.writeMessage(11, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_); } if (resCase_ == 12) { output.writeMessage(12, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_); } if (resCase_ == 13) { output.writeMessage(13, (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_); } for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : internalGetMetadata().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> metadata = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); output.writeMessage(1000, metadata); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (resCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_); } if (resCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_); } if (resCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_); } if (resCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_); } if (resCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_); } if (resCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_); } if (resCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_); } if (resCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_); } if (resCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_); } if (resCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_); } if (resCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_); } if (resCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_); } if (resCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_); } for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : internalGetMetadata().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> metadata = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1000, metadata); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.SessionProto.Transaction.Res other = (ai.grakn.rpc.proto.SessionProto.Transaction.Res) obj; boolean result = true; result = result && internalGetMetadata().equals( other.internalGetMetadata()); result = result && getResCase().equals( other.getResCase()); if (!result) return false; switch (resCase_) { case 1: result = result && getOpenRes() .equals(other.getOpenRes()); break; case 2: result = result && getCommitRes() .equals(other.getCommitRes()); break; case 3: result = result && getQueryIter() .equals(other.getQueryIter()); break; case 4: result = result && getIterateRes() .equals(other.getIterateRes()); break; case 5: result = result && getGetSchemaConceptRes() .equals(other.getGetSchemaConceptRes()); break; case 6: result = result && getGetConceptRes() .equals(other.getGetConceptRes()); break; case 7: result = result && getGetAttributesIter() .equals(other.getGetAttributesIter()); break; case 8: result = result && getPutEntityTypeRes() .equals(other.getPutEntityTypeRes()); break; case 9: result = result && getPutAttributeTypeRes() .equals(other.getPutAttributeTypeRes()); break; case 10: result = result && getPutRelationTypeRes() .equals(other.getPutRelationTypeRes()); break; case 11: result = result && getPutRoleRes() .equals(other.getPutRoleRes()); break; case 12: result = result && getPutRuleRes() .equals(other.getPutRuleRes()); break; case 13: result = result && getConceptMethodRes() .equals(other.getConceptMethodRes()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (!internalGetMetadata().getMap().isEmpty()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } switch (resCase_) { case 1: hash = (37 * hash) + OPEN_RES_FIELD_NUMBER; hash = (53 * hash) + getOpenRes().hashCode(); break; case 2: hash = (37 * hash) + COMMIT_RES_FIELD_NUMBER; hash = (53 * hash) + getCommitRes().hashCode(); break; case 3: hash = (37 * hash) + QUERY_ITER_FIELD_NUMBER; hash = (53 * hash) + getQueryIter().hashCode(); break; case 4: hash = (37 * hash) + ITERATE_RES_FIELD_NUMBER; hash = (53 * hash) + getIterateRes().hashCode(); break; case 5: hash = (37 * hash) + GETSCHEMACONCEPT_RES_FIELD_NUMBER; hash = (53 * hash) + getGetSchemaConceptRes().hashCode(); break; case 6: hash = (37 * hash) + GETCONCEPT_RES_FIELD_NUMBER; hash = (53 * hash) + getGetConceptRes().hashCode(); break; case 7: hash = (37 * hash) + GETATTRIBUTES_ITER_FIELD_NUMBER; hash = (53 * hash) + getGetAttributesIter().hashCode(); break; case 8: hash = (37 * hash) + PUTENTITYTYPE_RES_FIELD_NUMBER; hash = (53 * hash) + getPutEntityTypeRes().hashCode(); break; case 9: hash = (37 * hash) + PUTATTRIBUTETYPE_RES_FIELD_NUMBER; hash = (53 * hash) + getPutAttributeTypeRes().hashCode(); break; case 10: hash = (37 * hash) + PUTRELATIONTYPE_RES_FIELD_NUMBER; hash = (53 * hash) + getPutRelationTypeRes().hashCode(); break; case 11: hash = (37 * hash) + PUTROLE_RES_FIELD_NUMBER; hash = (53 * hash) + getPutRoleRes().hashCode(); break; case 12: hash = (37 * hash) + PUTRULE_RES_FIELD_NUMBER; hash = (53 * hash) + getPutRuleRes().hashCode(); break; case 13: hash = (37 * hash) + CONCEPTMETHOD_RES_FIELD_NUMBER; hash = (53 * hash) + getConceptMethodRes().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.SessionProto.Transaction.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Res parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Res parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Res parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Res parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Res parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Res parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Res prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code session.Transaction.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Transaction.Res) ai.grakn.rpc.proto.SessionProto.Transaction.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Res_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1000: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1000: return internalGetMutableMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Res.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); internalGetMutableMetadata().clear(); resCase_ = 0; res_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Res_descriptor; } public ai.grakn.rpc.proto.SessionProto.Transaction.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.SessionProto.Transaction.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.SessionProto.Transaction.Res build() { ai.grakn.rpc.proto.SessionProto.Transaction.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.SessionProto.Transaction.Res buildPartial() { ai.grakn.rpc.proto.SessionProto.Transaction.Res result = new ai.grakn.rpc.proto.SessionProto.Transaction.Res(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); if (resCase_ == 1) { if (openResBuilder_ == null) { result.res_ = res_; } else { result.res_ = openResBuilder_.build(); } } if (resCase_ == 2) { if (commitResBuilder_ == null) { result.res_ = res_; } else { result.res_ = commitResBuilder_.build(); } } if (resCase_ == 3) { if (queryIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = queryIterBuilder_.build(); } } if (resCase_ == 4) { if (iterateResBuilder_ == null) { result.res_ = res_; } else { result.res_ = iterateResBuilder_.build(); } } if (resCase_ == 5) { if (getSchemaConceptResBuilder_ == null) { result.res_ = res_; } else { result.res_ = getSchemaConceptResBuilder_.build(); } } if (resCase_ == 6) { if (getConceptResBuilder_ == null) { result.res_ = res_; } else { result.res_ = getConceptResBuilder_.build(); } } if (resCase_ == 7) { if (getAttributesIterBuilder_ == null) { result.res_ = res_; } else { result.res_ = getAttributesIterBuilder_.build(); } } if (resCase_ == 8) { if (putEntityTypeResBuilder_ == null) { result.res_ = res_; } else { result.res_ = putEntityTypeResBuilder_.build(); } } if (resCase_ == 9) { if (putAttributeTypeResBuilder_ == null) { result.res_ = res_; } else { result.res_ = putAttributeTypeResBuilder_.build(); } } if (resCase_ == 10) { if (putRelationTypeResBuilder_ == null) { result.res_ = res_; } else { result.res_ = putRelationTypeResBuilder_.build(); } } if (resCase_ == 11) { if (putRoleResBuilder_ == null) { result.res_ = res_; } else { result.res_ = putRoleResBuilder_.build(); } } if (resCase_ == 12) { if (putRuleResBuilder_ == null) { result.res_ = res_; } else { result.res_ = putRuleResBuilder_.build(); } } if (resCase_ == 13) { if (conceptMethodResBuilder_ == null) { result.res_ = res_; } else { result.res_ = conceptMethodResBuilder_.build(); } } result.bitField0_ = to_bitField0_; result.resCase_ = resCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Res) { return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Res other) { if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Res.getDefaultInstance()) return this; internalGetMutableMetadata().mergeFrom( other.internalGetMetadata()); switch (other.getResCase()) { case OPEN_RES: { mergeOpenRes(other.getOpenRes()); break; } case COMMIT_RES: { mergeCommitRes(other.getCommitRes()); break; } case QUERY_ITER: { mergeQueryIter(other.getQueryIter()); break; } case ITERATE_RES: { mergeIterateRes(other.getIterateRes()); break; } case GETSCHEMACONCEPT_RES: { mergeGetSchemaConceptRes(other.getGetSchemaConceptRes()); break; } case GETCONCEPT_RES: { mergeGetConceptRes(other.getGetConceptRes()); break; } case GETATTRIBUTES_ITER: { mergeGetAttributesIter(other.getGetAttributesIter()); break; } case PUTENTITYTYPE_RES: { mergePutEntityTypeRes(other.getPutEntityTypeRes()); break; } case PUTATTRIBUTETYPE_RES: { mergePutAttributeTypeRes(other.getPutAttributeTypeRes()); break; } case PUTRELATIONTYPE_RES: { mergePutRelationTypeRes(other.getPutRelationTypeRes()); break; } case PUTROLE_RES: { mergePutRoleRes(other.getPutRoleRes()); break; } case PUTRULE_RES: { mergePutRuleRes(other.getPutRuleRes()); break; } case CONCEPTMETHOD_RES: { mergeConceptMethodRes(other.getConceptMethodRes()); break; } case RES_NOT_SET: { break; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ai.grakn.rpc.proto.SessionProto.Transaction.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int resCase_ = 0; private java.lang.Object res_; public ResCase getResCase() { return ResCase.forNumber( resCase_); } public Builder clearRes() { resCase_ = 0; res_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, java.lang.String> metadata_; private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableMetadata() { onChanged();; if (metadata_ == null) { metadata_ = com.google.protobuf.MapField.newMapField( MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); } return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMetadata() { return getMetadataMap(); } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() { return internalGetMetadata().getMap(); } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public java.lang.String getMetadataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public java.lang.String getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMetadata() { getMutableMetadata().clear(); return this; } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public Builder removeMetadata( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } getMutableMetadata().remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMutableMetadata() { return internalGetMutableMetadata().getMutableMap(); } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public Builder putMetadata( java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } getMutableMetadata().put(key, value); return this; } /** * <code>map&lt;string, string&gt; metadata = 1000;</code> */ public Builder putAllMetadata( java.util.Map<java.lang.String, java.lang.String> values) { getMutableMetadata().putAll(values); return this; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Open.ResOrBuilder> openResBuilder_; /** * <code>optional .session.Transaction.Open.Res open_res = 1;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res getOpenRes() { if (openResBuilder_ == null) { if (resCase_ == 1) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.getDefaultInstance(); } else { if (resCase_ == 1) { return openResBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Open.Res open_res = 1;</code> */ public Builder setOpenRes(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res value) { if (openResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { openResBuilder_.setMessage(value); } resCase_ = 1; return this; } /** * <code>optional .session.Transaction.Open.Res open_res = 1;</code> */ public Builder setOpenRes( ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.Builder builderForValue) { if (openResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { openResBuilder_.setMessage(builderForValue.build()); } resCase_ = 1; return this; } /** * <code>optional .session.Transaction.Open.Res open_res = 1;</code> */ public Builder mergeOpenRes(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res value) { if (openResBuilder_ == null) { if (resCase_ == 1 && res_ != ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 1) { openResBuilder_.mergeFrom(value); } openResBuilder_.setMessage(value); } resCase_ = 1; return this; } /** * <code>optional .session.Transaction.Open.Res open_res = 1;</code> */ public Builder clearOpenRes() { if (openResBuilder_ == null) { if (resCase_ == 1) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 1) { resCase_ = 0; res_ = null; } openResBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.Open.Res open_res = 1;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.Builder getOpenResBuilder() { return getOpenResFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.Open.Res open_res = 1;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Open.ResOrBuilder getOpenResOrBuilder() { if ((resCase_ == 1) && (openResBuilder_ != null)) { return openResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 1) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Open.Res open_res = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Open.ResOrBuilder> getOpenResFieldBuilder() { if (openResBuilder_ == null) { if (!(resCase_ == 1)) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.getDefaultInstance(); } openResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Open.ResOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 1; onChanged();; return openResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ResOrBuilder> commitResBuilder_; /** * <code>optional .session.Transaction.Commit.Res commit_res = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res getCommitRes() { if (commitResBuilder_ == null) { if (resCase_ == 2) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.getDefaultInstance(); } else { if (resCase_ == 2) { return commitResBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Commit.Res commit_res = 2;</code> */ public Builder setCommitRes(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res value) { if (commitResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { commitResBuilder_.setMessage(value); } resCase_ = 2; return this; } /** * <code>optional .session.Transaction.Commit.Res commit_res = 2;</code> */ public Builder setCommitRes( ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.Builder builderForValue) { if (commitResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { commitResBuilder_.setMessage(builderForValue.build()); } resCase_ = 2; return this; } /** * <code>optional .session.Transaction.Commit.Res commit_res = 2;</code> */ public Builder mergeCommitRes(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res value) { if (commitResBuilder_ == null) { if (resCase_ == 2 && res_ != ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 2) { commitResBuilder_.mergeFrom(value); } commitResBuilder_.setMessage(value); } resCase_ = 2; return this; } /** * <code>optional .session.Transaction.Commit.Res commit_res = 2;</code> */ public Builder clearCommitRes() { if (commitResBuilder_ == null) { if (resCase_ == 2) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 2) { resCase_ = 0; res_ = null; } commitResBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.Commit.Res commit_res = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.Builder getCommitResBuilder() { return getCommitResFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.Commit.Res commit_res = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ResOrBuilder getCommitResOrBuilder() { if ((resCase_ == 2) && (commitResBuilder_ != null)) { return commitResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 2) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Commit.Res commit_res = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ResOrBuilder> getCommitResFieldBuilder() { if (commitResBuilder_ == null) { if (!(resCase_ == 2)) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.getDefaultInstance(); } commitResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ResOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 2; onChanged();; return commitResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.IterOrBuilder> queryIterBuilder_; /** * <code>optional .session.Transaction.Query.Iter query_iter = 3;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter getQueryIter() { if (queryIterBuilder_ == null) { if (resCase_ == 3) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.getDefaultInstance(); } else { if (resCase_ == 3) { return queryIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Query.Iter query_iter = 3;</code> */ public Builder setQueryIter(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter value) { if (queryIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { queryIterBuilder_.setMessage(value); } resCase_ = 3; return this; } /** * <code>optional .session.Transaction.Query.Iter query_iter = 3;</code> */ public Builder setQueryIter( ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Builder builderForValue) { if (queryIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { queryIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 3; return this; } /** * <code>optional .session.Transaction.Query.Iter query_iter = 3;</code> */ public Builder mergeQueryIter(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter value) { if (queryIterBuilder_ == null) { if (resCase_ == 3 && res_ != ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 3) { queryIterBuilder_.mergeFrom(value); } queryIterBuilder_.setMessage(value); } resCase_ = 3; return this; } /** * <code>optional .session.Transaction.Query.Iter query_iter = 3;</code> */ public Builder clearQueryIter() { if (queryIterBuilder_ == null) { if (resCase_ == 3) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 3) { resCase_ = 0; res_ = null; } queryIterBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.Query.Iter query_iter = 3;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Builder getQueryIterBuilder() { return getQueryIterFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.Query.Iter query_iter = 3;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Query.IterOrBuilder getQueryIterOrBuilder() { if ((resCase_ == 3) && (queryIterBuilder_ != null)) { return queryIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 3) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Query.Iter query_iter = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.IterOrBuilder> getQueryIterFieldBuilder() { if (queryIterBuilder_ == null) { if (!(resCase_ == 3)) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.getDefaultInstance(); } queryIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.IterOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 3; onChanged();; return queryIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ResOrBuilder> iterateResBuilder_; /** * <code>optional .session.Transaction.Iter.Res iterate_res = 4;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res getIterateRes() { if (iterateResBuilder_ == null) { if (resCase_ == 4) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance(); } else { if (resCase_ == 4) { return iterateResBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Iter.Res iterate_res = 4;</code> */ public Builder setIterateRes(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res value) { if (iterateResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { iterateResBuilder_.setMessage(value); } resCase_ = 4; return this; } /** * <code>optional .session.Transaction.Iter.Res iterate_res = 4;</code> */ public Builder setIterateRes( ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.Builder builderForValue) { if (iterateResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { iterateResBuilder_.setMessage(builderForValue.build()); } resCase_ = 4; return this; } /** * <code>optional .session.Transaction.Iter.Res iterate_res = 4;</code> */ public Builder mergeIterateRes(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res value) { if (iterateResBuilder_ == null) { if (resCase_ == 4 && res_ != ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 4) { iterateResBuilder_.mergeFrom(value); } iterateResBuilder_.setMessage(value); } resCase_ = 4; return this; } /** * <code>optional .session.Transaction.Iter.Res iterate_res = 4;</code> */ public Builder clearIterateRes() { if (iterateResBuilder_ == null) { if (resCase_ == 4) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 4) { resCase_ = 0; res_ = null; } iterateResBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.Iter.Res iterate_res = 4;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.Builder getIterateResBuilder() { return getIterateResFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.Iter.Res iterate_res = 4;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ResOrBuilder getIterateResOrBuilder() { if ((resCase_ == 4) && (iterateResBuilder_ != null)) { return iterateResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 4) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Iter.Res iterate_res = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ResOrBuilder> getIterateResFieldBuilder() { if (iterateResBuilder_ == null) { if (!(resCase_ == 4)) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance(); } iterateResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ResOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 4; onChanged();; return iterateResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ResOrBuilder> getSchemaConceptResBuilder_; /** * <code>optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res getGetSchemaConceptRes() { if (getSchemaConceptResBuilder_ == null) { if (resCase_ == 5) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.getDefaultInstance(); } else { if (resCase_ == 5) { return getSchemaConceptResBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;</code> */ public Builder setGetSchemaConceptRes(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res value) { if (getSchemaConceptResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { getSchemaConceptResBuilder_.setMessage(value); } resCase_ = 5; return this; } /** * <code>optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;</code> */ public Builder setGetSchemaConceptRes( ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.Builder builderForValue) { if (getSchemaConceptResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { getSchemaConceptResBuilder_.setMessage(builderForValue.build()); } resCase_ = 5; return this; } /** * <code>optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;</code> */ public Builder mergeGetSchemaConceptRes(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res value) { if (getSchemaConceptResBuilder_ == null) { if (resCase_ == 5 && res_ != ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 5) { getSchemaConceptResBuilder_.mergeFrom(value); } getSchemaConceptResBuilder_.setMessage(value); } resCase_ = 5; return this; } /** * <code>optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;</code> */ public Builder clearGetSchemaConceptRes() { if (getSchemaConceptResBuilder_ == null) { if (resCase_ == 5) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 5) { resCase_ = 0; res_ = null; } getSchemaConceptResBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.Builder getGetSchemaConceptResBuilder() { return getGetSchemaConceptResFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ResOrBuilder getGetSchemaConceptResOrBuilder() { if ((resCase_ == 5) && (getSchemaConceptResBuilder_ != null)) { return getSchemaConceptResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 5) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ResOrBuilder> getGetSchemaConceptResFieldBuilder() { if (getSchemaConceptResBuilder_ == null) { if (!(resCase_ == 5)) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.getDefaultInstance(); } getSchemaConceptResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ResOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 5; onChanged();; return getSchemaConceptResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ResOrBuilder> getConceptResBuilder_; /** * <code>optional .session.Transaction.GetConcept.Res getConcept_res = 6;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res getGetConceptRes() { if (getConceptResBuilder_ == null) { if (resCase_ == 6) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.getDefaultInstance(); } else { if (resCase_ == 6) { return getConceptResBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.GetConcept.Res getConcept_res = 6;</code> */ public Builder setGetConceptRes(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res value) { if (getConceptResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { getConceptResBuilder_.setMessage(value); } resCase_ = 6; return this; } /** * <code>optional .session.Transaction.GetConcept.Res getConcept_res = 6;</code> */ public Builder setGetConceptRes( ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.Builder builderForValue) { if (getConceptResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { getConceptResBuilder_.setMessage(builderForValue.build()); } resCase_ = 6; return this; } /** * <code>optional .session.Transaction.GetConcept.Res getConcept_res = 6;</code> */ public Builder mergeGetConceptRes(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res value) { if (getConceptResBuilder_ == null) { if (resCase_ == 6 && res_ != ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 6) { getConceptResBuilder_.mergeFrom(value); } getConceptResBuilder_.setMessage(value); } resCase_ = 6; return this; } /** * <code>optional .session.Transaction.GetConcept.Res getConcept_res = 6;</code> */ public Builder clearGetConceptRes() { if (getConceptResBuilder_ == null) { if (resCase_ == 6) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 6) { resCase_ = 0; res_ = null; } getConceptResBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.GetConcept.Res getConcept_res = 6;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.Builder getGetConceptResBuilder() { return getGetConceptResFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.GetConcept.Res getConcept_res = 6;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ResOrBuilder getGetConceptResOrBuilder() { if ((resCase_ == 6) && (getConceptResBuilder_ != null)) { return getConceptResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 6) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.GetConcept.Res getConcept_res = 6;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ResOrBuilder> getGetConceptResFieldBuilder() { if (getConceptResBuilder_ == null) { if (!(resCase_ == 6)) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.getDefaultInstance(); } getConceptResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ResOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 6; onChanged();; return getConceptResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.IterOrBuilder> getAttributesIterBuilder_; /** * <code>optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter getGetAttributesIter() { if (getAttributesIterBuilder_ == null) { if (resCase_ == 7) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.getDefaultInstance(); } else { if (resCase_ == 7) { return getAttributesIterBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.getDefaultInstance(); } } /** * <code>optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;</code> */ public Builder setGetAttributesIter(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter value) { if (getAttributesIterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { getAttributesIterBuilder_.setMessage(value); } resCase_ = 7; return this; } /** * <code>optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;</code> */ public Builder setGetAttributesIter( ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Builder builderForValue) { if (getAttributesIterBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { getAttributesIterBuilder_.setMessage(builderForValue.build()); } resCase_ = 7; return this; } /** * <code>optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;</code> */ public Builder mergeGetAttributesIter(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter value) { if (getAttributesIterBuilder_ == null) { if (resCase_ == 7 && res_ != ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 7) { getAttributesIterBuilder_.mergeFrom(value); } getAttributesIterBuilder_.setMessage(value); } resCase_ = 7; return this; } /** * <code>optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;</code> */ public Builder clearGetAttributesIter() { if (getAttributesIterBuilder_ == null) { if (resCase_ == 7) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 7) { resCase_ = 0; res_ = null; } getAttributesIterBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Builder getGetAttributesIterBuilder() { return getGetAttributesIterFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.IterOrBuilder getGetAttributesIterOrBuilder() { if ((resCase_ == 7) && (getAttributesIterBuilder_ != null)) { return getAttributesIterBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 7) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.getDefaultInstance(); } } /** * <code>optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.IterOrBuilder> getGetAttributesIterFieldBuilder() { if (getAttributesIterBuilder_ == null) { if (!(resCase_ == 7)) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.getDefaultInstance(); } getAttributesIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.IterOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 7; onChanged();; return getAttributesIterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ResOrBuilder> putEntityTypeResBuilder_; /** * <code>optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res getPutEntityTypeRes() { if (putEntityTypeResBuilder_ == null) { if (resCase_ == 8) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.getDefaultInstance(); } else { if (resCase_ == 8) { return putEntityTypeResBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;</code> */ public Builder setPutEntityTypeRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res value) { if (putEntityTypeResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { putEntityTypeResBuilder_.setMessage(value); } resCase_ = 8; return this; } /** * <code>optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;</code> */ public Builder setPutEntityTypeRes( ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.Builder builderForValue) { if (putEntityTypeResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { putEntityTypeResBuilder_.setMessage(builderForValue.build()); } resCase_ = 8; return this; } /** * <code>optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;</code> */ public Builder mergePutEntityTypeRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res value) { if (putEntityTypeResBuilder_ == null) { if (resCase_ == 8 && res_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 8) { putEntityTypeResBuilder_.mergeFrom(value); } putEntityTypeResBuilder_.setMessage(value); } resCase_ = 8; return this; } /** * <code>optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;</code> */ public Builder clearPutEntityTypeRes() { if (putEntityTypeResBuilder_ == null) { if (resCase_ == 8) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 8) { resCase_ = 0; res_ = null; } putEntityTypeResBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.Builder getPutEntityTypeResBuilder() { return getPutEntityTypeResFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ResOrBuilder getPutEntityTypeResOrBuilder() { if ((resCase_ == 8) && (putEntityTypeResBuilder_ != null)) { return putEntityTypeResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 8) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ResOrBuilder> getPutEntityTypeResFieldBuilder() { if (putEntityTypeResBuilder_ == null) { if (!(resCase_ == 8)) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.getDefaultInstance(); } putEntityTypeResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ResOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 8; onChanged();; return putEntityTypeResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ResOrBuilder> putAttributeTypeResBuilder_; /** * <code>optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res getPutAttributeTypeRes() { if (putAttributeTypeResBuilder_ == null) { if (resCase_ == 9) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.getDefaultInstance(); } else { if (resCase_ == 9) { return putAttributeTypeResBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;</code> */ public Builder setPutAttributeTypeRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res value) { if (putAttributeTypeResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { putAttributeTypeResBuilder_.setMessage(value); } resCase_ = 9; return this; } /** * <code>optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;</code> */ public Builder setPutAttributeTypeRes( ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.Builder builderForValue) { if (putAttributeTypeResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { putAttributeTypeResBuilder_.setMessage(builderForValue.build()); } resCase_ = 9; return this; } /** * <code>optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;</code> */ public Builder mergePutAttributeTypeRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res value) { if (putAttributeTypeResBuilder_ == null) { if (resCase_ == 9 && res_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 9) { putAttributeTypeResBuilder_.mergeFrom(value); } putAttributeTypeResBuilder_.setMessage(value); } resCase_ = 9; return this; } /** * <code>optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;</code> */ public Builder clearPutAttributeTypeRes() { if (putAttributeTypeResBuilder_ == null) { if (resCase_ == 9) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 9) { resCase_ = 0; res_ = null; } putAttributeTypeResBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.Builder getPutAttributeTypeResBuilder() { return getPutAttributeTypeResFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ResOrBuilder getPutAttributeTypeResOrBuilder() { if ((resCase_ == 9) && (putAttributeTypeResBuilder_ != null)) { return putAttributeTypeResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 9) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ResOrBuilder> getPutAttributeTypeResFieldBuilder() { if (putAttributeTypeResBuilder_ == null) { if (!(resCase_ == 9)) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.getDefaultInstance(); } putAttributeTypeResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ResOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 9; onChanged();; return putAttributeTypeResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ResOrBuilder> putRelationTypeResBuilder_; /** * <code>optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res getPutRelationTypeRes() { if (putRelationTypeResBuilder_ == null) { if (resCase_ == 10) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.getDefaultInstance(); } else { if (resCase_ == 10) { return putRelationTypeResBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;</code> */ public Builder setPutRelationTypeRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res value) { if (putRelationTypeResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { putRelationTypeResBuilder_.setMessage(value); } resCase_ = 10; return this; } /** * <code>optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;</code> */ public Builder setPutRelationTypeRes( ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.Builder builderForValue) { if (putRelationTypeResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { putRelationTypeResBuilder_.setMessage(builderForValue.build()); } resCase_ = 10; return this; } /** * <code>optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;</code> */ public Builder mergePutRelationTypeRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res value) { if (putRelationTypeResBuilder_ == null) { if (resCase_ == 10 && res_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 10) { putRelationTypeResBuilder_.mergeFrom(value); } putRelationTypeResBuilder_.setMessage(value); } resCase_ = 10; return this; } /** * <code>optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;</code> */ public Builder clearPutRelationTypeRes() { if (putRelationTypeResBuilder_ == null) { if (resCase_ == 10) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 10) { resCase_ = 0; res_ = null; } putRelationTypeResBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.Builder getPutRelationTypeResBuilder() { return getPutRelationTypeResFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ResOrBuilder getPutRelationTypeResOrBuilder() { if ((resCase_ == 10) && (putRelationTypeResBuilder_ != null)) { return putRelationTypeResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 10) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ResOrBuilder> getPutRelationTypeResFieldBuilder() { if (putRelationTypeResBuilder_ == null) { if (!(resCase_ == 10)) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.getDefaultInstance(); } putRelationTypeResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ResOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 10; onChanged();; return putRelationTypeResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ResOrBuilder> putRoleResBuilder_; /** * <code>optional .session.Transaction.PutRole.Res putRole_res = 11;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res getPutRoleRes() { if (putRoleResBuilder_ == null) { if (resCase_ == 11) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.getDefaultInstance(); } else { if (resCase_ == 11) { return putRoleResBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutRole.Res putRole_res = 11;</code> */ public Builder setPutRoleRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res value) { if (putRoleResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { putRoleResBuilder_.setMessage(value); } resCase_ = 11; return this; } /** * <code>optional .session.Transaction.PutRole.Res putRole_res = 11;</code> */ public Builder setPutRoleRes( ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.Builder builderForValue) { if (putRoleResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { putRoleResBuilder_.setMessage(builderForValue.build()); } resCase_ = 11; return this; } /** * <code>optional .session.Transaction.PutRole.Res putRole_res = 11;</code> */ public Builder mergePutRoleRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res value) { if (putRoleResBuilder_ == null) { if (resCase_ == 11 && res_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 11) { putRoleResBuilder_.mergeFrom(value); } putRoleResBuilder_.setMessage(value); } resCase_ = 11; return this; } /** * <code>optional .session.Transaction.PutRole.Res putRole_res = 11;</code> */ public Builder clearPutRoleRes() { if (putRoleResBuilder_ == null) { if (resCase_ == 11) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 11) { resCase_ = 0; res_ = null; } putRoleResBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.PutRole.Res putRole_res = 11;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.Builder getPutRoleResBuilder() { return getPutRoleResFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.PutRole.Res putRole_res = 11;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ResOrBuilder getPutRoleResOrBuilder() { if ((resCase_ == 11) && (putRoleResBuilder_ != null)) { return putRoleResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 11) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutRole.Res putRole_res = 11;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ResOrBuilder> getPutRoleResFieldBuilder() { if (putRoleResBuilder_ == null) { if (!(resCase_ == 11)) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.getDefaultInstance(); } putRoleResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ResOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 11; onChanged();; return putRoleResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ResOrBuilder> putRuleResBuilder_; /** * <code>optional .session.Transaction.PutRule.Res putRule_res = 12;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res getPutRuleRes() { if (putRuleResBuilder_ == null) { if (resCase_ == 12) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.getDefaultInstance(); } else { if (resCase_ == 12) { return putRuleResBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutRule.Res putRule_res = 12;</code> */ public Builder setPutRuleRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res value) { if (putRuleResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { putRuleResBuilder_.setMessage(value); } resCase_ = 12; return this; } /** * <code>optional .session.Transaction.PutRule.Res putRule_res = 12;</code> */ public Builder setPutRuleRes( ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.Builder builderForValue) { if (putRuleResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { putRuleResBuilder_.setMessage(builderForValue.build()); } resCase_ = 12; return this; } /** * <code>optional .session.Transaction.PutRule.Res putRule_res = 12;</code> */ public Builder mergePutRuleRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res value) { if (putRuleResBuilder_ == null) { if (resCase_ == 12 && res_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 12) { putRuleResBuilder_.mergeFrom(value); } putRuleResBuilder_.setMessage(value); } resCase_ = 12; return this; } /** * <code>optional .session.Transaction.PutRule.Res putRule_res = 12;</code> */ public Builder clearPutRuleRes() { if (putRuleResBuilder_ == null) { if (resCase_ == 12) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 12) { resCase_ = 0; res_ = null; } putRuleResBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.PutRule.Res putRule_res = 12;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.Builder getPutRuleResBuilder() { return getPutRuleResFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.PutRule.Res putRule_res = 12;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ResOrBuilder getPutRuleResOrBuilder() { if ((resCase_ == 12) && (putRuleResBuilder_ != null)) { return putRuleResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 12) { return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.PutRule.Res putRule_res = 12;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ResOrBuilder> getPutRuleResFieldBuilder() { if (putRuleResBuilder_ == null) { if (!(resCase_ == 12)) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.getDefaultInstance(); } putRuleResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ResOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 12; onChanged();; return putRuleResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ResOrBuilder> conceptMethodResBuilder_; /** * <code>optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res getConceptMethodRes() { if (conceptMethodResBuilder_ == null) { if (resCase_ == 13) { return (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.getDefaultInstance(); } else { if (resCase_ == 13) { return conceptMethodResBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;</code> */ public Builder setConceptMethodRes(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res value) { if (conceptMethodResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { conceptMethodResBuilder_.setMessage(value); } resCase_ = 13; return this; } /** * <code>optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;</code> */ public Builder setConceptMethodRes( ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.Builder builderForValue) { if (conceptMethodResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { conceptMethodResBuilder_.setMessage(builderForValue.build()); } resCase_ = 13; return this; } /** * <code>optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;</code> */ public Builder mergeConceptMethodRes(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res value) { if (conceptMethodResBuilder_ == null) { if (resCase_ == 13 && res_ != ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 13) { conceptMethodResBuilder_.mergeFrom(value); } conceptMethodResBuilder_.setMessage(value); } resCase_ = 13; return this; } /** * <code>optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;</code> */ public Builder clearConceptMethodRes() { if (conceptMethodResBuilder_ == null) { if (resCase_ == 13) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 13) { resCase_ = 0; res_ = null; } conceptMethodResBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.Builder getConceptMethodResBuilder() { return getConceptMethodResFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ResOrBuilder getConceptMethodResOrBuilder() { if ((resCase_ == 13) && (conceptMethodResBuilder_ != null)) { return conceptMethodResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 13) { return (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ResOrBuilder> getConceptMethodResFieldBuilder() { if (conceptMethodResBuilder_ == null) { if (!(resCase_ == 13)) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.getDefaultInstance(); } conceptMethodResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ResOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 13; onChanged();; return conceptMethodResBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:session.Transaction.Res) } // @@protoc_insertion_point(class_scope:session.Transaction.Res) private static final ai.grakn.rpc.proto.SessionProto.Transaction.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Res(); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.SessionProto.Transaction.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IterOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Transaction.Iter) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Transaction.Iter} */ public static final class Iter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Transaction.Iter) IterOrBuilder { // Use Iter.newBuilder() to construct. private Iter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Iter() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Iter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.Iter.class, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Transaction.Iter.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 id = 1;</code> */ int getId(); } /** * Protobuf type {@code session.Transaction.Iter.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Transaction.Iter.Req) ReqOrBuilder { // Use Req.newBuilder() to construct. private Req(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Req() { id_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Req( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { id_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != 0) { output.writeInt32(1, id_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, id_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) obj; boolean result = true; result = result && (getId() == other.getId()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code session.Transaction.Iter.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Transaction.Iter.Req) ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); id_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Req_descriptor; } public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req build() { ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req buildPartial() { ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req(this); result.id_ = id_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) { return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req other) { if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance()) return this; if (other.getId() != 0) { setId(other.getId()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ public Builder clearId() { id_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:session.Transaction.Iter.Req) } // @@protoc_insertion_point(class_scope:session.Transaction.Iter.Req) private static final ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req(); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Transaction.Iter.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional bool done = 1;</code> */ boolean getDone(); /** * <code>optional .session.Transaction.Query.Iter.Res query_iter_res = 2;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res getQueryIterRes(); /** * <code>optional .session.Transaction.Query.Iter.Res query_iter_res = 2;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.ResOrBuilder getQueryIterResOrBuilder(); /** * <code>optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res getGetAttributesIterRes(); /** * <code>optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.ResOrBuilder getGetAttributesIterResOrBuilder(); /** * <code>optional .session.Method.Iter.Res conceptMethod_iter_res = 4;</code> */ ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res getConceptMethodIterRes(); /** * <code>optional .session.Method.Iter.Res conceptMethod_iter_res = 4;</code> */ ai.grakn.rpc.proto.ConceptProto.Method.Iter.ResOrBuilder getConceptMethodIterResOrBuilder(); public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.ResCase getResCase(); } /** * Protobuf type {@code session.Transaction.Iter.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Transaction.Iter.Res) ResOrBuilder { // Use Res.newBuilder() to construct. private Res(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Res() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Res( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { resCase_ = 1; res_ = input.readBool(); break; } case 18: { ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.Builder subBuilder = null; if (resCase_ == 2) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 2; break; } case 26: { ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.Builder subBuilder = null; if (resCase_ == 3) { subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 3; break; } case 34: { ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.Builder subBuilder = null; if (resCase_ == 4) { subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_).toBuilder(); } res_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_); res_ = subBuilder.buildPartial(); } resCase_ = 4; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.Builder.class); } private int resCase_ = 0; private java.lang.Object res_; public enum ResCase implements com.google.protobuf.Internal.EnumLite { DONE(1), QUERY_ITER_RES(2), GETATTRIBUTES_ITER_RES(3), CONCEPTMETHOD_ITER_RES(4), RES_NOT_SET(0); private final int value; private ResCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ResCase valueOf(int value) { return forNumber(value); } public static ResCase forNumber(int value) { switch (value) { case 1: return DONE; case 2: return QUERY_ITER_RES; case 3: return GETATTRIBUTES_ITER_RES; case 4: return CONCEPTMETHOD_ITER_RES; case 0: return RES_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ResCase getResCase() { return ResCase.forNumber( resCase_); } public static final int DONE_FIELD_NUMBER = 1; /** * <code>optional bool done = 1;</code> */ public boolean getDone() { if (resCase_ == 1) { return (java.lang.Boolean) res_; } return false; } public static final int QUERY_ITER_RES_FIELD_NUMBER = 2; /** * <code>optional .session.Transaction.Query.Iter.Res query_iter_res = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res getQueryIterRes() { if (resCase_ == 2) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.getDefaultInstance(); } /** * <code>optional .session.Transaction.Query.Iter.Res query_iter_res = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.ResOrBuilder getQueryIterResOrBuilder() { if (resCase_ == 2) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.getDefaultInstance(); } public static final int GETATTRIBUTES_ITER_RES_FIELD_NUMBER = 3; /** * <code>optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res getGetAttributesIterRes() { if (resCase_ == 3) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.getDefaultInstance(); } /** * <code>optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.ResOrBuilder getGetAttributesIterResOrBuilder() { if (resCase_ == 3) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.getDefaultInstance(); } public static final int CONCEPTMETHOD_ITER_RES_FIELD_NUMBER = 4; /** * <code>optional .session.Method.Iter.Res conceptMethod_iter_res = 4;</code> */ public ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res getConceptMethodIterRes() { if (resCase_ == 4) { return (ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.getDefaultInstance(); } /** * <code>optional .session.Method.Iter.Res conceptMethod_iter_res = 4;</code> */ public ai.grakn.rpc.proto.ConceptProto.Method.Iter.ResOrBuilder getConceptMethodIterResOrBuilder() { if (resCase_ == 4) { return (ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (resCase_ == 1) { output.writeBool( 1, (boolean)((java.lang.Boolean) res_)); } if (resCase_ == 2) { output.writeMessage(2, (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_); } if (resCase_ == 3) { output.writeMessage(3, (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_); } if (resCase_ == 4) { output.writeMessage(4, (ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (resCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 1, (boolean)((java.lang.Boolean) res_)); } if (resCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_); } if (resCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_); } if (resCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res other = (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) obj; boolean result = true; result = result && getResCase().equals( other.getResCase()); if (!result) return false; switch (resCase_) { case 1: result = result && (getDone() == other.getDone()); break; case 2: result = result && getQueryIterRes() .equals(other.getQueryIterRes()); break; case 3: result = result && getGetAttributesIterRes() .equals(other.getGetAttributesIterRes()); break; case 4: result = result && getConceptMethodIterRes() .equals(other.getConceptMethodIterRes()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); switch (resCase_) { case 1: hash = (37 * hash) + DONE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDone()); break; case 2: hash = (37 * hash) + QUERY_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getQueryIterRes().hashCode(); break; case 3: hash = (37 * hash) + GETATTRIBUTES_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getGetAttributesIterRes().hashCode(); break; case 4: hash = (37 * hash) + CONCEPTMETHOD_ITER_RES_FIELD_NUMBER; hash = (53 * hash) + getConceptMethodIterRes().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code session.Transaction.Iter.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Transaction.Iter.Res) ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); resCase_ = 0; res_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Res_descriptor; } public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res build() { ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res buildPartial() { ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res result = new ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res(this); if (resCase_ == 1) { result.res_ = res_; } if (resCase_ == 2) { if (queryIterResBuilder_ == null) { result.res_ = res_; } else { result.res_ = queryIterResBuilder_.build(); } } if (resCase_ == 3) { if (getAttributesIterResBuilder_ == null) { result.res_ = res_; } else { result.res_ = getAttributesIterResBuilder_.build(); } } if (resCase_ == 4) { if (conceptMethodIterResBuilder_ == null) { result.res_ = res_; } else { result.res_ = conceptMethodIterResBuilder_.build(); } } result.resCase_ = resCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) { return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res other) { if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance()) return this; switch (other.getResCase()) { case DONE: { setDone(other.getDone()); break; } case QUERY_ITER_RES: { mergeQueryIterRes(other.getQueryIterRes()); break; } case GETATTRIBUTES_ITER_RES: { mergeGetAttributesIterRes(other.getGetAttributesIterRes()); break; } case CONCEPTMETHOD_ITER_RES: { mergeConceptMethodIterRes(other.getConceptMethodIterRes()); break; } case RES_NOT_SET: { break; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int resCase_ = 0; private java.lang.Object res_; public ResCase getResCase() { return ResCase.forNumber( resCase_); } public Builder clearRes() { resCase_ = 0; res_ = null; onChanged(); return this; } /** * <code>optional bool done = 1;</code> */ public boolean getDone() { if (resCase_ == 1) { return (java.lang.Boolean) res_; } return false; } /** * <code>optional bool done = 1;</code> */ public Builder setDone(boolean value) { resCase_ = 1; res_ = value; onChanged(); return this; } /** * <code>optional bool done = 1;</code> */ public Builder clearDone() { if (resCase_ == 1) { resCase_ = 0; res_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.ResOrBuilder> queryIterResBuilder_; /** * <code>optional .session.Transaction.Query.Iter.Res query_iter_res = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res getQueryIterRes() { if (queryIterResBuilder_ == null) { if (resCase_ == 2) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.getDefaultInstance(); } else { if (resCase_ == 2) { return queryIterResBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Query.Iter.Res query_iter_res = 2;</code> */ public Builder setQueryIterRes(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res value) { if (queryIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { queryIterResBuilder_.setMessage(value); } resCase_ = 2; return this; } /** * <code>optional .session.Transaction.Query.Iter.Res query_iter_res = 2;</code> */ public Builder setQueryIterRes( ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.Builder builderForValue) { if (queryIterResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { queryIterResBuilder_.setMessage(builderForValue.build()); } resCase_ = 2; return this; } /** * <code>optional .session.Transaction.Query.Iter.Res query_iter_res = 2;</code> */ public Builder mergeQueryIterRes(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res value) { if (queryIterResBuilder_ == null) { if (resCase_ == 2 && res_ != ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 2) { queryIterResBuilder_.mergeFrom(value); } queryIterResBuilder_.setMessage(value); } resCase_ = 2; return this; } /** * <code>optional .session.Transaction.Query.Iter.Res query_iter_res = 2;</code> */ public Builder clearQueryIterRes() { if (queryIterResBuilder_ == null) { if (resCase_ == 2) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 2) { resCase_ = 0; res_ = null; } queryIterResBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.Query.Iter.Res query_iter_res = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.Builder getQueryIterResBuilder() { return getQueryIterResFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.Query.Iter.Res query_iter_res = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.ResOrBuilder getQueryIterResOrBuilder() { if ((resCase_ == 2) && (queryIterResBuilder_ != null)) { return queryIterResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 2) { return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.Query.Iter.Res query_iter_res = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.ResOrBuilder> getQueryIterResFieldBuilder() { if (queryIterResBuilder_ == null) { if (!(resCase_ == 2)) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.getDefaultInstance(); } queryIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.ResOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 2; onChanged();; return queryIterResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.ResOrBuilder> getAttributesIterResBuilder_; /** * <code>optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res getGetAttributesIterRes() { if (getAttributesIterResBuilder_ == null) { if (resCase_ == 3) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.getDefaultInstance(); } else { if (resCase_ == 3) { return getAttributesIterResBuilder_.getMessage(); } return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;</code> */ public Builder setGetAttributesIterRes(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res value) { if (getAttributesIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { getAttributesIterResBuilder_.setMessage(value); } resCase_ = 3; return this; } /** * <code>optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;</code> */ public Builder setGetAttributesIterRes( ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.Builder builderForValue) { if (getAttributesIterResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { getAttributesIterResBuilder_.setMessage(builderForValue.build()); } resCase_ = 3; return this; } /** * <code>optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;</code> */ public Builder mergeGetAttributesIterRes(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res value) { if (getAttributesIterResBuilder_ == null) { if (resCase_ == 3 && res_ != ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 3) { getAttributesIterResBuilder_.mergeFrom(value); } getAttributesIterResBuilder_.setMessage(value); } resCase_ = 3; return this; } /** * <code>optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;</code> */ public Builder clearGetAttributesIterRes() { if (getAttributesIterResBuilder_ == null) { if (resCase_ == 3) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 3) { resCase_ = 0; res_ = null; } getAttributesIterResBuilder_.clear(); } return this; } /** * <code>optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.Builder getGetAttributesIterResBuilder() { return getGetAttributesIterResFieldBuilder().getBuilder(); } /** * <code>optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.ResOrBuilder getGetAttributesIterResOrBuilder() { if ((resCase_ == 3) && (getAttributesIterResBuilder_ != null)) { return getAttributesIterResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 3) { return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_; } return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.getDefaultInstance(); } } /** * <code>optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.ResOrBuilder> getGetAttributesIterResFieldBuilder() { if (getAttributesIterResBuilder_ == null) { if (!(resCase_ == 3)) { res_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.getDefaultInstance(); } getAttributesIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.ResOrBuilder>( (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 3; onChanged();; return getAttributesIterResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Method.Iter.ResOrBuilder> conceptMethodIterResBuilder_; /** * <code>optional .session.Method.Iter.Res conceptMethod_iter_res = 4;</code> */ public ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res getConceptMethodIterRes() { if (conceptMethodIterResBuilder_ == null) { if (resCase_ == 4) { return (ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.getDefaultInstance(); } else { if (resCase_ == 4) { return conceptMethodIterResBuilder_.getMessage(); } return ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.getDefaultInstance(); } } /** * <code>optional .session.Method.Iter.Res conceptMethod_iter_res = 4;</code> */ public Builder setConceptMethodIterRes(ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res value) { if (conceptMethodIterResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } res_ = value; onChanged(); } else { conceptMethodIterResBuilder_.setMessage(value); } resCase_ = 4; return this; } /** * <code>optional .session.Method.Iter.Res conceptMethod_iter_res = 4;</code> */ public Builder setConceptMethodIterRes( ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.Builder builderForValue) { if (conceptMethodIterResBuilder_ == null) { res_ = builderForValue.build(); onChanged(); } else { conceptMethodIterResBuilder_.setMessage(builderForValue.build()); } resCase_ = 4; return this; } /** * <code>optional .session.Method.Iter.Res conceptMethod_iter_res = 4;</code> */ public Builder mergeConceptMethodIterRes(ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res value) { if (conceptMethodIterResBuilder_ == null) { if (resCase_ == 4 && res_ != ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.getDefaultInstance()) { res_ = ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_) .mergeFrom(value).buildPartial(); } else { res_ = value; } onChanged(); } else { if (resCase_ == 4) { conceptMethodIterResBuilder_.mergeFrom(value); } conceptMethodIterResBuilder_.setMessage(value); } resCase_ = 4; return this; } /** * <code>optional .session.Method.Iter.Res conceptMethod_iter_res = 4;</code> */ public Builder clearConceptMethodIterRes() { if (conceptMethodIterResBuilder_ == null) { if (resCase_ == 4) { resCase_ = 0; res_ = null; onChanged(); } } else { if (resCase_ == 4) { resCase_ = 0; res_ = null; } conceptMethodIterResBuilder_.clear(); } return this; } /** * <code>optional .session.Method.Iter.Res conceptMethod_iter_res = 4;</code> */ public ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.Builder getConceptMethodIterResBuilder() { return getConceptMethodIterResFieldBuilder().getBuilder(); } /** * <code>optional .session.Method.Iter.Res conceptMethod_iter_res = 4;</code> */ public ai.grakn.rpc.proto.ConceptProto.Method.Iter.ResOrBuilder getConceptMethodIterResOrBuilder() { if ((resCase_ == 4) && (conceptMethodIterResBuilder_ != null)) { return conceptMethodIterResBuilder_.getMessageOrBuilder(); } else { if (resCase_ == 4) { return (ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_; } return ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.getDefaultInstance(); } } /** * <code>optional .session.Method.Iter.Res conceptMethod_iter_res = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Method.Iter.ResOrBuilder> getConceptMethodIterResFieldBuilder() { if (conceptMethodIterResBuilder_ == null) { if (!(resCase_ == 4)) { res_ = ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.getDefaultInstance(); } conceptMethodIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Method.Iter.ResOrBuilder>( (ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_, getParentForChildren(), isClean()); res_ = null; } resCase_ = 4; onChanged();; return conceptMethodIterResBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:session.Transaction.Iter.Res) } // @@protoc_insertion_point(class_scope:session.Transaction.Iter.Res) private static final ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res(); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Iter)) { return super.equals(obj); } ai.grakn.rpc.proto.SessionProto.Transaction.Iter other = (ai.grakn.rpc.proto.SessionProto.Transaction.Iter) obj; boolean result = true; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Iter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code session.Transaction.Iter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Transaction.Iter) ai.grakn.rpc.proto.SessionProto.Transaction.IterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.Iter.class, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Builder.class); } // Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Iter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_descriptor; } public ai.grakn.rpc.proto.SessionProto.Transaction.Iter getDefaultInstanceForType() { return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.getDefaultInstance(); } public ai.grakn.rpc.proto.SessionProto.Transaction.Iter build() { ai.grakn.rpc.proto.SessionProto.Transaction.Iter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.SessionProto.Transaction.Iter buildPartial() { ai.grakn.rpc.proto.SessionProto.Transaction.Iter result = new ai.grakn.rpc.proto.SessionProto.Transaction.Iter(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Iter) { return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Iter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Iter other) { if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Iter.getDefaultInstance()) return this; onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ai.grakn.rpc.proto.SessionProto.Transaction.Iter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Iter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:session.Transaction.Iter) } // @@protoc_insertion_point(class_scope:session.Transaction.Iter) private static final ai.grakn.rpc.proto.SessionProto.Transaction.Iter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Iter(); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.SessionProto.Transaction.Iter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OpenOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Transaction.Open) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code session.Transaction.Open} */ public static final class Open extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Transaction.Open) OpenOrBuilder { // Use Open.newBuilder() to construct. private Open(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Open() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Open( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.Open.class, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Builder.class); } public interface ReqOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Transaction.Open.Req) com.google.protobuf.MessageOrBuilder { /** * <code>optional string keyspace = 1;</code> */ java.lang.String getKeyspace(); /** * <code>optional string keyspace = 1;</code> */ com.google.protobuf.ByteString getKeyspaceBytes(); /** * <code>optional .session.Transaction.Type type = 2;</code> */ int getTypeValue(); /** * <code>optional .session.Transaction.Type type = 2;</code> */ ai.grakn.rpc.proto.SessionProto.Transaction.Type getType(); /** * <pre> * Fields ignored in the open-source version. * </pre> * * <code>optional string username = 3;</code> */ java.lang.String getUsername(); /** * <pre> * Fields ignored in the open-source version. * </pre> * * <code>optional string username = 3;</code> */ com.google.protobuf.ByteString getUsernameBytes(); /** * <code>optional string password = 4;</code> */ java.lang.String getPassword(); /** * <code>optional string password = 4;</code> */ com.google.protobuf.ByteString getPasswordBytes(); } /** * Protobuf type {@code session.Transaction.Open.Req} */ public static final class Req extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Transaction.Open.Req) ReqOrBuilder { // Use Req.newBuilder() to construct. private Req(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Req() { keyspace_ = ""; type_ = 0; username_ = ""; password_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Req( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); keyspace_ = s; break; } case 16: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); username_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); password_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.Builder.class); } public static final int KEYSPACE_FIELD_NUMBER = 1; private volatile java.lang.Object keyspace_; /** * <code>optional string keyspace = 1;</code> */ public java.lang.String getKeyspace() { java.lang.Object ref = keyspace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyspace_ = s; return s; } } /** * <code>optional string keyspace = 1;</code> */ public com.google.protobuf.ByteString getKeyspaceBytes() { java.lang.Object ref = keyspace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keyspace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** * <code>optional .session.Transaction.Type type = 2;</code> */ public int getTypeValue() { return type_; } /** * <code>optional .session.Transaction.Type type = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Type getType() { ai.grakn.rpc.proto.SessionProto.Transaction.Type result = ai.grakn.rpc.proto.SessionProto.Transaction.Type.valueOf(type_); return result == null ? ai.grakn.rpc.proto.SessionProto.Transaction.Type.UNRECOGNIZED : result; } public static final int USERNAME_FIELD_NUMBER = 3; private volatile java.lang.Object username_; /** * <pre> * Fields ignored in the open-source version. * </pre> * * <code>optional string username = 3;</code> */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** * <pre> * Fields ignored in the open-source version. * </pre> * * <code>optional string username = 3;</code> */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSWORD_FIELD_NUMBER = 4; private volatile java.lang.Object password_; /** * <code>optional string password = 4;</code> */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** * <code>optional string password = 4;</code> */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getKeyspaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyspace_); } if (type_ != ai.grakn.rpc.proto.SessionProto.Transaction.Type.READ.getNumber()) { output.writeEnum(2, type_); } if (!getUsernameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, username_); } if (!getPasswordBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, password_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getKeyspaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyspace_); } if (type_ != ai.grakn.rpc.proto.SessionProto.Transaction.Type.READ.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } if (!getUsernameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); } if (!getPasswordBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req)) { return super.equals(obj); } ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) obj; boolean result = true; result = result && getKeyspace() .equals(other.getKeyspace()); result = result && type_ == other.type_; result = result && getUsername() .equals(other.getUsername()); result = result && getPassword() .equals(other.getPassword()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + KEYSPACE_FIELD_NUMBER; hash = (53 * hash) + getKeyspace().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + USERNAME_FIELD_NUMBER; hash = (53 * hash) + getUsername().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code session.Transaction.Open.Req} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Transaction.Open.Req) ai.grakn.rpc.proto.SessionProto.Transaction.Open.ReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_Req_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_Req_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.Builder.class); } // Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); keyspace_ = ""; type_ = 0; username_ = ""; password_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_Req_descriptor; } public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req getDefaultInstanceForType() { return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance(); } public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req build() { ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req buildPartial() { ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req(this); result.keyspace_ = keyspace_; result.type_ = type_; result.username_ = username_; result.password_ = password_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) { return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req other) { if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance()) return this; if (!other.getKeyspace().isEmpty()) { keyspace_ = other.keyspace_; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); } if (!other.getPassword().isEmpty()) { password_ = other.password_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object keyspace_ = ""; /** * <code>optional string keyspace = 1;</code> */ public java.lang.String getKeyspace() { java.lang.Object ref = keyspace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyspace_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string keyspace = 1;</code> */ public com.google.protobuf.ByteString getKeyspaceBytes() { java.lang.Object ref = keyspace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keyspace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string keyspace = 1;</code> */ public Builder setKeyspace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } keyspace_ = value; onChanged(); return this; } /** * <code>optional string keyspace = 1;</code> */ public Builder clearKeyspace() { keyspace_ = getDefaultInstance().getKeyspace(); onChanged(); return this; } /** * <code>optional string keyspace = 1;</code> */ public Builder setKeyspaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); keyspace_ = value; onChanged(); return this; } private int type_ = 0; /** * <code>optional .session.Transaction.Type type = 2;</code> */ public int getTypeValue() { return type_; } /** * <code>optional .session.Transaction.Type type = 2;</code> */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * <code>optional .session.Transaction.Type type = 2;</code> */ public ai.grakn.rpc.proto.SessionProto.Transaction.Type getType() { ai.grakn.rpc.proto.SessionProto.Transaction.Type result = ai.grakn.rpc.proto.SessionProto.Transaction.Type.valueOf(type_); return result == null ? ai.grakn.rpc.proto.SessionProto.Transaction.Type.UNRECOGNIZED : result; } /** * <code>optional .session.Transaction.Type type = 2;</code> */ public Builder setType(ai.grakn.rpc.proto.SessionProto.Transaction.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * <code>optional .session.Transaction.Type type = 2;</code> */ public Builder clearType() { type_ = 0; onChanged(); return this; } private java.lang.Object username_ = ""; /** * <pre> * Fields ignored in the open-source version. * </pre> * * <code>optional string username = 3;</code> */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } else { return (java.lang.String) ref; } } /** * <pre> * Fields ignored in the open-source version. * </pre> * * <code>optional string username = 3;</code> */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <pre> * Fields ignored in the open-source version. * </pre> * * <code>optional string username = 3;</code> */ public Builder setUsername( java.lang.String value) { if (value == null) { throw new NullPointerException(); } username_ = value; onChanged(); return this; } /** * <pre> * Fields ignored in the open-source version. * </pre> * * <code>optional string username = 3;</code> */ public Builder clearUsername() { username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** * <pre> * Fields ignored in the open-source version. * </pre> * * <code>optional string username = 3;</code> */ 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_ = ""; /** * <code>optional string password = 4;</code> */ 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; } } /** * <code>optional string password = 4;</code> */ 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; } } /** * <code>optional string password = 4;</code> */ public Builder setPassword( java.lang.String value) { if (value == null) { throw new NullPointerException(); } password_ = value; onChanged(); return this; } /** * <code>optional string password = 4;</code> */ public Builder clearPassword() { password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** * <code>optional string password = 4;</code> */ 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<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> 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<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<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> 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<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<Open> PARSER = new com.google.protobuf.AbstractParser<Open>() { 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<Open> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Open> 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<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<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> 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<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<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> 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<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<Commit> PARSER = new com.google.protobuf.AbstractParser<Commit>() { 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<Commit> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Commit> 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 { /** * <code>TRUE = 0;</code> */ TRUE(0), /** * <pre> * The default value of this enum is 0 (TRUE) * </pre> * * <code>FALSE = 1;</code> */ FALSE(1), UNRECOGNIZED(-1), ; /** * <code>TRUE = 0;</code> */ public static final int TRUE_VALUE = 0; /** * <pre> * The default value of this enum is 0 (TRUE) * </pre> * * <code>FALSE = 1;</code> */ 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<INFER> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< INFER> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<INFER>() { 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 { /** * <code>optional string query = 1;</code> */ java.lang.String getQuery(); /** * <code>optional string query = 1;</code> */ com.google.protobuf.ByteString getQueryBytes(); /** * <pre> * 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) * </pre> * * <code>optional .session.Transaction.Query.INFER infer = 2;</code> */ int getInferValue(); /** * <pre> * 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) * </pre> * * <code>optional .session.Transaction.Query.INFER infer = 2;</code> */ 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_; /** * <code>optional string query = 1;</code> */ 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; } } /** * <code>optional string query = 1;</code> */ 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_; /** * <pre> * 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) * </pre> * * <code>optional .session.Transaction.Query.INFER infer = 2;</code> */ public int getInferValue() { return infer_; } /** * <pre> * 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) * </pre> * * <code>optional .session.Transaction.Query.INFER infer = 2;</code> */ 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<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_ = ""; /** * <code>optional string query = 1;</code> */ 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; } } /** * <code>optional string query = 1;</code> */ 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; } } /** * <code>optional string query = 1;</code> */ public Builder setQuery( java.lang.String value) { if (value == null) { throw new NullPointerException(); } query_ = value; onChanged(); return this; } /** * <code>optional string query = 1;</code> */ public Builder clearQuery() { query_ = getDefaultInstance().getQuery(); onChanged(); return this; } /** * <code>optional string query = 1;</code> */ 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; /** * <pre> * 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) * </pre> * * <code>optional .session.Transaction.Query.INFER infer = 2;</code> */ public int getInferValue() { return infer_; } /** * <pre> * 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) * </pre> * * <code>optional .session.Transaction.Query.INFER infer = 2;</code> */ public Builder setInferValue(int value) { infer_ = value; onChanged(); return this; } /** * <pre> * 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) * </pre> * * <code>optional .session.Transaction.Query.INFER infer = 2;</code> */ 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; } /** * <pre> * 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) * </pre> * * <code>optional .session.Transaction.Query.INFER infer = 2;</code> */ public Builder setInfer(ai.grakn.rpc.proto.SessionProto.Transaction.Query.INFER value) { if (value == null) { throw new NullPointerException(); } infer_ = value.getNumber(); onChanged(); return this; } /** * <pre> * 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) * </pre> * * <code>optional .session.Transaction.Query.INFER infer = 2;</code> */ 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<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> 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 { /** * <code>optional int32 id = 1;</code> */ 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 { /** * <code>optional .session.Answer answer = 1;</code> */ boolean hasAnswer(); /** * <code>optional .session.Answer answer = 1;</code> */ ai.grakn.rpc.proto.AnswerProto.Answer getAnswer(); /** * <code>optional .session.Answer answer = 1;</code> */ 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_; /** * <code>optional .session.Answer answer = 1;</code> */ public boolean hasAnswer() { return answer_ != null; } /** * <code>optional .session.Answer answer = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.Answer getAnswer() { return answer_ == null ? ai.grakn.rpc.proto.AnswerProto.Answer.getDefaultInstance() : answer_; } /** * <code>optional .session.Answer answer = 1;</code> */ 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<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_; /** * <code>optional .session.Answer answer = 1;</code> */ public boolean hasAnswer() { return answerBuilder_ != null || answer_ != null; } /** * <code>optional .session.Answer answer = 1;</code> */ 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(); } } /** * <code>optional .session.Answer answer = 1;</code> */ 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; } /** * <code>optional .session.Answer answer = 1;</code> */ 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; } /** * <code>optional .session.Answer answer = 1;</code> */ 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; } /** * <code>optional .session.Answer answer = 1;</code> */ public Builder clearAnswer() { if (answerBuilder_ == null) { answer_ = null; onChanged(); } else { answer_ = null; answerBuilder_ = null; } return this; } /** * <code>optional .session.Answer answer = 1;</code> */ public ai.grakn.rpc.proto.AnswerProto.Answer.Builder getAnswerBuilder() { onChanged(); return getAnswerFieldBuilder().getBuilder(); } /** * <code>optional .session.Answer answer = 1;</code> */ 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_; } } /** * <code>optional .session.Answer answer = 1;</code> */ 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<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> 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_; /** * <code>optional int32 id = 1;</code> */ 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<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_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> 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<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<Query> PARSER = new com.google.protobuf.AbstractParser<Query>() { 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<Query> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Query> 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 { /** * <code>optional string label = 1;</code> */ java.lang.String getLabel(); /** * <code>optional string label = 1;</code> */ 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_; /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ 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<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_ = ""; /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } label_ = value; onChanged(); return this; } /** * <code>optional string label = 1;</code> */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * <code>optional string label = 1;</code> */ 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<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> 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 { /** * <code>optional .session.Concept schemaConcept = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getSchemaConcept(); /** * <code>optional .session.Concept schemaConcept = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getSchemaConceptOrBuilder(); /** * <code>optional .session.Null null = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.Null getNull(); /** * <code>optional .session.Null null = 2;</code> */ 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; /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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(); } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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; /** * <code>optional .session.Null null = 2;</code> */ 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(); } /** * <code>optional .session.Null null = 2;</code> */ 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<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_; /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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(); } } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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; } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getSchemaConceptBuilder() { return getSchemaConceptFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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(); } } /** * <code>optional .session.Concept schemaConcept = 1;</code> */ 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_; /** * <code>optional .session.Null null = 2;</code> */ 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(); } } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Null.Builder getNullBuilder() { return getNullFieldBuilder().getBuilder(); } /** * <code>optional .session.Null null = 2;</code> */ 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(); } } /** * <code>optional .session.Null null = 2;</code> */ 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<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> 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<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<GetSchemaConcept> PARSER = new com.google.protobuf.AbstractParser<GetSchemaConcept>() { 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<GetSchemaConcept> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<GetSchemaConcept> 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 { /** * <code>optional string id = 1;</code> */ java.lang.String getId(); /** * <code>optional string id = 1;</code> */ 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_; /** * <code>optional string id = 1;</code> */ 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; } } /** * <code>optional string id = 1;</code> */ 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<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_ = ""; /** * <code>optional string id = 1;</code> */ 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; } } /** * <code>optional string id = 1;</code> */ 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; } } /** * <code>optional string id = 1;</code> */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * <code>optional string id = 1;</code> */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * <code>optional string id = 1;</code> */ 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<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> 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 { /** * <code>optional .session.Concept concept = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getConcept(); /** * <code>optional .session.Concept concept = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getConceptOrBuilder(); /** * <code>optional .session.Null null = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.Null getNull(); /** * <code>optional .session.Null null = 2;</code> */ 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; /** * <code>optional .session.Concept concept = 1;</code> */ 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(); } /** * <code>optional .session.Concept concept = 1;</code> */ 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; /** * <code>optional .session.Null null = 2;</code> */ 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(); } /** * <code>optional .session.Null null = 2;</code> */ 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<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_; /** * <code>optional .session.Concept concept = 1;</code> */ 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(); } } /** * <code>optional .session.Concept concept = 1;</code> */ 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; } /** * <code>optional .session.Concept concept = 1;</code> */ 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; } /** * <code>optional .session.Concept concept = 1;</code> */ 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; } /** * <code>optional .session.Concept concept = 1;</code> */ 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; } /** * <code>optional .session.Concept concept = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getConceptBuilder() { return getConceptFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept concept = 1;</code> */ 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(); } } /** * <code>optional .session.Concept concept = 1;</code> */ 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_; /** * <code>optional .session.Null null = 2;</code> */ 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(); } } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ 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; } /** * <code>optional .session.Null null = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Null.Builder getNullBuilder() { return getNullFieldBuilder().getBuilder(); } /** * <code>optional .session.Null null = 2;</code> */ 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(); } } /** * <code>optional .session.Null null = 2;</code> */ 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<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> 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<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<GetConcept> PARSER = new com.google.protobuf.AbstractParser<GetConcept>() { 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<GetConcept> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<GetConcept> 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 { /** * <code>optional .session.ValueObject value = 1;</code> */ boolean hasValue(); /** * <code>optional .session.ValueObject value = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.ValueObject getValue(); /** * <code>optional .session.ValueObject value = 1;</code> */ 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_; /** * <code>optional .session.ValueObject value = 1;</code> */ public boolean hasValue() { return value_ != null; } /** * <code>optional .session.ValueObject value = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ValueObject getValue() { return value_ == null ? ai.grakn.rpc.proto.ConceptProto.ValueObject.getDefaultInstance() : value_; } /** * <code>optional .session.ValueObject value = 1;</code> */ 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<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_; /** * <code>optional .session.ValueObject value = 1;</code> */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * <code>optional .session.ValueObject value = 1;</code> */ 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(); } } /** * <code>optional .session.ValueObject value = 1;</code> */ 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; } /** * <code>optional .session.ValueObject value = 1;</code> */ 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; } /** * <code>optional .session.ValueObject value = 1;</code> */ 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; } /** * <code>optional .session.ValueObject value = 1;</code> */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * <code>optional .session.ValueObject value = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.ValueObject.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** * <code>optional .session.ValueObject value = 1;</code> */ 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_; } } /** * <code>optional .session.ValueObject value = 1;</code> */ 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<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> 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 { /** * <code>optional int32 id = 1;</code> */ 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 { /** * <code>optional .session.Concept attribute = 1;</code> */ boolean hasAttribute(); /** * <code>optional .session.Concept attribute = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getAttribute(); /** * <code>optional .session.Concept attribute = 1;</code> */ 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_; /** * <code>optional .session.Concept attribute = 1;</code> */ public boolean hasAttribute() { return attribute_ != null; } /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttribute() { return attribute_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attribute_; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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<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_; /** * <code>optional .session.Concept attribute = 1;</code> */ public boolean hasAttribute() { return attributeBuilder_ != null || attribute_ != null; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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(); } } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ 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; } /** * <code>optional .session.Concept attribute = 1;</code> */ public Builder clearAttribute() { if (attributeBuilder_ == null) { attribute_ = null; onChanged(); } else { attribute_ = null; attributeBuilder_ = null; } return this; } /** * <code>optional .session.Concept attribute = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeBuilder() { onChanged(); return getAttributeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept attribute = 1;</code> */ 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_; } } /** * <code>optional .session.Concept attribute = 1;</code> */ 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<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> 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_; /** * <code>optional int32 id = 1;</code> */ 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<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_ ; /** * <code>optional int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>optional int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>optional int32 id = 1;</code> */ 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<Iter> PARSER = new com.google.protobuf.AbstractParser<Iter>() { 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<Iter> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Iter> 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<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<GetAttributes> PARSER = new com.google.protobuf.AbstractParser<GetAttributes>() { 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<GetAttributes> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<GetAttributes> 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 { /** * <code>optional string label = 1;</code> */ java.lang.String getLabel(); /** * <code>optional string label = 1;</code> */ 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_; /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ 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<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_ = ""; /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } label_ = value; onChanged(); return this; } /** * <code>optional string label = 1;</code> */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * <code>optional string label = 1;</code> */ 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<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> 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 { /** * <code>optional .session.Concept entityType = 1;</code> */ boolean hasEntityType(); /** * <code>optional .session.Concept entityType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getEntityType(); /** * <code>optional .session.Concept entityType = 1;</code> */ 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_; /** * <code>optional .session.Concept entityType = 1;</code> */ public boolean hasEntityType() { return entityType_ != null; } /** * <code>optional .session.Concept entityType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getEntityType() { return entityType_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : entityType_; } /** * <code>optional .session.Concept entityType = 1;</code> */ 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<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_; /** * <code>optional .session.Concept entityType = 1;</code> */ public boolean hasEntityType() { return entityTypeBuilder_ != null || entityType_ != null; } /** * <code>optional .session.Concept entityType = 1;</code> */ 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(); } } /** * <code>optional .session.Concept entityType = 1;</code> */ 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; } /** * <code>optional .session.Concept entityType = 1;</code> */ 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; } /** * <code>optional .session.Concept entityType = 1;</code> */ 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; } /** * <code>optional .session.Concept entityType = 1;</code> */ public Builder clearEntityType() { if (entityTypeBuilder_ == null) { entityType_ = null; onChanged(); } else { entityType_ = null; entityTypeBuilder_ = null; } return this; } /** * <code>optional .session.Concept entityType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getEntityTypeBuilder() { onChanged(); return getEntityTypeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept entityType = 1;</code> */ 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_; } } /** * <code>optional .session.Concept entityType = 1;</code> */ 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<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> 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<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<PutEntityType> PARSER = new com.google.protobuf.AbstractParser<PutEntityType>() { 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<PutEntityType> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<PutEntityType> 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 { /** * <code>optional string label = 1;</code> */ java.lang.String getLabel(); /** * <code>optional string label = 1;</code> */ com.google.protobuf.ByteString getLabelBytes(); /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 2;</code> */ int getDataTypeValue(); /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 2;</code> */ 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_; /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ 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_; /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 2;</code> */ public int getDataTypeValue() { return dataType_; } /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 2;</code> */ 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<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_ = ""; /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } label_ = value; onChanged(); return this; } /** * <code>optional string label = 1;</code> */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * <code>optional string label = 1;</code> */ 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; /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 2;</code> */ public int getDataTypeValue() { return dataType_; } /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 2;</code> */ public Builder setDataTypeValue(int value) { dataType_ = value; onChanged(); return this; } /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 2;</code> */ 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; } /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 2;</code> */ public Builder setDataType(ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE value) { if (value == null) { throw new NullPointerException(); } dataType_ = value.getNumber(); onChanged(); return this; } /** * <code>optional .session.AttributeType.DATA_TYPE dataType = 2;</code> */ 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<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> 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 { /** * <code>optional .session.Concept attributeType = 1;</code> */ boolean hasAttributeType(); /** * <code>optional .session.Concept attributeType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType(); /** * <code>optional .session.Concept attributeType = 1;</code> */ 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_; /** * <code>optional .session.Concept attributeType = 1;</code> */ public boolean hasAttributeType() { return attributeType_ != null; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType() { return attributeType_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attributeType_; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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<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_; /** * <code>optional .session.Concept attributeType = 1;</code> */ public boolean hasAttributeType() { return attributeTypeBuilder_ != null || attributeType_ != null; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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(); } } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public Builder clearAttributeType() { if (attributeTypeBuilder_ == null) { attributeType_ = null; onChanged(); } else { attributeType_ = null; attributeTypeBuilder_ = null; } return this; } /** * <code>optional .session.Concept attributeType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeTypeBuilder() { onChanged(); return getAttributeTypeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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_; } } /** * <code>optional .session.Concept attributeType = 1;</code> */ 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<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> 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<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<PutAttributeType> PARSER = new com.google.protobuf.AbstractParser<PutAttributeType>() { 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<PutAttributeType> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<PutAttributeType> 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 { /** * <code>optional string label = 1;</code> */ java.lang.String getLabel(); /** * <code>optional string label = 1;</code> */ 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_; /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ 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<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_ = ""; /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } label_ = value; onChanged(); return this; } /** * <code>optional string label = 1;</code> */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * <code>optional string label = 1;</code> */ 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<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> 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 { /** * <code>optional .session.Concept relationType = 1;</code> */ boolean hasRelationType(); /** * <code>optional .session.Concept relationType = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRelationType(); /** * <code>optional .session.Concept relationType = 1;</code> */ 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_; /** * <code>optional .session.Concept relationType = 1;</code> */ public boolean hasRelationType() { return relationType_ != null; } /** * <code>optional .session.Concept relationType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRelationType() { return relationType_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : relationType_; } /** * <code>optional .session.Concept relationType = 1;</code> */ 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<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_; /** * <code>optional .session.Concept relationType = 1;</code> */ public boolean hasRelationType() { return relationTypeBuilder_ != null || relationType_ != null; } /** * <code>optional .session.Concept relationType = 1;</code> */ 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(); } } /** * <code>optional .session.Concept relationType = 1;</code> */ 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; } /** * <code>optional .session.Concept relationType = 1;</code> */ 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; } /** * <code>optional .session.Concept relationType = 1;</code> */ 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; } /** * <code>optional .session.Concept relationType = 1;</code> */ public Builder clearRelationType() { if (relationTypeBuilder_ == null) { relationType_ = null; onChanged(); } else { relationType_ = null; relationTypeBuilder_ = null; } return this; } /** * <code>optional .session.Concept relationType = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRelationTypeBuilder() { onChanged(); return getRelationTypeFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept relationType = 1;</code> */ 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_; } } /** * <code>optional .session.Concept relationType = 1;</code> */ 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<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> 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<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<PutRelationType> PARSER = new com.google.protobuf.AbstractParser<PutRelationType>() { 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<PutRelationType> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<PutRelationType> 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 { /** * <code>optional string label = 1;</code> */ java.lang.String getLabel(); /** * <code>optional string label = 1;</code> */ 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_; /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ 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<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_ = ""; /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } label_ = value; onChanged(); return this; } /** * <code>optional string label = 1;</code> */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * <code>optional string label = 1;</code> */ 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<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> 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 { /** * <code>optional .session.Concept role = 1;</code> */ boolean hasRole(); /** * <code>optional .session.Concept role = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRole(); /** * <code>optional .session.Concept role = 1;</code> */ 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_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRole() { return role_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : role_; } /** * <code>optional .session.Concept role = 1;</code> */ 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<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_; /** * <code>optional .session.Concept role = 1;</code> */ public boolean hasRole() { return roleBuilder_ != null || role_ != null; } /** * <code>optional .session.Concept role = 1;</code> */ 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(); } } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ 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; } /** * <code>optional .session.Concept role = 1;</code> */ public Builder clearRole() { if (roleBuilder_ == null) { role_ = null; onChanged(); } else { role_ = null; roleBuilder_ = null; } return this; } /** * <code>optional .session.Concept role = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRoleBuilder() { onChanged(); return getRoleFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept role = 1;</code> */ 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_; } } /** * <code>optional .session.Concept role = 1;</code> */ 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<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> 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<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<PutRole> PARSER = new com.google.protobuf.AbstractParser<PutRole>() { 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<PutRole> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<PutRole> 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 { /** * <code>optional string label = 1;</code> */ java.lang.String getLabel(); /** * <code>optional string label = 1;</code> */ com.google.protobuf.ByteString getLabelBytes(); /** * <code>optional string when = 2;</code> */ java.lang.String getWhen(); /** * <code>optional string when = 2;</code> */ com.google.protobuf.ByteString getWhenBytes(); /** * <code>optional string then = 3;</code> */ java.lang.String getThen(); /** * <code>optional string then = 3;</code> */ 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_; /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ 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_; /** * <code>optional string when = 2;</code> */ 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; } } /** * <code>optional string when = 2;</code> */ 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_; /** * <code>optional string then = 3;</code> */ 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; } } /** * <code>optional string then = 3;</code> */ 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<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_ = ""; /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ 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; } } /** * <code>optional string label = 1;</code> */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } label_ = value; onChanged(); return this; } /** * <code>optional string label = 1;</code> */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * <code>optional string label = 1;</code> */ 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_ = ""; /** * <code>optional string when = 2;</code> */ 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; } } /** * <code>optional string when = 2;</code> */ 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; } } /** * <code>optional string when = 2;</code> */ public Builder setWhen( java.lang.String value) { if (value == null) { throw new NullPointerException(); } when_ = value; onChanged(); return this; } /** * <code>optional string when = 2;</code> */ public Builder clearWhen() { when_ = getDefaultInstance().getWhen(); onChanged(); return this; } /** * <code>optional string when = 2;</code> */ 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_ = ""; /** * <code>optional string then = 3;</code> */ 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; } } /** * <code>optional string then = 3;</code> */ 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; } } /** * <code>optional string then = 3;</code> */ public Builder setThen( java.lang.String value) { if (value == null) { throw new NullPointerException(); } then_ = value; onChanged(); return this; } /** * <code>optional string then = 3;</code> */ public Builder clearThen() { then_ = getDefaultInstance().getThen(); onChanged(); return this; } /** * <code>optional string then = 3;</code> */ 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<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> 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 { /** * <code>optional .session.Concept rule = 1;</code> */ boolean hasRule(); /** * <code>optional .session.Concept rule = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Concept getRule(); /** * <code>optional .session.Concept rule = 1;</code> */ 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_; /** * <code>optional .session.Concept rule = 1;</code> */ public boolean hasRule() { return rule_ != null; } /** * <code>optional .session.Concept rule = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept getRule() { return rule_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : rule_; } /** * <code>optional .session.Concept rule = 1;</code> */ 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<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_; /** * <code>optional .session.Concept rule = 1;</code> */ public boolean hasRule() { return ruleBuilder_ != null || rule_ != null; } /** * <code>optional .session.Concept rule = 1;</code> */ 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(); } } /** * <code>optional .session.Concept rule = 1;</code> */ 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; } /** * <code>optional .session.Concept rule = 1;</code> */ 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; } /** * <code>optional .session.Concept rule = 1;</code> */ 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; } /** * <code>optional .session.Concept rule = 1;</code> */ public Builder clearRule() { if (ruleBuilder_ == null) { rule_ = null; onChanged(); } else { rule_ = null; ruleBuilder_ = null; } return this; } /** * <code>optional .session.Concept rule = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRuleBuilder() { onChanged(); return getRuleFieldBuilder().getBuilder(); } /** * <code>optional .session.Concept rule = 1;</code> */ 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_; } } /** * <code>optional .session.Concept rule = 1;</code> */ 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<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> 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<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<PutRule> PARSER = new com.google.protobuf.AbstractParser<PutRule>() { 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<PutRule> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<PutRule> 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 { /** * <code>optional string id = 1;</code> */ java.lang.String getId(); /** * <code>optional string id = 1;</code> */ com.google.protobuf.ByteString getIdBytes(); /** * <code>optional .session.Method.Req method = 2;</code> */ boolean hasMethod(); /** * <code>optional .session.Method.Req method = 2;</code> */ ai.grakn.rpc.proto.ConceptProto.Method.Req getMethod(); /** * <code>optional .session.Method.Req method = 2;</code> */ 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_; /** * <code>optional string id = 1;</code> */ 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; } } /** * <code>optional string id = 1;</code> */ 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_; /** * <code>optional .session.Method.Req method = 2;</code> */ public boolean hasMethod() { return method_ != null; } /** * <code>optional .session.Method.Req method = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Method.Req getMethod() { return method_ == null ? ai.grakn.rpc.proto.ConceptProto.Method.Req.getDefaultInstance() : method_; } /** * <code>optional .session.Method.Req method = 2;</code> */ 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<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_ = ""; /** * <code>optional string id = 1;</code> */ 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; } } /** * <code>optional string id = 1;</code> */ 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; } } /** * <code>optional string id = 1;</code> */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * <code>optional string id = 1;</code> */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * <code>optional string id = 1;</code> */ 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_; /** * <code>optional .session.Method.Req method = 2;</code> */ public boolean hasMethod() { return methodBuilder_ != null || method_ != null; } /** * <code>optional .session.Method.Req method = 2;</code> */ 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(); } } /** * <code>optional .session.Method.Req method = 2;</code> */ 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; } /** * <code>optional .session.Method.Req method = 2;</code> */ 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; } /** * <code>optional .session.Method.Req method = 2;</code> */ 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; } /** * <code>optional .session.Method.Req method = 2;</code> */ public Builder clearMethod() { if (methodBuilder_ == null) { method_ = null; onChanged(); } else { method_ = null; methodBuilder_ = null; } return this; } /** * <code>optional .session.Method.Req method = 2;</code> */ public ai.grakn.rpc.proto.ConceptProto.Method.Req.Builder getMethodBuilder() { onChanged(); return getMethodFieldBuilder().getBuilder(); } /** * <code>optional .session.Method.Req method = 2;</code> */ 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_; } } /** * <code>optional .session.Method.Req method = 2;</code> */ 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<Req> PARSER = new com.google.protobuf.AbstractParser<Req>() { 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<Req> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Req> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResOrBuilder extends // @@protoc_insertion_point(interface_extends:session.Transaction.ConceptMethod.Res) com.google.protobuf.MessageOrBuilder { /** * <code>optional .session.Method.Res response = 1;</code> */ boolean hasResponse(); /** * <code>optional .session.Method.Res response = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Method.Res getResponse(); /** * <code>optional .session.Method.Res response = 1;</code> */ ai.grakn.rpc.proto.ConceptProto.Method.ResOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code session.Transaction.ConceptMethod.Res} */ public static final class Res extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:session.Transaction.ConceptMethod.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.Method.Res.Builder subBuilder = null; if (response_ != null) { subBuilder = response_.toBuilder(); } response_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Method.Res.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(response_); response_ = 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_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_ConceptMethod_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.Builder.class); } public static final int RESPONSE_FIELD_NUMBER = 1; private ai.grakn.rpc.proto.ConceptProto.Method.Res response_; /** * <code>optional .session.Method.Res response = 1;</code> */ public boolean hasResponse() { return response_ != null; } /** * <code>optional .session.Method.Res response = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Method.Res getResponse() { return response_ == null ? ai.grakn.rpc.proto.ConceptProto.Method.Res.getDefaultInstance() : response_; } /** * <code>optional .session.Method.Res response = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Method.ResOrBuilder getResponseOrBuilder() { return getResponse(); } 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 (response_ != null) { output.writeMessage(1, getResponse()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (response_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } 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.Res)) { return super.equals(obj); } ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res other = (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) obj; boolean result = true; result = result && (hasResponse() == other.hasResponse()); if (hasResponse()) { result = result && getResponse() .equals(other.getResponse()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasResponse()) { hash = (37 * hash) + RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getResponse().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.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.ConceptMethod.Res parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.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.ConceptMethod.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.ConceptMethod.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.ConceptMethod.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.ConceptMethod.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.ConceptMethod.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.ConceptMethod.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.ConceptMethod.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.ConceptMethod.Res} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Transaction.ConceptMethod.Res) ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ResOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_ConceptMethod_Res_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_ConceptMethod_Res_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.Builder.class); } // Construct using ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.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 (responseBuilder_ == null) { response_ = null; } else { response_ = null; responseBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_ConceptMethod_Res_descriptor; } public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res getDefaultInstanceForType() { return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.getDefaultInstance(); } public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res build() { ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res buildPartial() { ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res result = new ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res(this); if (responseBuilder_ == null) { result.response_ = response_; } else { result.response_ = responseBuilder_.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.Res) { return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res other) { if (other == ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.getDefaultInstance()) return this; if (other.hasResponse()) { mergeResponse(other.getResponse()); } 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.Res parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ai.grakn.rpc.proto.ConceptProto.Method.Res response_ = null; private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Method.Res, ai.grakn.rpc.proto.ConceptProto.Method.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Method.ResOrBuilder> responseBuilder_; /** * <code>optional .session.Method.Res response = 1;</code> */ public boolean hasResponse() { return responseBuilder_ != null || response_ != null; } /** * <code>optional .session.Method.Res response = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Method.Res getResponse() { if (responseBuilder_ == null) { return response_ == null ? ai.grakn.rpc.proto.ConceptProto.Method.Res.getDefaultInstance() : response_; } else { return responseBuilder_.getMessage(); } } /** * <code>optional .session.Method.Res response = 1;</code> */ public Builder setResponse(ai.grakn.rpc.proto.ConceptProto.Method.Res value) { if (responseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { responseBuilder_.setMessage(value); } return this; } /** * <code>optional .session.Method.Res response = 1;</code> */ public Builder setResponse( ai.grakn.rpc.proto.ConceptProto.Method.Res.Builder builderForValue) { if (responseBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { responseBuilder_.setMessage(builderForValue.build()); } return this; } /** * <code>optional .session.Method.Res response = 1;</code> */ public Builder mergeResponse(ai.grakn.rpc.proto.ConceptProto.Method.Res value) { if (responseBuilder_ == null) { if (response_ != null) { response_ = ai.grakn.rpc.proto.ConceptProto.Method.Res.newBuilder(response_).mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { responseBuilder_.mergeFrom(value); } return this; } /** * <code>optional .session.Method.Res response = 1;</code> */ public Builder clearResponse() { if (responseBuilder_ == null) { response_ = null; onChanged(); } else { response_ = null; responseBuilder_ = null; } return this; } /** * <code>optional .session.Method.Res response = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Method.Res.Builder getResponseBuilder() { onChanged(); return getResponseFieldBuilder().getBuilder(); } /** * <code>optional .session.Method.Res response = 1;</code> */ public ai.grakn.rpc.proto.ConceptProto.Method.ResOrBuilder getResponseOrBuilder() { if (responseBuilder_ != null) { return responseBuilder_.getMessageOrBuilder(); } else { return response_ == null ? ai.grakn.rpc.proto.ConceptProto.Method.Res.getDefaultInstance() : response_; } } /** * <code>optional .session.Method.Res response = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Method.Res, ai.grakn.rpc.proto.ConceptProto.Method.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Method.ResOrBuilder> getResponseFieldBuilder() { if (responseBuilder_ == null) { responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.grakn.rpc.proto.ConceptProto.Method.Res, ai.grakn.rpc.proto.ConceptProto.Method.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Method.ResOrBuilder>( getResponse(), getParentForChildren(), isClean()); response_ = null; } return responseBuilder_; } 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.Res) } // @@protoc_insertion_point(class_scope:session.Transaction.ConceptMethod.Res) private static final ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res(); } public static ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Res> PARSER = new com.google.protobuf.AbstractParser<Res>() { 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<Res> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Res> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.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.ConceptMethod)) { return super.equals(obj); } ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod other = (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod) 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.ConceptMethod parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod 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 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 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 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 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 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 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 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} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Transaction.ConceptMethod) ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethodOrBuilder { 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); } // Construct using ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.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_ConceptMethod_descriptor; } public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod getDefaultInstanceForType() { return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.getDefaultInstance(); } public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod build() { ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod buildPartial() { ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod result = new ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod(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.ConceptMethod) { return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod other) { if (other == ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.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.ConceptMethod parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod) 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.ConceptMethod) } // @@protoc_insertion_point(class_scope:session.Transaction.ConceptMethod) private static final ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod(); } public static ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ConceptMethod> PARSER = new com.google.protobuf.AbstractParser<ConceptMethod>() { public ConceptMethod parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConceptMethod(input, extensionRegistry); } }; public static com.google.protobuf.Parser<ConceptMethod> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ConceptMethod> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod 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)) { return super.equals(obj); } ai.grakn.rpc.proto.SessionProto.Transaction other = (ai.grakn.rpc.proto.SessionProto.Transaction) 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 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.grakn.rpc.proto.SessionProto.Transaction 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 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 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 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 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 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 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 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} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:session.Transaction) ai.grakn.rpc.proto.SessionProto.TransactionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.grakn.rpc.proto.SessionProto.Transaction.class, ai.grakn.rpc.proto.SessionProto.Transaction.Builder.class); } // Construct using ai.grakn.rpc.proto.SessionProto.Transaction.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_descriptor; } public ai.grakn.rpc.proto.SessionProto.Transaction getDefaultInstanceForType() { return ai.grakn.rpc.proto.SessionProto.Transaction.getDefaultInstance(); } public ai.grakn.rpc.proto.SessionProto.Transaction build() { ai.grakn.rpc.proto.SessionProto.Transaction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public ai.grakn.rpc.proto.SessionProto.Transaction buildPartial() { ai.grakn.rpc.proto.SessionProto.Transaction result = new ai.grakn.rpc.proto.SessionProto.Transaction(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) { return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction other) { if (other == ai.grakn.rpc.proto.SessionProto.Transaction.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 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction) 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) } // @@protoc_insertion_point(class_scope:session.Transaction) private static final ai.grakn.rpc.proto.SessionProto.Transaction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction(); } public static ai.grakn.rpc.proto.SessionProto.Transaction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Transaction> PARSER = new com.google.protobuf.AbstractParser<Transaction>() { public Transaction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Transaction(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Transaction> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Transaction> getParserForType() { return PARSER; } public ai.grakn.rpc.proto.SessionProto.Transaction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Req_MetadataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Req_MetadataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Res_MetadataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Res_MetadataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Iter_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Iter_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Open_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Open_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Open_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Open_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Open_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Open_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Commit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Commit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Commit_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Commit_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Commit_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Commit_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Query_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Query_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Query_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Query_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Query_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Query_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_Query_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_Query_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_GetSchemaConcept_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_GetSchemaConcept_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_GetSchemaConcept_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_GetSchemaConcept_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_GetSchemaConcept_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_GetSchemaConcept_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_GetConcept_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_GetConcept_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_GetConcept_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_GetConcept_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_GetConcept_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_GetConcept_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_GetAttributes_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_GetAttributes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_GetAttributes_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_GetAttributes_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_GetAttributes_Iter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_GetAttributes_Iter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_GetAttributes_Iter_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_GetAttributes_Iter_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_PutEntityType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_PutEntityType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_PutEntityType_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_PutEntityType_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_PutEntityType_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_PutEntityType_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_PutAttributeType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_PutAttributeType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_PutAttributeType_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_PutAttributeType_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_PutAttributeType_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_PutAttributeType_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_PutRelationType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_PutRelationType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_PutRelationType_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_PutRelationType_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_PutRelationType_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_PutRelationType_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_PutRole_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_PutRole_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_PutRole_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_PutRole_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_PutRole_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_PutRole_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_PutRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_PutRule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_PutRule_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_PutRule_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_PutRule_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_PutRule_Res_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_ConceptMethod_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_ConceptMethod_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_ConceptMethod_Req_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_ConceptMethod_Req_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_session_Transaction_ConceptMethod_Res_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_session_Transaction_ConceptMethod_Res_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\rSession.proto\022\007session\032\rConcept.proto\032" + "\014Answer.proto\"\245\033\n\013Transaction\032\254\007\n\003Req\0229\n" + "\010metadata\030\350\007 \003(\0132&.session.Transaction.R" + "eq.MetadataEntry\0221\n\010open_req\030\001 \001(\0132\035.ses" + "sion.Transaction.Open.ReqH\000\0225\n\ncommit_re" + "q\030\002 \001(\0132\037.session.Transaction.Commit.Req" + "H\000\0223\n\tquery_req\030\003 \001(\0132\036.session.Transact" + "ion.Query.ReqH\000\0224\n\013iterate_req\030\004 \001(\0132\035.s" + "ession.Transaction.Iter.ReqH\000\022I\n\024getSche" + "maConcept_req\030\005 \001(\0132).session.Transactio", "n.GetSchemaConcept.ReqH\000\022=\n\016getConcept_r" + "eq\030\006 \001(\0132#.session.Transaction.GetConcep" + "t.ReqH\000\022C\n\021getAttributes_req\030\007 \001(\0132&.ses" + "sion.Transaction.GetAttributes.ReqH\000\022C\n\021" + "putEntityType_req\030\010 \001(\0132&.session.Transa" + "ction.PutEntityType.ReqH\000\022I\n\024putAttribut" + "eType_req\030\t \001(\0132).session.Transaction.Pu" + "tAttributeType.ReqH\000\022G\n\023putRelationType_" + "req\030\n \001(\0132(.session.Transaction.PutRelat" + "ionType.ReqH\000\0227\n\013putRole_req\030\013 \001(\0132 .ses", "sion.Transaction.PutRole.ReqH\000\0227\n\013putRul" + "e_req\030\014 \001(\0132 .session.Transaction.PutRul" + "e.ReqH\000\022C\n\021conceptMethod_req\030\r \001(\0132&.ses" + "sion.Transaction.ConceptMethod.ReqH\000\032/\n\r" + "MetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + "\t:\0028\001B\005\n\003req\032\260\007\n\003Res\0229\n\010metadata\030\350\007 \003(\0132" + "&.session.Transaction.Res.MetadataEntry\022" + "1\n\010open_res\030\001 \001(\0132\035.session.Transaction." + "Open.ResH\000\0225\n\ncommit_res\030\002 \001(\0132\037.session" + ".Transaction.Commit.ResH\000\0225\n\nquery_iter\030", "\003 \001(\0132\037.session.Transaction.Query.IterH\000" + "\0224\n\013iterate_res\030\004 \001(\0132\035.session.Transact" + "ion.Iter.ResH\000\022I\n\024getSchemaConcept_res\030\005" + " \001(\0132).session.Transaction.GetSchemaConc" + "ept.ResH\000\022=\n\016getConcept_res\030\006 \001(\0132#.sess" + "ion.Transaction.GetConcept.ResH\000\022E\n\022getA" + "ttributes_iter\030\007 \001(\0132\'.session.Transacti" + "on.GetAttributes.IterH\000\022C\n\021putEntityType" + "_res\030\010 \001(\0132&.session.Transaction.PutEnti" + "tyType.ResH\000\022I\n\024putAttributeType_res\030\t \001", "(\0132).session.Transaction.PutAttributeTyp" + "e.ResH\000\022G\n\023putRelationType_res\030\n \001(\0132(.s" + "ession.Transaction.PutRelationType.ResH\000" + "\0227\n\013putRole_res\030\013 \001(\0132 .session.Transact" + "ion.PutRole.ResH\000\0227\n\013putRule_res\030\014 \001(\0132 " + ".session.Transaction.PutRule.ResH\000\022C\n\021co" + "nceptMethod_res\030\r \001(\0132&.session.Transact" + "ion.ConceptMethod.ResH\000\032/\n\rMetadataEntry" + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\005\n\003res\032" + "\202\002\n\004Iter\032\021\n\003Req\022\n\n\002id\030\001 \001(\005\032\346\001\n\003Res\022\016\n\004d", "one\030\001 \001(\010H\000\022=\n\016query_iter_res\030\002 \001(\0132#.se" + "ssion.Transaction.Query.Iter.ResH\000\022M\n\026ge" + "tAttributes_iter_res\030\003 \001(\0132+.session.Tra" + "nsaction.GetAttributes.Iter.ResH\000\022:\n\026con" + "ceptMethod_iter_res\030\004 \001(\0132\030.session.Meth" + "od.Iter.ResH\000B\005\n\003res\032s\n\004Open\032d\n\003Req\022\020\n\010k" + "eyspace\030\001 \001(\t\022\'\n\004type\030\002 \001(\0162\031.session.Tr" + "ansaction.Type\022\020\n\010username\030\003 \001(\t\022\020\n\010pass" + "word\030\004 \001(\t\032\005\n\003Res\032\026\n\006Commit\032\005\n\003Req\032\005\n\003Re" + "s\032\250\001\n\005Query\032E\n\003Req\022\r\n\005query\030\001 \001(\t\022/\n\005inf", "er\030\002 \001(\0162 .session.Transaction.Query.INF" + "ER\032:\n\004Iter\022\n\n\002id\030\001 \001(\005\032&\n\003Res\022\037\n\006answer\030" + "\001 \001(\0132\017.session.Answer\"\034\n\005INFER\022\010\n\004TRUE\020" + "\000\022\t\n\005FALSE\020\001\032\200\001\n\020GetSchemaConcept\032\024\n\003Req" + "\022\r\n\005label\030\001 \001(\t\032V\n\003Res\022)\n\rschemaConcept\030" + "\001 \001(\0132\020.session.ConceptH\000\022\035\n\004null\030\002 \001(\0132" + "\r.session.NullH\000B\005\n\003res\032q\n\nGetConcept\032\021\n" + "\003Req\022\n\n\002id\030\001 \001(\t\032P\n\003Res\022#\n\007concept\030\001 \001(\013" + "2\020.session.ConceptH\000\022\035\n\004null\030\002 \001(\0132\r.ses" + "sion.NullH\000B\005\n\003res\032{\n\rGetAttributes\032*\n\003R", "eq\022#\n\005value\030\001 \001(\0132\024.session.ValueObject\032" + ">\n\004Iter\022\n\n\002id\030\001 \001(\005\032*\n\003Res\022#\n\tattribute\030" + "\001 \001(\0132\020.session.Concept\032R\n\rPutEntityType" + "\032\024\n\003Req\022\r\n\005label\030\001 \001(\t\032+\n\003Res\022$\n\nentityT" + "ype\030\001 \001(\0132\020.session.Concept\032\214\001\n\020PutAttri" + "buteType\032H\n\003Req\022\r\n\005label\030\001 \001(\t\0222\n\010dataTy" + "pe\030\002 \001(\0162 .session.AttributeType.DATA_TY" + "PE\032.\n\003Res\022\'\n\rattributeType\030\001 \001(\0132\020.sessi" + "on.Concept\032V\n\017PutRelationType\032\024\n\003Req\022\r\n\005" + "label\030\001 \001(\t\032-\n\003Res\022&\n\014relationType\030\001 \001(\013", "2\020.session.Concept\032F\n\007PutRole\032\024\n\003Req\022\r\n\005" + "label\030\001 \001(\t\032%\n\003Res\022\036\n\004role\030\001 \001(\0132\020.sessi" + "on.Concept\032b\n\007PutRule\0320\n\003Req\022\r\n\005label\030\001 " + "\001(\t\022\014\n\004when\030\002 \001(\t\022\014\n\004then\030\003 \001(\t\032%\n\003Res\022\036" + "\n\004rule\030\001 \001(\0132\020.session.Concept\032u\n\rConcep" + "tMethod\0326\n\003Req\022\n\n\002id\030\001 \001(\t\022#\n\006method\030\002 \001" + "(\0132\023.session.Method.Req\032,\n\003Res\022%\n\010respon" + "se\030\001 \001(\0132\023.session.Method.Res\"&\n\004Type\022\010\n" + "\004READ\020\000\022\t\n\005WRITE\020\001\022\t\n\005BATCH\020\0022W\n\016Session" + "Service\022E\n\013transaction\022\030.session.Transac", "tion.Req\032\030.session.Transaction.Res(\0010\001B\"" + "\n\022ai.grakn.rpc.protoB\014SessionProtob\006prot" + "o3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { ai.grakn.rpc.proto.ConceptProto.getDescriptor(), ai.grakn.rpc.proto.AnswerProto.getDescriptor(), }, assigner); internal_static_session_Transaction_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_session_Transaction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_Req_descriptor = internal_static_session_Transaction_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Req_descriptor, new java.lang.String[] { "Metadata", "OpenReq", "CommitReq", "QueryReq", "IterateReq", "GetSchemaConceptReq", "GetConceptReq", "GetAttributesReq", "PutEntityTypeReq", "PutAttributeTypeReq", "PutRelationTypeReq", "PutRoleReq", "PutRuleReq", "ConceptMethodReq", "Req", }); internal_static_session_Transaction_Req_MetadataEntry_descriptor = internal_static_session_Transaction_Req_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_Req_MetadataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Req_MetadataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_session_Transaction_Res_descriptor = internal_static_session_Transaction_descriptor.getNestedTypes().get(1); internal_static_session_Transaction_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Res_descriptor, new java.lang.String[] { "Metadata", "OpenRes", "CommitRes", "QueryIter", "IterateRes", "GetSchemaConceptRes", "GetConceptRes", "GetAttributesIter", "PutEntityTypeRes", "PutAttributeTypeRes", "PutRelationTypeRes", "PutRoleRes", "PutRuleRes", "ConceptMethodRes", "Res", }); internal_static_session_Transaction_Res_MetadataEntry_descriptor = internal_static_session_Transaction_Res_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_Res_MetadataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Res_MetadataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_session_Transaction_Iter_descriptor = internal_static_session_Transaction_descriptor.getNestedTypes().get(2); internal_static_session_Transaction_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Iter_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_Iter_Req_descriptor = internal_static_session_Transaction_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_Iter_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Iter_Req_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Transaction_Iter_Res_descriptor = internal_static_session_Transaction_Iter_descriptor.getNestedTypes().get(1); internal_static_session_Transaction_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Iter_Res_descriptor, new java.lang.String[] { "Done", "QueryIterRes", "GetAttributesIterRes", "ConceptMethodIterRes", "Res", }); internal_static_session_Transaction_Open_descriptor = internal_static_session_Transaction_descriptor.getNestedTypes().get(3); internal_static_session_Transaction_Open_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Open_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_Open_Req_descriptor = internal_static_session_Transaction_Open_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_Open_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Open_Req_descriptor, new java.lang.String[] { "Keyspace", "Type", "Username", "Password", }); internal_static_session_Transaction_Open_Res_descriptor = internal_static_session_Transaction_Open_descriptor.getNestedTypes().get(1); internal_static_session_Transaction_Open_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Open_Res_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_Commit_descriptor = internal_static_session_Transaction_descriptor.getNestedTypes().get(4); internal_static_session_Transaction_Commit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Commit_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_Commit_Req_descriptor = internal_static_session_Transaction_Commit_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_Commit_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Commit_Req_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_Commit_Res_descriptor = internal_static_session_Transaction_Commit_descriptor.getNestedTypes().get(1); internal_static_session_Transaction_Commit_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Commit_Res_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_Query_descriptor = internal_static_session_Transaction_descriptor.getNestedTypes().get(5); internal_static_session_Transaction_Query_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Query_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_Query_Req_descriptor = internal_static_session_Transaction_Query_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_Query_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Query_Req_descriptor, new java.lang.String[] { "Query", "Infer", }); internal_static_session_Transaction_Query_Iter_descriptor = internal_static_session_Transaction_Query_descriptor.getNestedTypes().get(1); internal_static_session_Transaction_Query_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Query_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Transaction_Query_Iter_Res_descriptor = internal_static_session_Transaction_Query_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_Query_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_Query_Iter_Res_descriptor, new java.lang.String[] { "Answer", }); internal_static_session_Transaction_GetSchemaConcept_descriptor = internal_static_session_Transaction_descriptor.getNestedTypes().get(6); internal_static_session_Transaction_GetSchemaConcept_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_GetSchemaConcept_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_GetSchemaConcept_Req_descriptor = internal_static_session_Transaction_GetSchemaConcept_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_GetSchemaConcept_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_GetSchemaConcept_Req_descriptor, new java.lang.String[] { "Label", }); internal_static_session_Transaction_GetSchemaConcept_Res_descriptor = internal_static_session_Transaction_GetSchemaConcept_descriptor.getNestedTypes().get(1); internal_static_session_Transaction_GetSchemaConcept_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_GetSchemaConcept_Res_descriptor, new java.lang.String[] { "SchemaConcept", "Null", "Res", }); internal_static_session_Transaction_GetConcept_descriptor = internal_static_session_Transaction_descriptor.getNestedTypes().get(7); internal_static_session_Transaction_GetConcept_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_GetConcept_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_GetConcept_Req_descriptor = internal_static_session_Transaction_GetConcept_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_GetConcept_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_GetConcept_Req_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Transaction_GetConcept_Res_descriptor = internal_static_session_Transaction_GetConcept_descriptor.getNestedTypes().get(1); internal_static_session_Transaction_GetConcept_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_GetConcept_Res_descriptor, new java.lang.String[] { "Concept", "Null", "Res", }); internal_static_session_Transaction_GetAttributes_descriptor = internal_static_session_Transaction_descriptor.getNestedTypes().get(8); internal_static_session_Transaction_GetAttributes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_GetAttributes_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_GetAttributes_Req_descriptor = internal_static_session_Transaction_GetAttributes_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_GetAttributes_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_GetAttributes_Req_descriptor, new java.lang.String[] { "Value", }); internal_static_session_Transaction_GetAttributes_Iter_descriptor = internal_static_session_Transaction_GetAttributes_descriptor.getNestedTypes().get(1); internal_static_session_Transaction_GetAttributes_Iter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_GetAttributes_Iter_descriptor, new java.lang.String[] { "Id", }); internal_static_session_Transaction_GetAttributes_Iter_Res_descriptor = internal_static_session_Transaction_GetAttributes_Iter_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_GetAttributes_Iter_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_GetAttributes_Iter_Res_descriptor, new java.lang.String[] { "Attribute", }); internal_static_session_Transaction_PutEntityType_descriptor = internal_static_session_Transaction_descriptor.getNestedTypes().get(9); internal_static_session_Transaction_PutEntityType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_PutEntityType_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_PutEntityType_Req_descriptor = internal_static_session_Transaction_PutEntityType_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_PutEntityType_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_PutEntityType_Req_descriptor, new java.lang.String[] { "Label", }); internal_static_session_Transaction_PutEntityType_Res_descriptor = internal_static_session_Transaction_PutEntityType_descriptor.getNestedTypes().get(1); internal_static_session_Transaction_PutEntityType_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_PutEntityType_Res_descriptor, new java.lang.String[] { "EntityType", }); internal_static_session_Transaction_PutAttributeType_descriptor = internal_static_session_Transaction_descriptor.getNestedTypes().get(10); internal_static_session_Transaction_PutAttributeType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_PutAttributeType_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_PutAttributeType_Req_descriptor = internal_static_session_Transaction_PutAttributeType_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_PutAttributeType_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_PutAttributeType_Req_descriptor, new java.lang.String[] { "Label", "DataType", }); internal_static_session_Transaction_PutAttributeType_Res_descriptor = internal_static_session_Transaction_PutAttributeType_descriptor.getNestedTypes().get(1); internal_static_session_Transaction_PutAttributeType_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_PutAttributeType_Res_descriptor, new java.lang.String[] { "AttributeType", }); internal_static_session_Transaction_PutRelationType_descriptor = internal_static_session_Transaction_descriptor.getNestedTypes().get(11); internal_static_session_Transaction_PutRelationType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_PutRelationType_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_PutRelationType_Req_descriptor = internal_static_session_Transaction_PutRelationType_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_PutRelationType_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_PutRelationType_Req_descriptor, new java.lang.String[] { "Label", }); internal_static_session_Transaction_PutRelationType_Res_descriptor = internal_static_session_Transaction_PutRelationType_descriptor.getNestedTypes().get(1); internal_static_session_Transaction_PutRelationType_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_PutRelationType_Res_descriptor, new java.lang.String[] { "RelationType", }); internal_static_session_Transaction_PutRole_descriptor = internal_static_session_Transaction_descriptor.getNestedTypes().get(12); internal_static_session_Transaction_PutRole_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_PutRole_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_PutRole_Req_descriptor = internal_static_session_Transaction_PutRole_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_PutRole_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_PutRole_Req_descriptor, new java.lang.String[] { "Label", }); internal_static_session_Transaction_PutRole_Res_descriptor = internal_static_session_Transaction_PutRole_descriptor.getNestedTypes().get(1); internal_static_session_Transaction_PutRole_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_PutRole_Res_descriptor, new java.lang.String[] { "Role", }); internal_static_session_Transaction_PutRule_descriptor = internal_static_session_Transaction_descriptor.getNestedTypes().get(13); internal_static_session_Transaction_PutRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_PutRule_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_PutRule_Req_descriptor = internal_static_session_Transaction_PutRule_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_PutRule_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_PutRule_Req_descriptor, new java.lang.String[] { "Label", "When", "Then", }); internal_static_session_Transaction_PutRule_Res_descriptor = internal_static_session_Transaction_PutRule_descriptor.getNestedTypes().get(1); internal_static_session_Transaction_PutRule_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_PutRule_Res_descriptor, new java.lang.String[] { "Rule", }); internal_static_session_Transaction_ConceptMethod_descriptor = internal_static_session_Transaction_descriptor.getNestedTypes().get(14); internal_static_session_Transaction_ConceptMethod_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_ConceptMethod_descriptor, new java.lang.String[] { }); internal_static_session_Transaction_ConceptMethod_Req_descriptor = internal_static_session_Transaction_ConceptMethod_descriptor.getNestedTypes().get(0); internal_static_session_Transaction_ConceptMethod_Req_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_ConceptMethod_Req_descriptor, new java.lang.String[] { "Id", "Method", }); internal_static_session_Transaction_ConceptMethod_Res_descriptor = internal_static_session_Transaction_ConceptMethod_descriptor.getNestedTypes().get(1); internal_static_session_Transaction_ConceptMethod_Res_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_session_Transaction_ConceptMethod_Res_descriptor, new java.lang.String[] { "Response", }); ai.grakn.rpc.proto.ConceptProto.getDescriptor(); ai.grakn.rpc.proto.AnswerProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }
0
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/rpc
java-sources/ai/grakn/client-java/1.4.3/ai/grakn/rpc/proto/SessionServiceGrpc.java
package ai.grakn.rpc.proto; import static io.grpc.stub.ClientCalls.asyncUnaryCall; import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; import static io.grpc.stub.ClientCalls.blockingUnaryCall; import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; import static io.grpc.stub.ClientCalls.futureUnaryCall; import static io.grpc.MethodDescriptor.generateFullMethodName; import static io.grpc.stub.ServerCalls.asyncUnaryCall; import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; /** */ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.2.0)", comments = "Source: Session.proto") public final class SessionServiceGrpc { private SessionServiceGrpc() {} public static final String SERVICE_NAME = "session.SessionService"; // Static method descriptors that strictly reflect the proto. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor<ai.grakn.rpc.proto.SessionProto.Transaction.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Res> METHOD_TRANSACTION = io.grpc.MethodDescriptor.create( io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING, generateFullMethodName( "session.SessionService", "transaction"), io.grpc.protobuf.ProtoUtils.marshaller(ai.grakn.rpc.proto.SessionProto.Transaction.Req.getDefaultInstance()), io.grpc.protobuf.ProtoUtils.marshaller(ai.grakn.rpc.proto.SessionProto.Transaction.Res.getDefaultInstance())); /** * Creates a new async stub that supports all call types for the service */ public static SessionServiceStub newStub(io.grpc.Channel channel) { return new SessionServiceStub(channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static SessionServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { return new SessionServiceBlockingStub(channel); } /** * Creates a new ListenableFuture-style stub that supports unary and streaming output calls on the service */ public static SessionServiceFutureStub newFutureStub( io.grpc.Channel channel) { return new SessionServiceFutureStub(channel); } /** */ public static abstract class SessionServiceImplBase implements io.grpc.BindableService { /** * <pre> * Represents a full transaction. The stream of `Transaction.Req`s must begin with a `Open` message. * When the call is completed, the transaction will always be closed, with or without a `Commit` message. * </pre> */ public io.grpc.stub.StreamObserver<ai.grakn.rpc.proto.SessionProto.Transaction.Req> transaction( io.grpc.stub.StreamObserver<ai.grakn.rpc.proto.SessionProto.Transaction.Res> responseObserver) { return asyncUnimplementedStreamingCall(METHOD_TRANSACTION, responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( METHOD_TRANSACTION, asyncBidiStreamingCall( new MethodHandlers< ai.grakn.rpc.proto.SessionProto.Transaction.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Res>( this, METHODID_TRANSACTION))) .build(); } } /** */ public static final class SessionServiceStub extends io.grpc.stub.AbstractStub<SessionServiceStub> { private SessionServiceStub(io.grpc.Channel channel) { super(channel); } private SessionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected SessionServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SessionServiceStub(channel, callOptions); } /** * <pre> * Represents a full transaction. The stream of `Transaction.Req`s must begin with a `Open` message. * When the call is completed, the transaction will always be closed, with or without a `Commit` message. * </pre> */ public io.grpc.stub.StreamObserver<ai.grakn.rpc.proto.SessionProto.Transaction.Req> transaction( io.grpc.stub.StreamObserver<ai.grakn.rpc.proto.SessionProto.Transaction.Res> responseObserver) { return asyncBidiStreamingCall( getChannel().newCall(METHOD_TRANSACTION, getCallOptions()), responseObserver); } } /** */ public static final class SessionServiceBlockingStub extends io.grpc.stub.AbstractStub<SessionServiceBlockingStub> { private SessionServiceBlockingStub(io.grpc.Channel channel) { super(channel); } private SessionServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected SessionServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SessionServiceBlockingStub(channel, callOptions); } } /** */ public static final class SessionServiceFutureStub extends io.grpc.stub.AbstractStub<SessionServiceFutureStub> { private SessionServiceFutureStub(io.grpc.Channel channel) { super(channel); } private SessionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected SessionServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SessionServiceFutureStub(channel, callOptions); } } private static final int METHODID_TRANSACTION = 0; private static final class MethodHandlers<Req, Resp> implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { private final SessionServiceImplBase serviceImpl; private final int methodId; MethodHandlers(SessionServiceImplBase serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) { switch (methodId) { default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver<Req> invoke( io.grpc.stub.StreamObserver<Resp> responseObserver) { switch (methodId) { case METHODID_TRANSACTION: return (io.grpc.stub.StreamObserver<Req>) serviceImpl.transaction( (io.grpc.stub.StreamObserver<ai.grakn.rpc.proto.SessionProto.Transaction.Res>) responseObserver); default: throw new AssertionError(); } } } private static final class SessionServiceDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier { @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return ai.grakn.rpc.proto.SessionProto.getDescriptor(); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (SessionServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new SessionServiceDescriptorSupplier()) .addMethod(METHOD_TRANSACTION) .build(); } } } return result; } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/AbstractProcessHandler.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.util.Optional; /** * * @author Michele Orsi */ public abstract class AbstractProcessHandler { public static final long WAIT_INTERVAL_S=2; public static final String SH = "/bin/sh"; public OutputCommand executeAndWait(String[] cmdarray, String[] envp, File dir) { StringBuilder outputS = new StringBuilder(); int exitValue = 1; Process p; try { p = Runtime.getRuntime().exec(cmdarray, envp, dir); p.waitFor(); exitValue = p.exitValue(); try(BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream(), StandardCharsets.UTF_8))){ String line; while ((line = reader.readLine()) != null) { outputS.append(line).append("\n"); } } } catch (InterruptedException e) { Thread.currentThread().interrupt(); } catch (IOException e) { // DO NOTHING } return new OutputCommand(outputS.toString().trim(), exitValue); } public Optional<String> getPidFromFile(Path fileName) { String pid=null; if (fileName.toFile().exists()) { try { pid = new String(Files.readAllBytes(fileName),StandardCharsets.UTF_8).trim(); } catch (IOException e) { // DO NOTHING } } return Optional.ofNullable(pid); } public String getPidFromPsOf(String processName) { return executeAndWait(new String[]{ SH, "-c", "ps -ef | grep " + processName + " | grep -v grep | awk '{print $2}' " }, null, null).output; } private void kill(int pid) { executeAndWait(new String[]{ SH, "-c", "kill " + pid }, null, null); } private OutputCommand kill(int pid, String signal) { return executeAndWait(new String[]{ SH, "-c", "kill -"+signal+" " + pid }, null, null); } public int retrievePid(Path pidFile) { if(!pidFile.toFile().exists()) { return -1; } try { String pid = new String(Files.readAllBytes(pidFile), StandardCharsets.UTF_8); pid = pid.trim(); return Integer.parseInt(pid); } catch (NumberFormatException | IOException e) { return -1; } } public void waitUntilStopped(Path pidFile, int pid) { OutputCommand outputCommand; do { System.out.print("."); System.out.flush(); outputCommand = kill(pid,"0"); try { Thread.sleep(WAIT_INTERVAL_S * 1000); } catch (InterruptedException e) { // DO NOTHING } } while (outputCommand.succes()); System.out.println("SUCCESS"); File file = pidFile.toFile(); if(file.exists()) { try { Files.delete(pidFile); } catch (IOException e) { // DO NOTHING } } } public String selectCommand(String osx, String linux) { OutputCommand operatingSystem = executeAndWait(new String[]{ SH, "-c", "uname" },null,null); return operatingSystem.output.trim().equals("Darwin") ? osx : linux; } public boolean processIsRunning(Path pidFile) { boolean isRunning = false; String processPid; if (pidFile.toFile().exists()) { try { processPid = new String(Files.readAllBytes(pidFile),StandardCharsets.UTF_8); if(processPid.trim().isEmpty()) { return false; } OutputCommand command = executeAndWait(new String[]{ SH, "-c", "ps -p "+processPid.trim()+" | grep -v CMD | wc -l" },null,null); return Integer.parseInt(command.output.trim())>0; } catch (NumberFormatException | IOException e) { return false; } } return isRunning; } public void stopProgram(Path pidFile, String programName) { System.out.print("Stopping "+programName+"..."); System.out.flush(); boolean programIsRunning = processIsRunning(pidFile); if(!programIsRunning) { System.out.println("NOT RUNNING"); } else { stopProcess(pidFile); } } void stopProcess(Path pidFile) { int pid = retrievePid(pidFile); if (pid <0 ) return; kill(pid); waitUntilStopped(pidFile, pid); } public void processStatus(Path storagePid, String name) { if (processIsRunning(storagePid)) { System.out.println(name+": RUNNING"); } else { System.out.println(name+": NOT RUNNING"); } } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/EngineProcess.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup; import ai.grakn.GraknConfigKey; import ai.grakn.GraknSystemProperty; import ai.grakn.bootup.graknengine.Grakn; import ai.grakn.engine.GraknConfig; import ai.grakn.util.REST; import ai.grakn.util.SimpleURI; import javax.ws.rs.core.UriBuilder; import java.io.File; import java.io.FilenameFilter; import java.io.IOException; import java.net.HttpURLConnection; import java.net.URL; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.time.LocalDateTime; import java.util.Comparator; import java.util.Optional; import java.util.stream.Collectors; import java.util.stream.Stream; /** * * @author Michele Orsi */ public class EngineProcess extends AbstractProcessHandler { private static final String COMPONENT_NAME = "Engine"; private static final String GRAKN_NAME = "Grakn"; private static final long GRAKN_STARTUP_TIMEOUT_S = 300; public static final Path ENGINE_PID = Paths.get(File.separator,"tmp","grakn-engine.pid"); public static final String javaOpts = Optional.ofNullable(GraknSystemProperty.ENGINE_JAVAOPTS.value()).orElse(""); protected final Path homePath; protected final Path configPath; private final GraknConfig graknConfig; public EngineProcess(Path homePath, Path configPath) { this.homePath = homePath; this.configPath = configPath; this.graknConfig = GraknConfig.read(configPath.toFile()); } protected Class graknClass() { return Grakn.class; } public void start() { boolean graknIsRunning = processIsRunning(ENGINE_PID); if(graknIsRunning) { System.out.println(COMPONENT_NAME + " is already running"); } else { graknStartProcess(); } } protected String getClassPathFrom(Path home){ FilenameFilter jarFiles = (dir, name) -> name.toLowerCase().endsWith(".jar"); File folder = new File(home + File.separator+"services"+File.separator+"lib"); // services/lib folder File[] values = folder.listFiles(jarFiles); if(values==null) { throw new RuntimeException("No libraries found: cannot run " + COMPONENT_NAME); } Stream<File> jars = Stream.of(values); File conf = new File(home + File.separator+"conf"+File.separator); // /conf File graknLogback = new File(home + File.separator+"services"+File.separator+"grakn"+File.separator + "server"+File.separator); // services/grakn/server lib return ":"+Stream.concat(jars, Stream.of(conf, graknLogback)) .filter(f -> !f.getName().contains("slf4j-log4j12")) .map(File::getAbsolutePath) .sorted() // we need to sort otherwise it doesn't load logback configuration properly .collect(Collectors.joining(":")); } private void graknStartProcess() { System.out.print("Starting " + COMPONENT_NAME + "..."); System.out.flush(); String command = commandToRun(); executeAndWait(new String[]{ "/bin/sh", "-c", command}, null, null); LocalDateTime init = LocalDateTime.now(); LocalDateTime timeout = init.plusSeconds(GRAKN_STARTUP_TIMEOUT_S); while(LocalDateTime.now().isBefore(timeout)) { System.out.print("."); System.out.flush(); String host = graknConfig.getProperty(GraknConfigKey.SERVER_HOST_NAME); int port = graknConfig.getProperty(GraknConfigKey.SERVER_PORT); if(processIsRunning(ENGINE_PID) && graknCheckIfReady(host,port, REST.WebPath.STATUS)) { System.out.println("SUCCESS"); return; } try { Thread.sleep(WAIT_INTERVAL_S * 1000); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } System.out.println("FAILED!"); System.out.println("Unable to start " + COMPONENT_NAME); throw new ProcessNotStartedException(); } protected String commandToRun() { String cmd = "java " + javaOpts + " -cp " + getClassPathFrom(homePath) + " -Dgrakn.dir=" + homePath + " -Dgrakn.conf="+ configPath + " -Dgrakn.pidfile=" + ENGINE_PID.toString() + " " + graknClass().getName() + " > /dev/null 2>&1 &"; return cmd; } private boolean graknCheckIfReady(String host, int port, String path) { try { URL siteURL = UriBuilder.fromUri(new SimpleURI(host, port).toURI()).path(path).build().toURL(); HttpURLConnection connection = (HttpURLConnection) siteURL .openConnection(); connection.setRequestMethod("GET"); connection.connect(); int code = connection.getResponseCode(); return code == 200; } catch (IOException e) { return false; } } public void stop() { stopProgram(ENGINE_PID, COMPONENT_NAME); } public void status() { processStatus(ENGINE_PID, COMPONENT_NAME); } public void statusVerbose() { System.out.println(COMPONENT_NAME + " pid = '"+ getPidFromFile(ENGINE_PID).orElse("")+"' (from "+ ENGINE_PID +"), '"+ getPidFromPsOf(graknClass().getName()) +"' (from ps -ef)"); } public void clean() { System.out.print("Cleaning "+GRAKN_NAME+"..."); System.out.flush(); Path rootPath = homePath.resolve("logs"); try (Stream<Path> files = Files.walk(rootPath)) { files.sorted(Comparator.reverseOrder()) .map(Path::toFile) .forEach(File::delete); Files.createDirectories(homePath.resolve("logs")); System.out.println("SUCCESS"); } catch (IOException e) { System.out.println("FAILED!"); System.out.println("Unable to clean "+GRAKN_NAME); } } public boolean isRunning() { return processIsRunning(ENGINE_PID); } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/GraknBootup.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup; import ai.grakn.GraknSystemProperty; import ai.grakn.bootup.config.ConfigProcessor; import ai.grakn.util.ErrorMessage; import ai.grakn.util.GraknVersion; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Scanner; /** * * @author Michele Orsi */ public class GraknBootup { private static final String ENGINE = "engine"; private static final String QUEUE = "queue"; private static final String STORAGE = "storage"; private final StorageProcess storageProcess; private final QueueProcess queueProcess; private final EngineProcess engineProcess; /** * Invocation from bash script 'grakn' * In order to run this method you should have 'grakn.dir' and 'grakn.conf' set * * @param args */ public static void main(String[] args) { printAscii(); try { Path homeStatic = Paths.get(GraknSystemProperty.CURRENT_DIRECTORY.value()); Path configStatic = Paths.get(GraknSystemProperty.CONFIGURATION_FILE.value()); assertConfigurationCorrect(homeStatic, configStatic); newGraknBootup(homeStatic, configStatic).run(args); } catch (RuntimeException ex) { System.out.println("Problem with bash script: cannot run Grakn"); } } private static void assertConfigurationCorrect(Path homeStatic, Path configStatic) { if (!homeStatic.resolve("grakn").toFile().exists()) { throw new RuntimeException(ErrorMessage.UNABLE_TO_GET_GRAKN_HOME_FOLDER.getMessage()); } if (!configStatic.toFile().exists()) { throw new RuntimeException(ErrorMessage.UNABLE_TO_GET_GRAKN_CONFIG_FOLDER.getMessage()); } } private static GraknBootup newGraknBootup(Path homePathFolder, Path configPath) { return new GraknBootup( new StorageProcess(homePathFolder, configPath), new QueueProcess(homePathFolder), new EngineProcess(homePathFolder, configPath)); } public void run(String[] args) { String context = args.length > 0 ? args[0] : ""; String action = args.length > 1 ? args[1] : ""; String option = args.length > 2 ? args[2] : ""; switch (context) { case "server": server(action, option); break; case "version": version(); break; default: help(); } } public static void printAscii() { Path ascii = Paths.get(".", "services", "grakn", "grakn-ascii.txt"); if(ascii.toFile().exists()) { try { System.out.println(new String(Files.readAllBytes(ascii), StandardCharsets.UTF_8)); } catch (IOException e) { // DO NOTHING } } } public GraknBootup(StorageProcess storageProcess, QueueProcess queueProcess, EngineProcess engineProcess) { this.storageProcess = storageProcess; this.queueProcess = queueProcess; this.engineProcess = engineProcess; } private void version() { System.out.println(GraknVersion.VERSION); } private void help() { System.out.println("Usage: grakn COMMAND\n" + "\n" + "COMMAND:\n" + "server Manage Grakn components\n" + "version Print Grakn version\n" + "help Print this message\n" + "\n" + "Tips:\n" + "- Start Grakn with 'grakn server start' (by default, the dashboard will be accessible at http://localhost:4567)\n" + "- You can then perform queries by opening a console with 'graql console'"); } private void server(String action, String option) { switch (action) { case "start": serverStart(option); break; case "stop": serverStop(option); break; case "status": serverStatus(option); break; case "clean": clean(); break; default: serverHelp(); } } private void clean() { boolean storage = storageProcess.isRunning(); boolean queue = queueProcess.isRunning(); boolean grakn = engineProcess.isRunning(); if(storage || queue || grakn) { System.out.println("Grakn is still running! Please do a shutdown with 'grakn server stop' before performing a cleanup."); return; } System.out.print("Are you sure you want to delete all stored data and logs? [y/N] "); System.out.flush(); String response = new Scanner(System.in, StandardCharsets.UTF_8.name()).next(); if (!response.equals("y") && !response.equals("Y")) { System.out.println("Response '" + response + "' did not equal 'y' or 'Y'. Canceling clean operation."); return; } storageProcess.clean(); queueProcess.clean(); engineProcess.clean(); } private void serverStop(String arg) { switch (arg) { case ENGINE: engineProcess.stop(); break; case QUEUE: queueProcess.stop(); break; case STORAGE: storageProcess.stop(); break; default: engineProcess.stop(); queueProcess.stop(); storageProcess.stop(); } } private void serverStart(String arg) { switch (arg) { case ENGINE: try { engineProcess.start(); } catch (ProcessNotStartedException e) { // DO NOTHING } break; case QUEUE: try { queueProcess.start(); } catch (ProcessNotStartedException e) { // DO NOTHING } break; case STORAGE: try { storageProcess.start(); } catch (ProcessNotStartedException e) { // DO NOTHING } break; default: try { ConfigProcessor.updateProcessConfigs(); storageProcess.start(); queueProcess.start(); engineProcess.start(); } catch (ProcessNotStartedException e) { System.out.println("Please run 'grakn server status' or check the logs located under 'logs' directory."); } } } private void serverHelp() { System.out.println("Usage: grakn server COMMAND\n" + "\n" + "COMMAND:\n" + "start ["+ENGINE+"|"+QUEUE+"|"+STORAGE+"] Start Grakn (or optionally, only one of the component)\n" + "stop ["+ENGINE+"|"+QUEUE+"|"+STORAGE+"] Stop Grakn (or optionally, only one of the component)\n" + "status Check if Grakn is running\n" + "clean DANGEROUS: wipe data completely\n" + "\n" + "Tips:\n" + "- Start Grakn with 'grakn server start'\n" + "- Start or stop only one component with, e.g. 'grakn server start storage' or 'grakn server stop storage', respectively\n"); } private void serverStatus(String verboseFlag) { storageProcess.status(); queueProcess.status(); engineProcess.status(); if(verboseFlag.equals("--verbose")) { System.out.println("======== Failure Diagnostics ========"); storageProcess.statusVerbose(); queueProcess.statusVerbose(); engineProcess.statusVerbose(); } } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/Graql.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup; import ai.grakn.engine.GraknConfig; import ai.grakn.graql.shell.GraknSessionProvider; import ai.grakn.graql.shell.GraqlConsole; import ai.grakn.graql.shell.GraqlShellOptions; import ai.grakn.graql.shell.GraqlShellOptionsFactory; import ai.grakn.graql.shell.SessionProvider; import ai.grakn.migration.csv.CSVMigrator; import ai.grakn.migration.export.Main; import ai.grakn.migration.json.JsonMigrator; import ai.grakn.migration.sql.SQLMigrator; import ai.grakn.migration.xml.XmlMigrator; import ai.grakn.util.GraknVersion; import com.google.common.base.StandardSystemProperty; import org.apache.commons.cli.ParseException; import java.io.IOException; import java.util.Arrays; /** * * @author Michele Orsi */ public class Graql { private final GraqlShellOptionsFactory graqlShellOptionsFactory; private SessionProvider sessionProvider; private static final String HISTORY_FILENAME = StandardSystemProperty.USER_HOME.value() + "/.graql-history"; public Graql(SessionProvider sessionProvider, GraqlShellOptionsFactory graqlShellOptionsFactory) { this.sessionProvider = sessionProvider; this.graqlShellOptionsFactory = graqlShellOptionsFactory; } /** * * Invocation from bash script 'graql' * * @param args */ public static void main(String[] args) throws IOException, InterruptedException { GraknSessionProvider sessionProvider = new GraknSessionProvider(GraknConfig.create()); GraqlShellOptionsFactory graqlShellOptionsFactory = GraqlShellOptions::create; new Graql(sessionProvider, graqlShellOptionsFactory).run(args); } public void run(String[] args) throws IOException, InterruptedException { String context = args.length > 0 ? args[0] : ""; switch (context) { case "console": GraqlShellOptions options; try { options = graqlShellOptionsFactory.createGraqlShellOptions(valuesFrom(args, 1)); } catch (ParseException e) { System.err.println(e.getMessage()); return; } GraqlConsole.start(options, sessionProvider, HISTORY_FILENAME, System.out, System.err); break; case "migrate": migrate(valuesFrom(args, 1)); break; case "version": version(); break; default: help(); } } private void migrate(String[] args) { String option = args.length > 0 ? args[0] : ""; switch (option) { case "csv": CSVMigrator.main(valuesFrom(args, 1)); break; case "json": JsonMigrator.main(valuesFrom(args, 1)); break; case "owl": System.out.println("Owl migration not supported anymore"); break; case "export": Main.main(valuesFrom(args, 1)); break; case "sql": SQLMigrator.main(valuesFrom(args, 1)); break; case "xml": XmlMigrator.main(valuesFrom(args, 1)); break; default: help(); } } private String[] valuesFrom(String[] args, int index) { return Arrays.copyOfRange(args, index, args.length); } private void help() { System.out.println("Usage: graql COMMAND\n" + "\n" + "COMMAND:\n" + "console Start a REPL console for running Graql queries. Defaults to connecting to http://localhost\n" + "migrate Run migration from a file\n" + "version Print Grakn version\n" + "help Print this message"); } private void version() { System.out.println(GraknVersion.VERSION); } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/OutputCommand.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup; /** * * @author Michele Orsi */ public class OutputCommand { public final String output; public final int exitStatus; public OutputCommand(String output, int exitStatus) { this.output = output; this.exitStatus = exitStatus; } public boolean succes() { return exitStatus==0; } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/ProcessNotStartedException.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup; /** * * @author Michele Orsi */ public class ProcessNotStartedException extends RuntimeException { }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/QueueProcess.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup; import ai.grakn.GraknConfigKey; import ai.grakn.engine.GraknConfig; import java.io.File; import java.nio.file.Path; import java.nio.file.Paths; import java.time.LocalDateTime; /** * * @author Michele Orsi */ public class QueueProcess extends AbstractProcessHandler { private static final String QUEUE_PROCESS_NAME = "redis-server"; private static final String CONFIG_LOCATION = "/services/redis/redis.conf"; private static final Path QUEUE_PID = Paths.get(File.separator,"tmp","grakn-queue.pid"); private static final long QUEUE_STARTUP_TIMEOUT_S = 10; private static final String COMPONENT_NAME = "Queue"; private final Path homePath; public QueueProcess(Path homePath) { this.homePath = homePath; } public void start() { boolean queueRunning = processIsRunning(QUEUE_PID); if(queueRunning) { System.out.println(COMPONENT_NAME +" is already running"); } else { queueStartProcess(); } } private void queueStartProcess() { System.out.print("Starting "+ COMPONENT_NAME +"..."); System.out.flush(); String queueBin = selectCommand("redis-server-osx","redis-server-linux"); // run queue // queue needs to be ran with $GRAKN_HOME as the working directory // otherwise it won't be able to find its data directory located at $GRAKN_HOME/db/redis executeAndWait(new String[]{ SH, "-c", homePath +"/services/redis/"+queueBin+" "+ homePath + CONFIG_LOCATION },null,homePath.toFile()); LocalDateTime init = LocalDateTime.now(); LocalDateTime timeout = init.plusSeconds(QUEUE_STARTUP_TIMEOUT_S); while(LocalDateTime.now().isBefore(timeout)) { System.out.print("."); System.out.flush(); if(processIsRunning(QUEUE_PID)) { System.out.println("SUCCESS"); return; } try { Thread.sleep(WAIT_INTERVAL_S * 1000); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } System.out.println("FAILED!"); System.out.println("Unable to start "+ COMPONENT_NAME); throw new ProcessNotStartedException(); } public void stop() { System.out.print("Stopping "+ COMPONENT_NAME +"..."); System.out.flush(); boolean queueIsRunning = processIsRunning(QUEUE_PID); if(!queueIsRunning) { System.out.println("NOT RUNNING"); } else { queueStopProcess(); } } private void queueStopProcess() { int pid = retrievePid(QUEUE_PID); if (pid <0 ) return; String host = getHostFromConfig(); String queueBin = selectCommand("redis-cli-osx", "redis-cli-linux"); executeAndWait(new String[]{ SH, "-c", homePath + "/services/redis/" + queueBin + " -h " + host + " shutdown" }, null, null); waitUntilStopped(QUEUE_PID,pid); } private String getHostFromConfig() { Path fileLocation = Paths.get(homePath.toString(), CONFIG_LOCATION); return GraknConfig.read(fileLocation.toFile()).getProperty(GraknConfigKey.REDIS_BIND); } public void status() { processStatus(QUEUE_PID, COMPONENT_NAME); } public void statusVerbose() { System.out.println(COMPONENT_NAME +" pid = '"+ getPidFromFile(QUEUE_PID).orElse("")+"' (from "+QUEUE_PID+"), '"+ getPidFromPsOf(QUEUE_PROCESS_NAME) +"' (from ps -ef)"); } public void clean() { System.out.print("Cleaning "+ COMPONENT_NAME +"..."); System.out.flush(); start(); String queueBin = selectCommand("redis-cli-osx", "redis-cli-linux"); executeAndWait(new String[]{ SH, "-c", homePath.resolve(Paths.get("services", "redis", queueBin))+" flushall" },null,null); stop(); System.out.println("SUCCESS"); } public boolean isRunning() { return processIsRunning(QUEUE_PID); } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/StorageProcess.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup; import ai.grakn.GraknConfigKey; import ai.grakn.engine.GraknConfig; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.time.LocalDateTime; import java.util.Comparator; import java.util.stream.Stream; /** * * @author Michele Orsi */ public class StorageProcess extends AbstractProcessHandler { private static final String STORAGE_PROCESS_NAME = "CassandraDaemon"; private static final Path STORAGE_PID = Paths.get(File.separator,"tmp","grakn-storage.pid"); private static final long STORAGE_STARTUP_TIMEOUT_S=60; private static final String CASSANDRA = "cassandra"; private static final String COMPONENT_NAME = "Storage"; private final Path homePath; private final GraknConfig graknConfig; public StorageProcess(Path homePath, Path configPath) { this.homePath = homePath; this.graknConfig = GraknConfig.read(configPath.toFile()); } public void start() { boolean storageIsRunning = processIsRunning(STORAGE_PID); if(storageIsRunning) { System.out.println(COMPONENT_NAME +" is already running"); } else { storageStartProcess(); } } private Path getStorageLogPath(){ //make the path absolute to avoid cassandra confusion String logDirString = graknConfig.getProperty(GraknConfigKey.LOG_DIR); Path logDirPath = Paths.get(graknConfig.getProperty(GraknConfigKey.LOG_DIR)); return logDirPath.isAbsolute() ? logDirPath : Paths.get(homePath.toString(), logDirString); } private void storageStartProcess() { System.out.print("Starting "+ COMPONENT_NAME +"..."); System.out.flush(); if(STORAGE_PID.toFile().exists()) { try { Files.delete(STORAGE_PID); } catch (IOException e) { // DO NOTHING } } OutputCommand outputCommand = executeAndWait(new String[]{ SH, "-c", homePath.resolve(Paths.get("services", CASSANDRA, CASSANDRA)) + " -p " + STORAGE_PID + " -l " + getStorageLogPath() }, null, null); LocalDateTime init = LocalDateTime.now(); LocalDateTime timeout = init.plusSeconds(STORAGE_STARTUP_TIMEOUT_S); while(LocalDateTime.now().isBefore(timeout) && outputCommand.exitStatus<1) { System.out.print("."); System.out.flush(); OutputCommand storageStatus = executeAndWait(new String[]{ SH, "-c", homePath + "/services/cassandra/nodetool statusthrift 2>/dev/null | tr -d '\n\r'" },null,null); if(storageStatus.output.trim().equals("running")) { System.out.println("SUCCESS"); return; } try { Thread.sleep(WAIT_INTERVAL_S *1000); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } System.out.println("FAILED!"); System.out.println("Unable to start "+ COMPONENT_NAME); throw new ProcessNotStartedException(); } public void stop() { stopProgram(STORAGE_PID, COMPONENT_NAME); } public void status() { processStatus(STORAGE_PID, COMPONENT_NAME); } public void statusVerbose() { System.out.println(COMPONENT_NAME +" pid = '"+ getPidFromFile(STORAGE_PID).orElse("")+"' (from "+STORAGE_PID+"), '"+ getPidFromPsOf(STORAGE_PROCESS_NAME) +"' (from ps -ef)"); } public void clean() { System.out.print("Cleaning "+ COMPONENT_NAME +"..."); System.out.flush(); Path dirPath = Paths.get("db", CASSANDRA); try (Stream<Path> files = Files.walk(dirPath)) { files.map(Path::toFile) .sorted(Comparator.comparing(File::isDirectory)) .forEach(File::delete); Files.createDirectories(homePath.resolve(Paths.get("db", CASSANDRA,"data"))); Files.createDirectories(homePath.resolve(Paths.get("db", CASSANDRA,"commitlog"))); Files.createDirectories(homePath.resolve(Paths.get("db", CASSANDRA,"saved_caches"))); System.out.println("SUCCESS"); } catch (IOException e) { System.out.println("FAILED!"); System.out.println("Unable to clean "+ COMPONENT_NAME); } } public boolean isRunning() { return processIsRunning(STORAGE_PID); } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/config/ConfigProcessor.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup.config; import ai.grakn.engine.GraknConfig; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; /** * Helper class for updating storage config file. * * @author Kasper Piskorski */ public class ConfigProcessor { public static String getConfigStringFromFile(Path configPath){ try { byte[] bytes = Files.readAllBytes(configPath); return new String(bytes, StandardCharsets.UTF_8); } catch (IOException e) { throw new RuntimeException(e); } } public static void saveConfigStringToFile(String configString, Path configPath){ try { Files.write(configPath, configString.getBytes(StandardCharsets.UTF_8)); } catch (IOException e) { throw new RuntimeException(e); } } public static void updateStorageConfig(){ GraknConfig graknConfig = Configs.graknConfig(); String updatedStorageConfigString = Configs.storageConfig() .updateFromConfig(graknConfig) .toConfigString(); saveConfigStringToFile(updatedStorageConfigString, Configs.storageConfigPath()); } public static void updateQueueConfig(){ GraknConfig graknConfig = Configs.graknConfig(); String updatedQueueConfigString = Configs.queueConfig() .updateFromConfig(graknConfig) .toConfigString(); saveConfigStringToFile(updatedQueueConfigString, Configs.queueConfigPath()); } public static void updateProcessConfigs() { updateStorageConfig(); updateQueueConfig(); } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/config/Configs.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup.config; import ai.grakn.GraknSystemProperty; import ai.grakn.engine.GraknConfig; import java.nio.file.Path; import java.nio.file.Paths; /** * Factory class for configs. * * @author Kasper Piskorski */ public class Configs { private static final String STORAGE_CONFIG_PATH = "services/cassandra/"; private static final String STORAGE_CONFIG_NAME = "cassandra.yaml"; private static final String QUEUE_CONFIG_PATH = "services/redis/"; private static final String QUEUE_CONFIG_NAME = "redis.conf"; public static GraknConfig graknConfig(){ return GraknConfig.read(graknConfigPath().toFile()); } public static QueueConfig queueConfig(){ return QueueConfig.from(queueConfigPath()); } public static StorageConfig storageConfig(){ return StorageConfig.from(storageConfigPath()); } public static Path graknConfigPath(){ return Paths.get(GraknSystemProperty.CONFIGURATION_FILE.value()); } /** paths relative to dist dir **/ public static Path queueConfigPath(){ return Paths.get(QUEUE_CONFIG_PATH, QUEUE_CONFIG_NAME); } public static Path storageConfigPath(){ return Paths.get(STORAGE_CONFIG_PATH, STORAGE_CONFIG_NAME); } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/config/ProcessConfig.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup.config; import ai.grakn.engine.GraknConfig; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Maps; import java.util.Map; /** * * @param <V> config parameter value type * * @author Kasper Piskorski */ public abstract class ProcessConfig<V> { private final ImmutableMap<String, V> params; ProcessConfig(Map<String, V> params) { this.params = ImmutableMap.copyOf(params); } public ImmutableMap<String, V> params() { return params; } Map<String, V> updateParamsFromMap(Map<String, V> newParams){ Map<String, V> updatedParams = Maps.newHashMap(params()); updatedParams.putAll(newParams); return updatedParams; } Map<String, V> updateParamsFromConfig(String CONFIG_PARAM_PREFIX, GraknConfig config) { //overwrite params with params from grakn config Map<String, V> updatedParams = Maps.newHashMap(params()); config.properties() .stringPropertyNames() .stream() .filter(prop -> prop.contains(CONFIG_PARAM_PREFIX)) .forEach(prop -> { String param = prop.replaceAll(CONFIG_PARAM_PREFIX, ""); if (updatedParams.containsKey(param)) { Map.Entry<String, V> entry = propToEntry(param, prop); updatedParams.put(entry.getKey(), entry.getValue()); } }); return updatedParams; } abstract Map.Entry<String, V> propToEntry(String param, String value); public abstract String toConfigString(); public abstract ProcessConfig updateGenericParams(GraknConfig config); public abstract ProcessConfig updateFromConfig(GraknConfig config); }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/config/QueueConfig.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup.config; import ai.grakn.GraknConfigKey; import ai.grakn.engine.GraknConfig; import com.google.common.collect.ImmutableMap; import java.nio.file.Path; import java.nio.file.Paths; import java.util.AbstractMap; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import org.apache.commons.configuration.ConfigurationException; import org.apache.commons.configuration.PropertiesConfiguration; /** * Container class for storing and manipulating queue configuration. * NB: * - Redis allows for multiple value params hence we need a map of lists. * - Redis data dir must already exist when starting redis * * @author Kasper Piskorski */ public class QueueConfig extends ProcessConfig<List<Object>>{ private static final String CONFIG_PARAM_PREFIX = "queue.internal."; private static final String LOG_FILE = "grakn-queue.log"; private static final String DATA_SUBDIR = "redis/"; private static final String DB_DIR_CONFIG_KEY = "dir"; private static final String LOG_DIR_CONFIG_KEY = "logfile"; private static final String RECORD_SEPARATOR = "\n"; private static final String KEY_VALUE_SEPARATOR = " "; private QueueConfig(Map<String, List<Object>> params) { super(params); } public static QueueConfig of(Map<String, List<Object>> params) { return new QueueConfig(params); } public static QueueConfig from(Path configPath){ return of(parseFileToMap(configPath));} private static Map<String, List<Object>> parseFileToMap(Path configPath){ Map<String, List<Object>> map = new HashMap<>(); try { PropertiesConfiguration props = new PropertiesConfiguration(configPath.toFile()); props.getKeys().forEachRemaining(key -> map.put(key, props.getList(key))); } catch (ConfigurationException e) { e.printStackTrace(); } return map; } @Override Map.Entry<String, List<Object>> propToEntry(String param, String value) { return new AbstractMap.SimpleImmutableEntry<>(param, Collections.singletonList(value)); } @Override public String toConfigString() { return params().entrySet().stream() .flatMap(e -> e.getValue().stream().map(value -> new AbstractMap.SimpleImmutableEntry<>(e.getKey(), value))) .map(e -> e.getKey() + KEY_VALUE_SEPARATOR + e.getValue()) .collect(Collectors.joining(RECORD_SEPARATOR)); } private Path getAbsoluteLogPath(GraknConfig config){ //NB redis gets confused with relative log paths Path projectPath = GraknConfig.PROJECT_PATH; String logPathString = config.getProperty(GraknConfigKey.LOG_DIR) + LOG_FILE; Path logPath = Paths.get(logPathString); return logPath.isAbsolute() ? logPath : Paths.get(projectPath.toString(), logPathString); } private QueueConfig updateDirs(GraknConfig config) { String dbDir = config.getProperty(GraknConfigKey.DATA_DIR); ImmutableMap<String, List<Object>> dirParams = ImmutableMap.of( DB_DIR_CONFIG_KEY, Collections.singletonList(dbDir + DATA_SUBDIR), LOG_DIR_CONFIG_KEY, Collections.singletonList(getAbsoluteLogPath(config)) ); return new QueueConfig(this.updateParamsFromMap(dirParams)); } @Override public QueueConfig updateGenericParams(GraknConfig config) { return new QueueConfig(this.updateParamsFromConfig(CONFIG_PARAM_PREFIX, config)); } @Override public QueueConfig updateFromConfig(GraknConfig config) { return this .updateGenericParams(config) .updateDirs(config); } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/config/StorageConfig.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup.config; import ai.grakn.GraknConfigKey; import ai.grakn.engine.GraknConfig; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; import com.fasterxml.jackson.dataformat.yaml.YAMLGenerator; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Maps; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Path; import java.util.AbstractMap; import java.util.Collections; import java.util.Map; /** * Container class for storing and manipulating storage configuration. * * @author Kasper Piskorski */ public class StorageConfig extends ProcessConfig<Object> { private static final String EMPTY_VALUE = ""; private static final String CONFIG_PARAM_PREFIX = "storage.internal."; private static final String SAVED_CACHES_SUBDIR = "cassandra/saved_caches"; private static final String COMMITLOG_SUBDIR = "cassandra/commitlog"; private static final String DATA_SUBDIR = "cassandra/data"; private static final String DATA_FILE_DIR_CONFIG_KEY = "data_file_directories"; private static final String SAVED_CACHES_DIR_CONFIG_KEY = "saved_caches_directory"; private static final String COMMITLOG_DIR_CONFIG_KEY = "commitlog_directory"; private StorageConfig(Map<String, Object> yamlParams){ super(yamlParams); } public static StorageConfig of(String yaml) { return new StorageConfig(StorageConfig.parseStringToMap(yaml)); } public static StorageConfig from(Path configPath){ String configString = ConfigProcessor.getConfigStringFromFile(configPath); return of(configString); } private static Map<String, Object> parseStringToMap(String yaml){ ObjectMapper mapper = new ObjectMapper(new YAMLFactory().enable(YAMLGenerator.Feature.MINIMIZE_QUOTES)); try { TypeReference<Map<String, Object>> reference = new TypeReference<Map<String, Object>>(){}; Map<String, Object> yamlParams = mapper.readValue(yaml, reference); return Maps.transformValues(yamlParams, value -> value == null ? EMPTY_VALUE : value); } catch (IOException e) { throw new RuntimeException(e); } } @Override Map.Entry<String, Object> propToEntry(String key, String value) { return new AbstractMap.SimpleImmutableEntry<>(key, value); } @Override public String toConfigString() { ObjectMapper mapper = new ObjectMapper(new YAMLFactory().enable(YAMLGenerator.Feature.MINIMIZE_QUOTES)); try { ByteArrayOutputStream outputstream = new ByteArrayOutputStream(); mapper.writeValue(outputstream, params()); return outputstream.toString(StandardCharsets.UTF_8.name()); } catch (IOException e) { throw new RuntimeException(e); } } private StorageConfig updateDirs(GraknConfig config) { String dbDir = config.getProperty(GraknConfigKey.DATA_DIR); ImmutableMap<String, Object> dirParams = ImmutableMap.of( DATA_FILE_DIR_CONFIG_KEY, Collections.singletonList(dbDir + DATA_SUBDIR), SAVED_CACHES_DIR_CONFIG_KEY, dbDir + SAVED_CACHES_SUBDIR, COMMITLOG_DIR_CONFIG_KEY, dbDir + COMMITLOG_SUBDIR ); return new StorageConfig(this.updateParamsFromMap(dirParams)); } @Override Map<String, Object> updateParamsFromConfig(String CONFIG_PARAM_PREFIX, GraknConfig config) { //overwrite params with params from grakn config Map<String, Object> updatedParams = Maps.newHashMap(params()); config.properties() .stringPropertyNames() .stream() .filter(prop -> prop.contains(CONFIG_PARAM_PREFIX)) .forEach(prop -> { String param = prop.replaceAll(CONFIG_PARAM_PREFIX, ""); if (updatedParams.containsKey(param)) { updatedParams.put(param, config.properties().getProperty(prop)); } }); return updatedParams; } @Override public StorageConfig updateGenericParams(GraknConfig config) { return new StorageConfig(this.updateParamsFromConfig(CONFIG_PARAM_PREFIX, config)); } @Override public StorageConfig updateFromConfig(GraknConfig config){ return this .updateGenericParams(config) .updateDirs(config); } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/graknengine/Grakn.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup.graknengine; import ai.grakn.GraknSystemProperty; import ai.grakn.bootup.graknengine.pid.GraknPidManager; import ai.grakn.bootup.graknengine.pid.GraknPidManagerFactory; import ai.grakn.engine.GraknEngineServerFactory; import ai.grakn.engine.GraknEngineServer; import ai.grakn.util.ErrorMessage; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Optional; /** * * Main class invoked by bash scripting. * * NOTE: The class name is shown when a user is running the 'jps' command. Therefore please keep the class name "Grakn". * * @author Michele Orsi * */ public class Grakn { private static final Logger LOG = LoggerFactory.getLogger(Grakn.class); /** * * Invocation from class 'GraknProcess' in grakn-dist project * * @param args */ public static void main(String[] args) { Thread.setDefaultUncaughtExceptionHandler(newUncaughtExceptionHandler(LOG)); try { String graknPidFileProperty = Optional.ofNullable(GraknSystemProperty.GRAKN_PID_FILE.value()) .orElseThrow(() -> new RuntimeException(ErrorMessage.GRAKN_PIDFILE_SYSTEM_PROPERTY_UNDEFINED.getMessage())); Path pidfile = Paths.get(graknPidFileProperty); GraknPidManager graknPidManager = GraknPidManagerFactory.newGraknPidManagerForUnixOS(pidfile); graknPidManager.trackGraknPid(); // Start Engine GraknEngineServer graknEngineServer = GraknEngineServerFactory.createGraknEngineServer(); graknEngineServer.start(); } catch (IOException e) { LOG.error(ErrorMessage.UNCAUGHT_EXCEPTION.getMessage(), e); } } private static Thread.UncaughtExceptionHandler newUncaughtExceptionHandler(Logger logger) { return (Thread t, Throwable e) -> logger.error(ErrorMessage.UNCAUGHT_EXCEPTION.getMessage(t.getName()), e); } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/graknengine
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/graknengine/pid/GraknPidException.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup.graknengine.pid; /** * * A class which manages grakn engine's PID * * @author Ganeshwara Herawan Hananda * */ public class GraknPidException extends RuntimeException { public GraknPidException(String message) { super(message); } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/graknengine
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/graknengine/pid/GraknPidFileStore.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup.graknengine.pid; import ai.grakn.util.ErrorMessage; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; /** * * A class which manages grakn engine's PID * * @author Ganeshwara Herawan Hananda * */ public class GraknPidFileStore implements GraknPidStore { private final Path pidFilePath; public GraknPidFileStore(Path pidFilePath) { this.pidFilePath = pidFilePath; } @Override public void trackGraknPid(long graknPid) { attemptToWritePidFile(graknPid, this.pidFilePath); deletePidFileOnExit(); } private void deletePidFileOnExit() { this.pidFilePath.toFile().deleteOnExit(); } private void attemptToWritePidFile(long pid, Path pidFilePath) { if (!pidFilePath.toFile().exists()) { String pidString = Long.toString(pid); try { Files.write(pidFilePath, pidString.getBytes(StandardCharsets.UTF_8)); } catch (IOException e) { throw new RuntimeException(e); } } else { throw new GraknPidException(ErrorMessage.PID_ALREADY_EXISTS.getMessage(pidFilePath.toString())); } } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/graknengine
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/graknengine/pid/GraknPidManager.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup.graknengine.pid; /** * * A class responsible for managing the grakn.pid file of Grakn * * @author Ganeshwara Herawan Hananda * */ public class GraknPidManager { GraknPidStore graknPidStore; GraknPidRetriever graknPidRetriever; public GraknPidManager(GraknPidStore graknPidStore, GraknPidRetriever graknPidRetriever) { this.graknPidStore = graknPidStore; this.graknPidRetriever = graknPidRetriever; } public void trackGraknPid() { long pid = graknPidRetriever.getPid(); graknPidStore.trackGraknPid(pid); } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/graknengine
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/graknengine/pid/GraknPidManagerFactory.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup.graknengine.pid; import java.nio.file.Path; /** * * A class responsible for instantiating GraknPidManager * * @author Ganeshwara Herawan Hananda * */ public class GraknPidManagerFactory { private GraknPidManagerFactory(){} /* * instantiates a GraknPidManager which supports *nix systems such as Linux and OS X */ public static GraknPidManager newGraknPidManagerForUnixOS(Path pidfilePath) { GraknPidStore graknPidStore = new GraknPidFileStore(pidfilePath); GraknPidRetriever graknPidRetriever = new UnixGraknPidRetriever(); return new GraknPidManager(graknPidStore, graknPidRetriever); } }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/graknengine
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/graknengine/pid/GraknPidRetriever.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup.graknengine.pid; /** * * An interface to be implemented by class who is responsible for retrieving the process id of Grakn * * @author Ganeshwara Herawan Hananda * */ public interface GraknPidRetriever { long getPid(); }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/graknengine
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/graknengine/pid/GraknPidStore.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup.graknengine.pid; /** * * A interface to be implemented by class who is responsible for tracking and storing the process id of Grakn * * @author Ganeshwara Herawan Hananda * */ public interface GraknPidStore { void trackGraknPid(long graknPid); }
0
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/graknengine
java-sources/ai/grakn/grakn-bootup/1.2.0/ai/grakn/bootup/graknengine/pid/UnixGraknPidRetriever.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.bootup.graknengine.pid; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; /** * * A class capable of retrieving the process id of Grakn via `ps` command line tool * * @author Ganeshwara Herawan Hananda * */ public class UnixGraknPidRetriever implements GraknPidRetriever { public static final String psEfCommand = "ps -ef | ps -ef | grep \"ai.grakn.bootup.graknengine.Grakn\" | grep -v grep | awk '{print $2}'"; public long getPid() { StringBuilder outputS = new StringBuilder(); int exitValue = 1; Process p; try { p = Runtime.getRuntime().exec(new String[] { "/bin/sh", "-c", psEfCommand }, null, null); p.waitFor(); exitValue = p.exitValue(); if (exitValue == 0) { try (BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream(), StandardCharsets.UTF_8))){ String line; while ((line = reader.readLine()) != null) { outputS.append(line).append("\n"); } } } else { throw new RuntimeException("a non-zero exit code '" + exitValue + "'returned by the command '" + psEfCommand + "'"); } } catch (InterruptedException | IOException e) { // DO NOTHING } String pidString = outputS.toString().trim(); try { return Long.parseLong(pidString); } catch (NumberFormatException e) { throw new RuntimeException("Couldn't get PID of Grakn. Received '" + pidString); } } }
0
java-sources/ai/grakn/grakn-client/1.2.0/ai/grakn
java-sources/ai/grakn/grakn-client/1.2.0/ai/grakn/client/BatchExecutorClient.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.client; import ai.grakn.API; import ai.grakn.Keyspace; import ai.grakn.graql.Query; import ai.grakn.util.SimpleURI; import com.codahale.metrics.Meter; import com.codahale.metrics.MetricRegistry; import com.codahale.metrics.Timer; import com.codahale.metrics.Timer.Context; import com.github.rholder.retry.Attempt; import com.github.rholder.retry.RetryException; import com.github.rholder.retry.RetryListener; import com.github.rholder.retry.Retryer; import com.github.rholder.retry.RetryerBuilder; import com.github.rholder.retry.StopStrategies; import com.github.rholder.retry.WaitStrategies; import com.netflix.hystrix.HystrixCollapser; import com.netflix.hystrix.HystrixCollapserKey; import com.netflix.hystrix.HystrixCollapserProperties; import com.netflix.hystrix.HystrixCommand; import com.netflix.hystrix.HystrixCommandGroupKey; import com.netflix.hystrix.HystrixCommandProperties; import com.netflix.hystrix.HystrixThreadPoolProperties; import com.netflix.hystrix.strategy.concurrency.HystrixRequestContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import rx.Observable; import rx.Scheduler; import rx.schedulers.Schedulers; import javax.annotation.Nullable; import java.io.Closeable; import java.net.ConnectException; import java.util.Collection; import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Semaphore; import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.stream.Collectors; import static com.codahale.metrics.MetricRegistry.name; /** * Client to batch load qraql queries into Grakn that mutate the graph. * * Provides methods to batch load queries. Optionally can provide a consumer that will execute when * a batch finishes loading. BatchExecutorClient will block when the configured resources are being * used to execute tasks. * * @author Domenico Corapi */ public class BatchExecutorClient implements Closeable { private static final Logger LOG = LoggerFactory.getLogger(BatchExecutorClient.class); private final GraknClient graknClient; private final HystrixRequestContext context; // We only allow a certain number of queries to be waiting to execute at once for performance reasons private final Semaphore queryExecutionSemaphore; // Config private final int maxDelay; private final int maxRetries; private final int maxQueries; private final int threadPoolCoreSize; private final int timeoutMs; // Metrics private final MetricRegistry metricRegistry; private final Meter failureMeter; private final Timer addTimer; private final Scheduler scheduler; private final ExecutorService executor; private boolean requestLogEnabled; @Nullable private Consumer<? super QueryResponse> queryResponseHandler = null; @Nullable private Consumer<? super Exception> exceptionHandler = null; private final UUID id = UUID.randomUUID(); private BatchExecutorClient(Builder builder) { context = HystrixRequestContext.initializeContext(); graknClient = builder.graknClient; maxDelay = builder.maxDelay; maxRetries = builder.maxRetries; maxQueries = builder.maxQueries; metricRegistry = builder.metricRegistry; timeoutMs = builder.timeoutMs; threadPoolCoreSize = builder.threadPoolCoreSize; requestLogEnabled = builder.requestLogEnabled; // Note that the pool on which the observables run is different from the Hystrix pool // They need to be of comparable sizes and they should match the capabilities // of the server executor = Executors.newFixedThreadPool(threadPoolCoreSize); scheduler = Schedulers.from(executor); queryExecutionSemaphore = new Semaphore(maxQueries); addTimer = metricRegistry.timer(name(BatchExecutorClient.class, "add")); failureMeter = metricRegistry.meter(name(BatchExecutorClient.class, "failure")); } /** * Will block until there is space for the query to be submitted */ public void add(Query<?> query, Keyspace keyspace) { QueryRequest queryRequest = new QueryRequest(query); queryRequest.acquirePermit(); Context contextAddTimer = addTimer.time(); Observable<QueryResponse> observable = new QueriesObservableCollapser(queryRequest, keyspace) .observe() .doOnError(error -> failureMeter.mark()) .subscribeOn(scheduler) .doOnTerminate(contextAddTimer::close); // We have to subscribe to make the query start loading observable.subscribe(); } public void onNext(Consumer<? super QueryResponse> queryResponseHandler) { this.queryResponseHandler = queryResponseHandler; } public void onError(Consumer<? super Exception> exceptionHandler) { this.exceptionHandler = exceptionHandler; } /** * Will block until all submitted queries have executed */ @Override public void close() { LOG.debug("Closing BatchExecutorClient"); // Acquire ALL permits. Only possible when all the permits are released. // This means this method will only return when ALL the queries are completed. LOG.trace("Acquiring all {} permits ({} available)", maxQueries, queryExecutionSemaphore.availablePermits()); queryExecutionSemaphore.acquireUninterruptibly(maxQueries); LOG.trace("Acquired all {} permits ({} available)", maxQueries, queryExecutionSemaphore.availablePermits()); context.close(); executor.shutdownNow(); } public static Builder newBuilder() { return new Builder(); } @API public static Builder newBuilderforURI(SimpleURI simpleURI) { return new Builder().taskClient(GraknClient.of(simpleURI)); } /** * Builder * * @author Domenico Corapi */ public static final class Builder { private GraknClient graknClient; private int maxDelay = 50; private int maxRetries = 5; private int threadPoolCoreSize = 8; private int timeoutMs = 60_000; private int maxQueries = 10_000; private boolean requestLogEnabled = false; private MetricRegistry metricRegistry = new MetricRegistry(); private Builder() { } public Builder taskClient(GraknClient val) { graknClient = val; return this; } public Builder maxDelay(int val) { maxDelay = val; return this; } public Builder maxRetries(int val) { maxRetries = val; return this; } public Builder threadPoolCoreSize(int val) { threadPoolCoreSize = val; return this; } public Builder metricRegistry(MetricRegistry val) { metricRegistry = val; return this; } public Builder maxQueries(int val) { maxQueries = val; return this; } public Builder requestLogEnabled(boolean val) { requestLogEnabled = val; return this; } public BatchExecutorClient build() { return new BatchExecutorClient(this); } } /** * Used to make queries with the same text different. * We need this because we don't want to cache inserts. * * This is a non-static class so it can access all fields of {@link BatchExecutorClient}, such as the * {@link BatchExecutorClient#queryExecutionSemaphore}. This avoids bugs where Hystrix caches certain parameters * or properties like the semaphore: the request is linked directly to the {@link BatchExecutorClient} that * created it. */ private class QueryRequest { private Query<?> query; private UUID id; QueryRequest(Query<?> query) { this.query = query; this.id = UUID.randomUUID(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } QueryRequest that = (QueryRequest) o; return (query != null ? query.equals(that.query) : that.query == null) && (id != null ? id.equals(that.id) : that.id == null); } @Override public int hashCode() { int result = query != null ? query.hashCode() : 0; result = 31 * result + (id != null ? id.hashCode() : 0); return result; } @Override public String toString() { return "QueryRequest{" + "query=" + query + ", id=" + id + '}'; } public Query<?> getQuery() { return query; } void acquirePermit() { assert queryExecutionSemaphore.availablePermits() <= maxQueries : "Number of available permits should never exceed max queries"; // Acquire permission to execute a query - will block until a permit is available LOG.trace("Acquiring a permit for {} ({} available)", id, queryExecutionSemaphore.availablePermits()); queryExecutionSemaphore.acquireUninterruptibly(); LOG.trace("Acquired a permit for {} ({} available)", id, queryExecutionSemaphore.availablePermits()); } void releasePermit() { // Release a query execution permit, allowing a new query to execute queryExecutionSemaphore.release(); int availablePermits = queryExecutionSemaphore.availablePermits(); LOG.trace("Released a permit for {} ({} available)", id, availablePermits); } } // Internal commands /* * The Batch Executor client uses Hystrix to batch requests. As a positive side effect * we get the Hystrix circuit breaker too. * Hystrix wraps every thing that it does inside a Command. A Command defines what happens * when it's run, and optionally a fallback. Here in CommandQueries, we just define the run. * The batching is implemented using a Collapser, in our case * it's the QueriesObservableCollapser. * See the classes Javadocs for more info. */ /** * This is the hystrix command for the batch. If collapsing weren't performed * we would call this command directly passing a set of queries. * Within the collapsing logic, this command is called after a certain timeout * expires to batch requests together. * * @author Domenico Corapi */ private class CommandQueries extends HystrixCommand<List<QueryResponse>> { static final int QUEUE_MULTIPLIER = 1024; private final List<QueryRequest> queries; private final Keyspace keyspace; private final Timer graqlExecuteTimer; private final Meter attemptMeter; private final Retryer<List> retryer; CommandQueries(List<QueryRequest> queries, Keyspace keyspace) { super(Setter .withGroupKey(HystrixCommandGroupKey.Factory.asKey("BatchExecutor")) .andThreadPoolPropertiesDefaults( HystrixThreadPoolProperties.Setter() .withCoreSize(threadPoolCoreSize) // Sizing these two based on the thread pool core size .withQueueSizeRejectionThreshold( threadPoolCoreSize * QUEUE_MULTIPLIER) .withMaxQueueSize(threadPoolCoreSize * QUEUE_MULTIPLIER)) .andCommandPropertiesDefaults( HystrixCommandProperties.Setter() .withExecutionTimeoutEnabled(false) .withExecutionTimeoutInMilliseconds(timeoutMs) .withRequestLogEnabled(requestLogEnabled))); this.queries = queries; this.keyspace = keyspace; this.graqlExecuteTimer = metricRegistry.timer(name(this.getClass(), "execute")); this.attemptMeter = metricRegistry.meter(name(this.getClass(), "attempt")); this.retryer = RetryerBuilder.<List>newBuilder() .retryIfException(throwable -> throwable instanceof GraknClientException && ((GraknClientException) throwable).isRetriable()) .retryIfExceptionOfType(ConnectException.class) .withWaitStrategy(WaitStrategies.exponentialWait(10, 1, TimeUnit.MINUTES)) .withStopStrategy(StopStrategies.stopAfterAttempt(maxRetries + 1)) .withRetryListener(new RetryListener() { @Override public <V> void onRetry(Attempt<V> attempt) { attemptMeter.mark(); } }) .build(); } @Override protected List run() throws GraknClientException { List<Query<?>> queryList = queries.stream().map(QueryRequest::getQuery) .collect(Collectors.toList()); try { List<QueryResponse> responses = retryer.call(() -> { try (Context c = graqlExecuteTimer.time()) { return graknClient.graqlExecute(queryList, keyspace); } }); if (queryResponseHandler != null) { responses.forEach(queryResponseHandler); } return responses; } catch (RetryException | ExecutionException e) { Throwable cause = e.getCause(); if (cause instanceof GraknClientException) { if (exceptionHandler != null) { exceptionHandler.accept((GraknClientException) cause); } throw (GraknClientException) cause; } else { RuntimeException exception = new RuntimeException("Unexpected exception while retrying, " + queryList.size() + " queries failed.", e); if (exceptionHandler != null) { exceptionHandler.accept(exception); } throw exception; } } finally { queries.forEach(QueryRequest::releasePermit); } } } /** * This is the hystrix collapser. It's instantiated with a single query but * internally it waits until a timeout expires to batch the requests together. * * @author Domenico Corapi */ private class QueriesObservableCollapser extends HystrixCollapser<List<QueryResponse>, QueryResponse, QueryRequest> { private final QueryRequest query; private Keyspace keyspace; QueriesObservableCollapser(QueryRequest query, Keyspace keyspace) { super(Setter .withCollapserKey(hystrixCollapserKey(keyspace)) .andCollapserPropertiesDefaults( HystrixCollapserProperties.Setter() .withRequestCacheEnabled(false) .withTimerDelayInMilliseconds(maxDelay) ) ); this.query = query; this.keyspace = keyspace; } @Override public QueryRequest getRequestArgument() { return query; } /** * Logic to collapse requests into into CommandQueries * * @param collapsedRequests Set of requests being collapsed * @return returns a command that executed all the requests */ @Override protected HystrixCommand<List<QueryResponse>> createCommand( Collection<CollapsedRequest<QueryResponse, QueryRequest>> collapsedRequests) { List<QueryRequest> requests = collapsedRequests.stream().map(CollapsedRequest::getArgument).collect(Collectors.toList()); return new CommandQueries(requests, keyspace); } @Override protected void mapResponseToRequests(List<QueryResponse> batchResponse, Collection<CollapsedRequest<QueryResponse, QueryRequest>> collapsedRequests) { int count = 0; for (CollapsedRequest<QueryResponse, QueryRequest> request : collapsedRequests) { QueryResponse response = batchResponse.get(count++); request.setResponse(response); request.setComplete(); } metricRegistry.histogram(name(QueriesObservableCollapser.class, "batch", "size")).update(collapsedRequests.size()); } } private HystrixCollapserKey hystrixCollapserKey(Keyspace keyspace) { return HystrixCollapserKey.Factory.asKey(String.format("QueriesObservableCollapser_%s_%s", id, keyspace)); } }
0
java-sources/ai/grakn/grakn-client/1.2.0/ai/grakn
java-sources/ai/grakn/grakn-client/1.2.0/ai/grakn/client/Client.java
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016-2018 Grakn Labs Limited * * Grakn is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Grakn is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>. */ package ai.grakn.client; import ai.grakn.util.CommonUtil; import ai.grakn.util.REST; import ai.grakn.util.SimpleURI; import javax.ws.rs.core.UriBuilder; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.ProtocolException; import java.net.URL; /** * Providing useful methods for the user of the GraknEngine client * * @author alexandraorth */ public final class Client { /** * Check if Grakn Engine has been started * * @return true if Grakn Engine running, false otherwise */ public static boolean serverIsRunning(SimpleURI uri) { URL url; try { url = UriBuilder.fromUri(uri.toURI()).path(REST.WebPath.KB).build().toURL(); } catch (MalformedURLException e) { throw CommonUtil.unreachableStatement( "This will never throw because we're appending a known path to a valid URI", e ); } HttpURLConnection connection; try { connection = (HttpURLConnection) mapQuadZeroRouteToLocalhost(url).openConnection(); } catch (IOException e) { // If this fails, then the server is not reachable return false; } try { connection.setRequestMethod("GET"); } catch (ProtocolException e) { throw CommonUtil.unreachableStatement( "This will never throw because 'GET' is correct and the connection is not open yet", e ); } int available; try { connection.connect(); InputStream inputStream = connection.getInputStream(); available = inputStream.available(); } catch (IOException e) { // If this fails, then the server is not reachable return false; } return available != 0; } private static URL mapQuadZeroRouteToLocalhost(URL originalUrl) { final String QUAD_ZERO_ROUTE = "http://0.0.0.0"; URL mappedUrl; if ((originalUrl.getProtocol() + originalUrl.getHost()).equals(QUAD_ZERO_ROUTE)) { try { mappedUrl = new URL(originalUrl.getProtocol(), "localhost", originalUrl.getPort(), REST.WebPath.KB); } catch (MalformedURLException e) { throw CommonUtil.unreachableStatement( "This will never throw because the protocol is valid (because it came from another URL)", e ); } } else { mappedUrl = originalUrl; } return mappedUrl; } }