diff --git a/.nant/local.include b/.nant/local.include
new file mode 100644
index 0000000000..97c0c0fb56
--- /dev/null
+++ b/.nant/local.include
@@ -0,0 +1,351 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BUILDING.txt b/BUILDING.txt
index 972fe4696c..90a36fbded 100644
--- a/BUILDING.txt
+++ b/BUILDING.txt
@@ -1,4 +1,4 @@
-=== Building OpenSim ===
+==== Building OpenSim ====
=== Building on Windows ===
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index 24432446c8..38343a4bbc 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -167,6 +167,7 @@ This software uses components from the following developers:
* GlynnTucker.Cache (http://gtcache.sourceforge.net/)
* NDesk.Options 0.2.1 (http://www.ndesk.org/Options)
* Json.NET 3.5 Release 6. The binary used is actually Newtonsoft.Json.Net20.dll for Mono 2.4 compatability (http://james.newtonking.com/projects/json-net.aspx)
+* zlib.net for C# 1.0.4 (http://www.componentace.com/zlib_.NET.htm)
Some plugins are based on Cable Beach
Cable Beach is Copyright (c) 2008 Intel Corporation
diff --git a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs
index 1e85a22c69..b16f46cd6b 100644
--- a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs
+++ b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs
@@ -122,7 +122,9 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
m_log.Debug("[LOADREGIONS]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " +
Thread.CurrentThread.ManagedThreadId.ToString() +
")");
+ m_openSim.PopulateRegionEstateInfo(regionsToLoad[i]);
m_openSim.CreateRegion(regionsToLoad[i], true, out scene);
+ regionsToLoad[i].EstateSettings.Save();
if (scene != null)
{
m_newRegionCreatedHandler = OnNewRegionCreated;
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
index e57aaa08f7..c09252a971 100644
--- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
+++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
@@ -58,12 +58,12 @@ namespace OpenSim.ApplicationPlugins.RemoteController
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
- private static bool daload = false;
- private static Object rslock = new Object();
- private static Object SOLock = new Object();
+ private static bool m_defaultAvatarsLoaded = false;
+ private static Object m_requestLock = new Object();
+ private static Object m_saveOarLock = new Object();
- private OpenSimBase m_app;
- private IHttpServer m_httpd;
+ private OpenSimBase m_application;
+ private IHttpServer m_httpServer;
private IConfig m_config;
private IConfigSource m_configSource;
private string m_requiredPassword = String.Empty;
@@ -115,8 +115,10 @@ namespace OpenSim.ApplicationPlugins.RemoteController
m_requiredPassword = m_config.GetString("access_password", String.Empty);
int port = m_config.GetInt("port", 0);
- m_app = openSim;
- m_httpd = MainServer.GetHttpServer((uint)port);
+ m_application = openSim;
+ string bind_ip_address = m_config.GetString("bind_ip_address", "0.0.0.0");
+ IPAddress ipaddr = IPAddress.Parse(bind_ip_address);
+ m_httpServer = MainServer.GetHttpServer((uint)port,ipaddr);
Dictionary availableMethods = new Dictionary();
availableMethods["admin_create_region"] = XmlRpcCreateRegionMethod;
@@ -160,14 +162,14 @@ namespace OpenSim.ApplicationPlugins.RemoteController
{
foreach (string method in availableMethods.Keys)
{
- m_httpd.AddXmlRPCHandler(method, availableMethods[method], false);
+ m_httpServer.AddXmlRPCHandler(method, availableMethods[method], false);
}
}
else
{
foreach (string enabledMethod in enabledMethods.Split('|'))
{
- m_httpd.AddXmlRPCHandler(enabledMethod, availableMethods[enabledMethod]);
+ m_httpServer.AddXmlRPCHandler(enabledMethod, availableMethods[enabledMethod]);
}
}
}
@@ -180,7 +182,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
public void PostInitialise()
{
- if (!createDefaultAvatars())
+ if (!CreateDefaultAvatars())
{
m_log.Info("[RADMIN]: Default avatars not loaded");
}
@@ -196,7 +198,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
Hashtable requestData = (Hashtable) request.Params[0];
m_log.Info("[RADMIN]: Request to restart Region.");
- checkStringParameters(request, new string[] {"password", "regionID"});
+ CheckStringParameters(request, new string[] {"password", "regionID"});
if (m_requiredPassword != String.Empty &&
(!requestData.Contains("password") || (string) requestData["password"] != m_requiredPassword))
@@ -212,7 +214,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
Scene rebootedScene;
- if (!m_app.SceneManager.TryGetScene(regionID, out rebootedScene))
+ if (!m_application.SceneManager.TryGetScene(regionID, out rebootedScene))
throw new Exception("region not found");
responseData["rebooting"] = true;
@@ -245,7 +247,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
{
Hashtable requestData = (Hashtable) request.Params[0];
- checkStringParameters(request, new string[] {"password", "message"});
+ CheckStringParameters(request, new string[] {"password", "message"});
if (m_requiredPassword != String.Empty &&
(!requestData.Contains("password") || (string) requestData["password"] != m_requiredPassword))
@@ -258,7 +260,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
responseData["success"] = true;
response.Value = responseData;
- m_app.SceneManager.ForEachScene(
+ m_application.SceneManager.ForEachScene(
delegate(Scene scene)
{
IDialogModule dialogModule = scene.RequestModuleInterface();
@@ -299,7 +301,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
// k, (string)requestData[k], ((string)requestData[k]).Length);
// }
- checkStringParameters(request, new string[] {"password", "filename", "regionid"});
+ CheckStringParameters(request, new string[] {"password", "filename", "regionid"});
if (m_requiredPassword != String.Empty &&
(!requestData.Contains("password") || (string) requestData["password"] != m_requiredPassword))
@@ -313,7 +315,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
Scene region = null;
- if (!m_app.SceneManager.TryGetScene(regionID, out region))
+ if (!m_application.SceneManager.TryGetScene(regionID, out region))
throw new Exception("1: unable to get a scene with that name");
ITerrainModule terrainModule = region.RequestModuleInterface();
@@ -387,7 +389,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
message = "Region is going down now.";
}
- m_app.SceneManager.ForEachScene(
+ m_application.SceneManager.ForEachScene(
delegate(Scene scene)
{
IDialogModule dialogModule = scene.RequestModuleInterface();
@@ -422,7 +424,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
private void shutdownTimer_Elapsed(object sender, ElapsedEventArgs e)
{
- m_app.Shutdown();
+ m_application.Shutdown();
}
///
@@ -444,12 +446,14 @@ namespace OpenSim.ApplicationPlugins.RemoteController
/// desired region X coordinate (integer)
/// - region_y
/// desired region Y coordinate (integer)
- /// - region_master_first
- /// firstname of region master
- /// - region_master_last
- /// lastname of region master
- /// - region_master_uuid
- /// explicit UUID to use for master avatar (optional)
+ /// - estate_owner_first
+ /// firstname of estate owner (formerly region master)
+ /// (required if new estate is being created, optional otherwise)
+ /// - estate_owner_last
+ /// lastname of estate owner (formerly region master)
+ /// (required if new estate is being created, optional otherwise)
+ /// - estate_owner_uuid
+ /// explicit UUID to use for estate owner (optional)
/// - listen_ip
/// internal IP address (dotted quad)
/// - listen_port
@@ -465,6 +469,12 @@ namespace OpenSim.ApplicationPlugins.RemoteController
///
- enable_voice
/// if true, enable voice on all parcels,
/// ('true' or 'false') (optional, default: false)
+ /// - estate_name
+ /// the name of the estate to join (or to create if it doesn't
+ /// already exist)
+ /// - region_file
+ /// The name of the file to persist the region specifications to.
+ /// If omitted, the region_file_template setting from OpenSim.ini will be used. (optional)
///
///
/// XmlRpcCreateRegionMethod returns
@@ -489,7 +499,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
XmlRpcResponse response = new XmlRpcResponse();
Hashtable responseData = new Hashtable();
- lock (rslock)
+ lock (m_requestLock)
{
int m_regionLimit = m_config.GetInt("region_limit", 0);
bool m_enableVoiceForNewRegions = m_config.GetBoolean("create_region_enable_voice", false);
@@ -499,22 +509,21 @@ namespace OpenSim.ApplicationPlugins.RemoteController
{
Hashtable requestData = (Hashtable) request.Params[0];
- checkStringParameters(request, new string[]
+ CheckStringParameters(request, new string[]
{
"password",
"region_name",
- "region_master_first", "region_master_last",
- "region_master_password",
- "listen_ip", "external_address"
+ "listen_ip", "external_address",
+ "estate_name"
});
- checkIntegerParams(request, new string[] {"region_x", "region_y", "listen_port"});
+ CheckIntegerParams(request, new string[] {"region_x", "region_y", "listen_port"});
// check password
if (!String.IsNullOrEmpty(m_requiredPassword) &&
(string) requestData["password"] != m_requiredPassword) throw new Exception("wrong password");
// check whether we still have space left (iff we are using limits)
- if (m_regionLimit != 0 && m_app.SceneManager.Scenes.Count >= m_regionLimit)
+ if (m_regionLimit != 0 && m_application.SceneManager.Scenes.Count >= m_regionLimit)
throw new Exception(String.Format("cannot instantiate new region, server capacity {0} already reached; delete regions first",
m_regionLimit));
// extract or generate region ID now
@@ -524,7 +533,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
!String.IsNullOrEmpty((string) requestData["region_id"]))
{
regionID = (UUID) (string) requestData["region_id"];
- if (m_app.SceneManager.TryGetScene(regionID, out scene))
+ if (m_application.SceneManager.TryGetScene(regionID, out scene))
throw new Exception(
String.Format("region UUID already in use by region {0}, UUID {1}, <{2},{3}>",
scene.RegionInfo.RegionName, scene.RegionInfo.RegionID,
@@ -547,13 +556,13 @@ namespace OpenSim.ApplicationPlugins.RemoteController
// check for collisions: region name, region UUID,
// region location
- if (m_app.SceneManager.TryGetScene(region.RegionName, out scene))
+ if (m_application.SceneManager.TryGetScene(region.RegionName, out scene))
throw new Exception(
String.Format("region name already in use by region {0}, UUID {1}, <{2},{3}>",
scene.RegionInfo.RegionName, scene.RegionInfo.RegionID,
scene.RegionInfo.RegionLocX, scene.RegionInfo.RegionLocY));
- if (m_app.SceneManager.TryGetScene(region.RegionLocX, region.RegionLocY, out scene))
+ if (m_application.SceneManager.TryGetScene(region.RegionLocX, region.RegionLocY, out scene))
throw new Exception(
String.Format("region location <{0},{1}> already in use by region {2}, UUID {3}, <{4},{5}>",
region.RegionLocX, region.RegionLocY,
@@ -565,7 +574,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
region.InternalEndPoint.Port = Convert.ToInt32(requestData["listen_port"]);
if (0 == region.InternalEndPoint.Port) throw new Exception("listen_port is 0");
- if (m_app.SceneManager.TryGetScene(region.InternalEndPoint, out scene))
+ if (m_application.SceneManager.TryGetScene(region.InternalEndPoint, out scene))
throw new Exception(
String.Format(
"region internal IP {0} and port {1} already in use by region {2}, UUID {3}, <{4},{5}>",
@@ -576,22 +585,10 @@ namespace OpenSim.ApplicationPlugins.RemoteController
region.ExternalHostName = (string) requestData["external_address"];
- string masterFirst = (string) requestData["region_master_first"];
- string masterLast = (string) requestData["region_master_last"];
- string masterPassword = (string) requestData["region_master_password"];
-
- UUID userID = UUID.Zero;
- if (requestData.ContainsKey("region_master_uuid"))
- {
- // ok, client wants us to use an explicit UUID
- // regardless of what the avatar name provided
- userID = new UUID((string) requestData["estate_owner_uuid"]);
- }
-
bool persist = Convert.ToBoolean((string) requestData["persist"]);
if (persist)
{
- // default place for region XML files is in the
+ // default place for region configuration files is in the
// Regions directory of the config dir (aka /bin)
string regionConfigPath = Path.Combine(Util.configDir(), "Regions");
try
@@ -604,49 +601,112 @@ namespace OpenSim.ApplicationPlugins.RemoteController
{
// No INI setting recorded.
}
- string regionXmlPath = Path.Combine(regionConfigPath,
+
+ string regionIniPath;
+
+ if (requestData.Contains("region_file"))
+ {
+ // Make sure that the file to be created is in a subdirectory of the region storage directory.
+ string requestedFilePath = Path.Combine(regionConfigPath, (string) requestData["region_file"]);
+ string requestedDirectory = Path.GetDirectoryName(Path.GetFullPath(requestedFilePath));
+ if (requestedDirectory.StartsWith(Path.GetFullPath(regionConfigPath)))
+ regionIniPath = requestedFilePath;
+ else
+ throw new Exception("Invalid location for region file.");
+ }
+ else
+ {
+ regionIniPath = Path.Combine(regionConfigPath,
String.Format(
m_config.GetString("region_file_template",
- "{0}x{1}-{2}.xml"),
+ "{0}x{1}-{2}.ini"),
region.RegionLocX.ToString(),
region.RegionLocY.ToString(),
regionID.ToString(),
region.InternalEndPoint.Port.ToString(),
region.RegionName.Replace(" ", "_").Replace(":", "_").
Replace("/", "_")));
+ }
+
m_log.DebugFormat("[RADMIN] CreateRegion: persisting region {0} to {1}",
- region.RegionID, regionXmlPath);
- region.SaveRegionToFile("dynamic region", regionXmlPath);
+ region.RegionID, regionIniPath);
+ region.SaveRegionToFile("dynamic region", regionIniPath);
}
else
{
region.Persistent = false;
}
+
+ // Set the estate
+
+ // Check for an existing estate
+ List estateIDs = m_application.EstateDataService.GetEstates((string) requestData["estate_name"]);
+ if (estateIDs.Count < 1)
+ {
+ UUID userID = UUID.Zero;
+ if (requestData.ContainsKey("estate_owner_uuid"))
+ {
+ // ok, client wants us to use an explicit UUID
+ // regardless of what the avatar name provided
+ userID = new UUID((string) requestData["estate_owner_uuid"]);
+ }
+ else if (requestData.ContainsKey("estate_owner_first") & requestData.ContainsKey("estate_owner_last"))
+ {
+ // We need to look up the UUID for the avatar with the provided name.
+ string ownerFirst = (string) requestData["estate_owner_first"];
+ string ownerLast = (string) requestData["estate_owner_last"];
+
+ Scene currentOrFirst = m_application.SceneManager.CurrentOrFirstScene;
+ IUserAccountService accountService = currentOrFirst.UserAccountService;
+ UserAccount user = accountService.GetUserAccount(currentOrFirst.RegionInfo.ScopeID,
+ ownerFirst, ownerLast);
+ userID = user.PrincipalID;
+ }
+ else
+ {
+ throw new Exception("Estate owner details not provided.");
+ }
+
+ // Create a new estate with the name provided
+ region.EstateSettings = m_application.EstateDataService.LoadEstateSettings(region.RegionID, true);
+ region.EstateSettings.EstateName = (string) requestData["estate_name"];
+ region.EstateSettings.EstateOwner = userID;
+ // Persistence does not seem to effect the need to save a new estate
+ region.EstateSettings.Save();
+ }
+ else
+ {
+ int estateID = estateIDs[0];
+
+ region.EstateSettings = m_application.EstateDataService.LoadEstateSettings(estateID);
+
+ if (!m_application.EstateDataService.LinkRegion(region.RegionID, estateID))
+ throw new Exception("Failed to join estate.");
+ }
+
// Create the region and perform any initial initialization
- IScene newscene;
- m_app.CreateRegion(region, out newscene);
+ IScene newScene;
+ m_application.CreateRegion(region, out newScene);
// If an access specification was provided, use it.
// Otherwise accept the default.
- newscene.RegionInfo.EstateSettings.PublicAccess = getBoolean(requestData, "public", m_publicAccess);
- newscene.RegionInfo.EstateSettings.EstateOwner = userID;
- if (persist)
- newscene.RegionInfo.EstateSettings.Save();
+ newScene.RegionInfo.EstateSettings.PublicAccess = GetBoolean(requestData, "public", m_publicAccess);
+ newScene.RegionInfo.EstateSettings.Save();
// enable voice on newly created region if
// requested by either the XmlRpc request or the
// configuration
- if (getBoolean(requestData, "enable_voice", m_enableVoiceForNewRegions))
+ if (GetBoolean(requestData, "enable_voice", m_enableVoiceForNewRegions))
{
- List parcels = ((Scene)newscene).LandChannel.AllParcels();
+ List parcels = ((Scene)newScene).LandChannel.AllParcels();
foreach (ILandObject parcel in parcels)
{
parcel.LandData.Flags |= (uint) ParcelFlags.AllowVoiceChat;
parcel.LandData.Flags |= (uint) ParcelFlags.UseEstateVoiceChan;
- ((Scene)newscene).LandChannel.UpdateLandObject(parcel.LandData.LocalID, parcel.LandData);
+ ((Scene)newScene).LandChannel.UpdateLandObject(parcel.LandData.LocalID, parcel.LandData);
}
}
@@ -704,19 +764,19 @@ namespace OpenSim.ApplicationPlugins.RemoteController
XmlRpcResponse response = new XmlRpcResponse();
Hashtable responseData = new Hashtable();
- lock (rslock)
+ lock (m_requestLock)
{
try
{
Hashtable requestData = (Hashtable) request.Params[0];
- checkStringParameters(request, new string[] {"password", "region_name"});
+ CheckStringParameters(request, new string[] {"password", "region_name"});
Scene scene = null;
string regionName = (string) requestData["region_name"];
- if (!m_app.SceneManager.TryGetScene(regionName, out scene))
+ if (!m_application.SceneManager.TryGetScene(regionName, out scene))
throw new Exception(String.Format("region \"{0}\" does not exist", regionName));
- m_app.RemoveRegion(scene, true);
+ m_application.RemoveRegion(scene, true);
responseData["success"] = true;
responseData["region_name"] = regionName;
@@ -774,22 +834,22 @@ namespace OpenSim.ApplicationPlugins.RemoteController
Hashtable responseData = new Hashtable();
Scene scene = null;
- lock (rslock)
+ lock (m_requestLock)
{
try
{
Hashtable requestData = (Hashtable) request.Params[0];
- checkStringParameters(request, new string[] {"password"});
+ CheckStringParameters(request, new string[] {"password"});
if (requestData.ContainsKey("region_id") &&
!String.IsNullOrEmpty((string) requestData["region_id"]))
{
// Region specified by UUID
UUID regionID = (UUID) (string) requestData["region_id"];
- if (!m_app.SceneManager.TryGetScene(regionID, out scene))
+ if (!m_application.SceneManager.TryGetScene(regionID, out scene))
throw new Exception(String.Format("region \"{0}\" does not exist", regionID));
- m_app.CloseRegion(scene);
+ m_application.CloseRegion(scene);
responseData["success"] = true;
responseData["region_id"] = regionID;
@@ -802,10 +862,10 @@ namespace OpenSim.ApplicationPlugins.RemoteController
// Region specified by name
string regionName = (string) requestData["region_name"];
- if (!m_app.SceneManager.TryGetScene(regionName, out scene))
+ if (!m_application.SceneManager.TryGetScene(regionName, out scene))
throw new Exception(String.Format("region \"{0}\" does not exist", regionName));
- m_app.CloseRegion(scene);
+ m_application.CloseRegion(scene);
responseData["success"] = true;
responseData["region_name"] = regionName;
@@ -869,27 +929,27 @@ namespace OpenSim.ApplicationPlugins.RemoteController
XmlRpcResponse response = new XmlRpcResponse();
Hashtable responseData = new Hashtable();
- lock (rslock)
+ lock (m_requestLock)
{
try
{
Hashtable requestData = (Hashtable) request.Params[0];
- checkStringParameters(request, new string[] {"password", "region_name"});
+ CheckStringParameters(request, new string[] {"password", "region_name"});
Scene scene = null;
string regionName = (string) requestData["region_name"];
- if (!m_app.SceneManager.TryGetScene(regionName, out scene))
+ if (!m_application.SceneManager.TryGetScene(regionName, out scene))
throw new Exception(String.Format("region \"{0}\" does not exist", regionName));
// Modify access
scene.RegionInfo.EstateSettings.PublicAccess =
- getBoolean(requestData,"public", scene.RegionInfo.EstateSettings.PublicAccess);
+ GetBoolean(requestData,"public", scene.RegionInfo.EstateSettings.PublicAccess);
if (scene.RegionInfo.Persistent)
scene.RegionInfo.EstateSettings.Save();
if (requestData.ContainsKey("enable_voice"))
{
- bool enableVoice = getBoolean(requestData, "enable_voice", true);
+ bool enableVoice = GetBoolean(requestData, "enable_voice", true);
List parcels = ((Scene)scene).LandChannel.AllParcels();
foreach (ILandObject parcel in parcels)
@@ -976,66 +1036,66 @@ namespace OpenSim.ApplicationPlugins.RemoteController
XmlRpcResponse response = new XmlRpcResponse();
Hashtable responseData = new Hashtable();
- lock (rslock)
+ lock (m_requestLock)
{
try
{
Hashtable requestData = (Hashtable) request.Params[0];
// check completeness
- checkStringParameters(request, new string[]
+ CheckStringParameters(request, new string[]
{
"password", "user_firstname",
"user_lastname", "user_password",
});
- checkIntegerParams(request, new string[] {"start_region_x", "start_region_y"});
+ CheckIntegerParams(request, new string[] {"start_region_x", "start_region_y"});
// check password
if (!String.IsNullOrEmpty(m_requiredPassword) &&
(string) requestData["password"] != m_requiredPassword) throw new Exception("wrong password");
// do the job
- string firstname = (string) requestData["user_firstname"];
- string lastname = (string) requestData["user_lastname"];
- string passwd = (string) requestData["user_password"];
+ string firstName = (string) requestData["user_firstname"];
+ string lastName = (string) requestData["user_lastname"];
+ string password = (string) requestData["user_password"];
- uint regX = Convert.ToUInt32((Int32) requestData["start_region_x"]);
- uint regY = Convert.ToUInt32((Int32) requestData["start_region_y"]);
+ uint regionXLocation = Convert.ToUInt32((Int32) requestData["start_region_x"]);
+ uint regionYLocation = Convert.ToUInt32((Int32) requestData["start_region_y"]);
string email = ""; // empty string for email
if (requestData.Contains("user_email"))
email = (string)requestData["user_email"];
- Scene scene = m_app.SceneManager.CurrentOrFirstScene;
+ Scene scene = m_application.SceneManager.CurrentOrFirstScene;
UUID scopeID = scene.RegionInfo.ScopeID;
- UserAccount account = CreateUser(scopeID, firstname, lastname, passwd, email);
+ UserAccount account = CreateUser(scopeID, firstName, lastName, password, email);
if (null == account)
throw new Exception(String.Format("failed to create new user {0} {1}",
- firstname, lastname));
+ firstName, lastName));
// Set home position
GridRegion home = scene.GridService.GetRegionByPosition(scopeID,
- (int)(regX * Constants.RegionSize), (int)(regY * Constants.RegionSize));
+ (int)(regionXLocation * Constants.RegionSize), (int)(regionYLocation * Constants.RegionSize));
if (null == home) {
- m_log.WarnFormat("[RADMIN]: Unable to set home region for newly created user account {0} {1}", firstname, lastname);
+ m_log.WarnFormat("[RADMIN]: Unable to set home region for newly created user account {0} {1}", firstName, lastName);
} else {
scene.GridUserService.SetHome(account.PrincipalID.ToString(), home.RegionID, new Vector3(128, 128, 0), new Vector3(0, 1, 0));
- m_log.DebugFormat("[RADMIN]: Set home region {0} for updated user account {1} {2}", home.RegionID, firstname, lastname);
+ m_log.DebugFormat("[RADMIN]: Set home region {0} for updated user account {1} {2}", home.RegionID, firstName, lastName);
}
// Establish the avatar's initial appearance
- updateUserAppearance(responseData, requestData, account.PrincipalID);
+ UpdateUserAppearance(responseData, requestData, account.PrincipalID);
responseData["success"] = true;
responseData["avatar_uuid"] = account.PrincipalID.ToString();
response.Value = responseData;
- m_log.InfoFormat("[RADMIN]: CreateUser: User {0} {1} created, UUID {2}", firstname, lastname, account.PrincipalID);
+ m_log.InfoFormat("[RADMIN]: CreateUser: User {0} {1} created, UUID {2}", firstName, lastName, account.PrincipalID);
}
catch (Exception e)
{
@@ -1099,17 +1159,17 @@ namespace OpenSim.ApplicationPlugins.RemoteController
Hashtable requestData = (Hashtable) request.Params[0];
// check completeness
- checkStringParameters(request, new string[] {"password", "user_firstname", "user_lastname"});
+ CheckStringParameters(request, new string[] {"password", "user_firstname", "user_lastname"});
- string firstname = (string) requestData["user_firstname"];
- string lastname = (string) requestData["user_lastname"];
+ string firstName = (string) requestData["user_firstname"];
+ string lastName = (string) requestData["user_lastname"];
- responseData["user_firstname"] = firstname;
- responseData["user_lastname"] = lastname;
+ responseData["user_firstname"] = firstName;
+ responseData["user_lastname"] = lastName;
- UUID scopeID = m_app.SceneManager.CurrentOrFirstScene.RegionInfo.ScopeID;
+ UUID scopeID = m_application.SceneManager.CurrentOrFirstScene.RegionInfo.ScopeID;
- UserAccount account = m_app.SceneManager.CurrentOrFirstScene.UserAccountService.GetUserAccount(scopeID, firstname, lastname);
+ UserAccount account = m_application.SceneManager.CurrentOrFirstScene.UserAccountService.GetUserAccount(scopeID, firstName, lastName);
if (null == account)
{
@@ -1118,9 +1178,9 @@ namespace OpenSim.ApplicationPlugins.RemoteController
}
else
{
- GridUserInfo guinfo = m_app.SceneManager.CurrentOrFirstScene.GridUserService.GetGridUserInfo(account.PrincipalID.ToString());
- if (guinfo != null)
- responseData["lastlogin"] = guinfo.Login;
+ GridUserInfo userInfo = m_application.SceneManager.CurrentOrFirstScene.GridUserService.GetGridUserInfo(account.PrincipalID.ToString());
+ if (userInfo != null)
+ responseData["lastlogin"] = userInfo.Login;
else
responseData["lastlogin"] = 0;
@@ -1197,14 +1257,14 @@ namespace OpenSim.ApplicationPlugins.RemoteController
XmlRpcResponse response = new XmlRpcResponse();
Hashtable responseData = new Hashtable();
- lock (rslock)
+ lock (m_requestLock)
{
try
{
Hashtable requestData = (Hashtable) request.Params[0];
// check completeness
- checkStringParameters(request, new string[] {
+ CheckStringParameters(request, new string[] {
"password", "user_firstname",
"user_lastname"});
@@ -1213,12 +1273,12 @@ namespace OpenSim.ApplicationPlugins.RemoteController
(string) requestData["password"] != m_requiredPassword) throw new Exception("wrong password");
// do the job
- string firstname = (string) requestData["user_firstname"];
- string lastname = (string) requestData["user_lastname"];
+ string firstName = (string) requestData["user_firstname"];
+ string lastName = (string) requestData["user_lastname"];
- string passwd = String.Empty;
- uint? regX = null;
- uint? regY = null;
+ string password = String.Empty;
+ uint? regionXLocation = null;
+ uint? regionYLocation = null;
// uint? ulaX = null;
// uint? ulaY = null;
// uint? ulaZ = null;
@@ -1228,11 +1288,11 @@ namespace OpenSim.ApplicationPlugins.RemoteController
// string aboutFirstLive = String.Empty;
// string aboutAvatar = String.Empty;
- if (requestData.ContainsKey("user_password")) passwd = (string) requestData["user_password"];
+ if (requestData.ContainsKey("user_password")) password = (string) requestData["user_password"];
if (requestData.ContainsKey("start_region_x"))
- regX = Convert.ToUInt32((Int32) requestData["start_region_x"]);
+ regionXLocation = Convert.ToUInt32((Int32) requestData["start_region_x"]);
if (requestData.ContainsKey("start_region_y"))
- regY = Convert.ToUInt32((Int32) requestData["start_region_y"]);
+ regionYLocation = Convert.ToUInt32((Int32) requestData["start_region_y"]);
// if (requestData.ContainsKey("start_lookat_x"))
// ulaX = Convert.ToUInt32((Int32) requestData["start_lookat_x"]);
@@ -1252,17 +1312,17 @@ namespace OpenSim.ApplicationPlugins.RemoteController
// if (requestData.ContainsKey("about_virtual_world"))
// aboutAvatar = (string)requestData["about_virtual_world"];
- Scene scene = m_app.SceneManager.CurrentOrFirstScene;
+ Scene scene = m_application.SceneManager.CurrentOrFirstScene;
UUID scopeID = scene.RegionInfo.ScopeID;
- UserAccount account = scene.UserAccountService.GetUserAccount(scopeID, firstname, lastname);
+ UserAccount account = scene.UserAccountService.GetUserAccount(scopeID, firstName, lastName);
if (null == account)
- throw new Exception(String.Format("avatar {0} {1} does not exist", firstname, lastname));
+ throw new Exception(String.Format("avatar {0} {1} does not exist", firstName, lastName));
- if (!String.IsNullOrEmpty(passwd))
+ if (!String.IsNullOrEmpty(password))
{
- m_log.DebugFormat("[RADMIN]: UpdateUserAccount: updating password for avatar {0} {1}", firstname, lastname);
- ChangeUserPassword(firstname, lastname, passwd);
+ m_log.DebugFormat("[RADMIN]: UpdateUserAccount: updating password for avatar {0} {1}", firstName, lastName);
+ ChangeUserPassword(firstName, lastName, password);
}
// if (null != usaX) userProfile.HomeLocationX = (uint) usaX;
@@ -1278,21 +1338,21 @@ namespace OpenSim.ApplicationPlugins.RemoteController
// Set home position
- if ((null != regX) && (null != regY))
+ if ((null != regionXLocation) && (null != regionYLocation))
{
GridRegion home = scene.GridService.GetRegionByPosition(scopeID,
- (int)(regX * Constants.RegionSize), (int)(regY * Constants.RegionSize));
+ (int)(regionXLocation * Constants.RegionSize), (int)(regionYLocation * Constants.RegionSize));
if (null == home) {
- m_log.WarnFormat("[RADMIN]: Unable to set home region for updated user account {0} {1}", firstname, lastname);
+ m_log.WarnFormat("[RADMIN]: Unable to set home region for updated user account {0} {1}", firstName, lastName);
} else {
scene.GridUserService.SetHome(account.PrincipalID.ToString(), home.RegionID, new Vector3(128, 128, 0), new Vector3(0, 1, 0));
- m_log.DebugFormat("[RADMIN]: Set home region {0} for updated user account {1} {2}", home.RegionID, firstname, lastname);
+ m_log.DebugFormat("[RADMIN]: Set home region {0} for updated user account {1} {2}", home.RegionID, firstName, lastName);
}
}
// User has been created. Now establish gender and appearance.
- updateUserAppearance(responseData, requestData, account.PrincipalID);
+ UpdateUserAppearance(responseData, requestData, account.PrincipalID);
responseData["success"] = true;
responseData["avatar_uuid"] = account.PrincipalID.ToString();
@@ -1300,7 +1360,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
response.Value = responseData;
m_log.InfoFormat("[RADMIN]: UpdateUserAccount: account for user {0} {1} updated, UUID {2}",
- firstname, lastname,
+ firstName, lastName,
account.PrincipalID);
}
catch (Exception e)
@@ -1328,13 +1388,13 @@ namespace OpenSim.ApplicationPlugins.RemoteController
/// This should probably get moved into somewhere more core eventually.
///
- private void updateUserAppearance(Hashtable responseData, Hashtable requestData, UUID userid)
+ private void UpdateUserAppearance(Hashtable responseData, Hashtable requestData, UUID userid)
{
m_log.DebugFormat("[RADMIN] updateUserAppearance");
- string dmale = m_config.GetString("default_male", "Default Male");
- string dfemale = m_config.GetString("default_female", "Default Female");
- string dneut = m_config.GetString("default_female", "Default Default");
+ string defaultMale = m_config.GetString("default_male", "Default Male");
+ string defaultFemale = m_config.GetString("default_female", "Default Female");
+ string defaultNeutral = m_config.GetString("default_female", "Default Default");
string model = String.Empty;
// Has a gender preference been supplied?
@@ -1345,16 +1405,16 @@ namespace OpenSim.ApplicationPlugins.RemoteController
{
case "m" :
case "male" :
- model = dmale;
+ model = defaultMale;
break;
case "f" :
case "female" :
- model = dfemale;
+ model = defaultFemale;
break;
case "n" :
case "neutral" :
default :
- model = dneut;
+ model = defaultNeutral;
break;
}
}
@@ -1376,19 +1436,19 @@ namespace OpenSim.ApplicationPlugins.RemoteController
m_log.DebugFormat("[RADMIN] Setting appearance for avatar {0}, using model <{1}>", userid, model);
- string[] nomens = model.Split();
- if (nomens.Length != 2)
+ string[] modelSpecifiers = model.Split();
+ if (modelSpecifiers.Length != 2)
{
m_log.WarnFormat("[RADMIN] User appearance not set for {0}. Invalid model name : <{1}>", userid, model);
- // nomens = dmodel.Split();
+ // modelSpecifiers = dmodel.Split();
return;
}
- Scene scene = m_app.SceneManager.CurrentOrFirstScene;
+ Scene scene = m_application.SceneManager.CurrentOrFirstScene;
UUID scopeID = scene.RegionInfo.ScopeID;
- UserAccount mprof = scene.UserAccountService.GetUserAccount(scopeID, nomens[0], nomens[1]);
+ UserAccount modelProfile = scene.UserAccountService.GetUserAccount(scopeID, modelSpecifiers[0], modelSpecifiers[1]);
- if (mprof == null)
+ if (modelProfile == null)
{
m_log.WarnFormat("[RADMIN] Requested model ({0}) not found. Appearance unchanged", model);
return;
@@ -1398,7 +1458,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
// actual asset ids, however to complete the magic we need to populate the inventory with the
// assets in question.
- establishAppearance(userid, mprof.PrincipalID);
+ EstablishAppearance(userid, modelProfile.PrincipalID);
m_log.DebugFormat("[RADMIN] Finished setting appearance for avatar {0}, using model {1}",
userid, model);
@@ -1410,17 +1470,14 @@ namespace OpenSim.ApplicationPlugins.RemoteController
/// is known to exist, as is the target avatar.
///
- private void establishAppearance(UUID dest, UUID srca)
+ private void EstablishAppearance(UUID destination, UUID source)
{
- m_log.DebugFormat("[RADMIN] Initializing inventory for {0} from {1}", dest, srca);
- Scene scene = m_app.SceneManager.CurrentOrFirstScene;
- AvatarAppearance ava = null;
- AvatarData avatar = scene.AvatarService.GetAvatar(srca);
- if (avatar != null)
- ava = avatar.ToAvatarAppearance(srca);
+ m_log.DebugFormat("[RADMIN] Initializing inventory for {0} from {1}", destination, source);
+ Scene scene = m_application.SceneManager.CurrentOrFirstScene;
// If the model has no associated appearance we're done.
- if (ava == null)
+ AvatarAppearance avatarAppearance = scene.AvatarService.GetAppearance(source);
+ if (avatarAppearance == null)
return;
// Simple appearance copy or copy Clothing and Bodyparts folders?
@@ -1431,15 +1488,14 @@ namespace OpenSim.ApplicationPlugins.RemoteController
// Simple copy of wearables and appearance update
try
{
- copyWearablesAndAttachments(dest, srca, ava);
+ CopyWearablesAndAttachments(destination, source, avatarAppearance);
- AvatarData adata = new AvatarData(ava);
- scene.AvatarService.SetAvatar(dest, adata);
+ scene.AvatarService.SetAppearance(destination, avatarAppearance);
}
catch (Exception e)
{
m_log.WarnFormat("[RADMIN] Error transferring appearance for {0} : {1}",
- dest, e.Message);
+ destination, e.Message);
}
return;
@@ -1448,30 +1504,29 @@ namespace OpenSim.ApplicationPlugins.RemoteController
// Copy Clothing and Bodypart folders and appearance update
try
{
- Dictionary imap = new Dictionary();
- copyInventoryFolders(dest, srca, AssetType.Clothing, imap, ava);
- copyInventoryFolders(dest, srca, AssetType.Bodypart, imap, ava);
+ Dictionary inventoryMap = new Dictionary();
+ CopyInventoryFolders(destination, source, AssetType.Clothing, inventoryMap, avatarAppearance);
+ CopyInventoryFolders(destination, source, AssetType.Bodypart, inventoryMap, avatarAppearance);
- AvatarWearable[] wearables = ava.Wearables;
+ AvatarWearable[] wearables = avatarAppearance.Wearables;
for (int i=0; i
- private void copyWearablesAndAttachments(UUID dest, UUID srca, AvatarAppearance ava)
+ private void CopyWearablesAndAttachments(UUID destination, UUID source, AvatarAppearance avatarAppearance)
{
- IInventoryService iserv = m_app.SceneManager.CurrentOrFirstScene.InventoryService;
+ IInventoryService inventoryService = m_application.SceneManager.CurrentOrFirstScene.InventoryService;
// Get Clothing folder of receiver
- InventoryFolderBase dstf = iserv.GetFolderForType(dest, AssetType.Clothing);
+ InventoryFolderBase destinationFolder = inventoryService.GetFolderForType(destination, AssetType.Clothing);
- if (dstf == null)
+ if (destinationFolder == null)
throw new Exception("Cannot locate folder(s)");
// Missing destination folder? This should *never* be the case
- if (dstf.Type != (short)AssetType.Clothing)
+ if (destinationFolder.Type != (short)AssetType.Clothing)
{
- dstf = new InventoryFolderBase();
- dstf.ID = UUID.Random();
- dstf.Name = "Clothing";
- dstf.Owner = dest;
- dstf.Type = (short)AssetType.Clothing;
- dstf.ParentID = iserv.GetRootFolder(dest).ID;
- dstf.Version = 1;
- iserv.AddFolder(dstf); // store base record
- m_log.ErrorFormat("[RADMIN] Created folder for destination {0}", srca);
+ destinationFolder = new InventoryFolderBase();
+
+ destinationFolder.ID = UUID.Random();
+ destinationFolder.Name = "Clothing";
+ destinationFolder.Owner = destination;
+ destinationFolder.Type = (short)AssetType.Clothing;
+ destinationFolder.ParentID = inventoryService.GetRootFolder(destination).ID;
+ destinationFolder.Version = 1;
+ inventoryService.AddFolder(destinationFolder); // store base record
+ m_log.ErrorFormat("[RADMIN] Created folder for destination {0}", source);
}
// Wearables
- AvatarWearable[] wearables = ava.Wearables;
+ AvatarWearable[] wearables = avatarAppearance.Wearables;
AvatarWearable wearable;
for (int i=0; i attachments = ava.GetAttachmentDictionary();
+ List attachments = avatarAppearance.GetAttachments();
- foreach (KeyValuePair kvp in attachments)
+ foreach (AvatarAttachment attachment in attachments)
{
- int attachpoint = kvp.Key;
- UUID itemID = kvp.Value[0];
+ int attachpoint = attachment.AttachPoint;
+ UUID itemID = attachment.ItemID;
if (itemID != UUID.Zero)
{
// Get inventory item and copy it
- InventoryItemBase item = new InventoryItemBase(itemID, srca);
- item = iserv.GetItem(item);
+ InventoryItemBase item = new InventoryItemBase(itemID, source);
+ item = inventoryService.GetItem(item);
if (item != null)
{
- InventoryItemBase dsti = new InventoryItemBase(UUID.Random(), dest);
- dsti.Name = item.Name;
- dsti.Description = item.Description;
- dsti.InvType = item.InvType;
- dsti.CreatorId = item.CreatorId;
- dsti.CreatorIdAsUuid = item.CreatorIdAsUuid;
- dsti.NextPermissions = item.NextPermissions;
- dsti.CurrentPermissions = item.CurrentPermissions;
- dsti.BasePermissions = item.BasePermissions;
- dsti.EveryOnePermissions = item.EveryOnePermissions;
- dsti.GroupPermissions = item.GroupPermissions;
- dsti.AssetType = item.AssetType;
- dsti.AssetID = item.AssetID;
- dsti.GroupID = item.GroupID;
- dsti.GroupOwned = item.GroupOwned;
- dsti.SalePrice = item.SalePrice;
- dsti.SaleType = item.SaleType;
- dsti.Flags = item.Flags;
- dsti.CreationDate = item.CreationDate;
- dsti.Folder = dstf.ID;
+ InventoryItemBase destinationItem = new InventoryItemBase(UUID.Random(), destination);
+ destinationItem.Name = item.Name;
+ destinationItem.Description = item.Description;
+ destinationItem.InvType = item.InvType;
+ destinationItem.CreatorId = item.CreatorId;
+ destinationItem.CreatorIdAsUuid = item.CreatorIdAsUuid;
+ destinationItem.CreatorData = item.CreatorData;
+ destinationItem.NextPermissions = item.NextPermissions;
+ destinationItem.CurrentPermissions = item.CurrentPermissions;
+ destinationItem.BasePermissions = item.BasePermissions;
+ destinationItem.EveryOnePermissions = item.EveryOnePermissions;
+ destinationItem.GroupPermissions = item.GroupPermissions;
+ destinationItem.AssetType = item.AssetType;
+ destinationItem.AssetID = item.AssetID;
+ destinationItem.GroupID = item.GroupID;
+ destinationItem.GroupOwned = item.GroupOwned;
+ destinationItem.SalePrice = item.SalePrice;
+ destinationItem.SaleType = item.SaleType;
+ destinationItem.Flags = item.Flags;
+ destinationItem.CreationDate = item.CreationDate;
+ destinationItem.Folder = destinationFolder.ID;
- iserv.AddItem(dsti);
- m_log.DebugFormat("[RADMIN] Added item {0} to folder {1}", dsti.ID, dstf.ID);
+ m_application.SceneManager.CurrentOrFirstScene.AddInventoryItem(destinationItem);
+ m_log.DebugFormat("[RADMIN]: Added item {0} to folder {1}", destinationItem.ID, destinationFolder.ID);
// Attach item
- ava.SetAttachment(attachpoint, dsti.ID, dsti.AssetID);
- m_log.DebugFormat("[RADMIN] Attached {0}", dsti.ID);
+ avatarAppearance.SetAttachment(attachpoint, destinationItem.ID, destinationItem.AssetID);
+ m_log.DebugFormat("[RADMIN]: Attached {0}", destinationItem.ID);
}
else
{
- m_log.WarnFormat("[RADMIN] Error transferring {0} to folder {1}", itemID, dstf.ID);
+ m_log.WarnFormat("[RADMIN]: Error transferring {0} to folder {1}", itemID, destinationFolder.ID);
}
}
}
@@ -1618,101 +1675,102 @@ namespace OpenSim.ApplicationPlugins.RemoteController
/// copies of Clothing and Bodyparts inventory folders and attaches worn attachments
///
- private void copyInventoryFolders(UUID dest, UUID srca, AssetType assettype, Dictionary imap,
- AvatarAppearance ava)
+ private void CopyInventoryFolders(UUID destination, UUID source, AssetType assetType, Dictionary inventoryMap,
+ AvatarAppearance avatarAppearance)
{
- IInventoryService iserv = m_app.SceneManager.CurrentOrFirstScene.InventoryService;
+ IInventoryService inventoryService = m_application.SceneManager.CurrentOrFirstScene.InventoryService;
- InventoryFolderBase srcf = iserv.GetFolderForType(srca, assettype);
- InventoryFolderBase dstf = iserv.GetFolderForType(dest, assettype);
+ InventoryFolderBase sourceFolder = inventoryService.GetFolderForType(source, assetType);
+ InventoryFolderBase destinationFolder = inventoryService.GetFolderForType(destination, assetType);
- if (srcf == null || dstf == null)
+ if (sourceFolder == null || destinationFolder == null)
throw new Exception("Cannot locate folder(s)");
// Missing source folder? This should *never* be the case
- if (srcf.Type != (short)assettype)
+ if (sourceFolder.Type != (short)assetType)
{
- srcf = new InventoryFolderBase();
- srcf.ID = UUID.Random();
- if (assettype == AssetType.Clothing) {
- srcf.Name = "Clothing";
+ sourceFolder = new InventoryFolderBase();
+ sourceFolder.ID = UUID.Random();
+ if (assetType == AssetType.Clothing) {
+ sourceFolder.Name = "Clothing";
} else {
- srcf.Name = "Body Parts";
+ sourceFolder.Name = "Body Parts";
}
- srcf.Owner = srca;
- srcf.Type = (short)assettype;
- srcf.ParentID = iserv.GetRootFolder(srca).ID;
- srcf.Version = 1;
- iserv.AddFolder(srcf); // store base record
- m_log.ErrorFormat("[RADMIN] Created folder for source {0}", srca);
+ sourceFolder.Owner = source;
+ sourceFolder.Type = (short)assetType;
+ sourceFolder.ParentID = inventoryService.GetRootFolder(source).ID;
+ sourceFolder.Version = 1;
+ inventoryService.AddFolder(sourceFolder); // store base record
+ m_log.ErrorFormat("[RADMIN] Created folder for source {0}", source);
}
// Missing destination folder? This should *never* be the case
- if (dstf.Type != (short)assettype)
+ if (destinationFolder.Type != (short)assetType)
{
- dstf = new InventoryFolderBase();
- dstf.ID = UUID.Random();
- dstf.Name = assettype.ToString();
- dstf.Owner = dest;
- dstf.Type = (short)assettype;
- dstf.ParentID = iserv.GetRootFolder(dest).ID;
- dstf.Version = 1;
- iserv.AddFolder(dstf); // store base record
- m_log.ErrorFormat("[RADMIN] Created folder for destination {0}", srca);
+ destinationFolder = new InventoryFolderBase();
+ destinationFolder.ID = UUID.Random();
+ destinationFolder.Name = assetType.ToString();
+ destinationFolder.Owner = destination;
+ destinationFolder.Type = (short)assetType;
+ destinationFolder.ParentID = inventoryService.GetRootFolder(destination).ID;
+ destinationFolder.Version = 1;
+ inventoryService.AddFolder(destinationFolder); // store base record
+ m_log.ErrorFormat("[RADMIN] Created folder for destination {0}", source);
}
- InventoryFolderBase efolder;
- List folders = iserv.GetFolderContent(srca, srcf.ID).Folders;
+ InventoryFolderBase extraFolder;
+ List folders = inventoryService.GetFolderContent(source, sourceFolder.ID).Folders;
foreach (InventoryFolderBase folder in folders)
{
- efolder = new InventoryFolderBase();
- efolder.ID = UUID.Random();
- efolder.Name = folder.Name;
- efolder.Owner = dest;
- efolder.Type = folder.Type;
- efolder.Version = folder.Version;
- efolder.ParentID = dstf.ID;
- iserv.AddFolder(efolder);
+ extraFolder = new InventoryFolderBase();
+ extraFolder.ID = UUID.Random();
+ extraFolder.Name = folder.Name;
+ extraFolder.Owner = destination;
+ extraFolder.Type = folder.Type;
+ extraFolder.Version = folder.Version;
+ extraFolder.ParentID = destinationFolder.ID;
+ inventoryService.AddFolder(extraFolder);
- m_log.DebugFormat("[RADMIN] Added folder {0} to folder {1}", efolder.ID, srcf.ID);
+ m_log.DebugFormat("[RADMIN] Added folder {0} to folder {1}", extraFolder.ID, sourceFolder.ID);
- List items = iserv.GetFolderContent(srca, folder.ID).Items;
+ List items = inventoryService.GetFolderContent(source, folder.ID).Items;
foreach (InventoryItemBase item in items)
{
- InventoryItemBase dsti = new InventoryItemBase(UUID.Random(), dest);
- dsti.Name = item.Name;
- dsti.Description = item.Description;
- dsti.InvType = item.InvType;
- dsti.CreatorId = item.CreatorId;
- dsti.CreatorIdAsUuid = item.CreatorIdAsUuid;
- dsti.NextPermissions = item.NextPermissions;
- dsti.CurrentPermissions = item.CurrentPermissions;
- dsti.BasePermissions = item.BasePermissions;
- dsti.EveryOnePermissions = item.EveryOnePermissions;
- dsti.GroupPermissions = item.GroupPermissions;
- dsti.AssetType = item.AssetType;
- dsti.AssetID = item.AssetID;
- dsti.GroupID = item.GroupID;
- dsti.GroupOwned = item.GroupOwned;
- dsti.SalePrice = item.SalePrice;
- dsti.SaleType = item.SaleType;
- dsti.Flags = item.Flags;
- dsti.CreationDate = item.CreationDate;
- dsti.Folder = efolder.ID;
+ InventoryItemBase destinationItem = new InventoryItemBase(UUID.Random(), destination);
+ destinationItem.Name = item.Name;
+ destinationItem.Description = item.Description;
+ destinationItem.InvType = item.InvType;
+ destinationItem.CreatorId = item.CreatorId;
+ destinationItem.CreatorIdAsUuid = item.CreatorIdAsUuid;
+ destinationItem.CreatorData = item.CreatorData;
+ destinationItem.NextPermissions = item.NextPermissions;
+ destinationItem.CurrentPermissions = item.CurrentPermissions;
+ destinationItem.BasePermissions = item.BasePermissions;
+ destinationItem.EveryOnePermissions = item.EveryOnePermissions;
+ destinationItem.GroupPermissions = item.GroupPermissions;
+ destinationItem.AssetType = item.AssetType;
+ destinationItem.AssetID = item.AssetID;
+ destinationItem.GroupID = item.GroupID;
+ destinationItem.GroupOwned = item.GroupOwned;
+ destinationItem.SalePrice = item.SalePrice;
+ destinationItem.SaleType = item.SaleType;
+ destinationItem.Flags = item.Flags;
+ destinationItem.CreationDate = item.CreationDate;
+ destinationItem.Folder = extraFolder.ID;
- iserv.AddItem(dsti);
- imap.Add(item.ID, dsti.ID);
- m_log.DebugFormat("[RADMIN] Added item {0} to folder {1}", dsti.ID, efolder.ID);
+ m_application.SceneManager.CurrentOrFirstScene.AddInventoryItem(destinationItem);
+ inventoryMap.Add(item.ID, destinationItem.ID);
+ m_log.DebugFormat("[RADMIN]: Added item {0} to folder {1}", destinationItem.ID, extraFolder.ID);
// Attach item, if original is attached
- int attachpoint = ava.GetAttachpoint(item.ID);
+ int attachpoint = avatarAppearance.GetAttachpoint(item.ID);
if (attachpoint != 0)
{
- ava.SetAttachment(attachpoint, dsti.ID, dsti.AssetID);
- m_log.DebugFormat("[RADMIN] Attached {0}", dsti.ID);
+ avatarAppearance.SetAttachment(attachpoint, destinationItem.ID, destinationItem.AssetID);
+ m_log.DebugFormat("[RADMIN]: Attached {0}", destinationItem.ID);
}
}
}
@@ -1728,63 +1786,62 @@ namespace OpenSim.ApplicationPlugins.RemoteController
/// other outfits are provided to allow "real" avatars a way to easily change their outfits.
///
- private bool createDefaultAvatars()
+ private bool CreateDefaultAvatars()
{
// Only load once
-
- if (daload)
+ if (m_defaultAvatarsLoaded)
{
return false;
}
m_log.DebugFormat("[RADMIN] Creating default avatar entries");
- daload = true;
+ m_defaultAvatarsLoaded = true;
// Load processing starts here...
try
{
- string dafn = null;
+ string defaultAppearanceFileName = null;
//m_config may be null if RemoteAdmin configuration secition is missing or disabled in OpenSim.ini
if (m_config != null)
{
- dafn = m_config.GetString("default_appearance", "default_appearance.xml");
+ defaultAppearanceFileName = m_config.GetString("default_appearance", "default_appearance.xml");
}
- if (File.Exists(dafn))
+ if (File.Exists(defaultAppearanceFileName))
{
XmlDocument doc = new XmlDocument();
string name = "*unknown*";
string email = "anon@anon";
- uint regX = 1000;
- uint regY = 1000;
- string passwd = UUID.Random().ToString(); // No requirement to sign-in.
+ uint regionXLocation = 1000;
+ uint regionYLocation = 1000;
+ string password = UUID.Random().ToString(); // No requirement to sign-in.
UUID ID = UUID.Zero;
- AvatarAppearance mava;
+ AvatarAppearance avatarAppearance;
XmlNodeList avatars;
XmlNodeList assets;
XmlNode perms = null;
bool include = false;
bool select = false;
- Scene scene = m_app.SceneManager.CurrentOrFirstScene;
- IInventoryService iserv = scene.InventoryService;
- IAssetService aserv = scene.AssetService;
+ Scene scene = m_application.SceneManager.CurrentOrFirstScene;
+ IInventoryService inventoryService = scene.InventoryService;
+ IAssetService assetService = scene.AssetService;
- doc.LoadXml(File.ReadAllText(dafn));
+ doc.LoadXml(File.ReadAllText(defaultAppearanceFileName));
// Load up any included assets. Duplicates will be ignored
assets = doc.GetElementsByTagName("RequiredAsset");
- foreach (XmlNode asset in assets)
+ foreach (XmlNode assetNode in assets)
{
- AssetBase rass = new AssetBase(UUID.Random(), GetStringAttribute(asset, "name", ""), SByte.Parse(GetStringAttribute(asset, "type", "")), UUID.Zero.ToString());
- rass.Description = GetStringAttribute(asset,"desc","");
- rass.Local = Boolean.Parse(GetStringAttribute(asset,"local",""));
- rass.Temporary = Boolean.Parse(GetStringAttribute(asset,"temporary",""));
- rass.Data = Convert.FromBase64String(asset.InnerText);
- aserv.Store(rass);
+ AssetBase asset = new AssetBase(UUID.Random(), GetStringAttribute(assetNode, "name", ""), SByte.Parse(GetStringAttribute(assetNode, "type", "")), UUID.Zero.ToString());
+ asset.Description = GetStringAttribute(assetNode,"desc","");
+ asset.Local = Boolean.Parse(GetStringAttribute(assetNode,"local",""));
+ asset.Temporary = Boolean.Parse(GetStringAttribute(assetNode,"temporary",""));
+ asset.Data = Convert.FromBase64String(assetNode.InnerText);
+ assetService.Store(asset);
}
avatars = doc.GetElementsByTagName("Avatar");
@@ -1803,19 +1860,19 @@ namespace OpenSim.ApplicationPlugins.RemoteController
// Only the name value is mandatory
name = GetStringAttribute(avatar,"name",name);
email = GetStringAttribute(avatar,"email",email);
- regX = GetUnsignedAttribute(avatar,"regx",regX);
- regY = GetUnsignedAttribute(avatar,"regy",regY);
- passwd = GetStringAttribute(avatar,"password",passwd);
+ regionXLocation = GetUnsignedAttribute(avatar,"regx",regionXLocation);
+ regionYLocation = GetUnsignedAttribute(avatar,"regy",regionYLocation);
+ password = GetStringAttribute(avatar,"password",password);
- string[] nomens = name.Split();
+ string[] names = name.Split();
UUID scopeID = scene.RegionInfo.ScopeID;
- UserAccount account = scene.UserAccountService.GetUserAccount(scopeID, nomens[0], nomens[1]);
+ UserAccount account = scene.UserAccountService.GetUserAccount(scopeID, names[0], names[1]);
if (null == account)
{
- account = CreateUser(scopeID, nomens[0], nomens[1], passwd, email);
+ account = CreateUser(scopeID, names[0], names[1], password, email);
if (null == account)
{
- m_log.ErrorFormat("[RADMIN] Avatar {0} {1} was not created", nomens[0], nomens[1]);
+ m_log.ErrorFormat("[RADMIN] Avatar {0} {1} was not created", names[0], names[1]);
return false;
}
}
@@ -1823,12 +1880,12 @@ namespace OpenSim.ApplicationPlugins.RemoteController
// Set home position
GridRegion home = scene.GridService.GetRegionByPosition(scopeID,
- (int)(regX * Constants.RegionSize), (int)(regY * Constants.RegionSize));
+ (int)(regionXLocation * Constants.RegionSize), (int)(regionYLocation * Constants.RegionSize));
if (null == home) {
- m_log.WarnFormat("[RADMIN]: Unable to set home region for newly created user account {0} {1}", nomens[0], nomens[1]);
+ m_log.WarnFormat("[RADMIN]: Unable to set home region for newly created user account {0} {1}", names[0], names[1]);
} else {
scene.GridUserService.SetHome(account.PrincipalID.ToString(), home.RegionID, new Vector3(128, 128, 0), new Vector3(0, 1, 0));
- m_log.DebugFormat("[RADMIN]: Set home region {0} for updated user account {1} {2}", home.RegionID, nomens[0], nomens[1]);
+ m_log.DebugFormat("[RADMIN]: Set home region {0} for updated user account {1} {2}", home.RegionID, names[0], names[1]);
}
ID = account.PrincipalID;
@@ -1850,13 +1907,11 @@ namespace OpenSim.ApplicationPlugins.RemoteController
if (include)
{
// Setup for appearance processing
- AvatarData adata = scene.AvatarService.GetAvatar(ID);
- if (adata != null)
- mava = adata.ToAvatarAppearance(ID);
- else
- mava = new AvatarAppearance();
+ avatarAppearance = scene.AvatarService.GetAppearance(ID);
+ if (avatarAppearance == null)
+ avatarAppearance = new AvatarAppearance();
- AvatarWearable[] wearables = mava.Wearables;
+ AvatarWearable[] wearables = avatarAppearance.Wearables;
for (int i=0; i folders = iserv.GetFolderContent(ID, cfolder.ID).Folders;
- efolder = null;
+ List folders = inventoryService.GetFolderContent(ID, clothingFolder.ID).Folders;
+ extraFolder = null;
foreach (InventoryFolderBase folder in folders)
{
- if (folder.Name == oname)
+ if (folder.Name == outfitName)
{
- efolder = folder;
+ extraFolder = folder;
break;
}
}
// Otherwise, we must create the folder.
- if (efolder == null)
+ if (extraFolder == null)
{
- m_log.DebugFormat("[RADMIN] Creating outfit folder {0} for {1}", oname, name);
- efolder = new InventoryFolderBase();
- efolder.ID = UUID.Random();
- efolder.Name = oname;
- efolder.Owner = ID;
- efolder.Type = (short)AssetType.Clothing;
- efolder.Version = 1;
- efolder.ParentID = cfolder.ID;
- iserv.AddFolder(efolder);
- m_log.DebugFormat("[RADMIN] Adding outfile folder {0} to folder {1}", efolder.ID, cfolder.ID);
+ m_log.DebugFormat("[RADMIN] Creating outfit folder {0} for {1}", outfitName, name);
+ extraFolder = new InventoryFolderBase();
+ extraFolder.ID = UUID.Random();
+ extraFolder.Name = outfitName;
+ extraFolder.Owner = ID;
+ extraFolder.Type = (short)AssetType.Clothing;
+ extraFolder.Version = 1;
+ extraFolder.ParentID = clothingFolder.ID;
+ inventoryService.AddFolder(extraFolder);
+ m_log.DebugFormat("[RADMIN] Adding outfile folder {0} to folder {1}", extraFolder.ID, clothingFolder.ID);
}
// Now get the pieces that make up the outfit
@@ -1950,55 +2005,56 @@ namespace OpenSim.ApplicationPlugins.RemoteController
}
}
- InventoryItemBase iitem = null;
+ InventoryItemBase inventoryItem = null;
// Check if asset is in inventory already
- iitem = null;
- List iitems = iserv.GetFolderContent(ID, efolder.ID).Items;
+ inventoryItem = null;
+ List inventoryItems = inventoryService.GetFolderContent(ID, extraFolder.ID).Items;
- foreach (InventoryItemBase litem in iitems)
+ foreach (InventoryItemBase listItem in inventoryItems)
{
- if (litem.AssetID == assetid)
+ if (listItem.AssetID == assetid)
{
- iitem = litem;
+ inventoryItem = listItem;
break;
}
}
// Create inventory item
- if (iitem == null)
+ if (inventoryItem == null)
{
- iitem = new InventoryItemBase(UUID.Random(), ID);
- iitem.Name = GetStringAttribute(item,"name","");
- iitem.Description = GetStringAttribute(item,"desc","");
- iitem.InvType = GetIntegerAttribute(item,"invtype",-1);
- iitem.CreatorId = GetStringAttribute(item,"creatorid","");
- iitem.CreatorIdAsUuid = (UUID)GetStringAttribute(item,"creatoruuid","");
- iitem.NextPermissions = GetUnsignedAttribute(perms,"next",0x7fffffff);
- iitem.CurrentPermissions = GetUnsignedAttribute(perms,"current",0x7fffffff);
- iitem.BasePermissions = GetUnsignedAttribute(perms,"base",0x7fffffff);
- iitem.EveryOnePermissions = GetUnsignedAttribute(perms,"everyone",0x7fffffff);
- iitem.GroupPermissions = GetUnsignedAttribute(perms,"group",0x7fffffff);
- iitem.AssetType = GetIntegerAttribute(item,"assettype",-1);
- iitem.AssetID = assetid; // associated asset
- iitem.GroupID = (UUID)GetStringAttribute(item,"groupid","");
- iitem.GroupOwned = (GetStringAttribute(item,"groupowned","false") == "true");
- iitem.SalePrice = GetIntegerAttribute(item,"saleprice",0);
- iitem.SaleType = (byte)GetIntegerAttribute(item,"saletype",0);
- iitem.Flags = GetUnsignedAttribute(item,"flags",0);
- iitem.CreationDate = GetIntegerAttribute(item,"creationdate",Util.UnixTimeSinceEpoch());
- iitem.Folder = efolder.ID; // Parent folder
+ inventoryItem = new InventoryItemBase(UUID.Random(), ID);
+ inventoryItem.Name = GetStringAttribute(item,"name","");
+ inventoryItem.Description = GetStringAttribute(item,"desc","");
+ inventoryItem.InvType = GetIntegerAttribute(item,"invtype",-1);
+ inventoryItem.CreatorId = GetStringAttribute(item,"creatorid","");
+ inventoryItem.CreatorIdAsUuid = (UUID)GetStringAttribute(item,"creatoruuid","");
+ inventoryItem.CreatorData = GetStringAttribute(item, "creatordata", "");
+ inventoryItem.NextPermissions = GetUnsignedAttribute(perms, "next", 0x7fffffff);
+ inventoryItem.CurrentPermissions = GetUnsignedAttribute(perms,"current",0x7fffffff);
+ inventoryItem.BasePermissions = GetUnsignedAttribute(perms,"base",0x7fffffff);
+ inventoryItem.EveryOnePermissions = GetUnsignedAttribute(perms,"everyone",0x7fffffff);
+ inventoryItem.GroupPermissions = GetUnsignedAttribute(perms,"group",0x7fffffff);
+ inventoryItem.AssetType = GetIntegerAttribute(item,"assettype",-1);
+ inventoryItem.AssetID = assetid; // associated asset
+ inventoryItem.GroupID = (UUID)GetStringAttribute(item,"groupid","");
+ inventoryItem.GroupOwned = (GetStringAttribute(item,"groupowned","false") == "true");
+ inventoryItem.SalePrice = GetIntegerAttribute(item,"saleprice",0);
+ inventoryItem.SaleType = (byte)GetIntegerAttribute(item,"saletype",0);
+ inventoryItem.Flags = GetUnsignedAttribute(item,"flags",0);
+ inventoryItem.CreationDate = GetIntegerAttribute(item,"creationdate",Util.UnixTimeSinceEpoch());
+ inventoryItem.Folder = extraFolder.ID; // Parent folder
- iserv.AddItem(iitem);
- m_log.DebugFormat("[RADMIN] Added item {0} to folder {1}", iitem.ID, efolder.ID);
+ m_application.SceneManager.CurrentOrFirstScene.AddInventoryItem(inventoryItem);
+ m_log.DebugFormat("[RADMIN] Added item {0} to folder {1}", inventoryItem.ID, extraFolder.ID);
}
// Attach item, if attachpoint is specified
int attachpoint = GetIntegerAttribute(item,"attachpoint",0);
if (attachpoint != 0)
{
- mava.SetAttachment(attachpoint, iitem.ID, iitem.AssetID);
- m_log.DebugFormat("[RADMIN] Attached {0}", iitem.ID);
+ avatarAppearance.SetAttachment(attachpoint, inventoryItem.ID, inventoryItem.AssetID);
+ m_log.DebugFormat("[RADMIN] Attached {0}", inventoryItem.ID);
}
// Record whether or not the item is to be initially worn
@@ -2006,20 +2062,18 @@ namespace OpenSim.ApplicationPlugins.RemoteController
{
if (select && (GetStringAttribute(item, "wear", "false") == "true"))
{
- mava.Wearables[iitem.Flags].ItemID = iitem.ID;
- mava.Wearables[iitem.Flags].AssetID = iitem.AssetID;
+ avatarAppearance.Wearables[inventoryItem.Flags].Wear(inventoryItem.ID, inventoryItem.AssetID);
}
}
catch (Exception e)
{
- m_log.WarnFormat("[RADMIN] Error wearing item {0} : {1}", iitem.ID, e.Message);
+ m_log.WarnFormat("[RADMIN] Error wearing item {0} : {1}", inventoryItem.ID, e.Message);
}
} // foreach item in outfit
- m_log.DebugFormat("[RADMIN] Outfit {0} load completed", oname);
+ m_log.DebugFormat("[RADMIN] Outfit {0} load completed", outfitName);
} // foreach outfit
m_log.DebugFormat("[RADMIN] Inventory update complete for {0}", name);
- AvatarData adata2 = new AvatarData(mava);
- scene.AvatarService.SetAvatar(ID, adata2);
+ scene.AvatarService.SetAppearance(ID, avatarAppearance);
}
catch (Exception e)
{
@@ -2086,19 +2140,19 @@ namespace OpenSim.ApplicationPlugins.RemoteController
XmlRpcResponse response = new XmlRpcResponse();
Hashtable responseData = new Hashtable();
- lock (rslock)
+ lock (m_requestLock)
{
try
{
Hashtable requestData = (Hashtable) request.Params[0];
// check completeness
- foreach (string p in new string[] {"password", "filename"})
+ foreach (string parameter in new string[] {"password", "filename"})
{
- if (!requestData.Contains(p))
- throw new Exception(String.Format("missing parameter {0}", p));
- if (String.IsNullOrEmpty((string) requestData[p]))
- throw new Exception(String.Format("parameter {0} is empty"));
+ if (!requestData.Contains(parameter))
+ throw new Exception(String.Format("missing parameter {0}", parameter));
+ if (String.IsNullOrEmpty((string) requestData[parameter]))
+ throw new Exception(String.Format("parameter {0} is empty", parameter));
}
// check password
@@ -2110,13 +2164,13 @@ namespace OpenSim.ApplicationPlugins.RemoteController
if (requestData.Contains("region_uuid"))
{
UUID region_uuid = (UUID) (string) requestData["region_uuid"];
- if (!m_app.SceneManager.TryGetScene(region_uuid, out scene))
+ if (!m_application.SceneManager.TryGetScene(region_uuid, out scene))
throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString()));
}
else if (requestData.Contains("region_name"))
{
string region_name = (string) requestData["region_name"];
- if (!m_app.SceneManager.TryGetScene(region_name, out scene))
+ if (!m_application.SceneManager.TryGetScene(region_name, out scene))
throw new Exception(String.Format("failed to switch to region {0}", region_name));
}
else throw new Exception("neither region_name nor region_uuid given");
@@ -2210,13 +2264,13 @@ namespace OpenSim.ApplicationPlugins.RemoteController
if (requestData.Contains("region_uuid"))
{
UUID region_uuid = (UUID) (string) requestData["region_uuid"];
- if (!m_app.SceneManager.TryGetScene(region_uuid, out scene))
+ if (!m_application.SceneManager.TryGetScene(region_uuid, out scene))
throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString()));
}
else if (requestData.Contains("region_name"))
{
string region_name = (string) requestData["region_name"];
- if (!m_app.SceneManager.TryGetScene(region_name, out scene))
+ if (!m_application.SceneManager.TryGetScene(region_name, out scene))
throw new Exception(String.Format("failed to switch to region {0}", region_name));
}
else throw new Exception("neither region_name nor region_uuid given");
@@ -2226,8 +2280,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController
if (archiver != null)
{
scene.EventManager.OnOarFileSaved += RemoteAdminOarSaveCompleted;
- archiver.ArchiveRegion(filename);
- lock (SOLock) Monitor.Wait(SOLock,5000);
+ archiver.ArchiveRegion(filename, new Dictionary());
+ lock (m_saveOarLock) Monitor.Wait(m_saveOarLock,5000);
scene.EventManager.OnOarFileSaved -= RemoteAdminOarSaveCompleted;
}
else
@@ -2255,7 +2309,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
private void RemoteAdminOarSaveCompleted(Guid uuid, string name)
{
m_log.DebugFormat("[RADMIN] File processing complete for {0}", name);
- lock (SOLock) Monitor.Pulse(SOLock);
+ lock (m_saveOarLock) Monitor.Pulse(m_saveOarLock);
}
public XmlRpcResponse XmlRpcLoadXMLMethod(XmlRpcRequest request, IPEndPoint remoteClient)
@@ -2267,7 +2321,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
XmlRpcResponse response = new XmlRpcResponse();
Hashtable responseData = new Hashtable();
- lock (rslock)
+ lock (m_requestLock)
{
try
{
@@ -2290,14 +2344,14 @@ namespace OpenSim.ApplicationPlugins.RemoteController
if (requestData.Contains("region_uuid"))
{
UUID region_uuid = (UUID) (string) requestData["region_uuid"];
- if (!m_app.SceneManager.TrySetCurrentScene(region_uuid))
+ if (!m_application.SceneManager.TrySetCurrentScene(region_uuid))
throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString()));
m_log.InfoFormat("[RADMIN] Switched to region {0}", region_uuid.ToString());
}
else if (requestData.Contains("region_name"))
{
string region_name = (string) requestData["region_name"];
- if (!m_app.SceneManager.TrySetCurrentScene(region_name))
+ if (!m_application.SceneManager.TrySetCurrentScene(region_name))
throw new Exception(String.Format("failed to switch to region {0}", region_name));
m_log.InfoFormat("[RADMIN] Switched to region {0}", region_name);
}
@@ -2314,11 +2368,11 @@ namespace OpenSim.ApplicationPlugins.RemoteController
switch (xml_version)
{
case "1":
- m_app.SceneManager.LoadCurrentSceneFromXml(filename, true, new Vector3(0, 0, 0));
+ m_application.SceneManager.LoadCurrentSceneFromXml(filename, true, new Vector3(0, 0, 0));
break;
case "2":
- m_app.SceneManager.LoadCurrentSceneFromXml2(filename);
+ m_application.SceneManager.LoadCurrentSceneFromXml2(filename);
break;
default:
@@ -2375,14 +2429,14 @@ namespace OpenSim.ApplicationPlugins.RemoteController
if (requestData.Contains("region_uuid"))
{
UUID region_uuid = (UUID) (string) requestData["region_uuid"];
- if (!m_app.SceneManager.TrySetCurrentScene(region_uuid))
+ if (!m_application.SceneManager.TrySetCurrentScene(region_uuid))
throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString()));
m_log.InfoFormat("[RADMIN] Switched to region {0}", region_uuid.ToString());
}
else if (requestData.Contains("region_name"))
{
string region_name = (string) requestData["region_name"];
- if (!m_app.SceneManager.TrySetCurrentScene(region_name))
+ if (!m_application.SceneManager.TrySetCurrentScene(region_name))
throw new Exception(String.Format("failed to switch to region {0}", region_name));
m_log.InfoFormat("[RADMIN] Switched to region {0}", region_name);
}
@@ -2399,11 +2453,11 @@ namespace OpenSim.ApplicationPlugins.RemoteController
switch (xml_version)
{
case "1":
- m_app.SceneManager.SaveCurrentSceneToXml(filename);
+ m_application.SceneManager.SaveCurrentSceneToXml(filename);
break;
case "2":
- m_app.SceneManager.SaveCurrentSceneToXml2(filename);
+ m_application.SceneManager.SaveCurrentSceneToXml2(filename);
break;
default:
@@ -2454,21 +2508,21 @@ namespace OpenSim.ApplicationPlugins.RemoteController
if (requestData.Contains("region_uuid"))
{
UUID region_uuid = (UUID) (string) requestData["region_uuid"];
- if (!m_app.SceneManager.TrySetCurrentScene(region_uuid))
+ if (!m_application.SceneManager.TrySetCurrentScene(region_uuid))
throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString()));
m_log.InfoFormat("[RADMIN] Switched to region {0}", region_uuid.ToString());
}
else if (requestData.Contains("region_name"))
{
string region_name = (string) requestData["region_name"];
- if (!m_app.SceneManager.TrySetCurrentScene(region_name))
+ if (!m_application.SceneManager.TrySetCurrentScene(region_name))
throw new Exception(String.Format("failed to switch to region {0}", region_name));
m_log.InfoFormat("[RADMIN] Switched to region {0}", region_name);
}
else throw new Exception("neither region_name nor region_uuid given");
- Scene s = m_app.SceneManager.CurrentScene;
- int health = s.GetHealth();
+ Scene scene = m_application.SceneManager.CurrentScene;
+ int health = scene.GetHealth();
responseData["health"] = health;
response.Value = responseData;
@@ -2551,23 +2605,23 @@ namespace OpenSim.ApplicationPlugins.RemoteController
if (requestData.Contains("region_uuid"))
{
UUID region_uuid = (UUID) (string) requestData["region_uuid"];
- if (!m_app.SceneManager.TrySetCurrentScene(region_uuid))
+ if (!m_application.SceneManager.TrySetCurrentScene(region_uuid))
throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString()));
m_log.InfoFormat("[RADMIN] Switched to region {0}", region_uuid.ToString());
}
else if (requestData.Contains("region_name"))
{
string region_name = (string) requestData["region_name"];
- if (!m_app.SceneManager.TrySetCurrentScene(region_name))
+ if (!m_application.SceneManager.TrySetCurrentScene(region_name))
throw new Exception(String.Format("failed to switch to region {0}", region_name));
m_log.InfoFormat("[RADMIN] Switched to region {0}", region_name);
}
else throw new Exception("neither region_name nor region_uuid given");
- Scene s = m_app.SceneManager.CurrentScene;
- s.RegionInfo.EstateSettings.EstateAccess = new UUID[]{};
- if (s.RegionInfo.Persistent)
- s.RegionInfo.EstateSettings.Save();
+ Scene scene = m_application.SceneManager.CurrentScene;
+ scene.RegionInfo.EstateSettings.EstateAccess = new UUID[]{};
+ if (scene.RegionInfo.Persistent)
+ scene.RegionInfo.EstateSettings.Save();
}
catch (Exception e)
{
@@ -2608,26 +2662,26 @@ namespace OpenSim.ApplicationPlugins.RemoteController
if (requestData.Contains("region_uuid"))
{
UUID region_uuid = (UUID) (string) requestData["region_uuid"];
- if (!m_app.SceneManager.TrySetCurrentScene(region_uuid))
+ if (!m_application.SceneManager.TrySetCurrentScene(region_uuid))
throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString()));
m_log.InfoFormat("[RADMIN] Switched to region {0}", region_uuid.ToString());
}
else if (requestData.Contains("region_name"))
{
string region_name = (string) requestData["region_name"];
- if (!m_app.SceneManager.TrySetCurrentScene(region_name))
+ if (!m_application.SceneManager.TrySetCurrentScene(region_name))
throw new Exception(String.Format("failed to switch to region {0}", region_name));
m_log.InfoFormat("[RADMIN] Switched to region {0}", region_name);
}
else throw new Exception("neither region_name nor region_uuid given");
- int addk = 0;
+ int addedUsers = 0;
if (requestData.Contains("users"))
{
- UUID scopeID = m_app.SceneManager.CurrentOrFirstScene.RegionInfo.ScopeID;
- IUserAccountService userService = m_app.SceneManager.CurrentOrFirstScene.UserAccountService;
- Scene s = m_app.SceneManager.CurrentScene;
+ UUID scopeID = m_application.SceneManager.CurrentOrFirstScene.RegionInfo.ScopeID;
+ IUserAccountService userService = m_application.SceneManager.CurrentOrFirstScene.UserAccountService;
+ Scene scene = m_application.SceneManager.CurrentScene;
Hashtable users = (Hashtable) requestData["users"];
List uuids = new List();
foreach (string name in users.Values)
@@ -2637,24 +2691,24 @@ namespace OpenSim.ApplicationPlugins.RemoteController
if (account != null)
{
uuids.Add(account.PrincipalID);
- m_log.DebugFormat("[RADMIN] adding \"{0}\" to ACL for \"{1}\"", name, s.RegionInfo.RegionName);
+ m_log.DebugFormat("[RADMIN] adding \"{0}\" to ACL for \"{1}\"", name, scene.RegionInfo.RegionName);
}
}
- List acl = new List(s.RegionInfo.EstateSettings.EstateAccess);
+ List accessControlList = new List(scene.RegionInfo.EstateSettings.EstateAccess);
foreach (UUID uuid in uuids)
{
- if (!acl.Contains(uuid))
+ if (!accessControlList.Contains(uuid))
{
- acl.Add(uuid);
- addk++;
+ accessControlList.Add(uuid);
+ addedUsers++;
}
}
- s.RegionInfo.EstateSettings.EstateAccess = acl.ToArray();
- if (s.RegionInfo.Persistent)
- s.RegionInfo.EstateSettings.Save();
+ scene.RegionInfo.EstateSettings.EstateAccess = accessControlList.ToArray();
+ if (scene.RegionInfo.Persistent)
+ scene.RegionInfo.EstateSettings.Save();
}
- responseData["added"] = addk;
+ responseData["added"] = addedUsers;
}
catch (Exception e)
{
@@ -2695,27 +2749,27 @@ namespace OpenSim.ApplicationPlugins.RemoteController
if (requestData.Contains("region_uuid"))
{
UUID region_uuid = (UUID) (string) requestData["region_uuid"];
- if (!m_app.SceneManager.TrySetCurrentScene(region_uuid))
+ if (!m_application.SceneManager.TrySetCurrentScene(region_uuid))
throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString()));
m_log.InfoFormat("[RADMIN] Switched to region {0}", region_uuid.ToString());
}
else if (requestData.Contains("region_name"))
{
string region_name = (string) requestData["region_name"];
- if (!m_app.SceneManager.TrySetCurrentScene(region_name))
+ if (!m_application.SceneManager.TrySetCurrentScene(region_name))
throw new Exception(String.Format("failed to switch to region {0}", region_name));
m_log.InfoFormat("[RADMIN] Switched to region {0}", region_name);
}
else throw new Exception("neither region_name nor region_uuid given");
- int remk = 0;
+ int removedUsers = 0;
if (requestData.Contains("users"))
{
- UUID scopeID = m_app.SceneManager.CurrentOrFirstScene.RegionInfo.ScopeID;
- IUserAccountService userService = m_app.SceneManager.CurrentOrFirstScene.UserAccountService;
- //UserProfileCacheService ups = m_app.CommunicationsManager.UserProfileCacheService;
- Scene s = m_app.SceneManager.CurrentScene;
+ UUID scopeID = m_application.SceneManager.CurrentOrFirstScene.RegionInfo.ScopeID;
+ IUserAccountService userService = m_application.SceneManager.CurrentOrFirstScene.UserAccountService;
+ //UserProfileCacheService ups = m_application.CommunicationsManager.UserProfileCacheService;
+ Scene scene = m_application.SceneManager.CurrentScene;
Hashtable users = (Hashtable) requestData["users"];
List uuids = new List();
foreach (string name in users.Values)
@@ -2727,21 +2781,21 @@ namespace OpenSim.ApplicationPlugins.RemoteController
uuids.Add(account.PrincipalID);
}
}
- List acl = new List(s.RegionInfo.EstateSettings.EstateAccess);
+ List accessControlList = new List(scene.RegionInfo.EstateSettings.EstateAccess);
foreach (UUID uuid in uuids)
{
- if (acl.Contains(uuid))
+ if (accessControlList.Contains(uuid))
{
- acl.Remove(uuid);
- remk++;
+ accessControlList.Remove(uuid);
+ removedUsers++;
}
}
- s.RegionInfo.EstateSettings.EstateAccess = acl.ToArray();
- if (s.RegionInfo.Persistent)
- s.RegionInfo.EstateSettings.Save();
+ scene.RegionInfo.EstateSettings.EstateAccess = accessControlList.ToArray();
+ if (scene.RegionInfo.Persistent)
+ scene.RegionInfo.EstateSettings.Save();
}
- responseData["removed"] = remk;
+ responseData["removed"] = removedUsers;
}
catch (Exception e)
{
@@ -2782,27 +2836,27 @@ namespace OpenSim.ApplicationPlugins.RemoteController
if (requestData.Contains("region_uuid"))
{
UUID region_uuid = (UUID) (string) requestData["region_uuid"];
- if (!m_app.SceneManager.TrySetCurrentScene(region_uuid))
+ if (!m_application.SceneManager.TrySetCurrentScene(region_uuid))
throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString()));
m_log.InfoFormat("[RADMIN] Switched to region {0}", region_uuid.ToString());
}
else if (requestData.Contains("region_name"))
{
string region_name = (string) requestData["region_name"];
- if (!m_app.SceneManager.TrySetCurrentScene(region_name))
+ if (!m_application.SceneManager.TrySetCurrentScene(region_name))
throw new Exception(String.Format("failed to switch to region {0}", region_name));
m_log.InfoFormat("[RADMIN] Switched to region {0}", region_name);
}
else throw new Exception("neither region_name nor region_uuid given");
- Scene s = m_app.SceneManager.CurrentScene;
- UUID[] acl = s.RegionInfo.EstateSettings.EstateAccess;
+ Scene scene = m_application.SceneManager.CurrentScene;
+ UUID[] accessControlList = scene.RegionInfo.EstateSettings.EstateAccess;
Hashtable users = new Hashtable();
- foreach (UUID user in acl)
+ foreach (UUID user in accessControlList)
{
- UUID scopeID = m_app.SceneManager.CurrentOrFirstScene.RegionInfo.ScopeID;
- UserAccount account = m_app.SceneManager.CurrentOrFirstScene.UserAccountService.GetUserAccount(scopeID, user);
+ UUID scopeID = m_application.SceneManager.CurrentOrFirstScene.RegionInfo.ScopeID;
+ UserAccount account = m_application.SceneManager.CurrentOrFirstScene.UserAccountService.GetUserAccount(scopeID, user);
if (account != null)
{
users[user.ToString()] = account.FirstName + " " + account.LastName;
@@ -2827,29 +2881,29 @@ namespace OpenSim.ApplicationPlugins.RemoteController
return response;
}
- private static void checkStringParameters(XmlRpcRequest request, string[] param)
+ private static void CheckStringParameters(XmlRpcRequest request, string[] param)
{
Hashtable requestData = (Hashtable) request.Params[0];
- foreach (string p in param)
+ foreach (string parameter in param)
{
- if (!requestData.Contains(p))
- throw new Exception(String.Format("missing string parameter {0}", p));
- if (String.IsNullOrEmpty((string) requestData[p]))
- throw new Exception(String.Format("parameter {0} is empty", p));
+ if (!requestData.Contains(parameter))
+ throw new Exception(String.Format("missing string parameter {0}", parameter));
+ if (String.IsNullOrEmpty((string) requestData[parameter]))
+ throw new Exception(String.Format("parameter {0} is empty", parameter));
}
}
- private static void checkIntegerParams(XmlRpcRequest request, string[] param)
+ private static void CheckIntegerParams(XmlRpcRequest request, string[] param)
{
Hashtable requestData = (Hashtable) request.Params[0];
- foreach (string p in param)
+ foreach (string parameter in param)
{
- if (!requestData.Contains(p))
- throw new Exception(String.Format("missing integer parameter {0}", p));
+ if (!requestData.Contains(parameter))
+ throw new Exception(String.Format("missing integer parameter {0}", parameter));
}
}
- private bool getBoolean(Hashtable requestData, string tag, bool defv)
+ private bool GetBoolean(Hashtable requestData, string tag, bool defaultValue)
{
// If an access value has been provided, apply it.
if (requestData.Contains(tag))
@@ -2865,29 +2919,29 @@ namespace OpenSim.ApplicationPlugins.RemoteController
case "0" :
return false;
default :
- return defv;
+ return defaultValue;
}
}
else
- return defv;
+ return defaultValue;
}
- private int GetIntegerAttribute(XmlNode node, string attr, int dv)
+ private int GetIntegerAttribute(XmlNode node, string attribute, int defaultValue)
{
- try { return Convert.ToInt32(node.Attributes[attr].Value); } catch{}
- return dv;
+ try { return Convert.ToInt32(node.Attributes[attribute].Value); } catch{}
+ return defaultValue;
}
- private uint GetUnsignedAttribute(XmlNode node, string attr, uint dv)
+ private uint GetUnsignedAttribute(XmlNode node, string attribute, uint defaultValue)
{
- try { return Convert.ToUInt32(node.Attributes[attr].Value); } catch{}
- return dv;
+ try { return Convert.ToUInt32(node.Attributes[attribute].Value); } catch{}
+ return defaultValue;
}
- private string GetStringAttribute(XmlNode node, string attr, string dv)
+ private string GetStringAttribute(XmlNode node, string attribute, string defaultValue)
{
- try { return node.Attributes[attr].Value; } catch{}
- return dv;
+ try { return node.Attributes[attribute].Value; } catch{}
+ return defaultValue;
}
public void Dispose()
@@ -2904,14 +2958,14 @@ namespace OpenSim.ApplicationPlugins.RemoteController
///
private UserAccount CreateUser(UUID scopeID, string firstName, string lastName, string password, string email)
{
- Scene scene = m_app.SceneManager.CurrentOrFirstScene;
- IUserAccountService m_UserAccountService = scene.UserAccountService;
- IGridService m_GridService = scene.GridService;
- IAuthenticationService m_AuthenticationService = scene.AuthenticationService;
- IGridUserService m_GridUserService = scene.GridUserService;
- IInventoryService m_InventoryService = scene.InventoryService;
+ Scene scene = m_application.SceneManager.CurrentOrFirstScene;
+ IUserAccountService userAccountService = scene.UserAccountService;
+ IGridService gridService = scene.GridService;
+ IAuthenticationService authenticationService = scene.AuthenticationService;
+ IGridUserService gridUserService = scene.GridUserService;
+ IInventoryService inventoryService = scene.InventoryService;
- UserAccount account = m_UserAccountService.GetUserAccount(scopeID, firstName, lastName);
+ UserAccount account = userAccountService.GetUserAccount(scopeID, firstName, lastName);
if (null == account)
{
account = new UserAccount(scopeID, firstName, lastName, email);
@@ -2924,26 +2978,26 @@ namespace OpenSim.ApplicationPlugins.RemoteController
account.ServiceURLs["AssetServerURI"] = string.Empty;
}
- if (m_UserAccountService.StoreUserAccount(account))
+ if (userAccountService.StoreUserAccount(account))
{
bool success;
- if (m_AuthenticationService != null)
+ if (authenticationService != null)
{
- success = m_AuthenticationService.SetPassword(account.PrincipalID, password);
+ success = authenticationService.SetPassword(account.PrincipalID, password);
if (!success)
m_log.WarnFormat("[RADMIN]: Unable to set password for account {0} {1}.",
firstName, lastName);
}
GridRegion home = null;
- if (m_GridService != null)
+ if (gridService != null)
{
- List defaultRegions = m_GridService.GetDefaultRegions(UUID.Zero);
+ List defaultRegions = gridService.GetDefaultRegions(UUID.Zero);
if (defaultRegions != null && defaultRegions.Count >= 1)
home = defaultRegions[0];
- if (m_GridUserService != null && home != null)
- m_GridUserService.SetHome(account.PrincipalID.ToString(), home.RegionID, new Vector3(128, 128, 0), new Vector3(0, 1, 0));
+ if (gridUserService != null && home != null)
+ gridUserService.SetHome(account.PrincipalID.ToString(), home.RegionID, new Vector3(128, 128, 0), new Vector3(0, 1, 0));
else
m_log.WarnFormat("[RADMIN]: Unable to set home for account {0} {1}.",
firstName, lastName);
@@ -2952,9 +3006,9 @@ namespace OpenSim.ApplicationPlugins.RemoteController
m_log.WarnFormat("[RADMIN]: Unable to retrieve home region for account {0} {1}.",
firstName, lastName);
- if (m_InventoryService != null)
+ if (inventoryService != null)
{
- success = m_InventoryService.CreateUserInventory(account.PrincipalID);
+ success = inventoryService.CreateUserInventory(account.PrincipalID);
if (!success)
m_log.WarnFormat("[RADMIN]: Unable to create inventory for account {0} {1}.",
firstName, lastName);
@@ -2981,16 +3035,16 @@ namespace OpenSim.ApplicationPlugins.RemoteController
///
private bool ChangeUserPassword(string firstName, string lastName, string password)
{
- Scene scene = m_app.SceneManager.CurrentOrFirstScene;
- IUserAccountService m_UserAccountService = scene.UserAccountService;
- IAuthenticationService m_AuthenticationService = scene.AuthenticationService;
+ Scene scene = m_application.SceneManager.CurrentOrFirstScene;
+ IUserAccountService userAccountService = scene.UserAccountService;
+ IAuthenticationService authenticationService = scene.AuthenticationService;
- UserAccount account = m_UserAccountService.GetUserAccount(UUID.Zero, firstName, lastName);
+ UserAccount account = userAccountService.GetUserAccount(UUID.Zero, firstName, lastName);
if (null != account)
{
bool success = false;
- if (m_AuthenticationService != null)
- success = m_AuthenticationService.SetPassword(account.PrincipalID, password);
+ if (authenticationService != null)
+ success = authenticationService.SetPassword(account.PrincipalID, password);
if (!success) {
m_log.WarnFormat("[RADMIN]: Unable to set password for account {0} {1}.",
firstName, lastName);
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs
index 4369216b26..019ca73dd1 100644
--- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs
+++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs
@@ -27,6 +27,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Xml;
using OpenMetaverse;
using OpenSim.Framework;
@@ -384,7 +385,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
// }
//
// rdata.Respond(String.Format("Appearance {0} : Normal completion", rdata.method));
-//
+//
// }
///
@@ -449,7 +450,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
// rdata.userAppearance = new AvatarAppearance();
// rdata.userAppearance.Owner = old.Owner;
// adata = new AvatarData(rdata.userAppearance);
-//
+//
// Rest.AvatarServices.SetAvatar(rdata.userProfile.ID, adata);
//
// rdata.Complete();
@@ -498,6 +499,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
indata = true;
}
break;
+/*
case "Body" :
if (xml.MoveToAttribute("Item"))
{
@@ -654,6 +656,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
indata = true;
}
break;
+*/
case "Attachment" :
{
@@ -748,6 +751,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
rdata.writer.WriteAttributeString("Owner", rdata.userAppearance.Owner.ToString());
rdata.writer.WriteAttributeString("Serial", rdata.userAppearance.Serial.ToString());
+/*
FormatPart(rdata, "Body", rdata.userAppearance.BodyItem, rdata.userAppearance.BodyAsset);
FormatPart(rdata, "Skin", rdata.userAppearance.SkinItem, rdata.userAppearance.SkinAsset);
FormatPart(rdata, "Hair", rdata.userAppearance.HairItem, rdata.userAppearance.HairAsset);
@@ -764,26 +768,20 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
FormatPart(rdata, "UnderShirt", rdata.userAppearance.UnderShirtItem, rdata.userAppearance.UnderShirtAsset);
FormatPart(rdata, "UnderPants", rdata.userAppearance.UnderPantsItem, rdata.userAppearance.UnderPantsAsset);
+*/
+ Rest.Log.DebugFormat("{0} FormatUserAppearance: Formatting attachments", MsgId);
- Hashtable attachments = rdata.userAppearance.GetAttachments();
-
- if (attachments != null)
+ rdata.writer.WriteStartElement("Attachments");
+ List attachments = rdata.userAppearance.GetAttachments();
+ foreach (AvatarAttachment attach in attachments)
{
-
- Rest.Log.DebugFormat("{0} FormatUserAppearance: Formatting attachments", MsgId);
-
- rdata.writer.WriteStartElement("Attachments");
- for (int i = 0; i < attachments.Count; i++)
- {
- Hashtable attachment = attachments[i] as Hashtable;
- rdata.writer.WriteStartElement("Attachment");
- rdata.writer.WriteAttributeString("AtPoint", i.ToString());
- rdata.writer.WriteAttributeString("Item", (string) attachment["item"]);
- rdata.writer.WriteAttributeString("Asset", (string) attachment["asset"]);
- rdata.writer.WriteEndElement();
- }
+ rdata.writer.WriteStartElement("Attachment");
+ rdata.writer.WriteAttributeString("AtPoint", attach.AttachPoint.ToString());
+ rdata.writer.WriteAttributeString("Item", attach.ItemID.ToString());
+ rdata.writer.WriteAttributeString("Asset", attach.AssetID.ToString());
rdata.writer.WriteEndElement();
}
+ rdata.writer.WriteEndElement();
Primitive.TextureEntry texture = rdata.userAppearance.Texture;
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs
index a4135dbaed..c3cf08c18d 100644
--- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs
+++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs
@@ -1295,6 +1295,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
rdata.writer.WriteAttributeString("folder", String.Empty, i.Folder.ToString());
rdata.writer.WriteAttributeString("owner", String.Empty, i.Owner.ToString());
rdata.writer.WriteAttributeString("creator", String.Empty, i.CreatorId);
+ rdata.writer.WriteAttributeString("creatordata", String.Empty, i.CreatorData);
rdata.writer.WriteAttributeString("creationdate", String.Empty, i.CreationDate.ToString());
rdata.writer.WriteAttributeString("invtype", String.Empty, i.InvType.ToString());
rdata.writer.WriteAttributeString("assettype", String.Empty, i.AssetType.ToString());
diff --git a/OpenSim/Client/MXP/ClientStack/MXPClientView.cs b/OpenSim/Client/MXP/ClientStack/MXPClientView.cs
index 9518246b49..c158c1f1fd 100644
--- a/OpenSim/Client/MXP/ClientStack/MXPClientView.cs
+++ b/OpenSim/Client/MXP/ClientStack/MXPClientView.cs
@@ -305,94 +305,94 @@ namespace OpenSim.Client.MXP.ClientStack
#region MXP Outgoing Message Processing
- private void MXPSendPrimitive(uint localID, UUID ownerID, Vector3 acc, Vector3 rvel, PrimitiveBaseShape primShape, Vector3 pos, UUID objectID, Vector3 vel, Quaternion rotation, uint flags, string text, byte[] textColor, uint parentID, byte[] particleSystem, byte clickAction, byte material, byte[] textureanim)
- {
- String typeName = ToOmType(primShape.PCode);
- m_log.Info("[MXP ClientStack] Transmitting Primitive" + typeName);
-
- PerceptionEventMessage pe = new PerceptionEventMessage();
- pe.ObjectFragment.ObjectId = objectID.Guid;
-
- pe.ObjectFragment.ParentObjectId = Guid.Empty;
-
- // Resolving parent UUID.
- OpenSim.Region.Framework.Scenes.Scene scene = (OpenSim.Region.Framework.Scenes.Scene)Scene;
- if (scene.Entities.ContainsKey(parentID))
- {
- pe.ObjectFragment.ParentObjectId = scene.Entities[parentID].UUID.Guid;
- }
-
- pe.ObjectFragment.ObjectIndex = localID;
- pe.ObjectFragment.ObjectName = typeName + " Object";
- pe.ObjectFragment.OwnerId = ownerID.Guid;
- pe.ObjectFragment.TypeId = Guid.Empty;
- pe.ObjectFragment.TypeName = typeName;
- pe.ObjectFragment.Acceleration = ToOmVector(acc);
- pe.ObjectFragment.AngularAcceleration=new MsdQuaternion4f();
- pe.ObjectFragment.AngularVelocity = ToOmQuaternion(rvel);
- pe.ObjectFragment.BoundingSphereRadius = primShape.Scale.Length();
-
- pe.ObjectFragment.Location = ToOmVector(pos);
-
- pe.ObjectFragment.Mass = 1.0f;
- pe.ObjectFragment.Orientation = ToOmQuaternion(rotation);
- pe.ObjectFragment.Velocity =ToOmVector(vel);
-
- OmSlPrimitiveExt ext = new OmSlPrimitiveExt();
-
- if (!((primShape.PCode == (byte)PCode.NewTree) || (primShape.PCode == (byte)PCode.Tree) || (primShape.PCode == (byte)PCode.Grass)))
- {
-
- ext.PathBegin = primShape.PathBegin;
- ext.PathEnd = primShape.PathEnd;
- ext.PathScaleX = primShape.PathScaleX;
- ext.PathScaleY = primShape.PathScaleY;
- ext.PathShearX = primShape.PathShearX;
- ext.PathShearY = primShape.PathShearY;
- ext.PathSkew = primShape.PathSkew;
- ext.ProfileBegin = primShape.ProfileBegin;
- ext.ProfileEnd = primShape.ProfileEnd;
- ext.PathCurve = primShape.PathCurve;
- ext.ProfileCurve = primShape.ProfileCurve;
- ext.ProfileHollow = primShape.ProfileHollow;
- ext.PathRadiusOffset = primShape.PathRadiusOffset;
- ext.PathRevolutions = primShape.PathRevolutions;
- ext.PathTaperX = primShape.PathTaperX;
- ext.PathTaperY = primShape.PathTaperY;
- ext.PathTwist = primShape.PathTwist;
- ext.PathTwistBegin = primShape.PathTwistBegin;
-
-
- }
-
- ext.UpdateFlags = flags;
- ext.ExtraParams = primShape.ExtraParams;
- ext.State = primShape.State;
- ext.TextureEntry = primShape.TextureEntry;
- ext.TextureAnim = textureanim;
- ext.Scale = ToOmVector(primShape.Scale);
- ext.Text = text;
- ext.TextColor = ToOmColor(textColor);
- ext.PSBlock = particleSystem;
- ext.ClickAction = clickAction;
- ext.Material = material;
-
- pe.SetExtension(ext);
-
- Session.Send(pe);
-
- if (m_objectsSynchronized != -1)
- {
- m_objectsSynchronized++;
-
- if (m_objectsToSynchronize >= m_objectsSynchronized)
- {
- SynchronizationEndEventMessage synchronizationEndEventMessage = new SynchronizationEndEventMessage();
- Session.Send(synchronizationEndEventMessage);
- m_objectsSynchronized = -1;
- }
- }
- }
+// private void MXPSendPrimitive(uint localID, UUID ownerID, Vector3 acc, Vector3 rvel, PrimitiveBaseShape primShape, Vector3 pos, UUID objectID, Vector3 vel, Quaternion rotation, uint flags, string text, byte[] textColor, uint parentID, byte[] particleSystem, byte clickAction, byte material, byte[] textureanim)
+// {
+// String typeName = ToOmType(primShape.PCode);
+// m_log.Info("[MXP ClientStack] Transmitting Primitive" + typeName);
+//
+// PerceptionEventMessage pe = new PerceptionEventMessage();
+// pe.ObjectFragment.ObjectId = objectID.Guid;
+//
+// pe.ObjectFragment.ParentObjectId = Guid.Empty;
+//
+// // Resolving parent UUID.
+// OpenSim.Region.Framework.Scenes.Scene scene = (OpenSim.Region.Framework.Scenes.Scene)Scene;
+// if (scene.Entities.ContainsKey(parentID))
+// {
+// pe.ObjectFragment.ParentObjectId = scene.Entities[parentID].UUID.Guid;
+// }
+//
+// pe.ObjectFragment.ObjectIndex = localID;
+// pe.ObjectFragment.ObjectName = typeName + " Object";
+// pe.ObjectFragment.OwnerId = ownerID.Guid;
+// pe.ObjectFragment.TypeId = Guid.Empty;
+// pe.ObjectFragment.TypeName = typeName;
+// pe.ObjectFragment.Acceleration = ToOmVector(acc);
+// pe.ObjectFragment.AngularAcceleration=new MsdQuaternion4f();
+// pe.ObjectFragment.AngularVelocity = ToOmQuaternion(rvel);
+// pe.ObjectFragment.BoundingSphereRadius = primShape.Scale.Length();
+//
+// pe.ObjectFragment.Location = ToOmVector(pos);
+//
+// pe.ObjectFragment.Mass = 1.0f;
+// pe.ObjectFragment.Orientation = ToOmQuaternion(rotation);
+// pe.ObjectFragment.Velocity =ToOmVector(vel);
+//
+// OmSlPrimitiveExt ext = new OmSlPrimitiveExt();
+//
+// if (!((primShape.PCode == (byte)PCode.NewTree) || (primShape.PCode == (byte)PCode.Tree) || (primShape.PCode == (byte)PCode.Grass)))
+// {
+//
+// ext.PathBegin = primShape.PathBegin;
+// ext.PathEnd = primShape.PathEnd;
+// ext.PathScaleX = primShape.PathScaleX;
+// ext.PathScaleY = primShape.PathScaleY;
+// ext.PathShearX = primShape.PathShearX;
+// ext.PathShearY = primShape.PathShearY;
+// ext.PathSkew = primShape.PathSkew;
+// ext.ProfileBegin = primShape.ProfileBegin;
+// ext.ProfileEnd = primShape.ProfileEnd;
+// ext.PathCurve = primShape.PathCurve;
+// ext.ProfileCurve = primShape.ProfileCurve;
+// ext.ProfileHollow = primShape.ProfileHollow;
+// ext.PathRadiusOffset = primShape.PathRadiusOffset;
+// ext.PathRevolutions = primShape.PathRevolutions;
+// ext.PathTaperX = primShape.PathTaperX;
+// ext.PathTaperY = primShape.PathTaperY;
+// ext.PathTwist = primShape.PathTwist;
+// ext.PathTwistBegin = primShape.PathTwistBegin;
+//
+//
+// }
+//
+// ext.UpdateFlags = flags;
+// ext.ExtraParams = primShape.ExtraParams;
+// ext.State = primShape.State;
+// ext.TextureEntry = primShape.TextureEntry;
+// ext.TextureAnim = textureanim;
+// ext.Scale = ToOmVector(primShape.Scale);
+// ext.Text = text;
+// ext.TextColor = ToOmColor(textColor);
+// ext.PSBlock = particleSystem;
+// ext.ClickAction = clickAction;
+// ext.Material = material;
+//
+// pe.SetExtension(ext);
+//
+// Session.Send(pe);
+//
+// if (m_objectsSynchronized != -1)
+// {
+// m_objectsSynchronized++;
+//
+// if (m_objectsToSynchronize >= m_objectsSynchronized)
+// {
+// SynchronizationEndEventMessage synchronizationEndEventMessage = new SynchronizationEndEventMessage();
+// Session.Send(synchronizationEndEventMessage);
+// m_objectsSynchronized = -1;
+// }
+// }
+// }
public void MXPSendAvatarData(string participantName, UUID ownerID, UUID parentId, UUID avatarID, uint avatarLocalID, Vector3 position, Quaternion rotation)
{
@@ -598,7 +598,7 @@ namespace OpenSim.Client.MXP.ClientStack
public event TeleportLandmarkRequest OnTeleportLandmarkRequest;
public event DeRezObject OnDeRezObject;
public event Action OnRegionHandShakeReply;
- public event GenericCall2 OnRequestWearables;
+ public event GenericCall1 OnRequestWearables;
public event GenericCall1 OnCompleteMovementToRegion;
public event UpdateAgent OnPreAgentUpdate;
public event UpdateAgent OnAgentUpdate;
@@ -869,7 +869,7 @@ namespace OpenSim.Client.MXP.ClientStack
OpenSim.Region.Framework.Scenes.Scene scene=(OpenSim.Region.Framework.Scenes.Scene)Scene;
AvatarAppearance appearance;
scene.GetAvatarAppearance(this,out appearance);
- OnSetAppearance(appearance.Texture, (byte[])appearance.VisualParams.Clone());
+ OnSetAppearance(this, appearance.Texture, (byte[])appearance.VisualParams.Clone());
}
public void Stop()
@@ -1023,11 +1023,15 @@ namespace OpenSim.Client.MXP.ClientStack
// Need to translate to MXP somehow
}
- public void SendTeleportLocationStart()
+ public void SendTeleportStart(uint flags)
{
// Need to translate to MXP somehow
}
+ public void SendTeleportProgress(uint flags, string message)
+ {
+ }
+
public void SendMoneyBalance(UUID transaction, bool success, byte[] description, int balance)
{
// Need to translate to MXP somehow
diff --git a/OpenSim/Client/MXP/PacketHandler/MXPPacketServer.cs b/OpenSim/Client/MXP/PacketHandler/MXPPacketServer.cs
index 2098625f72..dcecb8b384 100644
--- a/OpenSim/Client/MXP/PacketHandler/MXPPacketServer.cs
+++ b/OpenSim/Client/MXP/PacketHandler/MXPPacketServer.cs
@@ -63,7 +63,7 @@ namespace OpenSim.Client.MXP.PacketHandler
private readonly IList m_sessionsToRemove = new List();
private readonly int m_port;
- private readonly bool m_accountsAuthenticate;
+// private readonly bool m_accountsAuthenticate;
private readonly String m_programName;
private readonly byte m_programMajorVersion;
@@ -76,7 +76,7 @@ namespace OpenSim.Client.MXP.PacketHandler
public MXPPacketServer(int port, Dictionary scenes, bool accountsAuthenticate)
{
m_port = port;
- m_accountsAuthenticate = accountsAuthenticate;
+// m_accountsAuthenticate = accountsAuthenticate;
m_scenes = scenes;
@@ -491,7 +491,6 @@ namespace OpenSim.Client.MXP.PacketHandler
public bool AuthoriseUser(string participantName, string password, UUID sceneId, out UserAccount account)
{
- UUID userId = UUID.Zero;
string firstName = "";
string lastName = "";
account = null;
@@ -534,9 +533,7 @@ namespace OpenSim.Client.MXP.PacketHandler
agent.InventoryFolder = UUID.Zero;
agent.startpos = new Vector3(0, 0, 0); // TODO Fill in region start position
agent.CapsPath = "http://localhost/";
- AvatarData avatar = scene.AvatarService.GetAvatar(account.PrincipalID);
- if (avatar != null)
- agent.Appearance = avatar.ToAvatarAppearance(account.PrincipalID); //userService.GetUserAppearance(userProfile.ID);
+ agent.Appearance = scene.AvatarService.GetAppearance(account.PrincipalID);
if (agent.Appearance == null)
{
diff --git a/OpenSim/Client/Sirikata/ClientStack/SirikataClientView.cs b/OpenSim/Client/Sirikata/ClientStack/SirikataClientView.cs
deleted file mode 100644
index a97bfada4f..0000000000
--- a/OpenSim/Client/Sirikata/ClientStack/SirikataClientView.cs
+++ /dev/null
@@ -1,1211 +0,0 @@
-/*
- * Copyright (c) Contributors, http://opensimulator.org/
- * See CONTRIBUTORS.TXT for a full list of copyright holders.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of the OpenSimulator Project nor the
- * names of its contributors may be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Net;
-using System.Net.Sockets;
-using System.Text;
-using OpenMetaverse;
-using OpenMetaverse.Packets;
-using OpenSim.Framework;
-using OpenSim.Framework.Client;
-
-namespace OpenSim.Client.Sirikata.ClientStack
-{
- class SirikataClientView : IClientAPI, IClientCore
- {
- private readonly NetworkStream stream;
-
- public SirikataClientView(TcpClient client)
- {
- stream = client.GetStream();
-
- sessionId = UUID.Random();
-
-
- // Handshake with client
- string con = "SSTTCP01" + sessionId;
- byte[] handshake = Util.UTF8.GetBytes(con);
-
- byte[] clientHandshake = new byte[2+6+36];
-
- stream.Read(clientHandshake, 0, handshake.Length);
- stream.Write(handshake, 0, handshake.Length - 1); // Remove null terminator (hence the -1)
- }
-
-
- #region Implementation of IClientAPI
-
- private Vector3 startPos;
-
- private UUID sessionId;
-
- private UUID secureSessionId;
-
- private UUID activeGroupId;
-
- private string activeGroupName;
-
- private ulong activeGroupPowers;
-
- private string firstName;
-
- private string lastName;
-
- private IScene scene;
-
- private int nextAnimationSequenceNumber;
-
- private string name;
-
- private bool isActive;
-
- private bool sendLogoutPacketWhenClosing;
-
- private uint circuitCode;
-
- private IPEndPoint remoteEndPoint;
-
- public Vector3 StartPos
- {
- get { return startPos; }
- set { startPos = value; }
- }
-
- public bool TryGet(out T iface)
- {
- throw new System.NotImplementedException();
- }
-
- public T Get()
- {
- throw new System.NotImplementedException();
- }
-
- UUID IClientCore.AgentId
- {
- get { throw new NotImplementedException(); }
- }
-
- public void Disconnect(string reason)
- {
- throw new System.NotImplementedException();
- }
-
- public void Disconnect()
- {
- throw new System.NotImplementedException();
- }
-
- UUID IClientAPI.AgentId
- {
- get { throw new NotImplementedException(); }
- }
-
- public UUID SessionId
- {
- get { return sessionId; }
- }
-
- public UUID SecureSessionId
- {
- get { return secureSessionId; }
- }
-
- public UUID ActiveGroupId
- {
- get { return activeGroupId; }
- }
-
- public string ActiveGroupName
- {
- get { return activeGroupName; }
- }
-
- public ulong ActiveGroupPowers
- {
- get { return activeGroupPowers; }
- }
-
- public ulong GetGroupPowers(UUID groupID)
- {
- throw new System.NotImplementedException();
- }
-
- public bool IsGroupMember(UUID GroupID)
- {
- throw new System.NotImplementedException();
- }
-
- public string FirstName
- {
- get { return firstName; }
- }
-
- public string LastName
- {
- get { return lastName; }
- }
-
- public IScene Scene
- {
- get { return scene; }
- }
-
- public int NextAnimationSequenceNumber
- {
- get { return nextAnimationSequenceNumber; }
- }
-
- public string Name
- {
- get { return name; }
- }
-
- public bool IsActive
- {
- get { return isActive; }
- set { isActive = value; }
- }
- public bool IsLoggingOut
- {
- get { return false; }
- set { }
- }
-
- public bool SendLogoutPacketWhenClosing
- {
- set { sendLogoutPacketWhenClosing = value; }
- }
-
- public uint MaxCoarseLocations
- {
- get { return 0; }
- }
-
- public uint CircuitCode
- {
- get { return circuitCode; }
- }
-
- public IPEndPoint RemoteEndPoint
- {
- get { return remoteEndPoint; }
- }
-
- public event GenericMessage OnGenericMessage;
- public event ImprovedInstantMessage OnInstantMessage;
- public event ChatMessage OnChatFromClient;
- public event ChatMessageRaw OnChatFromClientRaw;
- public event TextureRequest OnRequestTexture;
- public event RezObject OnRezObject;
- public event ModifyTerrain OnModifyTerrain;
- public event BakeTerrain OnBakeTerrain;
- public event EstateChangeInfo OnEstateChangeInfo;
- public event SetAppearance OnSetAppearance;
- public event SetAppearanceRaw OnSetAppearanceRaw;
- public event AvatarNowWearing OnAvatarNowWearing;
- public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
- public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
- public event UUIDNameRequest OnDetachAttachmentIntoInv;
- public event ObjectAttach OnObjectAttach;
- public event ObjectDeselect OnObjectDetach;
- public event ObjectDrop OnObjectDrop;
- public event StartAnim OnStartAnim;
- public event StopAnim OnStopAnim;
- public event LinkObjects OnLinkObjects;
- public event DelinkObjects OnDelinkObjects;
- public event RequestMapBlocks OnRequestMapBlocks;
- public event RequestMapName OnMapNameRequest;
- public event TeleportLocationRequest OnTeleportLocationRequest;
- public event DisconnectUser OnDisconnectUser;
- public event RequestAvatarProperties OnRequestAvatarProperties;
- public event SetAlwaysRun OnSetAlwaysRun;
- public event TeleportLandmarkRequest OnTeleportLandmarkRequest;
- public event DeRezObject OnDeRezObject;
- public event Action OnRegionHandShakeReply;
- public event GenericCall2 OnRequestWearables;
- public event GenericCall1 OnCompleteMovementToRegion;
- public event UpdateAgent OnPreAgentUpdate;
- public event UpdateAgent OnAgentUpdate;
- public event UpdateAgentRaw OnAgentUpdateRaw;
- public event AgentRequestSit OnAgentRequestSit;
- public event AgentSit OnAgentSit;
- public event AvatarPickerRequest OnAvatarPickerRequest;
- public event Action OnRequestAvatarsData;
- public event AddNewPrim OnAddPrim;
- public event FetchInventory OnAgentDataUpdateRequest;
- public event TeleportLocationRequest OnSetStartLocationRequest;
- public event RequestGodlikePowers OnRequestGodlikePowers;
- public event GodKickUser OnGodKickUser;
- public event ObjectDuplicate OnObjectDuplicate;
- public event ObjectDuplicateOnRay OnObjectDuplicateOnRay;
- public event GrabObject OnGrabObject;
- public event DeGrabObject OnDeGrabObject;
- public event MoveObject OnGrabUpdate;
- public event SpinStart OnSpinStart;
- public event SpinObject OnSpinUpdate;
- public event SpinStop OnSpinStop;
- public event UpdateShape OnUpdatePrimShape;
- public event ObjectExtraParams OnUpdateExtraParams;
- public event ObjectRequest OnObjectRequest;
- public event ObjectSelect OnObjectSelect;
- public event ObjectDeselect OnObjectDeselect;
- public event GenericCall7 OnObjectDescription;
- public event GenericCall7 OnObjectName;
- public event GenericCall7 OnObjectClickAction;
- public event GenericCall7 OnObjectMaterial;
- public event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily;
- public event UpdatePrimFlags OnUpdatePrimFlags;
- public event UpdatePrimTexture OnUpdatePrimTexture;
- public event UpdateVector OnUpdatePrimGroupPosition;
- public event UpdateVector OnUpdatePrimSinglePosition;
- public event UpdatePrimRotation OnUpdatePrimGroupRotation;
- public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation;
- public event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition;
- public event UpdatePrimGroupRotation OnUpdatePrimGroupMouseRotation;
- public event UpdateVector OnUpdatePrimScale;
- public event UpdateVector OnUpdatePrimGroupScale;
- public event StatusChange OnChildAgentStatus;
- public event GenericCall2 OnStopMovement;
- public event Action OnRemoveAvatar;
- public event ObjectPermissions OnObjectPermissions;
- public event CreateNewInventoryItem OnCreateNewInventoryItem;
- public event LinkInventoryItem OnLinkInventoryItem;
- public event CreateInventoryFolder OnCreateNewInventoryFolder;
- public event UpdateInventoryFolder OnUpdateInventoryFolder;
- public event MoveInventoryFolder OnMoveInventoryFolder;
- public event FetchInventoryDescendents OnFetchInventoryDescendents;
- public event PurgeInventoryDescendents OnPurgeInventoryDescendents;
- public event FetchInventory OnFetchInventory;
- public event RequestTaskInventory OnRequestTaskInventory;
- public event UpdateInventoryItem OnUpdateInventoryItem;
- public event CopyInventoryItem OnCopyInventoryItem;
- public event MoveInventoryItem OnMoveInventoryItem;
- public event RemoveInventoryFolder OnRemoveInventoryFolder;
- public event RemoveInventoryItem OnRemoveInventoryItem;
- public event UDPAssetUploadRequest OnAssetUploadRequest;
- public event XferReceive OnXferReceive;
- public event RequestXfer OnRequestXfer;
- public event ConfirmXfer OnConfirmXfer;
- public event AbortXfer OnAbortXfer;
- public event RezScript OnRezScript;
- public event UpdateTaskInventory OnUpdateTaskInventory;
- public event MoveTaskInventory OnMoveTaskItem;
- public event RemoveTaskInventory OnRemoveTaskItem;
- public event RequestAsset OnRequestAsset;
- public event UUIDNameRequest OnNameFromUUIDRequest;
- public event ParcelAccessListRequest OnParcelAccessListRequest;
- public event ParcelAccessListUpdateRequest OnParcelAccessListUpdateRequest;
- public event ParcelPropertiesRequest OnParcelPropertiesRequest;
- public event ParcelDivideRequest OnParcelDivideRequest;
- public event ParcelJoinRequest OnParcelJoinRequest;
- public event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest;
- public event ParcelSelectObjects OnParcelSelectObjects;
- public event ParcelObjectOwnerRequest OnParcelObjectOwnerRequest;
- public event ParcelAbandonRequest OnParcelAbandonRequest;
- public event ParcelGodForceOwner OnParcelGodForceOwner;
- public event ParcelReclaim OnParcelReclaim;
- public event ParcelReturnObjectsRequest OnParcelReturnObjectsRequest;
- public event ParcelDeedToGroup OnParcelDeedToGroup;
- public event RegionInfoRequest OnRegionInfoRequest;
- public event EstateCovenantRequest OnEstateCovenantRequest;
- public event FriendActionDelegate OnApproveFriendRequest;
- public event FriendActionDelegate OnDenyFriendRequest;
- public event FriendshipTermination OnTerminateFriendship;
- public event MoneyTransferRequest OnMoneyTransferRequest;
- public event EconomyDataRequest OnEconomyDataRequest;
- public event MoneyBalanceRequest OnMoneyBalanceRequest;
- public event UpdateAvatarProperties OnUpdateAvatarProperties;
- public event ParcelBuy OnParcelBuy;
- public event RequestPayPrice OnRequestPayPrice;
- public event ObjectSaleInfo OnObjectSaleInfo;
- public event ObjectBuy OnObjectBuy;
- public event BuyObjectInventory OnBuyObjectInventory;
- public event RequestTerrain OnRequestTerrain;
- public event RequestTerrain OnUploadTerrain;
- public event ObjectIncludeInSearch OnObjectIncludeInSearch;
- public event UUIDNameRequest OnTeleportHomeRequest;
- public event ScriptAnswer OnScriptAnswer;
- public event AgentSit OnUndo;
- public event AgentSit OnRedo;
- public event LandUndo OnLandUndo;
- public event ForceReleaseControls OnForceReleaseControls;
- public event GodLandStatRequest OnLandStatRequest;
- public event DetailedEstateDataRequest OnDetailedEstateDataRequest;
- public event SetEstateFlagsRequest OnSetEstateFlagsRequest;
- public event SetEstateTerrainBaseTexture OnSetEstateTerrainBaseTexture;
- public event SetEstateTerrainDetailTexture OnSetEstateTerrainDetailTexture;
- public event SetEstateTerrainTextureHeights OnSetEstateTerrainTextureHeights;
- public event CommitEstateTerrainTextureRequest OnCommitEstateTerrainTextureRequest;
- public event SetRegionTerrainSettings OnSetRegionTerrainSettings;
- public event EstateRestartSimRequest OnEstateRestartSimRequest;
- public event EstateChangeCovenantRequest OnEstateChangeCovenantRequest;
- public event UpdateEstateAccessDeltaRequest OnUpdateEstateAccessDeltaRequest;
- public event SimulatorBlueBoxMessageRequest OnSimulatorBlueBoxMessageRequest;
- public event EstateBlueBoxMessageRequest OnEstateBlueBoxMessageRequest;
- public event EstateDebugRegionRequest OnEstateDebugRegionRequest;
- public event EstateTeleportOneUserHomeRequest OnEstateTeleportOneUserHomeRequest;
- public event EstateTeleportAllUsersHomeRequest OnEstateTeleportAllUsersHomeRequest;
- public event UUIDNameRequest OnUUIDGroupNameRequest;
- public event RegionHandleRequest OnRegionHandleRequest;
- public event ParcelInfoRequest OnParcelInfoRequest;
- public event RequestObjectPropertiesFamily OnObjectGroupRequest;
- public event ScriptReset OnScriptReset;
- public event GetScriptRunning OnGetScriptRunning;
- public event SetScriptRunning OnSetScriptRunning;
- public event UpdateVector OnAutoPilotGo;
- public event TerrainUnacked OnUnackedTerrain;
- public event ActivateGesture OnActivateGesture;
- public event DeactivateGesture OnDeactivateGesture;
- public event ObjectOwner OnObjectOwner;
- public event DirPlacesQuery OnDirPlacesQuery;
- public event DirFindQuery OnDirFindQuery;
- public event DirLandQuery OnDirLandQuery;
- public event DirPopularQuery OnDirPopularQuery;
- public event DirClassifiedQuery OnDirClassifiedQuery;
- public event EventInfoRequest OnEventInfoRequest;
- public event ParcelSetOtherCleanTime OnParcelSetOtherCleanTime;
- public event MapItemRequest OnMapItemRequest;
- public event OfferCallingCard OnOfferCallingCard;
- public event AcceptCallingCard OnAcceptCallingCard;
- public event DeclineCallingCard OnDeclineCallingCard;
- public event SoundTrigger OnSoundTrigger;
- public event StartLure OnStartLure;
- public event TeleportLureRequest OnTeleportLureRequest;
- public event NetworkStats OnNetworkStatsUpdate;
- public event ClassifiedInfoRequest OnClassifiedInfoRequest;
- public event ClassifiedInfoUpdate OnClassifiedInfoUpdate;
- public event ClassifiedDelete OnClassifiedDelete;
- public event ClassifiedDelete OnClassifiedGodDelete;
- public event EventNotificationAddRequest OnEventNotificationAddRequest;
- public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest;
- public event EventGodDelete OnEventGodDelete;
- public event ParcelDwellRequest OnParcelDwellRequest;
- public event UserInfoRequest OnUserInfoRequest;
- public event UpdateUserInfo OnUpdateUserInfo;
- public event RetrieveInstantMessages OnRetrieveInstantMessages;
- public event PickDelete OnPickDelete;
- public event PickGodDelete OnPickGodDelete;
- public event PickInfoUpdate OnPickInfoUpdate;
- public event AvatarNotesUpdate OnAvatarNotesUpdate;
- public event AvatarInterestUpdate OnAvatarInterestUpdate;
- public event GrantUserFriendRights OnGrantUserRights;
- public event MuteListRequest OnMuteListRequest;
- public event PlacesQuery OnPlacesQuery;
- public event FindAgentUpdate OnFindAgent;
- public event TrackAgentUpdate OnTrackAgent;
- public event NewUserReport OnUserReport;
- public event SaveStateHandler OnSaveState;
- public event GroupAccountSummaryRequest OnGroupAccountSummaryRequest;
- public event GroupAccountDetailsRequest OnGroupAccountDetailsRequest;
- public event GroupAccountTransactionsRequest OnGroupAccountTransactionsRequest;
- public event FreezeUserUpdate OnParcelFreezeUser;
- public event EjectUserUpdate OnParcelEjectUser;
- public event ParcelBuyPass OnParcelBuyPass;
- public event ParcelGodMark OnParcelGodMark;
- public event GroupActiveProposalsRequest OnGroupActiveProposalsRequest;
- public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest;
- public event SimWideDeletesDelegate OnSimWideDeletes;
- public event SendPostcard OnSendPostcard;
- public event MuteListEntryUpdate OnUpdateMuteListEntry;
- public event MuteListEntryRemove OnRemoveMuteListEntry;
- public event GodlikeMessage onGodlikeMessage;
- public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate;
- public void SetDebugPacketLevel(int newDebug)
- {
- throw new System.NotImplementedException();
- }
-
- public void InPacket(object NewPack)
- {
- throw new System.NotImplementedException();
- }
-
- public void ProcessInPacket(Packet NewPack)
- {
- throw new System.NotImplementedException();
- }
-
- public void Close()
- {
- throw new System.NotImplementedException();
- }
-
- public void Kick(string message)
- {
- throw new System.NotImplementedException();
- }
-
- public void Start()
- {
- throw new System.NotImplementedException();
- }
-
- public void Stop()
- {
- throw new System.NotImplementedException();
- }
-
- public void SendWearables(AvatarWearable[] wearables, int serial)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAppearance(UUID agentID, byte[] visualParams, byte[] textureEntry)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendStartPingCheck(byte seq)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendKillObject(ulong regionHandle, uint localID)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAnimations(UUID[] animID, int[] seqs, UUID sourceAgentId, UUID[] objectIDs)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendRegionHandshake(RegionInfo regionInfo, RegionHandshakeArgs args)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendChatMessage(string message, byte type, Vector3 fromPos, string fromName, UUID fromAgentID, byte source, byte audible)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendInstantMessage(GridInstantMessage im)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendGenericMessage(string method, List message)
- {
- }
-
- public void SendGenericMessage(string method, List message)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendLayerData(float[] map)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendLayerData(int px, int py, float[] map)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendWindData(Vector2[] windSpeeds)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendCloudData(float[] cloudCover)
- {
- throw new System.NotImplementedException();
- }
-
- public void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look)
- {
- throw new System.NotImplementedException();
- }
-
- public void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint)
- {
- throw new System.NotImplementedException();
- }
-
- public AgentCircuitData RequestClientInfo()
- {
- throw new System.NotImplementedException();
- }
-
- public void CrossRegion(ulong newRegionHandle, Vector3 pos, Vector3 lookAt, IPEndPoint newRegionExternalEndPoint, string capsURL)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendMapBlock(List mapBlocks, uint flag)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendLocalTeleport(Vector3 position, Vector3 lookAt, uint flags)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendRegionTeleport(ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint, uint locationID, uint flags, string capsURL)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendTeleportFailed(string reason)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendTeleportLocationStart()
- {
- throw new System.NotImplementedException();
- }
-
- public void SendMoneyBalance(UUID transaction, bool success, byte[] description, int balance)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendPayPrice(UUID objectID, int[] payPrice)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendCoarseLocationUpdate(List users, List CoarseLocations)
- {
- throw new System.NotImplementedException();
- }
-
- public void SetChildAgentThrottle(byte[] throttle)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAvatarDataImmediate(ISceneEntity avatar)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendPrimUpdate(ISceneEntity entity, PrimUpdateFlags updateFlags)
- {
- throw new System.NotImplementedException();
- }
-
- public void ReprioritizeUpdates()
- {
- throw new System.NotImplementedException();
- }
-
- public void FlushPrimUpdates()
- {
- throw new System.NotImplementedException();
- }
-
- public void SendInventoryFolderDetails(UUID ownerID, UUID folderID, List items, List folders, int version, bool fetchFolders, bool fetchItems)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendInventoryItemDetails(UUID ownerID, InventoryItemBase item)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendInventoryItemCreateUpdate(InventoryItemBase Item, uint callbackId)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendRemoveInventoryItem(UUID itemID)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendTakeControls(int controls, bool passToAgent, bool TakeControls)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendTaskInventory(UUID taskID, short serial, byte[] fileName)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendBulkUpdateInventory(InventoryNodeBase node)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendXferPacket(ulong xferID, uint packet, byte[] data)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendEconomyData(float EnergyEfficiency, int ObjectCapacity, int ObjectCount, int PriceEnergyUnit, int PriceGroupCreate, int PriceObjectClaim, float PriceObjectRent, float PriceObjectScaleFactor, int PriceParcelClaim, float PriceParcelClaimFactor, int PriceParcelRent, int PricePublicObjectDecay, int PricePublicObjectDelete, int PriceRentLight, int PriceUpload, int TeleportMinPrice, float TeleportPriceExponent)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAvatarPickerReply(AvatarPickerReplyAgentDataArgs AgentData, List Data)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAgentDataUpdate(UUID agentid, UUID activegroupid, string firstname, string lastname, ulong grouppowers, string groupname, string grouptitle)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendPreLoadSound(UUID objectID, UUID ownerID, UUID soundID)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendPlayAttachedSound(UUID soundID, UUID objectID, UUID ownerID, float gain, byte flags)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendTriggeredSound(UUID soundID, UUID ownerID, UUID objectID, UUID parentID, ulong handle, Vector3 position, float gain)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAttachedSoundGainChange(UUID objectID, float gain)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendNameReply(UUID profileId, string firstname, string lastname)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAlertMessage(string message)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAgentAlertMessage(string message, bool modal)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendLoadURL(string objectname, UUID objectID, UUID ownerID, bool groupOwned, string message, string url)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendDialog(string objectname, UUID objectID, string ownerFirstName, string ownerLastName, string msg, UUID textureID, int ch, string[] buttonlabels)
- {
- throw new System.NotImplementedException();
- }
-
- public bool AddMoney(int debit)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendSunPos(Vector3 sunPos, Vector3 sunVel, ulong CurrentTime, uint SecondsPerSunCycle, uint SecondsPerYear, float OrbitalPosition)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendViewerEffect(ViewerEffectPacket.EffectBlock[] effectBlocks)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendViewerTime(int phase)
- {
- throw new System.NotImplementedException();
- }
-
- public UUID GetDefaultAnimation(string name)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAvatarProperties(UUID avatarID, string aboutText, string bornOn, byte[] charterMember, string flAbout, uint flags, UUID flImageID, UUID imageID, string profileURL, UUID partnerID)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendScriptQuestion(UUID taskID, string taskName, string ownerName, UUID itemID, int question)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendHealth(float health)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendEstateList(UUID invoice, int code, UUID[] Data, uint estateID)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendBannedUserList(UUID invoice, EstateBan[] banlist, uint estateID)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendEstateCovenantInformation(UUID covenant)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail, UUID estateOwner)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendLandProperties(int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendLandAccessListData(List avatars, uint accessFlag, int localLandID)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendForceClientSelectObjects(List objectIDs)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendCameraConstraint(Vector4 ConstraintPlane)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendLandObjectOwners(LandData land, List groups, Dictionary ownersAndCount)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendLandParcelOverlay(byte[] data, int sequence_id)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendParcelMediaUpdate(string mediaUrl, UUID mediaTextureID, byte autoScale, string mediaType, string mediaDesc, int mediaWidth, int mediaHeight, byte mediaLoop)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, UUID AssetFullID)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendConfirmXfer(ulong xferID, uint PacketID)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendXferRequest(ulong XferID, short AssetType, UUID vFileID, byte FilePath, byte[] FileName)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendInitiateDownload(string simFileName, string clientFileName)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendImageFirstPart(ushort numParts, UUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendImageNextPart(ushort partNumber, UUID imageUuid, byte[] imageData)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendImageNotFound(UUID imageid)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendShutdownConnectionNotice()
- {
- throw new System.NotImplementedException();
- }
-
- public void SendSimStats(SimStats stats)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendObjectPropertiesFamilyData(uint RequestFlags, UUID ObjectUUID, UUID OwnerID, UUID GroupID, uint BaseMask, uint OwnerMask, uint GroupMask, uint EveryoneMask, uint NextOwnerMask, int OwnershipCost, byte SaleType, int SalePrice, uint Category, UUID LastOwnerID, string ObjectName, string Description)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendObjectPropertiesReply(UUID ItemID, ulong CreationDate, UUID CreatorUUID, UUID FolderUUID, UUID FromTaskUUID, UUID GroupUUID, short InventorySerial, UUID LastOwnerUUID, UUID ObjectUUID, UUID OwnerUUID, string TouchTitle, byte[] TextureID, string SitTitle, string ItemName, string ItemDescription, uint OwnerMask, uint NextOwnerMask, uint GroupMask, uint EveryoneMask, uint BaseMask, byte saleType, int salePrice)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAgentOffline(UUID[] agentIDs)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAgentOnline(UUID[] agentIDs)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAdminResponse(UUID Token, uint AdminLevel)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendGroupMembership(GroupMembershipData[] GroupMembership)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendGroupNameReply(UUID groupLLUID, string GroupName)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendJoinGroupReply(UUID groupID, bool success)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendEjectGroupMemberReply(UUID agentID, UUID groupID, bool success)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendLeaveGroupReply(UUID groupID, bool success)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendCreateGroupReply(UUID groupID, bool success, string message)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendLandStatReply(uint reportType, uint requestFlags, uint resultCount, LandStatReportItem[] lsrpia)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendScriptRunningReply(UUID objectID, UUID itemID, bool running)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAsset(AssetRequestToClient req)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendTexture(AssetBase TextureAsset)
- {
- throw new System.NotImplementedException();
- }
-
- public byte[] GetThrottlesPacked(float multiplier)
- {
- throw new System.NotImplementedException();
- }
-
- public event ViewerEffectEventHandler OnViewerEffect;
- public event Action OnLogout;
- public event Action OnConnectionClosed;
- public void SendBlueBoxMessage(UUID FromAvatarID, string FromAvatarName, string Message)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendLogoutPacket()
- {
- throw new System.NotImplementedException();
- }
-
- public EndPoint GetClientEP()
- {
- throw new System.NotImplementedException();
- }
-
- public ClientInfo GetClientInfo()
- {
- throw new System.NotImplementedException();
- }
-
- public void SetClientInfo(ClientInfo info)
- {
- throw new System.NotImplementedException();
- }
-
- public void SetClientOption(string option, string value)
- {
- throw new System.NotImplementedException();
- }
-
- public string GetClientOption(string option)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendSetFollowCamProperties(UUID objectID, SortedDictionary parameters)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendClearFollowCamProperties(UUID objectID)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendRegionHandle(UUID regoinID, ulong handle)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendParcelInfo(RegionInfo info, LandData land, UUID parcelID, uint x, uint y)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendScriptTeleportRequest(string objName, string simName, Vector3 pos, Vector3 lookAt)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendDirPlacesReply(UUID queryID, DirPlacesReplyData[] data)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendDirPeopleReply(UUID queryID, DirPeopleReplyData[] data)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendDirEventsReply(UUID queryID, DirEventsReplyData[] data)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendDirGroupsReply(UUID queryID, DirGroupsReplyData[] data)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendDirClassifiedReply(UUID queryID, DirClassifiedReplyData[] data)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendDirLandReply(UUID queryID, DirLandReplyData[] data)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendDirPopularReply(UUID queryID, DirPopularReplyData[] data)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendEventInfoReply(EventData info)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendMapItemReply(mapItemReply[] replies, uint mapitemtype, uint flags)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAvatarGroupsReply(UUID avatarID, GroupMembershipData[] data)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendOfferCallingCard(UUID srcID, UUID transactionID)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAcceptCallingCard(UUID transactionID)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendDeclineCallingCard(UUID transactionID)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendTerminateFriend(UUID exFriendID)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAvatarClassifiedReply(UUID targetID, UUID[] classifiedID, string[] name)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendClassifiedInfoReply(UUID classifiedID, UUID creatorID, uint creationDate, uint expirationDate, uint category, string name, string description, UUID parcelID, uint parentEstate, UUID snapshotID, string simName, Vector3 globalPos, string parcelName, byte classifiedFlags, int price)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAgentDropGroup(UUID groupID)
- {
- throw new System.NotImplementedException();
- }
-
- public void RefreshGroupMembership()
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAvatarNotesReply(UUID targetID, string text)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAvatarPicksReply(UUID targetID, Dictionary picks)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendPickInfoReply(UUID pickID, UUID creatorID, bool topPick, UUID parcelID, string name, string desc, UUID snapshotID, string user, string originalName, string simName, Vector3 posGlobal, int sortOrder, bool enabled)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAvatarClassifiedReply(UUID targetID, Dictionary classifieds)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendParcelDwellReply(int localID, UUID parcelID, float dwell)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendUserInfoReply(bool imViaEmail, bool visible, string email)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendUseCachedMuteList()
- {
- throw new System.NotImplementedException();
- }
-
- public void SendMuteListUpdate(string filename)
- {
- throw new System.NotImplementedException();
- }
-
- public void KillEndDone()
- {
- throw new System.NotImplementedException();
- }
-
- public bool AddGenericPacketHandler(string MethodName, GenericMessage handler)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendRebakeAvatarTextures(UUID textureID)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendAvatarInterestsReply(UUID avatarID, uint wantMask, string wantText, uint skillsMask, string skillsText, string languages)
- {
- throw new System.NotImplementedException();
- }
-
- public void SendGroupAccountingDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID, int amt)
- {
- }
-
- public void SendGroupAccountingSummary(IClientAPI sender,UUID groupID, uint moneyAmt, int totalTier, int usedTier)
- {
- }
-
- public void SendGroupTransactionsSummaryDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID,int amt)
- {
- }
-
- public void SendGroupVoteHistory(UUID groupID, UUID transactionID, GroupVoteHistory[] Votes)
- {
- }
-
- public void SendGroupActiveProposals(UUID groupID, UUID transactionID, GroupActiveProposals[] Proposals)
- {
- }
-
- public void SendChangeUserRights(UUID agentID, UUID friendID, int rights)
- {
- }
-
- public void SendTextBoxRequest(string message, int chatChannel, string objectname, string ownerFirstName, string ownerLastName, UUID objectId)
- {
- }
-
- public void StopFlying(ISceneEntity presence)
- {
- }
-
- #endregion
- }
-}
diff --git a/OpenSim/Client/Sirikata/Protocol/MessageHeader.cs b/OpenSim/Client/Sirikata/Protocol/MessageHeader.cs
deleted file mode 100644
index 22e10f778d..0000000000
--- a/OpenSim/Client/Sirikata/Protocol/MessageHeader.cs
+++ /dev/null
@@ -1,630 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-
-using pb = global::Google.ProtocolBuffers;
-using pbc = global::Google.ProtocolBuffers.Collections;
-using pbd = global::Google.ProtocolBuffers.Descriptors;
-using scg = global::System.Collections.Generic;
-namespace Sirikata.Protocol._PBJ_Internal {
-
- public static partial class MessageHeader {
-
- #region Extension registration
- public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
- }
- #endregion
- #region Static variables
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_Header__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_Header__FieldAccessorTable;
- #endregion
- #region Descriptor
- public static pbd::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbd::FileDescriptor descriptor;
-
- static MessageHeader() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- "ChNNZXNzYWdlSGVhZGVyLnByb3RvEh9TaXJpa2F0YS5Qcm90b2NvbC5fUEJK" +
- "X0ludGVybmFsIooDCgZIZWFkZXISFQoNc291cmNlX29iamVjdBgBIAEoDBIT" +
- "Cgtzb3VyY2VfcG9ydBgDIAEoDRIVCgxzb3VyY2Vfc3BhY2UYgAwgASgMEhoK" +
- "EmRlc3RpbmF0aW9uX29iamVjdBgCIAEoDBIYChBkZXN0aW5hdGlvbl9wb3J0" +
- "GAQgASgNEhoKEWRlc3RpbmF0aW9uX3NwYWNlGIEMIAEoDBIKCgJpZBgHIAEo" +
- "AxIQCghyZXBseV9pZBgIIAEoAxJMCg1yZXR1cm5fc3RhdHVzGIAOIAEoDjI0" +
- "LlNpcmlrYXRhLlByb3RvY29sLl9QQkpfSW50ZXJuYWwuSGVhZGVyLlJldHVy" +
- "blN0YXR1cyJ/CgxSZXR1cm5TdGF0dXMSCwoHU1VDQ0VTUxAAEhMKD05FVFdP" +
- "UktfRkFJTFVSRRABEhMKD1RJTUVPVVRfRkFJTFVSRRADEhIKDlBST1RPQ09M" +
- "X0VSUk9SEAQSEAoMUE9SVF9GQUlMVVJFEAUSEgoOVU5LTk9XTl9PQkpFQ1QQ" +
- "Bg==");
- pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
- descriptor = root;
- internal__static_Sirikata_Protocol__PBJ_Internal_Header__Descriptor = Descriptor.MessageTypes[0];
- internal__static_Sirikata_Protocol__PBJ_Internal_Header__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_Header__Descriptor,
- new string[] { "SourceObject", "SourcePort", "SourceSpace", "DestinationObject", "DestinationPort", "DestinationSpace", "Id", "ReplyId", "ReturnStatus", });
- return null;
- };
- pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
- new pbd::FileDescriptor[] {
- }, assigner);
- }
- #endregion
-
- }
- #region Messages
- public sealed partial class Header : pb::GeneratedMessage {
- private static readonly Header defaultInstance = new Builder().BuildPartial();
- public static Header DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override Header DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override Header ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Protocol._PBJ_Internal.MessageHeader.internal__static_Sirikata_Protocol__PBJ_Internal_Header__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
- get { return global::Sirikata.Protocol._PBJ_Internal.MessageHeader.internal__static_Sirikata_Protocol__PBJ_Internal_Header__FieldAccessorTable; }
- }
-
- #region Nested types
- public static class Types {
- public enum ReturnStatus {
- SUCCESS = 0,
- NETWORK_FAILURE = 1,
- TIMEOUT_FAILURE = 3,
- PROTOCOL_ERROR = 4,
- PORT_FAILURE = 5,
- UNKNOWN_OBJECT = 6,
- }
-
- }
- #endregion
-
- public const int SourceObjectFieldNumber = 1;
- private bool hasSourceObject;
- private pb::ByteString sourceObject_ = pb::ByteString.Empty;
- public bool HasSourceObject {
- get { return hasSourceObject; }
- }
- public pb::ByteString SourceObject {
- get { return sourceObject_; }
- }
-
- public const int SourcePortFieldNumber = 3;
- private bool hasSourcePort;
- private uint sourcePort_ = 0;
- public bool HasSourcePort {
- get { return hasSourcePort; }
- }
- [global::System.CLSCompliant(false)]
- public uint SourcePort {
- get { return sourcePort_; }
- }
-
- public const int SourceSpaceFieldNumber = 1536;
- private bool hasSourceSpace;
- private pb::ByteString sourceSpace_ = pb::ByteString.Empty;
- public bool HasSourceSpace {
- get { return hasSourceSpace; }
- }
- public pb::ByteString SourceSpace {
- get { return sourceSpace_; }
- }
-
- public const int DestinationObjectFieldNumber = 2;
- private bool hasDestinationObject;
- private pb::ByteString destinationObject_ = pb::ByteString.Empty;
- public bool HasDestinationObject {
- get { return hasDestinationObject; }
- }
- public pb::ByteString DestinationObject {
- get { return destinationObject_; }
- }
-
- public const int DestinationPortFieldNumber = 4;
- private bool hasDestinationPort;
- private uint destinationPort_ = 0;
- public bool HasDestinationPort {
- get { return hasDestinationPort; }
- }
- [global::System.CLSCompliant(false)]
- public uint DestinationPort {
- get { return destinationPort_; }
- }
-
- public const int DestinationSpaceFieldNumber = 1537;
- private bool hasDestinationSpace;
- private pb::ByteString destinationSpace_ = pb::ByteString.Empty;
- public bool HasDestinationSpace {
- get { return hasDestinationSpace; }
- }
- public pb::ByteString DestinationSpace {
- get { return destinationSpace_; }
- }
-
- public const int IdFieldNumber = 7;
- private bool hasId;
- private long id_ = 0L;
- public bool HasId {
- get { return hasId; }
- }
- public long Id {
- get { return id_; }
- }
-
- public const int ReplyIdFieldNumber = 8;
- private bool hasReplyId;
- private long replyId_ = 0L;
- public bool HasReplyId {
- get { return hasReplyId; }
- }
- public long ReplyId {
- get { return replyId_; }
- }
-
- public const int ReturnStatusFieldNumber = 1792;
- private bool hasReturnStatus;
- private global::Sirikata.Protocol._PBJ_Internal.Header.Types.ReturnStatus returnStatus_ = global::Sirikata.Protocol._PBJ_Internal.Header.Types.ReturnStatus.SUCCESS;
- public bool HasReturnStatus {
- get { return hasReturnStatus; }
- }
- public global::Sirikata.Protocol._PBJ_Internal.Header.Types.ReturnStatus ReturnStatus {
- get { return returnStatus_; }
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- if (HasSourceObject) {
- output.WriteBytes(1, SourceObject);
- }
- if (HasDestinationObject) {
- output.WriteBytes(2, DestinationObject);
- }
- if (HasSourcePort) {
- output.WriteUInt32(3, SourcePort);
- }
- if (HasDestinationPort) {
- output.WriteUInt32(4, DestinationPort);
- }
- if (HasId) {
- output.WriteInt64(7, Id);
- }
- if (HasReplyId) {
- output.WriteInt64(8, ReplyId);
- }
- if (HasSourceSpace) {
- output.WriteBytes(1536, SourceSpace);
- }
- if (HasDestinationSpace) {
- output.WriteBytes(1537, DestinationSpace);
- }
- if (HasReturnStatus) {
- output.WriteEnum(1792, (int) ReturnStatus);
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (HasSourceObject) {
- size += pb::CodedOutputStream.ComputeBytesSize(1, SourceObject);
- }
- if (HasSourcePort) {
- size += pb::CodedOutputStream.ComputeUInt32Size(3, SourcePort);
- }
- if (HasSourceSpace) {
- size += pb::CodedOutputStream.ComputeBytesSize(1536, SourceSpace);
- }
- if (HasDestinationObject) {
- size += pb::CodedOutputStream.ComputeBytesSize(2, DestinationObject);
- }
- if (HasDestinationPort) {
- size += pb::CodedOutputStream.ComputeUInt32Size(4, DestinationPort);
- }
- if (HasDestinationSpace) {
- size += pb::CodedOutputStream.ComputeBytesSize(1537, DestinationSpace);
- }
- if (HasId) {
- size += pb::CodedOutputStream.ComputeInt64Size(7, Id);
- }
- if (HasReplyId) {
- size += pb::CodedOutputStream.ComputeInt64Size(8, ReplyId);
- }
- if (HasReturnStatus) {
- size += pb::CodedOutputStream.ComputeEnumSize(1792, (int) ReturnStatus);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static Header ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Header ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Header ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Header ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Header ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Header ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Header ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static Header ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static Header ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Header ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(Header prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- Header result = new Header();
-
- protected override Header MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new Header();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Protocol._PBJ_Internal.Header.Descriptor; }
- }
-
- public override Header DefaultInstanceForType {
- get { return global::Sirikata.Protocol._PBJ_Internal.Header.DefaultInstance; }
- }
-
- public override Header BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- Header returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is Header) {
- return MergeFrom((Header) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(Header other) {
- if (other == global::Sirikata.Protocol._PBJ_Internal.Header.DefaultInstance) return this;
- if (other.HasSourceObject) {
- SourceObject = other.SourceObject;
- }
- if (other.HasSourcePort) {
- SourcePort = other.SourcePort;
- }
- if (other.HasSourceSpace) {
- SourceSpace = other.SourceSpace;
- }
- if (other.HasDestinationObject) {
- DestinationObject = other.DestinationObject;
- }
- if (other.HasDestinationPort) {
- DestinationPort = other.DestinationPort;
- }
- if (other.HasDestinationSpace) {
- DestinationSpace = other.DestinationSpace;
- }
- if (other.HasId) {
- Id = other.Id;
- }
- if (other.HasReplyId) {
- ReplyId = other.ReplyId;
- }
- if (other.HasReturnStatus) {
- ReturnStatus = other.ReturnStatus;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 10: {
- SourceObject = input.ReadBytes();
- break;
- }
- case 18: {
- DestinationObject = input.ReadBytes();
- break;
- }
- case 24: {
- SourcePort = input.ReadUInt32();
- break;
- }
- case 32: {
- DestinationPort = input.ReadUInt32();
- break;
- }
- case 56: {
- Id = input.ReadInt64();
- break;
- }
- case 64: {
- ReplyId = input.ReadInt64();
- break;
- }
- case 12290: {
- SourceSpace = input.ReadBytes();
- break;
- }
- case 12298: {
- DestinationSpace = input.ReadBytes();
- break;
- }
- case 14336: {
- int rawValue = input.ReadEnum();
- if (!global::System.Enum.IsDefined(typeof(global::Sirikata.Protocol._PBJ_Internal.Header.Types.ReturnStatus), rawValue)) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- unknownFields.MergeVarintField(1792, (ulong) rawValue);
- } else {
- ReturnStatus = (global::Sirikata.Protocol._PBJ_Internal.Header.Types.ReturnStatus) rawValue;
- }
- break;
- }
- }
- }
- }
-
-
- public bool HasSourceObject {
- get { return result.HasSourceObject; }
- }
- public pb::ByteString SourceObject {
- get { return result.SourceObject; }
- set { SetSourceObject(value); }
- }
- public Builder SetSourceObject(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasSourceObject = true;
- result.sourceObject_ = value;
- return this;
- }
- public Builder ClearSourceObject() {
- result.hasSourceObject = false;
- result.sourceObject_ = pb::ByteString.Empty;
- return this;
- }
-
- public bool HasSourcePort {
- get { return result.HasSourcePort; }
- }
- [global::System.CLSCompliant(false)]
- public uint SourcePort {
- get { return result.SourcePort; }
- set { SetSourcePort(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetSourcePort(uint value) {
- result.hasSourcePort = true;
- result.sourcePort_ = value;
- return this;
- }
- public Builder ClearSourcePort() {
- result.hasSourcePort = false;
- result.sourcePort_ = 0;
- return this;
- }
-
- public bool HasSourceSpace {
- get { return result.HasSourceSpace; }
- }
- public pb::ByteString SourceSpace {
- get { return result.SourceSpace; }
- set { SetSourceSpace(value); }
- }
- public Builder SetSourceSpace(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasSourceSpace = true;
- result.sourceSpace_ = value;
- return this;
- }
- public Builder ClearSourceSpace() {
- result.hasSourceSpace = false;
- result.sourceSpace_ = pb::ByteString.Empty;
- return this;
- }
-
- public bool HasDestinationObject {
- get { return result.HasDestinationObject; }
- }
- public pb::ByteString DestinationObject {
- get { return result.DestinationObject; }
- set { SetDestinationObject(value); }
- }
- public Builder SetDestinationObject(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasDestinationObject = true;
- result.destinationObject_ = value;
- return this;
- }
- public Builder ClearDestinationObject() {
- result.hasDestinationObject = false;
- result.destinationObject_ = pb::ByteString.Empty;
- return this;
- }
-
- public bool HasDestinationPort {
- get { return result.HasDestinationPort; }
- }
- [global::System.CLSCompliant(false)]
- public uint DestinationPort {
- get { return result.DestinationPort; }
- set { SetDestinationPort(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetDestinationPort(uint value) {
- result.hasDestinationPort = true;
- result.destinationPort_ = value;
- return this;
- }
- public Builder ClearDestinationPort() {
- result.hasDestinationPort = false;
- result.destinationPort_ = 0;
- return this;
- }
-
- public bool HasDestinationSpace {
- get { return result.HasDestinationSpace; }
- }
- public pb::ByteString DestinationSpace {
- get { return result.DestinationSpace; }
- set { SetDestinationSpace(value); }
- }
- public Builder SetDestinationSpace(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasDestinationSpace = true;
- result.destinationSpace_ = value;
- return this;
- }
- public Builder ClearDestinationSpace() {
- result.hasDestinationSpace = false;
- result.destinationSpace_ = pb::ByteString.Empty;
- return this;
- }
-
- public bool HasId {
- get { return result.HasId; }
- }
- public long Id {
- get { return result.Id; }
- set { SetId(value); }
- }
- public Builder SetId(long value) {
- result.hasId = true;
- result.id_ = value;
- return this;
- }
- public Builder ClearId() {
- result.hasId = false;
- result.id_ = 0L;
- return this;
- }
-
- public bool HasReplyId {
- get { return result.HasReplyId; }
- }
- public long ReplyId {
- get { return result.ReplyId; }
- set { SetReplyId(value); }
- }
- public Builder SetReplyId(long value) {
- result.hasReplyId = true;
- result.replyId_ = value;
- return this;
- }
- public Builder ClearReplyId() {
- result.hasReplyId = false;
- result.replyId_ = 0L;
- return this;
- }
-
- public bool HasReturnStatus {
- get { return result.HasReturnStatus; }
- }
- public global::Sirikata.Protocol._PBJ_Internal.Header.Types.ReturnStatus ReturnStatus {
- get { return result.ReturnStatus; }
- set { SetReturnStatus(value); }
- }
- public Builder SetReturnStatus(global::Sirikata.Protocol._PBJ_Internal.Header.Types.ReturnStatus value) {
- result.hasReturnStatus = true;
- result.returnStatus_ = value;
- return this;
- }
- public Builder ClearReturnStatus() {
- result.hasReturnStatus = false;
- result.returnStatus_ = global::Sirikata.Protocol._PBJ_Internal.Header.Types.ReturnStatus.SUCCESS;
- return this;
- }
- }
- static Header() {
- object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.MessageHeader.Descriptor, null);
- }
- }
-
- #endregion
-
-}
diff --git a/OpenSim/Client/Sirikata/Protocol/MessageHeader.pbj.cs b/OpenSim/Client/Sirikata/Protocol/MessageHeader.pbj.cs
deleted file mode 100644
index fb4963fc93..0000000000
--- a/OpenSim/Client/Sirikata/Protocol/MessageHeader.pbj.cs
+++ /dev/null
@@ -1,339 +0,0 @@
-/*
- * Copyright (c) Contributors, http://opensimulator.org/
- * See CONTRIBUTORS.TXT for a full list of copyright holders.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of the OpenSimulator Project nor the
- * names of its contributors may be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-using pbd = global::Google.ProtocolBuffers.Descriptors;
-using pb = global::Google.ProtocolBuffers;
-namespace Sirikata.Protocol {
- public class Header : PBJ.IMessage {
- protected _PBJ_Internal.Header super;
- public _PBJ_Internal.Header _PBJSuper{ get { return super;} }
- public Header() {
- super=new _PBJ_Internal.Header();
- }
- public Header(_PBJ_Internal.Header reference) {
- super=reference;
- }
- public static Header defaultInstance= new Header (_PBJ_Internal.Header.DefaultInstance);
- public static Header DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.Header.Descriptor; } }
- public static class Types {
- public enum ReturnStatus {
- SUCCESS=_PBJ_Internal.Header.Types.ReturnStatus.SUCCESS,
- NETWORK_FAILURE=_PBJ_Internal.Header.Types.ReturnStatus.NETWORK_FAILURE,
- TIMEOUT_FAILURE=_PBJ_Internal.Header.Types.ReturnStatus.TIMEOUT_FAILURE,
- PROTOCOL_ERROR=_PBJ_Internal.Header.Types.ReturnStatus.PROTOCOL_ERROR,
- PORT_FAILURE=_PBJ_Internal.Header.Types.ReturnStatus.PORT_FAILURE,
- UNKNOWN_OBJECT=_PBJ_Internal.Header.Types.ReturnStatus.UNKNOWN_OBJECT
- };
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false;
- }
- public const int SourceObjectFieldTag=1;
- public bool HasSourceObject{ get {return super.HasSourceObject&&PBJ._PBJ.ValidateUuid(super.SourceObject);} }
- public PBJ.UUID SourceObject{ get {
- if (HasSourceObject) {
- return PBJ._PBJ.CastUuid(super.SourceObject);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- }
- public const int SourcePortFieldTag=3;
- public bool HasSourcePort{ get {return super.HasSourcePort&&PBJ._PBJ.ValidateUint32(super.SourcePort);} }
- public uint SourcePort{ get {
- if (HasSourcePort) {
- return PBJ._PBJ.CastUint32(super.SourcePort);
- } else {
- return PBJ._PBJ.CastUint32();
- }
- }
- }
- public const int SourceSpaceFieldTag=1536;
- public bool HasSourceSpace{ get {return super.HasSourceSpace&&PBJ._PBJ.ValidateUuid(super.SourceSpace);} }
- public PBJ.UUID SourceSpace{ get {
- if (HasSourceSpace) {
- return PBJ._PBJ.CastUuid(super.SourceSpace);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- }
- public const int DestinationObjectFieldTag=2;
- public bool HasDestinationObject{ get {return super.HasDestinationObject&&PBJ._PBJ.ValidateUuid(super.DestinationObject);} }
- public PBJ.UUID DestinationObject{ get {
- if (HasDestinationObject) {
- return PBJ._PBJ.CastUuid(super.DestinationObject);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- }
- public const int DestinationPortFieldTag=4;
- public bool HasDestinationPort{ get {return super.HasDestinationPort&&PBJ._PBJ.ValidateUint32(super.DestinationPort);} }
- public uint DestinationPort{ get {
- if (HasDestinationPort) {
- return PBJ._PBJ.CastUint32(super.DestinationPort);
- } else {
- return PBJ._PBJ.CastUint32();
- }
- }
- }
- public const int DestinationSpaceFieldTag=1537;
- public bool HasDestinationSpace{ get {return super.HasDestinationSpace&&PBJ._PBJ.ValidateUuid(super.DestinationSpace);} }
- public PBJ.UUID DestinationSpace{ get {
- if (HasDestinationSpace) {
- return PBJ._PBJ.CastUuid(super.DestinationSpace);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- }
- public const int IdFieldTag=7;
- public bool HasId{ get {return super.HasId&&PBJ._PBJ.ValidateInt64(super.Id);} }
- public long Id{ get {
- if (HasId) {
- return PBJ._PBJ.CastInt64(super.Id);
- } else {
- return PBJ._PBJ.CastInt64();
- }
- }
- }
- public const int ReplyIdFieldTag=8;
- public bool HasReplyId{ get {return super.HasReplyId&&PBJ._PBJ.ValidateInt64(super.ReplyId);} }
- public long ReplyId{ get {
- if (HasReplyId) {
- return PBJ._PBJ.CastInt64(super.ReplyId);
- } else {
- return PBJ._PBJ.CastInt64();
- }
- }
- }
- public const int ReturnStatusFieldTag=1792;
- public bool HasReturnStatus{ get {return super.HasReturnStatus;} }
- public Types.ReturnStatus ReturnStatus{ get {
- if (HasReturnStatus) {
- return (Types.ReturnStatus)super.ReturnStatus;
- } else {
- return new Types.ReturnStatus();
- }
- }
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(Header prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static Header ParseFrom(pb::ByteString data) {
- return new Header(_PBJ_Internal.Header.ParseFrom(data));
- }
- public static Header ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new Header(_PBJ_Internal.Header.ParseFrom(data,er));
- }
- public static Header ParseFrom(byte[] data) {
- return new Header(_PBJ_Internal.Header.ParseFrom(data));
- }
- public static Header ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new Header(_PBJ_Internal.Header.ParseFrom(data,er));
- }
- public static Header ParseFrom(global::System.IO.Stream data) {
- return new Header(_PBJ_Internal.Header.ParseFrom(data));
- }
- public static Header ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new Header(_PBJ_Internal.Header.ParseFrom(data,er));
- }
- public static Header ParseFrom(pb::CodedInputStream data) {
- return new Header(_PBJ_Internal.Header.ParseFrom(data));
- }
- public static Header ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new Header(_PBJ_Internal.Header.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.Header.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.Header.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.Header.Builder();}
- public Builder(_PBJ_Internal.Header.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(Header prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public Header BuildPartial() {return new Header(super.BuildPartial());}
- public Header Build() {if (_HasAllPBJFields) return new Header(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return Header.Descriptor; } }
- public Builder ClearSourceObject() { super.ClearSourceObject();return this;}
- public const int SourceObjectFieldTag=1;
- public bool HasSourceObject{ get {return super.HasSourceObject&&PBJ._PBJ.ValidateUuid(super.SourceObject);} }
- public PBJ.UUID SourceObject{ get {
- if (HasSourceObject) {
- return PBJ._PBJ.CastUuid(super.SourceObject);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- set {
- super.SourceObject=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearSourcePort() { super.ClearSourcePort();return this;}
- public const int SourcePortFieldTag=3;
- public bool HasSourcePort{ get {return super.HasSourcePort&&PBJ._PBJ.ValidateUint32(super.SourcePort);} }
- public uint SourcePort{ get {
- if (HasSourcePort) {
- return PBJ._PBJ.CastUint32(super.SourcePort);
- } else {
- return PBJ._PBJ.CastUint32();
- }
- }
- set {
- super.SourcePort=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearSourceSpace() { super.ClearSourceSpace();return this;}
- public const int SourceSpaceFieldTag=1536;
- public bool HasSourceSpace{ get {return super.HasSourceSpace&&PBJ._PBJ.ValidateUuid(super.SourceSpace);} }
- public PBJ.UUID SourceSpace{ get {
- if (HasSourceSpace) {
- return PBJ._PBJ.CastUuid(super.SourceSpace);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- set {
- super.SourceSpace=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearDestinationObject() { super.ClearDestinationObject();return this;}
- public const int DestinationObjectFieldTag=2;
- public bool HasDestinationObject{ get {return super.HasDestinationObject&&PBJ._PBJ.ValidateUuid(super.DestinationObject);} }
- public PBJ.UUID DestinationObject{ get {
- if (HasDestinationObject) {
- return PBJ._PBJ.CastUuid(super.DestinationObject);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- set {
- super.DestinationObject=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearDestinationPort() { super.ClearDestinationPort();return this;}
- public const int DestinationPortFieldTag=4;
- public bool HasDestinationPort{ get {return super.HasDestinationPort&&PBJ._PBJ.ValidateUint32(super.DestinationPort);} }
- public uint DestinationPort{ get {
- if (HasDestinationPort) {
- return PBJ._PBJ.CastUint32(super.DestinationPort);
- } else {
- return PBJ._PBJ.CastUint32();
- }
- }
- set {
- super.DestinationPort=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearDestinationSpace() { super.ClearDestinationSpace();return this;}
- public const int DestinationSpaceFieldTag=1537;
- public bool HasDestinationSpace{ get {return super.HasDestinationSpace&&PBJ._PBJ.ValidateUuid(super.DestinationSpace);} }
- public PBJ.UUID DestinationSpace{ get {
- if (HasDestinationSpace) {
- return PBJ._PBJ.CastUuid(super.DestinationSpace);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- set {
- super.DestinationSpace=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearId() { super.ClearId();return this;}
- public const int IdFieldTag=7;
- public bool HasId{ get {return super.HasId&&PBJ._PBJ.ValidateInt64(super.Id);} }
- public long Id{ get {
- if (HasId) {
- return PBJ._PBJ.CastInt64(super.Id);
- } else {
- return PBJ._PBJ.CastInt64();
- }
- }
- set {
- super.Id=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearReplyId() { super.ClearReplyId();return this;}
- public const int ReplyIdFieldTag=8;
- public bool HasReplyId{ get {return super.HasReplyId&&PBJ._PBJ.ValidateInt64(super.ReplyId);} }
- public long ReplyId{ get {
- if (HasReplyId) {
- return PBJ._PBJ.CastInt64(super.ReplyId);
- } else {
- return PBJ._PBJ.CastInt64();
- }
- }
- set {
- super.ReplyId=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearReturnStatus() { super.ClearReturnStatus();return this;}
- public const int ReturnStatusFieldTag=1792;
- public bool HasReturnStatus{ get {return super.HasReturnStatus;} }
- public Types.ReturnStatus ReturnStatus{ get {
- if (HasReturnStatus) {
- return (Types.ReturnStatus)super.ReturnStatus;
- } else {
- return new Types.ReturnStatus();
- }
- }
- set {
- super.ReturnStatus=((_PBJ_Internal.Header.Types.ReturnStatus)value);
- }
- }
- }
- }
-}
diff --git a/OpenSim/Client/Sirikata/Protocol/PBJ.cs b/OpenSim/Client/Sirikata/Protocol/PBJ.cs
deleted file mode 100644
index 9b1951a6b1..0000000000
--- a/OpenSim/Client/Sirikata/Protocol/PBJ.cs
+++ /dev/null
@@ -1,2104 +0,0 @@
-/*
- * Copyright (c) Contributors, http://opensimulator.org/
- * See CONTRIBUTORS.TXT for a full list of copyright holders.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of the OpenSimulator Project nor the
- * names of its contributors may be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-using System;
-namespace PBJ
-{
-
- public class IMessage
- {
- public virtual Google.ProtocolBuffers.IMessage _PBJISuper { get { return null; } }
- protected virtual bool _HasAllPBJFields { get { return true; } }
- public void WriteTo(Google.ProtocolBuffers.CodedOutputStream output)
- {
- _PBJISuper.WriteTo(output);
- }
- public override bool Equals(object other)
- {
- return _PBJISuper.Equals(other);
- }
- public int SerializedSize { get { return _PBJISuper.SerializedSize; } }
-
- public override int GetHashCode() { return _PBJISuper.GetHashCode(); }
-
- public override string ToString()
- {
- return _PBJISuper.ToString();
- }
- public virtual IBuilder WeakCreateBuilderForType() { return null; }
- public Google.ProtocolBuffers.ByteString ToByteString()
- {
- return _PBJISuper.ToByteString();
- }
- public byte[] ToByteArray()
- {
- return _PBJISuper.ToByteArray();
- }
- public void WriteTo(global::System.IO.Stream output)
- {
- _PBJISuper.WriteTo(output);
- }
- // Google.ProtocolBuffers.MessageDescriptor DescriptorForType { get {return _PBJISuper.DescriptorForType;} }
- public Google.ProtocolBuffers.UnknownFieldSet UnknownFields { get { return _PBJISuper.UnknownFields; } }
- public class IBuilder
- {
- public virtual Google.ProtocolBuffers.IBuilder _PBJISuper { get { return null; } }
- protected virtual bool _HasAllPBJFields { get { return true; } }
- }
- }
-
- public struct Vector2f
- {
-
- public float x;
- public float y;
-
-
- public Vector2f(float _x, float _y)
- {
- x = _x; y = _y;
- }
-
- public Vector2f(Vector2f cpy)
- {
- x = cpy.x; y = cpy.y;
- }
-
-
- public Vector2f Negate()
- {
- return new Vector2f(-x, -y);
- }
-
- public Vector2f Add(Vector2f rhs)
- {
- return new Vector2f(x + rhs.x, y + rhs.y);
- }
-
- public Vector2f Subtract(Vector2f rhs)
- {
- return new Vector2f(x - rhs.x, y - rhs.y);
- }
-
- public Vector2f Multiply(Vector2f rhs)
- {
- return new Vector2f(x * rhs.x, y * rhs.y);
- }
-
- public Vector2f Multiply(float s)
- {
- return new Vector2f(x * s, y * s);
- }
-
- public Vector2f Divide(Vector2f rhs)
- {
- return new Vector2f(x / rhs.x, y / rhs.y);
- }
-
- public Vector2f Divide(float s)
- {
- return new Vector2f(x / s, y / s);
- }
-
- public float Dot(Vector2f rhs)
- {
- return (x * rhs.x + y * rhs.y);
- }
-
- public void Normalize()
- {
- float len = Length;
- if (len != 0.0)
- {
- x /= len; y /= len;
- }
- }
-
- public Vector2f Normalized
- {
- get
- {
- Vector2f normed = new Vector2f(this);
- normed.Normalize();
- return normed;
- }
- }
-
- public float SquaredLength
- {
- get
- {
- return (x * x + y * y);
- }
- }
- public float Length
- {
- get
- {
- return (float)Math.Sqrt(SquaredLength);
- }
- }
-
-
- public override string ToString()
- {
- return String.Format("<{0}, {1}>", x, y);
- }
-
-
- public static Vector2f operator -(Vector2f uo)
- {
- return uo.Negate();
- }
-
- public static Vector2f operator +(Vector2f lhs, Vector2f rhs)
- {
- return lhs.Add(rhs);
- }
-
- public static Vector2f operator -(Vector2f lhs, Vector2f rhs)
- {
- return lhs.Subtract(rhs);
- }
-
- public static Vector2f operator *(Vector2f lhs, Vector2f rhs)
- {
- return lhs.Multiply(rhs);
- }
-
- public static Vector2f operator *(Vector2f lhs, float rhs)
- {
- return lhs.Multiply(rhs);
- }
- public static Vector2f operator *(float lhs, Vector2f rhs)
- {
- return rhs.Multiply(lhs);
- }
-
- public static Vector2f operator /(Vector2f lhs, Vector2f rhs)
- {
- return lhs.Divide(rhs);
- }
-
- public static Vector2f operator /(Vector2f lhs, float rhs)
- {
- return lhs.Divide(rhs);
- }
-
- } // struct Vector2f
-
- public struct Vector2d
- {
-
- public double x;
- public double y;
-
-
- public Vector2d(double _x, double _y)
- {
- x = _x; y = _y;
- }
-
- public Vector2d(Vector2d cpy)
- {
- x = cpy.x; y = cpy.y;
- }
-
-
- public Vector2d Negate()
- {
- return new Vector2d(-x, -y);
- }
-
- public Vector2d Add(Vector2d rhs)
- {
- return new Vector2d(x + rhs.x, y + rhs.y);
- }
-
- public Vector2d Subtract(Vector2d rhs)
- {
- return new Vector2d(x - rhs.x, y - rhs.y);
- }
-
- public Vector2d Multiply(Vector2d rhs)
- {
- return new Vector2d(x * rhs.x, y * rhs.y);
- }
-
- public Vector2d Multiply(double s)
- {
- return new Vector2d(x * s, y * s);
- }
-
- public Vector2d Divide(Vector2d rhs)
- {
- return new Vector2d(x / rhs.x, y / rhs.y);
- }
-
- public Vector2d Divide(double s)
- {
- return new Vector2d(x / s, y / s);
- }
-
- public double Dot(Vector2d rhs)
- {
- return (x * rhs.x + y * rhs.y);
- }
-
- public void Normalize()
- {
- double len = Length;
- if (len != 0.0)
- {
- x /= len; y /= len;
- }
- }
-
- public Vector2d Normalized
- {
- get
- {
- Vector2d normed = new Vector2d(this);
- normed.Normalize();
- return normed;
- }
- }
-
- public double SquaredLength
- {
- get
- {
- return (x * x + y * y);
- }
- }
- public double Length
- {
- get
- {
- return Math.Sqrt(SquaredLength);
- }
- }
-
-
- public override string ToString()
- {
- return String.Format("<{0}, {1}>", x, y);
- }
-
-
- public static Vector2d operator -(Vector2d uo)
- {
- return uo.Negate();
- }
-
- public static Vector2d operator +(Vector2d lhs, Vector2d rhs)
- {
- return lhs.Add(rhs);
- }
-
- public static Vector2d operator -(Vector2d lhs, Vector2d rhs)
- {
- return lhs.Subtract(rhs);
- }
-
- public static Vector2d operator *(Vector2d lhs, Vector2d rhs)
- {
- return lhs.Multiply(rhs);
- }
-
- public static Vector2d operator *(Vector2d lhs, double rhs)
- {
- return lhs.Multiply(rhs);
- }
- public static Vector2d operator *(double lhs, Vector2d rhs)
- {
- return rhs.Multiply(lhs);
- }
-
- public static Vector2d operator /(Vector2d lhs, Vector2d rhs)
- {
- return lhs.Divide(rhs);
- }
-
- public static Vector2d operator /(Vector2d lhs, double rhs)
- {
- return lhs.Divide(rhs);
- }
-
- } // struct Vector2d
-
- public struct Vector3f
- {
-
- public float x;
- public float y;
- public float z;
-
-
- public Vector3f(float _x, float _y, float _z)
- {
- x = _x; y = _y; z = _z;
- }
-
- public Vector3f(Vector3f cpy)
- {
- x = cpy.x; y = cpy.y; z = cpy.z;
- }
-
-
- public Vector3f Negate()
- {
- return new Vector3f(-x, -y, -z);
- }
-
- public Vector3f Add(Vector3f rhs)
- {
- return new Vector3f(x + rhs.x, y + rhs.y, z + rhs.z);
- }
-
- public Vector3f Subtract(Vector3f rhs)
- {
- return new Vector3f(x - rhs.x, y - rhs.y, z - rhs.z);
- }
-
- public Vector3f Multiply(Vector3f rhs)
- {
- return new Vector3f(x * rhs.x, y * rhs.y, z * rhs.z);
- }
-
- public Vector3f Multiply(float s)
- {
- return new Vector3f(x * s, y * s, z * s);
- }
-
- public Vector3f Divide(Vector3f rhs)
- {
- return new Vector3f(x / rhs.x, y / rhs.y, z / rhs.z);
- }
-
- public Vector3f Divide(float s)
- {
- return new Vector3f(x / s, y / s, z / s);
- }
-
- public float Dot(Vector3f rhs)
- {
- return (x * rhs.x + y * rhs.y + z * rhs.z);
- }
-
- public Vector3f Cross(Vector3f rhs)
- {
- return new Vector3f(y * rhs.z - z * rhs.y, z * rhs.x - x * rhs.z, x * rhs.y - y * rhs.x);
- }
-
- public void Normalize()
- {
- float len = Length;
- if (len != 0.0)
- {
- x /= len; y /= len; z /= len;
- }
- }
-
- public Vector3f Normalized
- {
- get
- {
- Vector3f normed = new Vector3f(this);
- normed.Normalize();
- return normed;
- }
- }
-
- public float SquaredLength
- {
- get
- {
- return (x * x + y * y + z * z);
- }
- }
- public float Length
- {
- get
- {
- return (float)Math.Sqrt(SquaredLength);
- }
- }
-
-
- public override string ToString()
- {
- return String.Format("<{0}, {1}, {2}>", x, y, z);
- }
-
-
- public static Vector3f operator -(Vector3f uo)
- {
- return uo.Negate();
- }
-
- public static Vector3f operator +(Vector3f lhs, Vector3f rhs)
- {
- return lhs.Add(rhs);
- }
-
- public static Vector3f operator -(Vector3f lhs, Vector3f rhs)
- {
- return lhs.Subtract(rhs);
- }
-
- public static Vector3f operator *(Vector3f lhs, Vector3f rhs)
- {
- return lhs.Multiply(rhs);
- }
-
- public static Vector3f operator *(Vector3f lhs, float rhs)
- {
- return lhs.Multiply(rhs);
- }
- public static Vector3f operator *(float lhs, Vector3f rhs)
- {
- return rhs.Multiply(lhs);
- }
-
- public static Vector3f operator /(Vector3f lhs, Vector3f rhs)
- {
- return lhs.Divide(rhs);
- }
-
- public static Vector3f operator /(Vector3f lhs, float rhs)
- {
- return lhs.Divide(rhs);
- }
-
- } // struct Vector3f
-
- public struct Vector3d
- {
-
- public double x;
- public double y;
- public double z;
-
-
- public Vector3d(double _x, double _y, double _z)
- {
- x = _x; y = _y; z = _z;
- }
-
- public Vector3d(Vector3d cpy)
- {
- x = cpy.x; y = cpy.y; z = cpy.z;
- }
-
-
- public Vector3d Negate()
- {
- return new Vector3d(-x, -y, -z);
- }
-
- public Vector3d Add(Vector3d rhs)
- {
- return new Vector3d(x + rhs.x, y + rhs.y, z + rhs.z);
- }
-
- public Vector3d Subtract(Vector3d rhs)
- {
- return new Vector3d(x - rhs.x, y - rhs.y, z - rhs.z);
- }
-
- public Vector3d Multiply(Vector3d rhs)
- {
- return new Vector3d(x * rhs.x, y * rhs.y, z * rhs.z);
- }
-
- public Vector3d Multiply(double s)
- {
- return new Vector3d(x * s, y * s, z * s);
- }
-
- public Vector3d Divide(Vector3d rhs)
- {
- return new Vector3d(x / rhs.x, y / rhs.y, z / rhs.z);
- }
-
- public Vector3d Divide(double s)
- {
- return new Vector3d(x / s, y / s, z / s);
- }
-
- public double Dot(Vector3d rhs)
- {
- return (x * rhs.x + y * rhs.y + z * rhs.z);
- }
-
- public Vector3d Cross(Vector3d rhs)
- {
- return new Vector3d(y * rhs.z - z * rhs.y, z * rhs.x - x * rhs.z, x * rhs.y - y * rhs.x);
- }
-
- public void Normalize()
- {
- double len = Length;
- if (len != 0.0)
- {
- x /= len; y /= len; z /= len;
- }
- }
-
- public Vector3d Normalized
- {
- get
- {
- Vector3d normed = new Vector3d(this);
- normed.Normalize();
- return normed;
- }
- }
-
- public double SquaredLength
- {
- get
- {
- return (x * x + y * y + z * z);
- }
- }
- public double Length
- {
- get
- {
- return Math.Sqrt(SquaredLength);
- }
- }
-
-
- public override string ToString()
- {
- return String.Format("<{0}, {1}, {2}>", x, y, z);
- }
-
-
- public static Vector3d operator -(Vector3d uo)
- {
- return uo.Negate();
- }
-
- public static Vector3d operator +(Vector3d lhs, Vector3d rhs)
- {
- return lhs.Add(rhs);
- }
-
- public static Vector3d operator -(Vector3d lhs, Vector3d rhs)
- {
- return lhs.Subtract(rhs);
- }
-
- public static Vector3d operator *(Vector3d lhs, Vector3d rhs)
- {
- return lhs.Multiply(rhs);
- }
-
- public static Vector3d operator *(Vector3d lhs, double rhs)
- {
- return lhs.Multiply(rhs);
- }
- public static Vector3d operator *(double lhs, Vector3d rhs)
- {
- return rhs.Multiply(lhs);
- }
-
- public static Vector3d operator /(Vector3d lhs, Vector3d rhs)
- {
- return lhs.Divide(rhs);
- }
-
- public static Vector3d operator /(Vector3d lhs, double rhs)
- {
- return lhs.Divide(rhs);
- }
-
- } // struct Vector3d
-
- public struct Quaternion
- {
-
- public float w;
- public float x;
- public float y;
- public float z;
-
-
- public Quaternion(float _w, float _x, float _y, float _z)
- {
- w = _w; x = _x; y = _y; z = _z;
- }
-
- public Quaternion(Quaternion cpy)
- {
- w = cpy.w; x = cpy.x; y = cpy.y; z = cpy.z;
- }
-
- public static readonly Quaternion Identity = new Quaternion((float)1.0, (float)0.0, (float)0.0, (float)0.0);
-
- public static Quaternion FromAxisAngle(Vector3f axis, float rads)
- {
- float halfAngle = rads * 0.5f;
- float sinHalf = (float)Math.Sin(halfAngle);
- float w = (float)Math.Cos(halfAngle);
- float x = sinHalf * axis.x;
- float y = sinHalf * axis.y;
- float z = sinHalf * axis.z;
- return new Quaternion(w, x, y, z);
- }
-
- public static Quaternion FromAxisAngle(Vector3d axis, float rads)
- {
- float halfAngle = rads * 0.5f;
- float sinHalf = (float)Math.Sin(halfAngle);
- float w = (float)Math.Cos(halfAngle);
- float x = (float)(sinHalf * axis.x);
- float y = (float)(sinHalf * axis.y);
- float z = (float)(sinHalf * axis.z);
- return new Quaternion(w, x, y, z);
- }
-
-
- public Quaternion Add(Quaternion rhs)
- {
- return new Quaternion(w + rhs.w, x + rhs.x, y + rhs.y, z + rhs.z);
- }
-
- public Quaternion Subtract(Quaternion rhs)
- {
- return new Quaternion(w - rhs.w, x - rhs.x, y - rhs.y, z - rhs.z);
- }
-
- public Quaternion Multiply(Quaternion rhs)
- {
- return new Quaternion(
- w * rhs.w - x * rhs.x - y * rhs.y - z * rhs.z,
- w * rhs.x + x * rhs.w + y * rhs.z - z * rhs.y,
- w * rhs.y + y * rhs.w + z * rhs.x - x * rhs.z,
- w * rhs.z + z * rhs.w + x * rhs.y - y * rhs.x
- );
- }
-
- public Vector3f Multiply(Vector3f rhs)
- {
- Vector3f qvec = new Vector3f(x, y, z);
- Vector3f uv = qvec.Cross(rhs);
- Vector3f uuv = qvec.Cross(uv);
- uv *= 2.0f * w;
- uuv *= 2.0f;
-
- return rhs + uv + uuv;
- }
-
- public Vector3d Multiply(Vector3d rhs)
- {
- Vector3d qvec = new Vector3d(x, y, z);
- Vector3d uv = qvec.Cross(rhs);
- Vector3d uuv = qvec.Cross(uv);
- uv *= 2.0f * w;
- uuv *= 2.0f;
-
- return rhs + uv + uuv;
- }
-
- public Quaternion Multiply(float rhs)
- {
- return new Quaternion(w * rhs, x * rhs, y * rhs, z * rhs);
- }
-
- public Quaternion Negate()
- {
- return new Quaternion(-w, -x, -y, -z);
- }
-
- public float Dot(Quaternion rhs)
- {
- return (w * rhs.w + x * rhs.x + y * rhs.y + z * rhs.z);
- }
-
- public float Norm
- {
- get
- {
- return (float)Math.Sqrt(w * w + x * x + y * y + z * z);
- }
- }
-
- public float SquareNorm
- {
- get
- {
- return (w * w + x * x + y * y + z * z);
- }
- }
-
- public void Normalize()
- {
- float len = SquareNorm;
- if (len == 0.0) return;
- float factor = 1.0f / (float)Math.Sqrt(len);
- this *= factor;
- }
-
- public Quaternion Normalized
- {
- get
- {
- Quaternion q = new Quaternion(this);
- q.Normalize();
- return q;
- }
- }
-
- public Quaternion Inverse
- {
- get
- {
- float norm = SquareNorm;
- if (norm > 0.0)
- {
- double invnorm = 1.0 / norm;
- return new Quaternion((float)(w * invnorm), (float)(-x * invnorm), (float)(-y * invnorm), (float)(-z * invnorm));
- }
- else
- return new Quaternion((float)0.0, 0.0f, 0.0f, 0.0f);
- }
- }
-
-
- public override string ToString()
- {
- return String.Format("<{0}, {1}, {2}, {3}>", w, x, y, z);
- }
-
-
-
- public static Quaternion operator -(Quaternion uo)
- {
- return uo.Negate();
- }
-
- public static Quaternion operator +(Quaternion lhs, Quaternion rhs)
- {
- return lhs.Add(rhs);
- }
-
- public static Quaternion operator -(Quaternion lhs, Quaternion rhs)
- {
- return lhs.Subtract(rhs);
- }
-
- public static Vector3f operator *(Quaternion lhs, Vector3f rhs)
- {
- return lhs.Multiply(rhs);
- }
-
- public static Vector3d operator *(Quaternion lhs, Vector3d rhs)
- {
- return lhs.Multiply(rhs);
- }
-
- public static Quaternion operator *(Quaternion lhs, Quaternion rhs)
- {
- return lhs.Multiply(rhs);
- }
-
- public static Quaternion operator *(Quaternion lhs, float rhs)
- {
- return lhs.Multiply(rhs);
- }
-
- public static Quaternion operator *(float lhs, Quaternion rhs)
- {
- return rhs.Multiply(lhs);
- }
-
- } // struct Quaternion
-
-
- public struct Vector4f
- {
-
- public float x;
- public float y;
- public float z;
- public float w;
-
-
- public Vector4f(float _x, float _y, float _z, float _w)
- {
- x = _x; y = _y; z = _z; w = _w;
- }
-
- public Vector4f(Vector4f cpy)
- {
- x = cpy.x; y = cpy.y; z = cpy.z; w = cpy.w;
- }
-
-
- public Vector4f Negate()
- {
- return new Vector4f(-x, -y, -z, -w);
- }
-
- public Vector4f Add(Vector4f rhs)
- {
- return new Vector4f(x + rhs.x, y + rhs.y, z + rhs.z, w + rhs.w);
- }
-
- public Vector4f Subtract(Vector4f rhs)
- {
- return new Vector4f(x - rhs.x, y - rhs.y, z - rhs.z, w - rhs.w);
- }
-
- public Vector4f Multiply(Vector4f rhs)
- {
- return new Vector4f(x * rhs.x, y * rhs.y, z * rhs.z, w * rhs.w);
- }
-
- public Vector4f Multiply(float s)
- {
- return new Vector4f(x * s, y * s, z * s, w * s);
- }
-
- public Vector4f Divide(Vector4f rhs)
- {
- return new Vector4f(x / rhs.x, y / rhs.y, z / rhs.z, w / rhs.w);
- }
-
- public Vector4f Divide(float s)
- {
- return new Vector4f(x / s, y / s, z / s, w / s);
- }
-
- public float Dot(Vector4f rhs)
- {
- return (x * rhs.x + y * rhs.y + z * rhs.z + w * rhs.w);
- }
-
- public void Normalize()
- {
- float len = Length;
- if (len != 0.0)
- {
- x /= len; y /= len; z /= len; w /= len;
- }
- }
-
- public Vector4f Normalized
- {
- get
- {
- Vector4f normed = new Vector4f(this);
- normed.Normalize();
- return normed;
- }
- }
-
- public float SquaredLength
- {
- get
- {
- return (x * x + y * y + z * z + w * w);
- }
- }
- public float Length
- {
- get
- {
- return (float)Math.Sqrt(SquaredLength);
- }
- }
-
-
- public override string ToString()
- {
- return String.Format("<{0}, {1}, {2}, {3}>", x, y, z, w);
- }
-
-
- public static Vector4f operator -(Vector4f uo)
- {
- return uo.Negate();
- }
-
- public static Vector4f operator +(Vector4f lhs, Vector4f rhs)
- {
- return lhs.Add(rhs);
- }
-
- public static Vector4f operator -(Vector4f lhs, Vector4f rhs)
- {
- return lhs.Subtract(rhs);
- }
-
- public static Vector4f operator *(Vector4f lhs, Vector4f rhs)
- {
- return lhs.Multiply(rhs);
- }
-
- public static Vector4f operator *(Vector4f lhs, float rhs)
- {
- return lhs.Multiply(rhs);
- }
- public static Vector4f operator *(float lhs, Vector4f rhs)
- {
- return rhs.Multiply(lhs);
- }
-
- public static Vector4f operator /(Vector4f lhs, Vector4f rhs)
- {
- return lhs.Divide(rhs);
- }
-
- public static Vector4f operator /(Vector4f lhs, float rhs)
- {
- return lhs.Divide(rhs);
- }
-
- } // struct Vector4f
-
-
-
- public struct Vector4d
- {
-
- public double x;
- public double y;
- public double z;
- public double w;
-
-
- public Vector4d(double _x, double _y, double _z, double _w)
- {
- x = _x; y = _y; z = _z; w = _w;
- }
-
- public Vector4d(Vector4d cpy)
- {
- x = cpy.x; y = cpy.y; z = cpy.z; w = cpy.w;
- }
-
-
- public Vector4d Negate()
- {
- return new Vector4d(-x, -y, -z, -w);
- }
-
- public Vector4d Add(Vector4d rhs)
- {
- return new Vector4d(x + rhs.x, y + rhs.y, z + rhs.z, w + rhs.w);
- }
-
- public Vector4d Subtract(Vector4d rhs)
- {
- return new Vector4d(x - rhs.x, y - rhs.y, z - rhs.z, w - rhs.w);
- }
-
- public Vector4d Multiply(Vector4d rhs)
- {
- return new Vector4d(x * rhs.x, y * rhs.y, z * rhs.z, w * rhs.w);
- }
-
- public Vector4d Multiply(double s)
- {
- return new Vector4d(x * s, y * s, z * s, w * s);
- }
-
- public Vector4d Divide(Vector4d rhs)
- {
- return new Vector4d(x / rhs.x, y / rhs.y, z / rhs.z, w / rhs.w);
- }
-
- public Vector4d Divide(double s)
- {
- return new Vector4d(x / s, y / s, z / s, w / s);
- }
-
- public double Dot(Vector4d rhs)
- {
- return (x * rhs.x + y * rhs.y + z * rhs.z + w * rhs.w);
- }
-
- public void Normalize()
- {
- double len = Length;
- if (len != 0.0)
- {
- x /= len; y /= len; z /= len; w /= len;
- }
- }
-
- public Vector4d Normalized
- {
- get
- {
- Vector4d normed = new Vector4d(this);
- normed.Normalize();
- return normed;
- }
- }
-
- public double SquaredLength
- {
- get
- {
- return (x * x + y * y + z * z + w * w);
- }
- }
- public double Length
- {
- get
- {
- return Math.Sqrt(SquaredLength);
- }
- }
-
-
- public override string ToString()
- {
- return String.Format("<{0}, {1}, {2}, {3}>", x, y, z, w);
- }
-
-
- public static Vector4d operator -(Vector4d uo)
- {
- return uo.Negate();
- }
-
- public static Vector4d operator +(Vector4d lhs, Vector4d rhs)
- {
- return lhs.Add(rhs);
- }
-
- public static Vector4d operator -(Vector4d lhs, Vector4d rhs)
- {
- return lhs.Subtract(rhs);
- }
-
- public static Vector4d operator *(Vector4d lhs, Vector4d rhs)
- {
- return lhs.Multiply(rhs);
- }
-
- public static Vector4d operator *(Vector4d lhs, double rhs)
- {
- return lhs.Multiply(rhs);
- }
- public static Vector4d operator *(double lhs, Vector4d rhs)
- {
- return rhs.Multiply(lhs);
- }
-
- public static Vector4d operator /(Vector4d lhs, Vector4d rhs)
- {
- return lhs.Divide(rhs);
- }
-
- public static Vector4d operator /(Vector4d lhs, double rhs)
- {
- return lhs.Divide(rhs);
- }
-
- } // struct Vector4d
-
-
-
- public struct BoundingBox3f3f
- {
- Vector3f mMin;
- Vector3f mDiag;
- public BoundingBox3f3f(float minx, float miny, float minz, float diagx, float diagy, float diagz)
- {
- mMin.x = minx;
- mMin.y = miny;
- mMin.z = minz;
-
- mDiag.x = diagx;
- mDiag.y = diagy;
- mDiag.z = diagz;
- }
- public BoundingBox3f3f(Vector3f min, Vector3f max)
- {
- mMin = min;
- mDiag = (max - min);
- }
- public BoundingBox3f3f(BoundingBox3f3f cpy, Vector3f scale)
- {
- mMin.x = (float)(cpy.mMin.x * scale.x);
- mMin.y = (float)(cpy.mMin.y * scale.y);
- mMin.z = (float)(cpy.mMin.z * scale.z);
-
- mDiag.x = (float)(cpy.mDiag.x * scale.x);
- mDiag.y = (float)(cpy.mDiag.y * scale.y);
- mDiag.z = (float)(cpy.mDiag.z * scale.z);
- }
- public Vector3f Min
- {
- get
- {
- return new Vector3f(mMin.x, mMin.y, mMin.z);
- }
- }
- public Vector3f Max
- {
- get
- {
- return new Vector3f(mMin.x + mDiag.x, mMin.y + mDiag.y, mMin.z + mDiag.z);
- }
- }
-
- public Vector3f Diag
- {
- get
- {
- return new Vector3f(mDiag.x, mDiag.y, mDiag.z);
- }
- }
-
-
- public override string ToString()
- {
- return "[" + this.Min.ToString() + " - " + this.Max.ToString() + "]";
- }
- public BoundingBox3f3f Merge(BoundingBox3f3f other)
- {
- Vector3f thisMax = Max;
- Vector3f otherMax = other.Max;
- bool xless = other.mMin.x > mMin.x;
- bool yless = other.mMin.y > mMin.y;
- bool zless = other.mMin.z > mMin.z;
-
- bool xmore = otherMax.x < thisMax.x;
- bool ymore = otherMax.y < thisMax.y;
- bool zmore = otherMax.z < thisMax.z;
- return new BoundingBox3f3f(xless ? mMin.x : other.mMin.x,
- yless ? mMin.y : other.mMin.y,
- zless ? mMin.z : other.mMin.z,
- xmore ? (xless ? mDiag.x : otherMax.x - mMin.x) : (xless ? thisMax.x - other.mMin.x : other.mDiag.x),
- ymore ? (yless ? mDiag.y : otherMax.y - mMin.y) : (yless ? thisMax.y - other.mMin.y : other.mDiag.y),
- zmore ? (zless ? mDiag.z : otherMax.z - mMin.z) : (zless ? thisMax.z - other.mMin.z : other.mDiag.z));
- }
-
- } // struct BoundingBox
-
- public struct BoundingBox3d3f
- {
- Vector3d mMin;
- Vector3f mDiag;
- public BoundingBox3d3f(double minx, double miny, double minz, float diagx, float diagy, float diagz)
- {
- mMin.x = minx;
- mMin.y = miny;
- mMin.z = minz;
-
- mDiag.x = diagx;
- mDiag.y = diagy;
- mDiag.z = diagz;
- }
- public BoundingBox3d3f(Vector3d min, Vector3f max)
- {
- mMin = min;
-
- mDiag = new Vector3f((float)(max.x - min.x),
- (float)(max.y - min.y),
- (float)(max.z - min.z));
- }
- public BoundingBox3d3f(BoundingBox3d3f cpy, Vector3d scale)
- {
- mMin.x = (double)(cpy.mMin.x * scale.x);
- mMin.y = (double)(cpy.mMin.y * scale.y);
- mMin.z = (double)(cpy.mMin.z * scale.z);
-
- mDiag.x = (float)(cpy.mDiag.x * scale.x);
- mDiag.y = (float)(cpy.mDiag.y * scale.y);
- mDiag.z = (float)(cpy.mDiag.z * scale.z);
- }
- public Vector3d Min
- {
- get
- {
- return new Vector3d(mMin.x, mMin.y, mMin.z);
- }
- }
- public Vector3d Max
- {
- get
- {
- return new Vector3d(mMin.x + mDiag.x, mMin.y + mDiag.y, mMin.z + mDiag.z);
- }
- }
-
- public Vector3d Diag
- {
- get
- {
- return new Vector3d(mDiag.x, mDiag.y, mDiag.z);
- }
- }
-
-
- public override string ToString()
- {
- return "[" + this.Min.ToString() + " - " + this.Max.ToString() + "]";
- }
- public BoundingBox3d3f Merge(BoundingBox3d3f other)
- {
- Vector3d thisMax = Max;
- Vector3d otherMax = other.Max;
- bool xless = other.mMin.x > mMin.x;
- bool yless = other.mMin.y > mMin.y;
- bool zless = other.mMin.z > mMin.z;
-
- bool xmore = otherMax.x < thisMax.x;
- bool ymore = otherMax.y < thisMax.y;
- bool zmore = otherMax.z < thisMax.z;
- return new BoundingBox3d3f(xless ? mMin.x : other.mMin.x,
- yless ? mMin.y : other.mMin.y,
- zless ? mMin.z : other.mMin.z,
- (float)(xmore ? (xless ? mDiag.x : otherMax.x - mMin.x) : (xless ? thisMax.x - other.mMin.x : other.mDiag.x)),
- (float)(ymore ? (yless ? mDiag.y : otherMax.y - mMin.y) : (yless ? thisMax.y - other.mMin.y : other.mDiag.y)),
- (float)(zmore ? (zless ? mDiag.z : otherMax.z - mMin.z) : (zless ? thisMax.z - other.mMin.z : other.mDiag.z)));
- }
-
- } // struct BoundingBox
-
-
-
-
- public struct BoundingSphere3f
- {
- Vector3f mCenter;
- float mRadius;
- public BoundingSphere3f(float x, float y, float z, float r)
- {
- mCenter = new Vector3f(x, y, z);
- mRadius = r;
- }
- public BoundingSphere3f(Vector3f center, float radius)
- {
- mCenter = center;
- mRadius = radius;
- }
- public BoundingSphere3f(BoundingSphere3f cpy, float scale)
- {
- mCenter = cpy.mCenter;
- mRadius = cpy.mRadius * scale;
- }
- public Vector3f Center
- {
- get
- {
- return new Vector3f(mCenter.x, mCenter.y, mCenter.z);
- }
- }
- public float Radius
- {
- get
- {
- return mRadius;
- }
- }
-
- public override string ToString()
- {
- return "[" + this.Center.ToString() + " : " + this.Radius.ToString() + "]";
- }
- } // struct BoundingSphere3f
-
-
-
- public struct BoundingSphere3d
- {
- Vector3d mCenter;
- float mRadius;
- public BoundingSphere3d(double x, double y, double z, float r)
- {
- mCenter.x = x;
- mCenter.y = y;
- mCenter.z = z;
- mRadius = r;
- }
- public BoundingSphere3d(Vector3d center, float radius)
- {
- mCenter = center;
- mRadius = radius;
- }
- public BoundingSphere3d(BoundingSphere3d cpy, float scale)
- {
- mCenter = cpy.mCenter;
- mRadius = cpy.mRadius * scale;
- }
- public Vector3d Center
- {
- get
- {
- return new Vector3d(mCenter.x, mCenter.y, mCenter.z);
- }
- }
- public float Radius
- {
- get
- {
- return mRadius;
- }
- }
-
- public override string ToString()
- {
- return "[" + this.Center.ToString() + " : " + this.Radius.ToString() + "]";
- }
- } // struct BoundingSphere3f
-
- public struct UUID
- {
- ulong mLowOrderBytes;
- ulong mHighOrderBytes;
-
-
- static ulong SetUUIDlow(Google.ProtocolBuffers.ByteString data, int offset)
- {
- ulong LowOrderBytes = 0;
- int shiftVal = 0;
- for (int i = 0; i < 8; ++i)
- {
- ulong temp = data[i];
- LowOrderBytes |= (temp << shiftVal);
- shiftVal += 8;
- }
- return LowOrderBytes;
- }
- static ulong SetUUIDhigh(Google.ProtocolBuffers.ByteString data)
- {
- return SetUUIDlow(data, 8);
- }
- static ulong SetUUIDlow(byte[] data, int offset)
- {
- ulong LowOrderBytes = 0;
- int shiftVal = 0;
- for (int i = 0; i < 8; ++i)
- {
- ulong temp = data[i];
- LowOrderBytes |= (temp << shiftVal);
- shiftVal += 8;
- }
- return LowOrderBytes;
- }
- static ulong SetUUIDhigh(byte[] data)
- {
- return SetUUIDlow(data, 8);
- }
- public bool SetUUID(byte[] data)
- {
- if (data.Length == 16)
- {
- mLowOrderBytes = 0;
- mHighOrderBytes = 0;
- mLowOrderBytes = SetUUIDlow(data, 0);
- mHighOrderBytes = SetUUIDlow(data, 8);
- return true;
- }
- else
- {
- return false;
- }
- }
- public byte[] GetUUID()
- {
- byte[] data = new byte[16];
- int shiftVal = 0;
- for (int i = 0; i < 8; ++i)
- {
- ulong temp = 0xff;
- temp = (mLowOrderBytes & (temp << shiftVal));
- temp = (temp >> shiftVal);
- data[i] = (byte)temp;
- shiftVal += 8;
- }
- shiftVal = 0;
- for (int i = 8; i < 16; ++i)
- {
- ulong temp = 0xff;
- temp = (mHighOrderBytes & (temp << shiftVal));
- temp = (temp >> shiftVal);
- data[i] = (byte)temp;
- shiftVal += 8;
- }
- return data;
- }
-
- public static UUID Empty = new UUID(new byte[16]);
- public UUID(byte[] data)
- {
- if (data.Length != 16)
- {
- throw new System.ArgumentException("UUIDs must be provided 16 bytes");
- }
- mLowOrderBytes = SetUUIDlow(data, 0);
- mHighOrderBytes = SetUUIDhigh(data);
- }
- public UUID(Google.ProtocolBuffers.ByteString data)
- {
- if (data.Length != 16)
- {
- throw new System.ArgumentException("UUIDs must be provided 16 bytes");
- }
- mLowOrderBytes = SetUUIDlow(data, 0);
- mHighOrderBytes = SetUUIDhigh(data);
- }
-
- }
-
-
- public struct SHA256
- {
- ulong mLowOrderBytes;
- ulong mLowMediumOrderBytes;
- ulong mMediumHighOrderBytes;
- ulong mHighOrderBytes;
-
-
- static ulong SetLMH(Google.ProtocolBuffers.ByteString data, int offset)
- {
- ulong LowOrderBytes = 0;
- int shiftVal = 0;
- for (int i = 0; i < 8; ++i)
- {
- ulong temp = data[i];
- LowOrderBytes |= (temp << shiftVal);
- shiftVal += 8;
- }
- return LowOrderBytes;
- }
- static ulong SetLow(Google.ProtocolBuffers.ByteString data)
- {
- return SetLMH(data, 0);
- }
- static ulong SetLowMedium(Google.ProtocolBuffers.ByteString data)
- {
- return SetLMH(data, 8);
- }
- static ulong SetMediumHigh(Google.ProtocolBuffers.ByteString data)
- {
- return SetLMH(data, 16);
- }
- static ulong SetHigh(Google.ProtocolBuffers.ByteString data)
- {
- return SetLMH(data, 24);
- }
- static ulong SetLMH(byte[] data, int offset)
- {
- ulong LowOrderBytes = 0;
- int shiftVal = 0;
- for (int i = 0; i < 8; ++i)
- {
- ulong temp = data[i];
- LowOrderBytes |= (temp << shiftVal);
- shiftVal += 8;
- }
- return LowOrderBytes;
- }
- static ulong SetLow(byte[] data)
- {
- return SetLMH(data, 0);
- }
- static ulong SetLowMedium(byte[] data)
- {
- return SetLMH(data, 8);
- }
- static ulong SetMediumHigh(byte[] data)
- {
- return SetLMH(data, 16);
- }
- static ulong SetHigh(byte[] data)
- {
- return SetLMH(data, 24);
- }
- public bool SetSHA256(byte[] data)
- {
- if (data.Length == 32)
- {
- mLowOrderBytes = SetLow(data);
- mLowMediumOrderBytes = SetLowMedium(data);
- mMediumHighOrderBytes = SetMediumHigh(data);
- mHighOrderBytes = SetHigh(data);
- return true;
- }
- else
- {
- return false;
- }
- }
- public byte[] GetBinaryData()
- {
- byte[] data = new byte[32];
- int shiftVal = 0;
- for (int i = 0; i < 8; ++i)
- {
- ulong temp = 0xff;
- temp = (mLowOrderBytes & (temp << shiftVal));
- temp = (temp >> shiftVal);
- data[i] = (byte)temp;
- shiftVal += 8;
- }
- shiftVal = 0;
- for (int i = 8; i < 16; ++i)
- {
- ulong temp = 0xff;
- temp = (mLowMediumOrderBytes & (temp << shiftVal));
- temp = (temp >> shiftVal);
- data[i] = (byte)temp;
- shiftVal += 8;
- }
- shiftVal = 0;
- for (int i = 16; i < 24; ++i)
- {
- ulong temp = 0xff;
- temp = (mMediumHighOrderBytes & (temp << shiftVal));
- temp = (temp >> shiftVal);
- data[i] = (byte)temp;
- shiftVal += 8;
- }
- shiftVal = 0;
- for (int i = 24; i < 32; ++i)
- {
- ulong temp = 0xff;
- temp = (mHighOrderBytes & (temp << shiftVal));
- temp = (temp >> shiftVal);
- data[i] = (byte)temp;
- shiftVal += 8;
- }
- return data;
- }
-
- public static SHA256 Empty = new SHA256(new byte[32]);
- public SHA256(byte[] data)
- {
- if (data.Length != 32)
- {
- throw new System.ArgumentException("SHA256s must be provided 32 bytes");
- }
- mLowOrderBytes = SetLow(data);
- mLowMediumOrderBytes = SetLowMedium(data);
- mMediumHighOrderBytes = SetMediumHigh(data);
- mHighOrderBytes = SetHigh(data);
- }
- public SHA256(Google.ProtocolBuffers.ByteString data)
- {
- if (data.Length != 32)
- {
- throw new System.ArgumentException("SHA256s must be provided 32 bytes");
- }
- mLowOrderBytes = SetLow(data);
- mLowMediumOrderBytes = SetLowMedium(data);
- mMediumHighOrderBytes = SetMediumHigh(data);
- mHighOrderBytes = SetHigh(data);
- }
-
- }
-
-
-
-
- public struct Time
- {
- ulong usec;
- public Time(ulong usec_since_epoch)
- {
- usec = usec_since_epoch;
- }
- public ulong toMicro()
- {
- return usec;
- }
- }
- public class Duration
- {
- long usec;
- public Duration(long time_since)
- {
- usec = time_since;
- }
- public long toMicro()
- {
- return usec;
- }
- }
-
- class _PBJ
- {
-
- public static bool ValidateBool(bool d)
- {
- return true;
- }
- public static bool ValidateDouble(double d)
- {
- return true;
- }
- public static bool ValidateFloat(float d)
- {
- return true;
- }
- public static bool ValidateUint64(ulong d)
- {
- return true;
- }
- public static bool ValidateUint32(uint d)
- {
- return true;
- }
- public static bool ValidateUint16(ushort d)
- {
- return true;
- }
- public static bool ValidateUint8(byte d)
- {
- return true;
- }
- public static bool ValidateInt64(long d)
- {
- return true;
- }
- public static bool ValidateInt32(int d)
- {
- return true;
- }
- public static bool ValidateInt16(short d)
- {
- return true;
- }
- public static bool ValidateInt8(sbyte d)
- {
- return true;
- }
- public static bool ValidateString(S input)
- {
- return true;
- }
- public static bool ValidateBytes(B input)
- {
- return true;
- }
- public static bool ValidateUuid(Google.ProtocolBuffers.ByteString input)
- {
- return input.Length == 16;
- }
- public static bool ValidateSha256(Google.ProtocolBuffers.ByteString input)
- {
- return input.Length == 32;
- }
- public static bool ValidateAngle(float input)
- {
- return input >= 0 && input <= 3.1415926536 * 2.0;
- }
- public static bool ValidateTime(ulong input)
- {
- return true;
- }
- public static bool ValidateDuration(long input)
- {
- return true;
- }
- public static bool ValidateFlags(ulong input, ulong verification)
- {
- return (input & verification) == input;
- }
-
-
-
-
- public static bool CastBool(bool d)
- {
- return d;
- }
- public static double CastDouble(double d)
- {
- return d;
- }
- public static float CastFloat(float d)
- {
- return d;
- }
- public static ulong CastUint64(ulong d)
- {
- return d;
- }
- public static uint CastUint32(uint d)
- {
- return d;
- }
- public static ushort CastUint16(ushort d)
- {
- return d;
- }
- public static byte CastUint8(byte d)
- {
- return d;
- }
- public static long CastInt64(long d)
- {
- return d;
- }
- public static int CastInt32(int d)
- {
- return d;
- }
- public static short CastInt16(short d)
- {
- return d;
- }
- public static sbyte CastInt8(sbyte d)
- {
- return d;
- }
- public static S CastString(S input)
- {
- return input;
- }
- public static B CastBytes(B input)
- {
- return input;
- }
-
-
-
- public static bool CastBool()
- {
- return false;
- }
- public static double CastDouble()
- {
- return 0;
- }
- public static float CastFloat()
- {
- return 0;
- }
- public static ulong CastUint64()
- {
- return 0;
- }
- public static uint CastUint32()
- {
- return 0;
- }
- public static ushort CastUint16()
- {
- return 0;
- }
- public static byte CastUint8()
- {
- return 0;
- }
- public static long CastInt64()
- {
- return 0;
- }
- public static int CastInt32()
- {
- return 0;
- }
- public static short CastInt16()
- {
- return 0;
- }
- public static sbyte CastInt8()
- {
- return 0;
- }
- public static string CastString()
- {
- return "";
- }
- public static Google.ProtocolBuffers.ByteString CastBytes()
- {
- return Google.ProtocolBuffers.ByteString.Empty;
- }
-
-
- public static ulong CastFlags(ulong data, ulong allFlagsOn)
- {
- return allFlagsOn & data;
- }
- public static ulong CastFlags(ulong allFlagsOn)
- {
- return 0;
- }
-
- public static Vector3f CastNormal(float x, float y)
- {
- float neg = (x > 1.5f || y > 1.5f) ? -1.0f : 1.0f;
- if (x > 1.5)
- x -= 3;
- if (y > 1.5)
- y -= 3;
- return new Vector3f(x, y, neg - neg * (float)Math.Sqrt(x * x + y * y));
- }
- public static Vector3f CastNormal()
- {
- return new Vector3f(0, 1, 0);
- }
-
-
- public static Vector2f CastVector2f(float x, float y)
- {
- return new Vector2f(x, y);
- }
- public static Vector2f CastVector2f()
- {
- return new Vector2f(0, 0);
- }
-
- public static Vector3f CastVector3f(float x, float y, float z)
- {
- return new Vector3f(x, y, z);
- }
- public static Vector3f CastVector3f()
- {
- return new Vector3f(0, 0, 0);
- }
-
- public static Vector4f CastVector4f(float x, float y, float z, float w)
- {
- return new Vector4f(x, y, z, w);
- }
- public static Vector4f CastVector4f()
- {
- return new Vector4f(0, 0, 0, 0);
- }
- public static Vector2d CastVector2d(double x, double y)
- {
- return new Vector2d(x, y);
- }
- public static Vector2d CastVector2d()
- {
- return new Vector2d(0, 0);
- }
-
- public static Vector3d CastVector3d(double x, double y, double z)
- {
- return new Vector3d(x, y, z);
- }
- public static Vector3d CastVector3d()
- {
- return new Vector3d(0, 0, 0);
- }
-
- public static Vector4d CastVector4d(double x, double y, double z, double w)
- {
- return new Vector4d(x, y, z, w);
- }
- public static Vector4d CastVector4d()
- {
- return new Vector4d(0, 0, 0, 0);
- }
-
- public static BoundingSphere3f CastBoundingsphere3f(float x, float y, float z, float r)
- {
- return new BoundingSphere3f(new Vector3f(x, y, z), r);
- }
- public static BoundingSphere3d CastBoundingsphere3d(double x, double y, double z, double r)
- {
- return new BoundingSphere3d(new Vector3d(x, y, z), (float)r);
- }
-
- public static BoundingSphere3f CastBoundingsphere3f()
- {
- return new BoundingSphere3f(new Vector3f(0, 0, 0), 0);
- }
- public static BoundingSphere3d CastBoundingsphere3d()
- {
- return new BoundingSphere3d(new Vector3d(0, 0, 0), (float)0);
- }
-
-
- public static BoundingBox3f3f CastBoundingbox3f3f(float x, float y, float z, float dx, float dy, float dz)
- {
- return new BoundingBox3f3f(x, y, z, dx, dy, dz);
- }
- public static BoundingBox3d3f CastBoundingbox3d3f(double x, double y, double z, double dx, double dy, double dz)
- {
- return new BoundingBox3d3f(x, y, z, (float)dx, (float)dy, (float)dz);
- }
-
- public static BoundingBox3f3f CastBoundingbox3f3f()
- {
- return new BoundingBox3f3f(new Vector3f(0, 0, 0), new Vector3f(0, 0, 0));
- }
- public static BoundingBox3d3f CastBoundingbox3d3f()
- {
- return new BoundingBox3d3f(0, 0, 0, 0, 0, 0);
- }
-
-
-
- public static Quaternion CastQuaternion(float x, float y, float z)
- {
- float neg = (x > 1.5 || y > 1.5 || z > 1.5) ? -1.0f : 1.0f;
- if (x > 1.5)
- x -= 3.0f;
- if (y > 1.5)
- y -= 3.0f;
- if (z > 1.5)
- z -= 3.0f;
- return new Quaternion(neg - neg * (float)Math.Sqrt(x * x + y * y + z * z), x, y, z);
- }
- public static Quaternion CastQuaternion()
- {
- return new Quaternion(1, 0, 0, 0);
- }
-
- public static UUID CastUuid(Google.ProtocolBuffers.ByteString input)
- {
- return new UUID(input);
- }
- public static SHA256 CastSha256(Google.ProtocolBuffers.ByteString input)
- {
- return new SHA256(input);
- }
- public static SHA256 CastSha256()
- {
- return SHA256.Empty;
- }
- public static UUID CastUuid()
- {
- return UUID.Empty;
- }
-
- public static float CastAngle(float d)
- {
- return d;
- }
- public static float CastAngle()
- {
- return 0;
- }
-
- public static Time CastTime(ulong t)
- {
- return new Time(t);
- }
- public static Time CastTime()
- {
- return new Time(0);
- }
- public static Duration CastDuration(long t)
- {
- return new Duration(t);
- }
- public static Duration CastDuration()
- {
- return new Duration(0);
- }
-
- public static T Construct(T retval)
- {
- return retval;
- }
- public static long Construct(Duration d)
- {
- return d.toMicro();
- }
- public static ulong Construct(Time t)
- {
- return t.toMicro();
- }
- public static Google.ProtocolBuffers.ByteString Construct(UUID u)
- {
- byte[] data = u.GetUUID();
- Google.ProtocolBuffers.ByteString retval = Google.ProtocolBuffers.ByteString.CopyFrom(data, 0, 16);
- return retval;
- }
- public static Google.ProtocolBuffers.ByteString Construct(SHA256 u)
- {
- byte[] data = u.GetBinaryData();
- Google.ProtocolBuffers.ByteString retval = Google.ProtocolBuffers.ByteString.CopyFrom(data, 0, 16);
- return retval;
- }
- public static float[] ConstructNormal(Vector3f d)
- {
- return new float[] { d.x + (d.z < 0 ? 3.0f : 0.0f), d.y };
- }
- public static float[] ConstructQuaternion(Quaternion d)
- {
- return new float[] { d.x + (d.w < 0 ? 3.0f : 0.0f), d.y, d.z };
- }
-
- public static float[] ConstructVector2f(Vector2f d)
- {
- return new float[] { d.x, d.y };
- }
- public static double[] ConstructVector2d(Vector2d d)
- {
- return new double[] { d.x, d.y };
- }
-
- public static float[] ConstructVector3f(Vector3f d)
- {
- return new float[] { d.x, d.y, d.z };
- }
- public static double[] ConstructVector3d(Vector3d d)
- {
- return new double[] { d.x, d.y, d.z };
- }
- public static float[] ConstructVector4f(Vector4f d)
- {
- return new float[] { d.x, d.y, d.z, d.w };
- }
- public static double[] ConstructVector4d(Vector4d d)
- {
- return new double[] { d.x, d.y, d.z, d.w };
- }
-
-
- public static float[] ConstructBoundingsphere3f(BoundingSphere3f d)
- {
- return new float[] { d.Center.x, d.Center.y, d.Center.z, d.Radius };
- }
- public static double[] ConstructBoundingsphere3d(BoundingSphere3d d)
- {
- return new double[] { d.Center.x, d.Center.y, d.Center.z, d.Radius };
- }
-
- public static float[] ConstructBoundingbox3f3f(BoundingBox3f3f d)
- {
- return new float[] { d.Min.x, d.Min.y, d.Min.z, d.Diag.x, d.Diag.y, d.Diag.z };
- }
- public static double[] ConstructBoundingbox3d3f(BoundingBox3d3f d)
- {
- return new double[] { d.Min.x, d.Min.y, d.Min.z, d.Diag.x, d.Diag.y, d.Diag.z };
- }
-
-
- }
-
-}
diff --git a/OpenSim/Client/Sirikata/Protocol/Persistence.cs b/OpenSim/Client/Sirikata/Protocol/Persistence.cs
deleted file mode 100644
index d8f8d330bb..0000000000
--- a/OpenSim/Client/Sirikata/Protocol/Persistence.cs
+++ /dev/null
@@ -1,3299 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-
-using pb = global::Google.ProtocolBuffers;
-using pbc = global::Google.ProtocolBuffers.Collections;
-using pbd = global::Google.ProtocolBuffers.Descriptors;
-using scg = global::System.Collections.Generic;
-namespace Sirikata.Persistence.Protocol._PBJ_Internal {
-
- public static partial class Persistence {
-
- #region Extension registration
- public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
- }
- #endregion
- #region Static variables
- internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__FieldAccessorTable;
- #endregion
- #region Descriptor
- public static pbd::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbd::FileDescriptor descriptor;
-
- static Persistence() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- "ChFQZXJzaXN0ZW5jZS5wcm90bxIrU2lyaWthdGEuUGVyc2lzdGVuY2UuUHJv" +
- "dG9jb2wuX1BCSl9JbnRlcm5hbCJHCgpTdG9yYWdlS2V5EhMKC29iamVjdF91" +
- "dWlkGAkgASgMEhAKCGZpZWxkX2lkGAogASgEEhIKCmZpZWxkX25hbWUYCyAB" +
- "KAkiHAoMU3RvcmFnZVZhbHVlEgwKBGRhdGEYDCABKAwi/gEKDlN0b3JhZ2VF" +
- "bGVtZW50EhMKC29iamVjdF91dWlkGAkgASgMEhAKCGZpZWxkX2lkGAogASgE" +
- "EhIKCmZpZWxkX25hbWUYCyABKAkSDAoEZGF0YRgMIAEoDBINCgVpbmRleBgN" +
- "IAEoBRJfCg1yZXR1cm5fc3RhdHVzGA8gASgOMkguU2lyaWthdGEuUGVyc2lz" +
- "dGVuY2UuUHJvdG9jb2wuX1BCSl9JbnRlcm5hbC5TdG9yYWdlRWxlbWVudC5S" +
- "ZXR1cm5TdGF0dXMiMwoMUmV0dXJuU3RhdHVzEg8KC0tFWV9NSVNTSU5HEAQS" +
- "EgoOSU5URVJOQUxfRVJST1IQBiLaAQoOQ29tcGFyZUVsZW1lbnQSEwoLb2Jq" +
- "ZWN0X3V1aWQYCSABKAwSEAoIZmllbGRfaWQYCiABKAQSEgoKZmllbGRfbmFt" +
- "ZRgLIAEoCRIMCgRkYXRhGAwgASgMEloKCmNvbXBhcmF0b3IYDiABKA4yRi5T" +
- "aXJpa2F0YS5QZXJzaXN0ZW5jZS5Qcm90b2NvbC5fUEJKX0ludGVybmFsLkNv" +
- "bXBhcmVFbGVtZW50LkNPTVBBUkFUT1IiIwoKQ09NUEFSQVRPUhIJCgVFUVVB" +
- "TBAAEgoKBk5FUVVBTBABIlgKClN0b3JhZ2VTZXQSSgoFcmVhZHMYCSADKAsy" +
- "Oy5TaXJpa2F0YS5QZXJzaXN0ZW5jZS5Qcm90b2NvbC5fUEJKX0ludGVybmFs" +
- "LlN0b3JhZ2VFbGVtZW50IlUKB1JlYWRTZXQSSgoFcmVhZHMYCSADKAsyOy5T" +
- "aXJpa2F0YS5QZXJzaXN0ZW5jZS5Qcm90b2NvbC5fUEJKX0ludGVybmFsLlN0" +
- "b3JhZ2VFbGVtZW50IlcKCFdyaXRlU2V0EksKBndyaXRlcxgKIAMoCzI7LlNp" +
- "cmlrYXRhLlBlcnNpc3RlbmNlLlByb3RvY29sLl9QQkpfSW50ZXJuYWwuU3Rv" +
- "cmFnZUVsZW1lbnQi5gEKDFJlYWRXcml0ZVNldBJKCgVyZWFkcxgJIAMoCzI7" +
- "LlNpcmlrYXRhLlBlcnNpc3RlbmNlLlByb3RvY29sLl9QQkpfSW50ZXJuYWwu" +
- "U3RvcmFnZUVsZW1lbnQSSwoGd3JpdGVzGAogAygLMjsuU2lyaWthdGEuUGVy" +
- "c2lzdGVuY2UuUHJvdG9jb2wuX1BCSl9JbnRlcm5hbC5TdG9yYWdlRWxlbWVu" +
- "dBIPCgdvcHRpb25zGA4gASgEIiwKE1JlYWRXcml0ZVNldE9wdGlvbnMSFQoR" +
- "UkVUVVJOX1JFQURfTkFNRVMQASK3AgoPTWluaXRyYW5zYWN0aW9uEkoKBXJl" +
- "YWRzGAkgAygLMjsuU2lyaWthdGEuUGVyc2lzdGVuY2UuUHJvdG9jb2wuX1BC" +
- "Sl9JbnRlcm5hbC5TdG9yYWdlRWxlbWVudBJLCgZ3cml0ZXMYCiADKAsyOy5T" +
- "aXJpa2F0YS5QZXJzaXN0ZW5jZS5Qcm90b2NvbC5fUEJKX0ludGVybmFsLlN0" +
- "b3JhZ2VFbGVtZW50Ek0KCGNvbXBhcmVzGAsgAygLMjsuU2lyaWthdGEuUGVy" +
- "c2lzdGVuY2UuUHJvdG9jb2wuX1BCSl9JbnRlcm5hbC5Db21wYXJlRWxlbWVu" +
- "dBIPCgdvcHRpb25zGA4gASgEIisKElRyYW5zYWN0aW9uT3B0aW9ucxIVChFS" +
- "RVRVUk5fUkVBRF9OQU1FUxABIp8CCghSZXNwb25zZRJKCgVyZWFkcxgJIAMo" +
- "CzI7LlNpcmlrYXRhLlBlcnNpc3RlbmNlLlByb3RvY29sLl9QQkpfSW50ZXJu" +
- "YWwuU3RvcmFnZUVsZW1lbnQSWQoNcmV0dXJuX3N0YXR1cxgPIAEoDjJCLlNp" +
- "cmlrYXRhLlBlcnNpc3RlbmNlLlByb3RvY29sLl9QQkpfSW50ZXJuYWwuUmVz" +
- "cG9uc2UuUmV0dXJuU3RhdHVzImwKDFJldHVyblN0YXR1cxILCgdTVUNDRVNT" +
- "EAASEwoPREFUQUJBU0VfTE9DS0VEEAMSDwoLS0VZX01JU1NJTkcQBBIVChFD" +
- "T01QQVJJU09OX0ZBSUxFRBAFEhIKDklOVEVSTkFMX0VSUk9SEAY=");
- pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
- descriptor = root;
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__Descriptor = Descriptor.MessageTypes[0];
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__Descriptor,
- new string[] { "ObjectUuid", "FieldId", "FieldName", });
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__Descriptor = Descriptor.MessageTypes[1];
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__Descriptor,
- new string[] { "Data", });
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__Descriptor = Descriptor.MessageTypes[2];
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__Descriptor,
- new string[] { "ObjectUuid", "FieldId", "FieldName", "Data", "Index", "ReturnStatus", });
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__Descriptor = Descriptor.MessageTypes[3];
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__Descriptor,
- new string[] { "ObjectUuid", "FieldId", "FieldName", "Data", "Comparator", });
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__Descriptor = Descriptor.MessageTypes[4];
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__Descriptor,
- new string[] { "Reads", });
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__Descriptor = Descriptor.MessageTypes[5];
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__Descriptor,
- new string[] { "Reads", });
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__Descriptor = Descriptor.MessageTypes[6];
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__Descriptor,
- new string[] { "Writes", });
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__Descriptor = Descriptor.MessageTypes[7];
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__Descriptor,
- new string[] { "Reads", "Writes", "Options", });
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__Descriptor = Descriptor.MessageTypes[8];
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__Descriptor,
- new string[] { "Reads", "Writes", "Compares", "Options", });
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__Descriptor = Descriptor.MessageTypes[9];
- internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__Descriptor,
- new string[] { "Reads", "ReturnStatus", });
- return null;
- };
- pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
- new pbd::FileDescriptor[] {
- }, assigner);
- }
- #endregion
-
- }
- #region Messages
- public sealed partial class StorageKey : pb::GeneratedMessage {
- private static readonly StorageKey defaultInstance = new Builder().BuildPartial();
- public static StorageKey DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override StorageKey DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override StorageKey ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__FieldAccessorTable; }
- }
-
- public const int ObjectUuidFieldNumber = 9;
- private bool hasObjectUuid;
- private pb::ByteString objectUuid_ = pb::ByteString.Empty;
- public bool HasObjectUuid {
- get { return hasObjectUuid; }
- }
- public pb::ByteString ObjectUuid {
- get { return objectUuid_; }
- }
-
- public const int FieldIdFieldNumber = 10;
- private bool hasFieldId;
- private ulong fieldId_ = 0UL;
- public bool HasFieldId {
- get { return hasFieldId; }
- }
- [global::System.CLSCompliant(false)]
- public ulong FieldId {
- get { return fieldId_; }
- }
-
- public const int FieldNameFieldNumber = 11;
- private bool hasFieldName;
- private string fieldName_ = "";
- public bool HasFieldName {
- get { return hasFieldName; }
- }
- public string FieldName {
- get { return fieldName_; }
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- if (HasObjectUuid) {
- output.WriteBytes(9, ObjectUuid);
- }
- if (HasFieldId) {
- output.WriteUInt64(10, FieldId);
- }
- if (HasFieldName) {
- output.WriteString(11, FieldName);
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (HasObjectUuid) {
- size += pb::CodedOutputStream.ComputeBytesSize(9, ObjectUuid);
- }
- if (HasFieldId) {
- size += pb::CodedOutputStream.ComputeUInt64Size(10, FieldId);
- }
- if (HasFieldName) {
- size += pb::CodedOutputStream.ComputeStringSize(11, FieldName);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static StorageKey ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static StorageKey ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static StorageKey ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static StorageKey ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static StorageKey ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static StorageKey ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static StorageKey ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static StorageKey ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static StorageKey ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static StorageKey ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(StorageKey prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- StorageKey result = new StorageKey();
-
- protected override StorageKey MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new StorageKey();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey.Descriptor; }
- }
-
- public override StorageKey DefaultInstanceForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey.DefaultInstance; }
- }
-
- public override StorageKey BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- StorageKey returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is StorageKey) {
- return MergeFrom((StorageKey) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(StorageKey other) {
- if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey.DefaultInstance) return this;
- if (other.HasObjectUuid) {
- ObjectUuid = other.ObjectUuid;
- }
- if (other.HasFieldId) {
- FieldId = other.FieldId;
- }
- if (other.HasFieldName) {
- FieldName = other.FieldName;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 74: {
- ObjectUuid = input.ReadBytes();
- break;
- }
- case 80: {
- FieldId = input.ReadUInt64();
- break;
- }
- case 90: {
- FieldName = input.ReadString();
- break;
- }
- }
- }
- }
-
-
- public bool HasObjectUuid {
- get { return result.HasObjectUuid; }
- }
- public pb::ByteString ObjectUuid {
- get { return result.ObjectUuid; }
- set { SetObjectUuid(value); }
- }
- public Builder SetObjectUuid(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasObjectUuid = true;
- result.objectUuid_ = value;
- return this;
- }
- public Builder ClearObjectUuid() {
- result.hasObjectUuid = false;
- result.objectUuid_ = pb::ByteString.Empty;
- return this;
- }
-
- public bool HasFieldId {
- get { return result.HasFieldId; }
- }
- [global::System.CLSCompliant(false)]
- public ulong FieldId {
- get { return result.FieldId; }
- set { SetFieldId(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetFieldId(ulong value) {
- result.hasFieldId = true;
- result.fieldId_ = value;
- return this;
- }
- public Builder ClearFieldId() {
- result.hasFieldId = false;
- result.fieldId_ = 0UL;
- return this;
- }
-
- public bool HasFieldName {
- get { return result.HasFieldName; }
- }
- public string FieldName {
- get { return result.FieldName; }
- set { SetFieldName(value); }
- }
- public Builder SetFieldName(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasFieldName = true;
- result.fieldName_ = value;
- return this;
- }
- public Builder ClearFieldName() {
- result.hasFieldName = false;
- result.fieldName_ = "";
- return this;
- }
- }
- static StorageKey() {
- object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
- }
- }
-
- public sealed partial class StorageValue : pb::GeneratedMessage {
- private static readonly StorageValue defaultInstance = new Builder().BuildPartial();
- public static StorageValue DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override StorageValue DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override StorageValue ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__FieldAccessorTable; }
- }
-
- public const int DataFieldNumber = 12;
- private bool hasData;
- private pb::ByteString data_ = pb::ByteString.Empty;
- public bool HasData {
- get { return hasData; }
- }
- public pb::ByteString Data {
- get { return data_; }
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- if (HasData) {
- output.WriteBytes(12, Data);
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (HasData) {
- size += pb::CodedOutputStream.ComputeBytesSize(12, Data);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static StorageValue ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static StorageValue ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static StorageValue ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static StorageValue ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static StorageValue ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static StorageValue ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static StorageValue ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static StorageValue ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static StorageValue ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static StorageValue ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(StorageValue prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- StorageValue result = new StorageValue();
-
- protected override StorageValue MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new StorageValue();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue.Descriptor; }
- }
-
- public override StorageValue DefaultInstanceForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue.DefaultInstance; }
- }
-
- public override StorageValue BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- StorageValue returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is StorageValue) {
- return MergeFrom((StorageValue) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(StorageValue other) {
- if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue.DefaultInstance) return this;
- if (other.HasData) {
- Data = other.Data;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 98: {
- Data = input.ReadBytes();
- break;
- }
- }
- }
- }
-
-
- public bool HasData {
- get { return result.HasData; }
- }
- public pb::ByteString Data {
- get { return result.Data; }
- set { SetData(value); }
- }
- public Builder SetData(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasData = true;
- result.data_ = value;
- return this;
- }
- public Builder ClearData() {
- result.hasData = false;
- result.data_ = pb::ByteString.Empty;
- return this;
- }
- }
- static StorageValue() {
- object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
- }
- }
-
- public sealed partial class StorageElement : pb::GeneratedMessage {
- private static readonly StorageElement defaultInstance = new Builder().BuildPartial();
- public static StorageElement DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override StorageElement DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override StorageElement ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__FieldAccessorTable; }
- }
-
- #region Nested types
- public static class Types {
- public enum ReturnStatus {
- KEY_MISSING = 4,
- INTERNAL_ERROR = 6,
- }
-
- }
- #endregion
-
- public const int ObjectUuidFieldNumber = 9;
- private bool hasObjectUuid;
- private pb::ByteString objectUuid_ = pb::ByteString.Empty;
- public bool HasObjectUuid {
- get { return hasObjectUuid; }
- }
- public pb::ByteString ObjectUuid {
- get { return objectUuid_; }
- }
-
- public const int FieldIdFieldNumber = 10;
- private bool hasFieldId;
- private ulong fieldId_ = 0UL;
- public bool HasFieldId {
- get { return hasFieldId; }
- }
- [global::System.CLSCompliant(false)]
- public ulong FieldId {
- get { return fieldId_; }
- }
-
- public const int FieldNameFieldNumber = 11;
- private bool hasFieldName;
- private string fieldName_ = "";
- public bool HasFieldName {
- get { return hasFieldName; }
- }
- public string FieldName {
- get { return fieldName_; }
- }
-
- public const int DataFieldNumber = 12;
- private bool hasData;
- private pb::ByteString data_ = pb::ByteString.Empty;
- public bool HasData {
- get { return hasData; }
- }
- public pb::ByteString Data {
- get { return data_; }
- }
-
- public const int IndexFieldNumber = 13;
- private bool hasIndex;
- private int index_ = 0;
- public bool HasIndex {
- get { return hasIndex; }
- }
- public int Index {
- get { return index_; }
- }
-
- public const int ReturnStatusFieldNumber = 15;
- private bool hasReturnStatus;
- private global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus returnStatus_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus.KEY_MISSING;
- public bool HasReturnStatus {
- get { return hasReturnStatus; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus ReturnStatus {
- get { return returnStatus_; }
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- if (HasObjectUuid) {
- output.WriteBytes(9, ObjectUuid);
- }
- if (HasFieldId) {
- output.WriteUInt64(10, FieldId);
- }
- if (HasFieldName) {
- output.WriteString(11, FieldName);
- }
- if (HasData) {
- output.WriteBytes(12, Data);
- }
- if (HasIndex) {
- output.WriteInt32(13, Index);
- }
- if (HasReturnStatus) {
- output.WriteEnum(15, (int) ReturnStatus);
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (HasObjectUuid) {
- size += pb::CodedOutputStream.ComputeBytesSize(9, ObjectUuid);
- }
- if (HasFieldId) {
- size += pb::CodedOutputStream.ComputeUInt64Size(10, FieldId);
- }
- if (HasFieldName) {
- size += pb::CodedOutputStream.ComputeStringSize(11, FieldName);
- }
- if (HasData) {
- size += pb::CodedOutputStream.ComputeBytesSize(12, Data);
- }
- if (HasIndex) {
- size += pb::CodedOutputStream.ComputeInt32Size(13, Index);
- }
- if (HasReturnStatus) {
- size += pb::CodedOutputStream.ComputeEnumSize(15, (int) ReturnStatus);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static StorageElement ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static StorageElement ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static StorageElement ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static StorageElement ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static StorageElement ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static StorageElement ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static StorageElement ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static StorageElement ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static StorageElement ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static StorageElement ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(StorageElement prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- StorageElement result = new StorageElement();
-
- protected override StorageElement MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new StorageElement();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Descriptor; }
- }
-
- public override StorageElement DefaultInstanceForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.DefaultInstance; }
- }
-
- public override StorageElement BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- StorageElement returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is StorageElement) {
- return MergeFrom((StorageElement) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(StorageElement other) {
- if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.DefaultInstance) return this;
- if (other.HasObjectUuid) {
- ObjectUuid = other.ObjectUuid;
- }
- if (other.HasFieldId) {
- FieldId = other.FieldId;
- }
- if (other.HasFieldName) {
- FieldName = other.FieldName;
- }
- if (other.HasData) {
- Data = other.Data;
- }
- if (other.HasIndex) {
- Index = other.Index;
- }
- if (other.HasReturnStatus) {
- ReturnStatus = other.ReturnStatus;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 74: {
- ObjectUuid = input.ReadBytes();
- break;
- }
- case 80: {
- FieldId = input.ReadUInt64();
- break;
- }
- case 90: {
- FieldName = input.ReadString();
- break;
- }
- case 98: {
- Data = input.ReadBytes();
- break;
- }
- case 104: {
- Index = input.ReadInt32();
- break;
- }
- case 120: {
- int rawValue = input.ReadEnum();
- if (!global::System.Enum.IsDefined(typeof(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus), rawValue)) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- unknownFields.MergeVarintField(15, (ulong) rawValue);
- } else {
- ReturnStatus = (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus) rawValue;
- }
- break;
- }
- }
- }
- }
-
-
- public bool HasObjectUuid {
- get { return result.HasObjectUuid; }
- }
- public pb::ByteString ObjectUuid {
- get { return result.ObjectUuid; }
- set { SetObjectUuid(value); }
- }
- public Builder SetObjectUuid(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasObjectUuid = true;
- result.objectUuid_ = value;
- return this;
- }
- public Builder ClearObjectUuid() {
- result.hasObjectUuid = false;
- result.objectUuid_ = pb::ByteString.Empty;
- return this;
- }
-
- public bool HasFieldId {
- get { return result.HasFieldId; }
- }
- [global::System.CLSCompliant(false)]
- public ulong FieldId {
- get { return result.FieldId; }
- set { SetFieldId(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetFieldId(ulong value) {
- result.hasFieldId = true;
- result.fieldId_ = value;
- return this;
- }
- public Builder ClearFieldId() {
- result.hasFieldId = false;
- result.fieldId_ = 0UL;
- return this;
- }
-
- public bool HasFieldName {
- get { return result.HasFieldName; }
- }
- public string FieldName {
- get { return result.FieldName; }
- set { SetFieldName(value); }
- }
- public Builder SetFieldName(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasFieldName = true;
- result.fieldName_ = value;
- return this;
- }
- public Builder ClearFieldName() {
- result.hasFieldName = false;
- result.fieldName_ = "";
- return this;
- }
-
- public bool HasData {
- get { return result.HasData; }
- }
- public pb::ByteString Data {
- get { return result.Data; }
- set { SetData(value); }
- }
- public Builder SetData(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasData = true;
- result.data_ = value;
- return this;
- }
- public Builder ClearData() {
- result.hasData = false;
- result.data_ = pb::ByteString.Empty;
- return this;
- }
-
- public bool HasIndex {
- get { return result.HasIndex; }
- }
- public int Index {
- get { return result.Index; }
- set { SetIndex(value); }
- }
- public Builder SetIndex(int value) {
- result.hasIndex = true;
- result.index_ = value;
- return this;
- }
- public Builder ClearIndex() {
- result.hasIndex = false;
- result.index_ = 0;
- return this;
- }
-
- public bool HasReturnStatus {
- get { return result.HasReturnStatus; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus ReturnStatus {
- get { return result.ReturnStatus; }
- set { SetReturnStatus(value); }
- }
- public Builder SetReturnStatus(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus value) {
- result.hasReturnStatus = true;
- result.returnStatus_ = value;
- return this;
- }
- public Builder ClearReturnStatus() {
- result.hasReturnStatus = false;
- result.returnStatus_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus.KEY_MISSING;
- return this;
- }
- }
- static StorageElement() {
- object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
- }
- }
-
- public sealed partial class CompareElement : pb::GeneratedMessage {
- private static readonly CompareElement defaultInstance = new Builder().BuildPartial();
- public static CompareElement DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override CompareElement DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override CompareElement ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__FieldAccessorTable; }
- }
-
- #region Nested types
- public static class Types {
- public enum COMPARATOR {
- EQUAL = 0,
- NEQUAL = 1,
- }
-
- }
- #endregion
-
- public const int ObjectUuidFieldNumber = 9;
- private bool hasObjectUuid;
- private pb::ByteString objectUuid_ = pb::ByteString.Empty;
- public bool HasObjectUuid {
- get { return hasObjectUuid; }
- }
- public pb::ByteString ObjectUuid {
- get { return objectUuid_; }
- }
-
- public const int FieldIdFieldNumber = 10;
- private bool hasFieldId;
- private ulong fieldId_ = 0UL;
- public bool HasFieldId {
- get { return hasFieldId; }
- }
- [global::System.CLSCompliant(false)]
- public ulong FieldId {
- get { return fieldId_; }
- }
-
- public const int FieldNameFieldNumber = 11;
- private bool hasFieldName;
- private string fieldName_ = "";
- public bool HasFieldName {
- get { return hasFieldName; }
- }
- public string FieldName {
- get { return fieldName_; }
- }
-
- public const int DataFieldNumber = 12;
- private bool hasData;
- private pb::ByteString data_ = pb::ByteString.Empty;
- public bool HasData {
- get { return hasData; }
- }
- public pb::ByteString Data {
- get { return data_; }
- }
-
- public const int ComparatorFieldNumber = 14;
- private bool hasComparator;
- private global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR comparator_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR.EQUAL;
- public bool HasComparator {
- get { return hasComparator; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR Comparator {
- get { return comparator_; }
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- if (HasObjectUuid) {
- output.WriteBytes(9, ObjectUuid);
- }
- if (HasFieldId) {
- output.WriteUInt64(10, FieldId);
- }
- if (HasFieldName) {
- output.WriteString(11, FieldName);
- }
- if (HasData) {
- output.WriteBytes(12, Data);
- }
- if (HasComparator) {
- output.WriteEnum(14, (int) Comparator);
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (HasObjectUuid) {
- size += pb::CodedOutputStream.ComputeBytesSize(9, ObjectUuid);
- }
- if (HasFieldId) {
- size += pb::CodedOutputStream.ComputeUInt64Size(10, FieldId);
- }
- if (HasFieldName) {
- size += pb::CodedOutputStream.ComputeStringSize(11, FieldName);
- }
- if (HasData) {
- size += pb::CodedOutputStream.ComputeBytesSize(12, Data);
- }
- if (HasComparator) {
- size += pb::CodedOutputStream.ComputeEnumSize(14, (int) Comparator);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static CompareElement ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static CompareElement ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static CompareElement ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static CompareElement ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static CompareElement ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static CompareElement ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static CompareElement ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static CompareElement ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static CompareElement ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static CompareElement ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(CompareElement prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- CompareElement result = new CompareElement();
-
- protected override CompareElement MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new CompareElement();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Descriptor; }
- }
-
- public override CompareElement DefaultInstanceForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.DefaultInstance; }
- }
-
- public override CompareElement BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- CompareElement returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is CompareElement) {
- return MergeFrom((CompareElement) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(CompareElement other) {
- if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.DefaultInstance) return this;
- if (other.HasObjectUuid) {
- ObjectUuid = other.ObjectUuid;
- }
- if (other.HasFieldId) {
- FieldId = other.FieldId;
- }
- if (other.HasFieldName) {
- FieldName = other.FieldName;
- }
- if (other.HasData) {
- Data = other.Data;
- }
- if (other.HasComparator) {
- Comparator = other.Comparator;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 74: {
- ObjectUuid = input.ReadBytes();
- break;
- }
- case 80: {
- FieldId = input.ReadUInt64();
- break;
- }
- case 90: {
- FieldName = input.ReadString();
- break;
- }
- case 98: {
- Data = input.ReadBytes();
- break;
- }
- case 112: {
- int rawValue = input.ReadEnum();
- if (!global::System.Enum.IsDefined(typeof(global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR), rawValue)) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- unknownFields.MergeVarintField(14, (ulong) rawValue);
- } else {
- Comparator = (global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR) rawValue;
- }
- break;
- }
- }
- }
- }
-
-
- public bool HasObjectUuid {
- get { return result.HasObjectUuid; }
- }
- public pb::ByteString ObjectUuid {
- get { return result.ObjectUuid; }
- set { SetObjectUuid(value); }
- }
- public Builder SetObjectUuid(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasObjectUuid = true;
- result.objectUuid_ = value;
- return this;
- }
- public Builder ClearObjectUuid() {
- result.hasObjectUuid = false;
- result.objectUuid_ = pb::ByteString.Empty;
- return this;
- }
-
- public bool HasFieldId {
- get { return result.HasFieldId; }
- }
- [global::System.CLSCompliant(false)]
- public ulong FieldId {
- get { return result.FieldId; }
- set { SetFieldId(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetFieldId(ulong value) {
- result.hasFieldId = true;
- result.fieldId_ = value;
- return this;
- }
- public Builder ClearFieldId() {
- result.hasFieldId = false;
- result.fieldId_ = 0UL;
- return this;
- }
-
- public bool HasFieldName {
- get { return result.HasFieldName; }
- }
- public string FieldName {
- get { return result.FieldName; }
- set { SetFieldName(value); }
- }
- public Builder SetFieldName(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasFieldName = true;
- result.fieldName_ = value;
- return this;
- }
- public Builder ClearFieldName() {
- result.hasFieldName = false;
- result.fieldName_ = "";
- return this;
- }
-
- public bool HasData {
- get { return result.HasData; }
- }
- public pb::ByteString Data {
- get { return result.Data; }
- set { SetData(value); }
- }
- public Builder SetData(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasData = true;
- result.data_ = value;
- return this;
- }
- public Builder ClearData() {
- result.hasData = false;
- result.data_ = pb::ByteString.Empty;
- return this;
- }
-
- public bool HasComparator {
- get { return result.HasComparator; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR Comparator {
- get { return result.Comparator; }
- set { SetComparator(value); }
- }
- public Builder SetComparator(global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR value) {
- result.hasComparator = true;
- result.comparator_ = value;
- return this;
- }
- public Builder ClearComparator() {
- result.hasComparator = false;
- result.comparator_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR.EQUAL;
- return this;
- }
- }
- static CompareElement() {
- object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
- }
- }
-
- public sealed partial class StorageSet : pb::GeneratedMessage {
- private static readonly StorageSet defaultInstance = new Builder().BuildPartial();
- public static StorageSet DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override StorageSet DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override StorageSet ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__FieldAccessorTable; }
- }
-
- public const int ReadsFieldNumber = 9;
- private pbc::PopsicleList reads_ = new pbc::PopsicleList();
- public scg::IList ReadsList {
- get { return reads_; }
- }
- public int ReadsCount {
- get { return reads_.Count; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
- return reads_[index];
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
- output.WriteMessage(9, element);
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
- size += pb::CodedOutputStream.ComputeMessageSize(9, element);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static StorageSet ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static StorageSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static StorageSet ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static StorageSet ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static StorageSet ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static StorageSet ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static StorageSet ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static StorageSet ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static StorageSet ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static StorageSet ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(StorageSet prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- StorageSet result = new StorageSet();
-
- protected override StorageSet MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new StorageSet();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet.Descriptor; }
- }
-
- public override StorageSet DefaultInstanceForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet.DefaultInstance; }
- }
-
- public override StorageSet BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- result.reads_.MakeReadOnly();
- StorageSet returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is StorageSet) {
- return MergeFrom((StorageSet) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(StorageSet other) {
- if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet.DefaultInstance) return this;
- if (other.reads_.Count != 0) {
- base.AddRange(other.reads_, result.reads_);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 74: {
- global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder();
- input.ReadMessage(subBuilder, extensionRegistry);
- AddReads(subBuilder.BuildPartial());
- break;
- }
- }
- }
- }
-
-
- public pbc::IPopsicleList ReadsList {
- get { return result.reads_; }
- }
- public int ReadsCount {
- get { return result.ReadsCount; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
- return result.GetReads(index);
- }
- public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.reads_[index] = value;
- return this;
- }
- public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.reads_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.reads_.Add(value);
- return this;
- }
- public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.reads_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeReads(scg::IEnumerable values) {
- base.AddRange(values, result.reads_);
- return this;
- }
- public Builder ClearReads() {
- result.reads_.Clear();
- return this;
- }
- }
- static StorageSet() {
- object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
- }
- }
-
- public sealed partial class ReadSet : pb::GeneratedMessage {
- private static readonly ReadSet defaultInstance = new Builder().BuildPartial();
- public static ReadSet DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override ReadSet DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override ReadSet ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__FieldAccessorTable; }
- }
-
- public const int ReadsFieldNumber = 9;
- private pbc::PopsicleList reads_ = new pbc::PopsicleList();
- public scg::IList ReadsList {
- get { return reads_; }
- }
- public int ReadsCount {
- get { return reads_.Count; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
- return reads_[index];
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
- output.WriteMessage(9, element);
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
- size += pb::CodedOutputStream.ComputeMessageSize(9, element);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static ReadSet ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static ReadSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static ReadSet ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static ReadSet ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static ReadSet ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static ReadSet ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static ReadSet ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static ReadSet ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static ReadSet ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static ReadSet ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(ReadSet prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- ReadSet result = new ReadSet();
-
- protected override ReadSet MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new ReadSet();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet.Descriptor; }
- }
-
- public override ReadSet DefaultInstanceForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet.DefaultInstance; }
- }
-
- public override ReadSet BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- result.reads_.MakeReadOnly();
- ReadSet returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is ReadSet) {
- return MergeFrom((ReadSet) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(ReadSet other) {
- if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet.DefaultInstance) return this;
- if (other.reads_.Count != 0) {
- base.AddRange(other.reads_, result.reads_);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 74: {
- global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder();
- input.ReadMessage(subBuilder, extensionRegistry);
- AddReads(subBuilder.BuildPartial());
- break;
- }
- }
- }
- }
-
-
- public pbc::IPopsicleList ReadsList {
- get { return result.reads_; }
- }
- public int ReadsCount {
- get { return result.ReadsCount; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
- return result.GetReads(index);
- }
- public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.reads_[index] = value;
- return this;
- }
- public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.reads_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.reads_.Add(value);
- return this;
- }
- public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.reads_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeReads(scg::IEnumerable values) {
- base.AddRange(values, result.reads_);
- return this;
- }
- public Builder ClearReads() {
- result.reads_.Clear();
- return this;
- }
- }
- static ReadSet() {
- object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
- }
- }
-
- public sealed partial class WriteSet : pb::GeneratedMessage {
- private static readonly WriteSet defaultInstance = new Builder().BuildPartial();
- public static WriteSet DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override WriteSet DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override WriteSet ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__FieldAccessorTable; }
- }
-
- public const int WritesFieldNumber = 10;
- private pbc::PopsicleList writes_ = new pbc::PopsicleList();
- public scg::IList WritesList {
- get { return writes_; }
- }
- public int WritesCount {
- get { return writes_.Count; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) {
- return writes_[index];
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) {
- output.WriteMessage(10, element);
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) {
- size += pb::CodedOutputStream.ComputeMessageSize(10, element);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static WriteSet ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static WriteSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static WriteSet ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static WriteSet ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static WriteSet ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static WriteSet ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static WriteSet ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static WriteSet ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static WriteSet ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static WriteSet ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(WriteSet prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- WriteSet result = new WriteSet();
-
- protected override WriteSet MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new WriteSet();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet.Descriptor; }
- }
-
- public override WriteSet DefaultInstanceForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet.DefaultInstance; }
- }
-
- public override WriteSet BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- result.writes_.MakeReadOnly();
- WriteSet returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is WriteSet) {
- return MergeFrom((WriteSet) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(WriteSet other) {
- if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet.DefaultInstance) return this;
- if (other.writes_.Count != 0) {
- base.AddRange(other.writes_, result.writes_);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 82: {
- global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder();
- input.ReadMessage(subBuilder, extensionRegistry);
- AddWrites(subBuilder.BuildPartial());
- break;
- }
- }
- }
- }
-
-
- public pbc::IPopsicleList WritesList {
- get { return result.writes_; }
- }
- public int WritesCount {
- get { return result.WritesCount; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) {
- return result.GetWrites(index);
- }
- public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.writes_[index] = value;
- return this;
- }
- public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.writes_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.writes_.Add(value);
- return this;
- }
- public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.writes_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeWrites(scg::IEnumerable values) {
- base.AddRange(values, result.writes_);
- return this;
- }
- public Builder ClearWrites() {
- result.writes_.Clear();
- return this;
- }
- }
- static WriteSet() {
- object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
- }
- }
-
- public sealed partial class ReadWriteSet : pb::GeneratedMessage {
- private static readonly ReadWriteSet defaultInstance = new Builder().BuildPartial();
- public static ReadWriteSet DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override ReadWriteSet DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override ReadWriteSet ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__FieldAccessorTable; }
- }
-
- #region Nested types
- public static class Types {
- public enum ReadWriteSetOptions {
- RETURN_READ_NAMES = 1,
- }
-
- }
- #endregion
-
- public const int ReadsFieldNumber = 9;
- private pbc::PopsicleList reads_ = new pbc::PopsicleList();
- public scg::IList ReadsList {
- get { return reads_; }
- }
- public int ReadsCount {
- get { return reads_.Count; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
- return reads_[index];
- }
-
- public const int WritesFieldNumber = 10;
- private pbc::PopsicleList writes_ = new pbc::PopsicleList();
- public scg::IList WritesList {
- get { return writes_; }
- }
- public int WritesCount {
- get { return writes_.Count; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) {
- return writes_[index];
- }
-
- public const int OptionsFieldNumber = 14;
- private bool hasOptions;
- private ulong options_ = 0UL;
- public bool HasOptions {
- get { return hasOptions; }
- }
- [global::System.CLSCompliant(false)]
- public ulong Options {
- get { return options_; }
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
- output.WriteMessage(9, element);
- }
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) {
- output.WriteMessage(10, element);
- }
- if (HasOptions) {
- output.WriteUInt64(14, Options);
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
- size += pb::CodedOutputStream.ComputeMessageSize(9, element);
- }
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) {
- size += pb::CodedOutputStream.ComputeMessageSize(10, element);
- }
- if (HasOptions) {
- size += pb::CodedOutputStream.ComputeUInt64Size(14, Options);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static ReadWriteSet ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static ReadWriteSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static ReadWriteSet ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static ReadWriteSet ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static ReadWriteSet ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static ReadWriteSet ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static ReadWriteSet ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static ReadWriteSet ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static ReadWriteSet ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static ReadWriteSet ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(ReadWriteSet prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- ReadWriteSet result = new ReadWriteSet();
-
- protected override ReadWriteSet MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new ReadWriteSet();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet.Descriptor; }
- }
-
- public override ReadWriteSet DefaultInstanceForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet.DefaultInstance; }
- }
-
- public override ReadWriteSet BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- result.reads_.MakeReadOnly();
- result.writes_.MakeReadOnly();
- ReadWriteSet returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is ReadWriteSet) {
- return MergeFrom((ReadWriteSet) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(ReadWriteSet other) {
- if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet.DefaultInstance) return this;
- if (other.reads_.Count != 0) {
- base.AddRange(other.reads_, result.reads_);
- }
- if (other.writes_.Count != 0) {
- base.AddRange(other.writes_, result.writes_);
- }
- if (other.HasOptions) {
- Options = other.Options;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 74: {
- global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder();
- input.ReadMessage(subBuilder, extensionRegistry);
- AddReads(subBuilder.BuildPartial());
- break;
- }
- case 82: {
- global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder();
- input.ReadMessage(subBuilder, extensionRegistry);
- AddWrites(subBuilder.BuildPartial());
- break;
- }
- case 112: {
- Options = input.ReadUInt64();
- break;
- }
- }
- }
- }
-
-
- public pbc::IPopsicleList ReadsList {
- get { return result.reads_; }
- }
- public int ReadsCount {
- get { return result.ReadsCount; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
- return result.GetReads(index);
- }
- public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.reads_[index] = value;
- return this;
- }
- public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.reads_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.reads_.Add(value);
- return this;
- }
- public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.reads_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeReads(scg::IEnumerable values) {
- base.AddRange(values, result.reads_);
- return this;
- }
- public Builder ClearReads() {
- result.reads_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList WritesList {
- get { return result.writes_; }
- }
- public int WritesCount {
- get { return result.WritesCount; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) {
- return result.GetWrites(index);
- }
- public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.writes_[index] = value;
- return this;
- }
- public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.writes_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.writes_.Add(value);
- return this;
- }
- public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.writes_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeWrites(scg::IEnumerable values) {
- base.AddRange(values, result.writes_);
- return this;
- }
- public Builder ClearWrites() {
- result.writes_.Clear();
- return this;
- }
-
- public bool HasOptions {
- get { return result.HasOptions; }
- }
- [global::System.CLSCompliant(false)]
- public ulong Options {
- get { return result.Options; }
- set { SetOptions(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetOptions(ulong value) {
- result.hasOptions = true;
- result.options_ = value;
- return this;
- }
- public Builder ClearOptions() {
- result.hasOptions = false;
- result.options_ = 0UL;
- return this;
- }
- }
- static ReadWriteSet() {
- object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
- }
- }
-
- public sealed partial class Minitransaction : pb::GeneratedMessage {
- private static readonly Minitransaction defaultInstance = new Builder().BuildPartial();
- public static Minitransaction DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override Minitransaction DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override Minitransaction ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__FieldAccessorTable; }
- }
-
- #region Nested types
- public static class Types {
- public enum TransactionOptions {
- RETURN_READ_NAMES = 1,
- }
-
- }
- #endregion
-
- public const int ReadsFieldNumber = 9;
- private pbc::PopsicleList reads_ = new pbc::PopsicleList();
- public scg::IList ReadsList {
- get { return reads_; }
- }
- public int ReadsCount {
- get { return reads_.Count; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
- return reads_[index];
- }
-
- public const int WritesFieldNumber = 10;
- private pbc::PopsicleList writes_ = new pbc::PopsicleList();
- public scg::IList WritesList {
- get { return writes_; }
- }
- public int WritesCount {
- get { return writes_.Count; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) {
- return writes_[index];
- }
-
- public const int ComparesFieldNumber = 11;
- private pbc::PopsicleList compares_ = new pbc::PopsicleList();
- public scg::IList ComparesList {
- get { return compares_; }
- }
- public int ComparesCount {
- get { return compares_.Count; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement GetCompares(int index) {
- return compares_[index];
- }
-
- public const int OptionsFieldNumber = 14;
- private bool hasOptions;
- private ulong options_ = 0UL;
- public bool HasOptions {
- get { return hasOptions; }
- }
- [global::System.CLSCompliant(false)]
- public ulong Options {
- get { return options_; }
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
- output.WriteMessage(9, element);
- }
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) {
- output.WriteMessage(10, element);
- }
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement element in ComparesList) {
- output.WriteMessage(11, element);
- }
- if (HasOptions) {
- output.WriteUInt64(14, Options);
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
- size += pb::CodedOutputStream.ComputeMessageSize(9, element);
- }
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) {
- size += pb::CodedOutputStream.ComputeMessageSize(10, element);
- }
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement element in ComparesList) {
- size += pb::CodedOutputStream.ComputeMessageSize(11, element);
- }
- if (HasOptions) {
- size += pb::CodedOutputStream.ComputeUInt64Size(14, Options);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static Minitransaction ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Minitransaction ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Minitransaction ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Minitransaction ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Minitransaction ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Minitransaction ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Minitransaction ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static Minitransaction ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static Minitransaction ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Minitransaction ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(Minitransaction prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- Minitransaction result = new Minitransaction();
-
- protected override Minitransaction MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new Minitransaction();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction.Descriptor; }
- }
-
- public override Minitransaction DefaultInstanceForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction.DefaultInstance; }
- }
-
- public override Minitransaction BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- result.reads_.MakeReadOnly();
- result.writes_.MakeReadOnly();
- result.compares_.MakeReadOnly();
- Minitransaction returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is Minitransaction) {
- return MergeFrom((Minitransaction) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(Minitransaction other) {
- if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction.DefaultInstance) return this;
- if (other.reads_.Count != 0) {
- base.AddRange(other.reads_, result.reads_);
- }
- if (other.writes_.Count != 0) {
- base.AddRange(other.writes_, result.writes_);
- }
- if (other.compares_.Count != 0) {
- base.AddRange(other.compares_, result.compares_);
- }
- if (other.HasOptions) {
- Options = other.Options;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 74: {
- global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder();
- input.ReadMessage(subBuilder, extensionRegistry);
- AddReads(subBuilder.BuildPartial());
- break;
- }
- case 82: {
- global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder();
- input.ReadMessage(subBuilder, extensionRegistry);
- AddWrites(subBuilder.BuildPartial());
- break;
- }
- case 90: {
- global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.CreateBuilder();
- input.ReadMessage(subBuilder, extensionRegistry);
- AddCompares(subBuilder.BuildPartial());
- break;
- }
- case 112: {
- Options = input.ReadUInt64();
- break;
- }
- }
- }
- }
-
-
- public pbc::IPopsicleList ReadsList {
- get { return result.reads_; }
- }
- public int ReadsCount {
- get { return result.ReadsCount; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
- return result.GetReads(index);
- }
- public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.reads_[index] = value;
- return this;
- }
- public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.reads_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.reads_.Add(value);
- return this;
- }
- public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.reads_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeReads(scg::IEnumerable values) {
- base.AddRange(values, result.reads_);
- return this;
- }
- public Builder ClearReads() {
- result.reads_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList WritesList {
- get { return result.writes_; }
- }
- public int WritesCount {
- get { return result.WritesCount; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) {
- return result.GetWrites(index);
- }
- public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.writes_[index] = value;
- return this;
- }
- public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.writes_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.writes_.Add(value);
- return this;
- }
- public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.writes_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeWrites(scg::IEnumerable values) {
- base.AddRange(values, result.writes_);
- return this;
- }
- public Builder ClearWrites() {
- result.writes_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList ComparesList {
- get { return result.compares_; }
- }
- public int ComparesCount {
- get { return result.ComparesCount; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement GetCompares(int index) {
- return result.GetCompares(index);
- }
- public Builder SetCompares(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.compares_[index] = value;
- return this;
- }
- public Builder SetCompares(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.compares_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddCompares(global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.compares_.Add(value);
- return this;
- }
- public Builder AddCompares(global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.compares_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeCompares(scg::IEnumerable values) {
- base.AddRange(values, result.compares_);
- return this;
- }
- public Builder ClearCompares() {
- result.compares_.Clear();
- return this;
- }
-
- public bool HasOptions {
- get { return result.HasOptions; }
- }
- [global::System.CLSCompliant(false)]
- public ulong Options {
- get { return result.Options; }
- set { SetOptions(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetOptions(ulong value) {
- result.hasOptions = true;
- result.options_ = value;
- return this;
- }
- public Builder ClearOptions() {
- result.hasOptions = false;
- result.options_ = 0UL;
- return this;
- }
- }
- static Minitransaction() {
- object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
- }
- }
-
- public sealed partial class Response : pb::GeneratedMessage {
- private static readonly Response defaultInstance = new Builder().BuildPartial();
- public static Response DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override Response DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override Response ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__FieldAccessorTable; }
- }
-
- #region Nested types
- public static class Types {
- public enum ReturnStatus {
- SUCCESS = 0,
- DATABASE_LOCKED = 3,
- KEY_MISSING = 4,
- COMPARISON_FAILED = 5,
- INTERNAL_ERROR = 6,
- }
-
- }
- #endregion
-
- public const int ReadsFieldNumber = 9;
- private pbc::PopsicleList reads_ = new pbc::PopsicleList();
- public scg::IList ReadsList {
- get { return reads_; }
- }
- public int ReadsCount {
- get { return reads_.Count; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
- return reads_[index];
- }
-
- public const int ReturnStatusFieldNumber = 15;
- private bool hasReturnStatus;
- private global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus returnStatus_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus.SUCCESS;
- public bool HasReturnStatus {
- get { return hasReturnStatus; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus ReturnStatus {
- get { return returnStatus_; }
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
- output.WriteMessage(9, element);
- }
- if (HasReturnStatus) {
- output.WriteEnum(15, (int) ReturnStatus);
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) {
- size += pb::CodedOutputStream.ComputeMessageSize(9, element);
- }
- if (HasReturnStatus) {
- size += pb::CodedOutputStream.ComputeEnumSize(15, (int) ReturnStatus);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static Response ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Response ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Response ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Response ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Response ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Response ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Response ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static Response ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static Response ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Response ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(Response prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- Response result = new Response();
-
- protected override Response MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new Response();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Descriptor; }
- }
-
- public override Response DefaultInstanceForType {
- get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.DefaultInstance; }
- }
-
- public override Response BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- result.reads_.MakeReadOnly();
- Response returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is Response) {
- return MergeFrom((Response) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(Response other) {
- if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.DefaultInstance) return this;
- if (other.reads_.Count != 0) {
- base.AddRange(other.reads_, result.reads_);
- }
- if (other.HasReturnStatus) {
- ReturnStatus = other.ReturnStatus;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 74: {
- global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder();
- input.ReadMessage(subBuilder, extensionRegistry);
- AddReads(subBuilder.BuildPartial());
- break;
- }
- case 120: {
- int rawValue = input.ReadEnum();
- if (!global::System.Enum.IsDefined(typeof(global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus), rawValue)) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- unknownFields.MergeVarintField(15, (ulong) rawValue);
- } else {
- ReturnStatus = (global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus) rawValue;
- }
- break;
- }
- }
- }
- }
-
-
- public pbc::IPopsicleList ReadsList {
- get { return result.reads_; }
- }
- public int ReadsCount {
- get { return result.ReadsCount; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) {
- return result.GetReads(index);
- }
- public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.reads_[index] = value;
- return this;
- }
- public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.reads_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.reads_.Add(value);
- return this;
- }
- public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.reads_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeReads(scg::IEnumerable values) {
- base.AddRange(values, result.reads_);
- return this;
- }
- public Builder ClearReads() {
- result.reads_.Clear();
- return this;
- }
-
- public bool HasReturnStatus {
- get { return result.HasReturnStatus; }
- }
- public global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus ReturnStatus {
- get { return result.ReturnStatus; }
- set { SetReturnStatus(value); }
- }
- public Builder SetReturnStatus(global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus value) {
- result.hasReturnStatus = true;
- result.returnStatus_ = value;
- return this;
- }
- public Builder ClearReturnStatus() {
- result.hasReturnStatus = false;
- result.returnStatus_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus.SUCCESS;
- return this;
- }
- }
- static Response() {
- object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null);
- }
- }
-
- #endregion
-
-}
diff --git a/OpenSim/Client/Sirikata/Protocol/Persistence.pbj.cs b/OpenSim/Client/Sirikata/Protocol/Persistence.pbj.cs
deleted file mode 100644
index 196b0b9527..0000000000
--- a/OpenSim/Client/Sirikata/Protocol/Persistence.pbj.cs
+++ /dev/null
@@ -1,1543 +0,0 @@
-/*
- * Copyright (c) Contributors, http://opensimulator.org/
- * See CONTRIBUTORS.TXT for a full list of copyright holders.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of the OpenSimulator Project nor the
- * names of its contributors may be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-using pbd = global::Google.ProtocolBuffers.Descriptors;
-using pb = global::Google.ProtocolBuffers;
-namespace Sirikata.Persistence.Protocol {
- public class StorageKey : PBJ.IMessage {
- protected _PBJ_Internal.StorageKey super;
- public _PBJ_Internal.StorageKey _PBJSuper{ get { return super;} }
- public StorageKey() {
- super=new _PBJ_Internal.StorageKey();
- }
- public StorageKey(_PBJ_Internal.StorageKey reference) {
- super=reference;
- }
- public static StorageKey defaultInstance= new StorageKey (_PBJ_Internal.StorageKey.DefaultInstance);
- public static StorageKey DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.StorageKey.Descriptor; } }
- public static class Types {
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false;
- }
- public const int ObjectUuidFieldTag=9;
- public bool HasObjectUuid{ get {return super.HasObjectUuid&&PBJ._PBJ.ValidateUuid(super.ObjectUuid);} }
- public PBJ.UUID ObjectUuid{ get {
- if (HasObjectUuid) {
- return PBJ._PBJ.CastUuid(super.ObjectUuid);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- }
- public const int FieldIdFieldTag=10;
- public bool HasFieldId{ get {return super.HasFieldId&&PBJ._PBJ.ValidateUint64(super.FieldId);} }
- public ulong FieldId{ get {
- if (HasFieldId) {
- return PBJ._PBJ.CastUint64(super.FieldId);
- } else {
- return PBJ._PBJ.CastUint64();
- }
- }
- }
- public const int FieldNameFieldTag=11;
- public bool HasFieldName{ get {return super.HasFieldName&&PBJ._PBJ.ValidateString(super.FieldName);} }
- public string FieldName{ get {
- if (HasFieldName) {
- return PBJ._PBJ.CastString(super.FieldName);
- } else {
- return PBJ._PBJ.CastString();
- }
- }
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(StorageKey prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static StorageKey ParseFrom(pb::ByteString data) {
- return new StorageKey(_PBJ_Internal.StorageKey.ParseFrom(data));
- }
- public static StorageKey ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new StorageKey(_PBJ_Internal.StorageKey.ParseFrom(data,er));
- }
- public static StorageKey ParseFrom(byte[] data) {
- return new StorageKey(_PBJ_Internal.StorageKey.ParseFrom(data));
- }
- public static StorageKey ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new StorageKey(_PBJ_Internal.StorageKey.ParseFrom(data,er));
- }
- public static StorageKey ParseFrom(global::System.IO.Stream data) {
- return new StorageKey(_PBJ_Internal.StorageKey.ParseFrom(data));
- }
- public static StorageKey ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new StorageKey(_PBJ_Internal.StorageKey.ParseFrom(data,er));
- }
- public static StorageKey ParseFrom(pb::CodedInputStream data) {
- return new StorageKey(_PBJ_Internal.StorageKey.ParseFrom(data));
- }
- public static StorageKey ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new StorageKey(_PBJ_Internal.StorageKey.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.StorageKey.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.StorageKey.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.StorageKey.Builder();}
- public Builder(_PBJ_Internal.StorageKey.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(StorageKey prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public StorageKey BuildPartial() {return new StorageKey(super.BuildPartial());}
- public StorageKey Build() {if (_HasAllPBJFields) return new StorageKey(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return StorageKey.Descriptor; } }
- public Builder ClearObjectUuid() { super.ClearObjectUuid();return this;}
- public const int ObjectUuidFieldTag=9;
- public bool HasObjectUuid{ get {return super.HasObjectUuid&&PBJ._PBJ.ValidateUuid(super.ObjectUuid);} }
- public PBJ.UUID ObjectUuid{ get {
- if (HasObjectUuid) {
- return PBJ._PBJ.CastUuid(super.ObjectUuid);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- set {
- super.ObjectUuid=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearFieldId() { super.ClearFieldId();return this;}
- public const int FieldIdFieldTag=10;
- public bool HasFieldId{ get {return super.HasFieldId&&PBJ._PBJ.ValidateUint64(super.FieldId);} }
- public ulong FieldId{ get {
- if (HasFieldId) {
- return PBJ._PBJ.CastUint64(super.FieldId);
- } else {
- return PBJ._PBJ.CastUint64();
- }
- }
- set {
- super.FieldId=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearFieldName() { super.ClearFieldName();return this;}
- public const int FieldNameFieldTag=11;
- public bool HasFieldName{ get {return super.HasFieldName&&PBJ._PBJ.ValidateString(super.FieldName);} }
- public string FieldName{ get {
- if (HasFieldName) {
- return PBJ._PBJ.CastString(super.FieldName);
- } else {
- return PBJ._PBJ.CastString();
- }
- }
- set {
- super.FieldName=(PBJ._PBJ.Construct(value));
- }
- }
- }
- }
-}
-namespace Sirikata.Persistence.Protocol {
- public class StorageValue : PBJ.IMessage {
- protected _PBJ_Internal.StorageValue super;
- public _PBJ_Internal.StorageValue _PBJSuper{ get { return super;} }
- public StorageValue() {
- super=new _PBJ_Internal.StorageValue();
- }
- public StorageValue(_PBJ_Internal.StorageValue reference) {
- super=reference;
- }
- public static StorageValue defaultInstance= new StorageValue (_PBJ_Internal.StorageValue.DefaultInstance);
- public static StorageValue DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.StorageValue.Descriptor; } }
- public static class Types {
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false;
- }
- public const int DataFieldTag=12;
- public bool HasData{ get {return super.HasData&&PBJ._PBJ.ValidateBytes(super.Data);} }
- public pb::ByteString Data{ get {
- if (HasData) {
- return PBJ._PBJ.CastBytes(super.Data);
- } else {
- return PBJ._PBJ.CastBytes();
- }
- }
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(StorageValue prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static StorageValue ParseFrom(pb::ByteString data) {
- return new StorageValue(_PBJ_Internal.StorageValue.ParseFrom(data));
- }
- public static StorageValue ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new StorageValue(_PBJ_Internal.StorageValue.ParseFrom(data,er));
- }
- public static StorageValue ParseFrom(byte[] data) {
- return new StorageValue(_PBJ_Internal.StorageValue.ParseFrom(data));
- }
- public static StorageValue ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new StorageValue(_PBJ_Internal.StorageValue.ParseFrom(data,er));
- }
- public static StorageValue ParseFrom(global::System.IO.Stream data) {
- return new StorageValue(_PBJ_Internal.StorageValue.ParseFrom(data));
- }
- public static StorageValue ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new StorageValue(_PBJ_Internal.StorageValue.ParseFrom(data,er));
- }
- public static StorageValue ParseFrom(pb::CodedInputStream data) {
- return new StorageValue(_PBJ_Internal.StorageValue.ParseFrom(data));
- }
- public static StorageValue ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new StorageValue(_PBJ_Internal.StorageValue.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.StorageValue.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.StorageValue.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.StorageValue.Builder();}
- public Builder(_PBJ_Internal.StorageValue.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(StorageValue prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public StorageValue BuildPartial() {return new StorageValue(super.BuildPartial());}
- public StorageValue Build() {if (_HasAllPBJFields) return new StorageValue(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return StorageValue.Descriptor; } }
- public Builder ClearData() { super.ClearData();return this;}
- public const int DataFieldTag=12;
- public bool HasData{ get {return super.HasData&&PBJ._PBJ.ValidateBytes(super.Data);} }
- public pb::ByteString Data{ get {
- if (HasData) {
- return PBJ._PBJ.CastBytes(super.Data);
- } else {
- return PBJ._PBJ.CastBytes();
- }
- }
- set {
- super.Data=(PBJ._PBJ.Construct(value));
- }
- }
- }
- }
-}
-namespace Sirikata.Persistence.Protocol {
- public class StorageElement : PBJ.IMessage {
- protected _PBJ_Internal.StorageElement super;
- public _PBJ_Internal.StorageElement _PBJSuper{ get { return super;} }
- public StorageElement() {
- super=new _PBJ_Internal.StorageElement();
- }
- public StorageElement(_PBJ_Internal.StorageElement reference) {
- super=reference;
- }
- public static StorageElement defaultInstance= new StorageElement (_PBJ_Internal.StorageElement.DefaultInstance);
- public static StorageElement DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.StorageElement.Descriptor; } }
- public static class Types {
- public enum ReturnStatus {
- KEY_MISSING=_PBJ_Internal.StorageElement.Types.ReturnStatus.KEY_MISSING,
- INTERNAL_ERROR=_PBJ_Internal.StorageElement.Types.ReturnStatus.INTERNAL_ERROR
- };
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false;
- }
- public const int ObjectUuidFieldTag=9;
- public bool HasObjectUuid{ get {return super.HasObjectUuid&&PBJ._PBJ.ValidateUuid(super.ObjectUuid);} }
- public PBJ.UUID ObjectUuid{ get {
- if (HasObjectUuid) {
- return PBJ._PBJ.CastUuid(super.ObjectUuid);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- }
- public const int FieldIdFieldTag=10;
- public bool HasFieldId{ get {return super.HasFieldId&&PBJ._PBJ.ValidateUint64(super.FieldId);} }
- public ulong FieldId{ get {
- if (HasFieldId) {
- return PBJ._PBJ.CastUint64(super.FieldId);
- } else {
- return PBJ._PBJ.CastUint64();
- }
- }
- }
- public const int FieldNameFieldTag=11;
- public bool HasFieldName{ get {return super.HasFieldName&&PBJ._PBJ.ValidateString(super.FieldName);} }
- public string FieldName{ get {
- if (HasFieldName) {
- return PBJ._PBJ.CastString(super.FieldName);
- } else {
- return PBJ._PBJ.CastString();
- }
- }
- }
- public const int DataFieldTag=12;
- public bool HasData{ get {return super.HasData&&PBJ._PBJ.ValidateBytes(super.Data);} }
- public pb::ByteString Data{ get {
- if (HasData) {
- return PBJ._PBJ.CastBytes(super.Data);
- } else {
- return PBJ._PBJ.CastBytes();
- }
- }
- }
- public const int IndexFieldTag=13;
- public bool HasIndex{ get {return super.HasIndex&&PBJ._PBJ.ValidateInt32(super.Index);} }
- public int Index{ get {
- if (HasIndex) {
- return PBJ._PBJ.CastInt32(super.Index);
- } else {
- return PBJ._PBJ.CastInt32();
- }
- }
- }
- public const int ReturnStatusFieldTag=15;
- public bool HasReturnStatus{ get {return super.HasReturnStatus;} }
- public Types.ReturnStatus ReturnStatus{ get {
- if (HasReturnStatus) {
- return (Types.ReturnStatus)super.ReturnStatus;
- } else {
- return new Types.ReturnStatus();
- }
- }
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(StorageElement prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static StorageElement ParseFrom(pb::ByteString data) {
- return new StorageElement(_PBJ_Internal.StorageElement.ParseFrom(data));
- }
- public static StorageElement ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new StorageElement(_PBJ_Internal.StorageElement.ParseFrom(data,er));
- }
- public static StorageElement ParseFrom(byte[] data) {
- return new StorageElement(_PBJ_Internal.StorageElement.ParseFrom(data));
- }
- public static StorageElement ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new StorageElement(_PBJ_Internal.StorageElement.ParseFrom(data,er));
- }
- public static StorageElement ParseFrom(global::System.IO.Stream data) {
- return new StorageElement(_PBJ_Internal.StorageElement.ParseFrom(data));
- }
- public static StorageElement ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new StorageElement(_PBJ_Internal.StorageElement.ParseFrom(data,er));
- }
- public static StorageElement ParseFrom(pb::CodedInputStream data) {
- return new StorageElement(_PBJ_Internal.StorageElement.ParseFrom(data));
- }
- public static StorageElement ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new StorageElement(_PBJ_Internal.StorageElement.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.StorageElement.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.StorageElement.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.StorageElement.Builder();}
- public Builder(_PBJ_Internal.StorageElement.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(StorageElement prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public StorageElement BuildPartial() {return new StorageElement(super.BuildPartial());}
- public StorageElement Build() {if (_HasAllPBJFields) return new StorageElement(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return StorageElement.Descriptor; } }
- public Builder ClearObjectUuid() { super.ClearObjectUuid();return this;}
- public const int ObjectUuidFieldTag=9;
- public bool HasObjectUuid{ get {return super.HasObjectUuid&&PBJ._PBJ.ValidateUuid(super.ObjectUuid);} }
- public PBJ.UUID ObjectUuid{ get {
- if (HasObjectUuid) {
- return PBJ._PBJ.CastUuid(super.ObjectUuid);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- set {
- super.ObjectUuid=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearFieldId() { super.ClearFieldId();return this;}
- public const int FieldIdFieldTag=10;
- public bool HasFieldId{ get {return super.HasFieldId&&PBJ._PBJ.ValidateUint64(super.FieldId);} }
- public ulong FieldId{ get {
- if (HasFieldId) {
- return PBJ._PBJ.CastUint64(super.FieldId);
- } else {
- return PBJ._PBJ.CastUint64();
- }
- }
- set {
- super.FieldId=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearFieldName() { super.ClearFieldName();return this;}
- public const int FieldNameFieldTag=11;
- public bool HasFieldName{ get {return super.HasFieldName&&PBJ._PBJ.ValidateString(super.FieldName);} }
- public string FieldName{ get {
- if (HasFieldName) {
- return PBJ._PBJ.CastString(super.FieldName);
- } else {
- return PBJ._PBJ.CastString();
- }
- }
- set {
- super.FieldName=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearData() { super.ClearData();return this;}
- public const int DataFieldTag=12;
- public bool HasData{ get {return super.HasData&&PBJ._PBJ.ValidateBytes(super.Data);} }
- public pb::ByteString Data{ get {
- if (HasData) {
- return PBJ._PBJ.CastBytes(super.Data);
- } else {
- return PBJ._PBJ.CastBytes();
- }
- }
- set {
- super.Data=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearIndex() { super.ClearIndex();return this;}
- public const int IndexFieldTag=13;
- public bool HasIndex{ get {return super.HasIndex&&PBJ._PBJ.ValidateInt32(super.Index);} }
- public int Index{ get {
- if (HasIndex) {
- return PBJ._PBJ.CastInt32(super.Index);
- } else {
- return PBJ._PBJ.CastInt32();
- }
- }
- set {
- super.Index=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearReturnStatus() { super.ClearReturnStatus();return this;}
- public const int ReturnStatusFieldTag=15;
- public bool HasReturnStatus{ get {return super.HasReturnStatus;} }
- public Types.ReturnStatus ReturnStatus{ get {
- if (HasReturnStatus) {
- return (Types.ReturnStatus)super.ReturnStatus;
- } else {
- return new Types.ReturnStatus();
- }
- }
- set {
- super.ReturnStatus=((_PBJ_Internal.StorageElement.Types.ReturnStatus)value);
- }
- }
- }
- }
-}
-namespace Sirikata.Persistence.Protocol {
- public class CompareElement : PBJ.IMessage {
- protected _PBJ_Internal.CompareElement super;
- public _PBJ_Internal.CompareElement _PBJSuper{ get { return super;} }
- public CompareElement() {
- super=new _PBJ_Internal.CompareElement();
- }
- public CompareElement(_PBJ_Internal.CompareElement reference) {
- super=reference;
- }
- public static CompareElement defaultInstance= new CompareElement (_PBJ_Internal.CompareElement.DefaultInstance);
- public static CompareElement DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.CompareElement.Descriptor; } }
- public static class Types {
- public enum COMPARATOR {
- EQUAL=_PBJ_Internal.CompareElement.Types.COMPARATOR.EQUAL,
- NEQUAL=_PBJ_Internal.CompareElement.Types.COMPARATOR.NEQUAL
- };
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false;
- }
- public const int ObjectUuidFieldTag=9;
- public bool HasObjectUuid{ get {return super.HasObjectUuid&&PBJ._PBJ.ValidateUuid(super.ObjectUuid);} }
- public PBJ.UUID ObjectUuid{ get {
- if (HasObjectUuid) {
- return PBJ._PBJ.CastUuid(super.ObjectUuid);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- }
- public const int FieldIdFieldTag=10;
- public bool HasFieldId{ get {return super.HasFieldId&&PBJ._PBJ.ValidateUint64(super.FieldId);} }
- public ulong FieldId{ get {
- if (HasFieldId) {
- return PBJ._PBJ.CastUint64(super.FieldId);
- } else {
- return PBJ._PBJ.CastUint64();
- }
- }
- }
- public const int FieldNameFieldTag=11;
- public bool HasFieldName{ get {return super.HasFieldName&&PBJ._PBJ.ValidateString(super.FieldName);} }
- public string FieldName{ get {
- if (HasFieldName) {
- return PBJ._PBJ.CastString(super.FieldName);
- } else {
- return PBJ._PBJ.CastString();
- }
- }
- }
- public const int DataFieldTag=12;
- public bool HasData{ get {return super.HasData&&PBJ._PBJ.ValidateBytes(super.Data);} }
- public pb::ByteString Data{ get {
- if (HasData) {
- return PBJ._PBJ.CastBytes(super.Data);
- } else {
- return PBJ._PBJ.CastBytes();
- }
- }
- }
- public const int ComparatorFieldTag=14;
- public bool HasComparator{ get {return super.HasComparator;} }
- public Types.COMPARATOR Comparator{ get {
- if (HasComparator) {
- return (Types.COMPARATOR)super.Comparator;
- } else {
- return new Types.COMPARATOR();
- }
- }
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(CompareElement prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static CompareElement ParseFrom(pb::ByteString data) {
- return new CompareElement(_PBJ_Internal.CompareElement.ParseFrom(data));
- }
- public static CompareElement ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new CompareElement(_PBJ_Internal.CompareElement.ParseFrom(data,er));
- }
- public static CompareElement ParseFrom(byte[] data) {
- return new CompareElement(_PBJ_Internal.CompareElement.ParseFrom(data));
- }
- public static CompareElement ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new CompareElement(_PBJ_Internal.CompareElement.ParseFrom(data,er));
- }
- public static CompareElement ParseFrom(global::System.IO.Stream data) {
- return new CompareElement(_PBJ_Internal.CompareElement.ParseFrom(data));
- }
- public static CompareElement ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new CompareElement(_PBJ_Internal.CompareElement.ParseFrom(data,er));
- }
- public static CompareElement ParseFrom(pb::CodedInputStream data) {
- return new CompareElement(_PBJ_Internal.CompareElement.ParseFrom(data));
- }
- public static CompareElement ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new CompareElement(_PBJ_Internal.CompareElement.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.CompareElement.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.CompareElement.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.CompareElement.Builder();}
- public Builder(_PBJ_Internal.CompareElement.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(CompareElement prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public CompareElement BuildPartial() {return new CompareElement(super.BuildPartial());}
- public CompareElement Build() {if (_HasAllPBJFields) return new CompareElement(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return CompareElement.Descriptor; } }
- public Builder ClearObjectUuid() { super.ClearObjectUuid();return this;}
- public const int ObjectUuidFieldTag=9;
- public bool HasObjectUuid{ get {return super.HasObjectUuid&&PBJ._PBJ.ValidateUuid(super.ObjectUuid);} }
- public PBJ.UUID ObjectUuid{ get {
- if (HasObjectUuid) {
- return PBJ._PBJ.CastUuid(super.ObjectUuid);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- set {
- super.ObjectUuid=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearFieldId() { super.ClearFieldId();return this;}
- public const int FieldIdFieldTag=10;
- public bool HasFieldId{ get {return super.HasFieldId&&PBJ._PBJ.ValidateUint64(super.FieldId);} }
- public ulong FieldId{ get {
- if (HasFieldId) {
- return PBJ._PBJ.CastUint64(super.FieldId);
- } else {
- return PBJ._PBJ.CastUint64();
- }
- }
- set {
- super.FieldId=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearFieldName() { super.ClearFieldName();return this;}
- public const int FieldNameFieldTag=11;
- public bool HasFieldName{ get {return super.HasFieldName&&PBJ._PBJ.ValidateString(super.FieldName);} }
- public string FieldName{ get {
- if (HasFieldName) {
- return PBJ._PBJ.CastString(super.FieldName);
- } else {
- return PBJ._PBJ.CastString();
- }
- }
- set {
- super.FieldName=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearData() { super.ClearData();return this;}
- public const int DataFieldTag=12;
- public bool HasData{ get {return super.HasData&&PBJ._PBJ.ValidateBytes(super.Data);} }
- public pb::ByteString Data{ get {
- if (HasData) {
- return PBJ._PBJ.CastBytes(super.Data);
- } else {
- return PBJ._PBJ.CastBytes();
- }
- }
- set {
- super.Data=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearComparator() { super.ClearComparator();return this;}
- public const int ComparatorFieldTag=14;
- public bool HasComparator{ get {return super.HasComparator;} }
- public Types.COMPARATOR Comparator{ get {
- if (HasComparator) {
- return (Types.COMPARATOR)super.Comparator;
- } else {
- return new Types.COMPARATOR();
- }
- }
- set {
- super.Comparator=((_PBJ_Internal.CompareElement.Types.COMPARATOR)value);
- }
- }
- }
- }
-}
-namespace Sirikata.Persistence.Protocol {
- public class StorageSet : PBJ.IMessage {
- protected _PBJ_Internal.StorageSet super;
- public _PBJ_Internal.StorageSet _PBJSuper{ get { return super;} }
- public StorageSet() {
- super=new _PBJ_Internal.StorageSet();
- }
- public StorageSet(_PBJ_Internal.StorageSet reference) {
- super=reference;
- }
- public static StorageSet defaultInstance= new StorageSet (_PBJ_Internal.StorageSet.DefaultInstance);
- public static StorageSet DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.StorageSet.Descriptor; } }
- public static class Types {
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false;
- }
- public const int ReadsFieldTag=9;
- public int ReadsCount { get { return super.ReadsCount;} }
- public bool HasReads(int index) {return true;}
- public StorageElement Reads(int index) {
- return new StorageElement(super.GetReads(index));
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(StorageSet prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static StorageSet ParseFrom(pb::ByteString data) {
- return new StorageSet(_PBJ_Internal.StorageSet.ParseFrom(data));
- }
- public static StorageSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new StorageSet(_PBJ_Internal.StorageSet.ParseFrom(data,er));
- }
- public static StorageSet ParseFrom(byte[] data) {
- return new StorageSet(_PBJ_Internal.StorageSet.ParseFrom(data));
- }
- public static StorageSet ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new StorageSet(_PBJ_Internal.StorageSet.ParseFrom(data,er));
- }
- public static StorageSet ParseFrom(global::System.IO.Stream data) {
- return new StorageSet(_PBJ_Internal.StorageSet.ParseFrom(data));
- }
- public static StorageSet ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new StorageSet(_PBJ_Internal.StorageSet.ParseFrom(data,er));
- }
- public static StorageSet ParseFrom(pb::CodedInputStream data) {
- return new StorageSet(_PBJ_Internal.StorageSet.ParseFrom(data));
- }
- public static StorageSet ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new StorageSet(_PBJ_Internal.StorageSet.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.StorageSet.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.StorageSet.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.StorageSet.Builder();}
- public Builder(_PBJ_Internal.StorageSet.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(StorageSet prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public StorageSet BuildPartial() {return new StorageSet(super.BuildPartial());}
- public StorageSet Build() {if (_HasAllPBJFields) return new StorageSet(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return StorageSet.Descriptor; } }
- public Builder ClearReads() { super.ClearReads();return this;}
- public Builder SetReads(int index,StorageElement value) {
- super.SetReads(index,value._PBJSuper);
- return this;
- }
- public const int ReadsFieldTag=9;
- public int ReadsCount { get { return super.ReadsCount;} }
- public bool HasReads(int index) {return true;}
- public StorageElement Reads(int index) {
- return new StorageElement(super.GetReads(index));
- }
- public Builder AddReads(StorageElement value) {
- super.AddReads(value._PBJSuper);
- return this;
- }
- }
- }
-}
-namespace Sirikata.Persistence.Protocol {
- public class ReadSet : PBJ.IMessage {
- protected _PBJ_Internal.ReadSet super;
- public _PBJ_Internal.ReadSet _PBJSuper{ get { return super;} }
- public ReadSet() {
- super=new _PBJ_Internal.ReadSet();
- }
- public ReadSet(_PBJ_Internal.ReadSet reference) {
- super=reference;
- }
- public static ReadSet defaultInstance= new ReadSet (_PBJ_Internal.ReadSet.DefaultInstance);
- public static ReadSet DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.ReadSet.Descriptor; } }
- public static class Types {
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false;
- }
- public const int ReadsFieldTag=9;
- public int ReadsCount { get { return super.ReadsCount;} }
- public bool HasReads(int index) {return true;}
- public StorageElement Reads(int index) {
- return new StorageElement(super.GetReads(index));
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(ReadSet prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static ReadSet ParseFrom(pb::ByteString data) {
- return new ReadSet(_PBJ_Internal.ReadSet.ParseFrom(data));
- }
- public static ReadSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new ReadSet(_PBJ_Internal.ReadSet.ParseFrom(data,er));
- }
- public static ReadSet ParseFrom(byte[] data) {
- return new ReadSet(_PBJ_Internal.ReadSet.ParseFrom(data));
- }
- public static ReadSet ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new ReadSet(_PBJ_Internal.ReadSet.ParseFrom(data,er));
- }
- public static ReadSet ParseFrom(global::System.IO.Stream data) {
- return new ReadSet(_PBJ_Internal.ReadSet.ParseFrom(data));
- }
- public static ReadSet ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new ReadSet(_PBJ_Internal.ReadSet.ParseFrom(data,er));
- }
- public static ReadSet ParseFrom(pb::CodedInputStream data) {
- return new ReadSet(_PBJ_Internal.ReadSet.ParseFrom(data));
- }
- public static ReadSet ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new ReadSet(_PBJ_Internal.ReadSet.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.ReadSet.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.ReadSet.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.ReadSet.Builder();}
- public Builder(_PBJ_Internal.ReadSet.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(ReadSet prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public ReadSet BuildPartial() {return new ReadSet(super.BuildPartial());}
- public ReadSet Build() {if (_HasAllPBJFields) return new ReadSet(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return ReadSet.Descriptor; } }
- public Builder ClearReads() { super.ClearReads();return this;}
- public Builder SetReads(int index,StorageElement value) {
- super.SetReads(index,value._PBJSuper);
- return this;
- }
- public const int ReadsFieldTag=9;
- public int ReadsCount { get { return super.ReadsCount;} }
- public bool HasReads(int index) {return true;}
- public StorageElement Reads(int index) {
- return new StorageElement(super.GetReads(index));
- }
- public Builder AddReads(StorageElement value) {
- super.AddReads(value._PBJSuper);
- return this;
- }
- }
- }
-}
-namespace Sirikata.Persistence.Protocol {
- public class WriteSet : PBJ.IMessage {
- protected _PBJ_Internal.WriteSet super;
- public _PBJ_Internal.WriteSet _PBJSuper{ get { return super;} }
- public WriteSet() {
- super=new _PBJ_Internal.WriteSet();
- }
- public WriteSet(_PBJ_Internal.WriteSet reference) {
- super=reference;
- }
- public static WriteSet defaultInstance= new WriteSet (_PBJ_Internal.WriteSet.DefaultInstance);
- public static WriteSet DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.WriteSet.Descriptor; } }
- public static class Types {
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false;
- }
- public const int WritesFieldTag=10;
- public int WritesCount { get { return super.WritesCount;} }
- public bool HasWrites(int index) {return true;}
- public StorageElement Writes(int index) {
- return new StorageElement(super.GetWrites(index));
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(WriteSet prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static WriteSet ParseFrom(pb::ByteString data) {
- return new WriteSet(_PBJ_Internal.WriteSet.ParseFrom(data));
- }
- public static WriteSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new WriteSet(_PBJ_Internal.WriteSet.ParseFrom(data,er));
- }
- public static WriteSet ParseFrom(byte[] data) {
- return new WriteSet(_PBJ_Internal.WriteSet.ParseFrom(data));
- }
- public static WriteSet ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new WriteSet(_PBJ_Internal.WriteSet.ParseFrom(data,er));
- }
- public static WriteSet ParseFrom(global::System.IO.Stream data) {
- return new WriteSet(_PBJ_Internal.WriteSet.ParseFrom(data));
- }
- public static WriteSet ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new WriteSet(_PBJ_Internal.WriteSet.ParseFrom(data,er));
- }
- public static WriteSet ParseFrom(pb::CodedInputStream data) {
- return new WriteSet(_PBJ_Internal.WriteSet.ParseFrom(data));
- }
- public static WriteSet ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new WriteSet(_PBJ_Internal.WriteSet.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.WriteSet.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.WriteSet.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.WriteSet.Builder();}
- public Builder(_PBJ_Internal.WriteSet.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(WriteSet prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public WriteSet BuildPartial() {return new WriteSet(super.BuildPartial());}
- public WriteSet Build() {if (_HasAllPBJFields) return new WriteSet(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return WriteSet.Descriptor; } }
- public Builder ClearWrites() { super.ClearWrites();return this;}
- public Builder SetWrites(int index,StorageElement value) {
- super.SetWrites(index,value._PBJSuper);
- return this;
- }
- public const int WritesFieldTag=10;
- public int WritesCount { get { return super.WritesCount;} }
- public bool HasWrites(int index) {return true;}
- public StorageElement Writes(int index) {
- return new StorageElement(super.GetWrites(index));
- }
- public Builder AddWrites(StorageElement value) {
- super.AddWrites(value._PBJSuper);
- return this;
- }
- }
- }
-}
-namespace Sirikata.Persistence.Protocol {
- public class ReadWriteSet : PBJ.IMessage {
- protected _PBJ_Internal.ReadWriteSet super;
- public _PBJ_Internal.ReadWriteSet _PBJSuper{ get { return super;} }
- public ReadWriteSet() {
- super=new _PBJ_Internal.ReadWriteSet();
- }
- public ReadWriteSet(_PBJ_Internal.ReadWriteSet reference) {
- super=reference;
- }
- public static ReadWriteSet defaultInstance= new ReadWriteSet (_PBJ_Internal.ReadWriteSet.DefaultInstance);
- public static ReadWriteSet DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.ReadWriteSet.Descriptor; } }
- public static class Types {
- public enum ReadWriteSetOptions {
- RETURN_READ_NAMES=_PBJ_Internal.ReadWriteSet.Types.ReadWriteSetOptions.RETURN_READ_NAMES
- };
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false;
- }
- public const int ReadsFieldTag=9;
- public int ReadsCount { get { return super.ReadsCount;} }
- public bool HasReads(int index) {return true;}
- public StorageElement Reads(int index) {
- return new StorageElement(super.GetReads(index));
- }
- public const int WritesFieldTag=10;
- public int WritesCount { get { return super.WritesCount;} }
- public bool HasWrites(int index) {return true;}
- public StorageElement Writes(int index) {
- return new StorageElement(super.GetWrites(index));
- }
- public const int OptionsFieldTag=14;
- public bool HasOptions { get {
- if (!super.HasOptions) return false;
- return PBJ._PBJ.ValidateFlags(super.Options,(ulong)Types.ReadWriteSetOptions.RETURN_READ_NAMES);
- } }
- public ulong Options{ get {
- if (HasOptions) {
- return (ulong)PBJ._PBJ.CastFlags(super.Options,(ulong)Types.ReadWriteSetOptions.RETURN_READ_NAMES);
- } else {
- return (ulong)PBJ._PBJ.CastFlags((ulong)Types.ReadWriteSetOptions.RETURN_READ_NAMES);
- }
- }
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(ReadWriteSet prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static ReadWriteSet ParseFrom(pb::ByteString data) {
- return new ReadWriteSet(_PBJ_Internal.ReadWriteSet.ParseFrom(data));
- }
- public static ReadWriteSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new ReadWriteSet(_PBJ_Internal.ReadWriteSet.ParseFrom(data,er));
- }
- public static ReadWriteSet ParseFrom(byte[] data) {
- return new ReadWriteSet(_PBJ_Internal.ReadWriteSet.ParseFrom(data));
- }
- public static ReadWriteSet ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new ReadWriteSet(_PBJ_Internal.ReadWriteSet.ParseFrom(data,er));
- }
- public static ReadWriteSet ParseFrom(global::System.IO.Stream data) {
- return new ReadWriteSet(_PBJ_Internal.ReadWriteSet.ParseFrom(data));
- }
- public static ReadWriteSet ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new ReadWriteSet(_PBJ_Internal.ReadWriteSet.ParseFrom(data,er));
- }
- public static ReadWriteSet ParseFrom(pb::CodedInputStream data) {
- return new ReadWriteSet(_PBJ_Internal.ReadWriteSet.ParseFrom(data));
- }
- public static ReadWriteSet ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new ReadWriteSet(_PBJ_Internal.ReadWriteSet.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.ReadWriteSet.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.ReadWriteSet.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.ReadWriteSet.Builder();}
- public Builder(_PBJ_Internal.ReadWriteSet.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(ReadWriteSet prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public ReadWriteSet BuildPartial() {return new ReadWriteSet(super.BuildPartial());}
- public ReadWriteSet Build() {if (_HasAllPBJFields) return new ReadWriteSet(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return ReadWriteSet.Descriptor; } }
- public Builder ClearReads() { super.ClearReads();return this;}
- public Builder SetReads(int index,StorageElement value) {
- super.SetReads(index,value._PBJSuper);
- return this;
- }
- public const int ReadsFieldTag=9;
- public int ReadsCount { get { return super.ReadsCount;} }
- public bool HasReads(int index) {return true;}
- public StorageElement Reads(int index) {
- return new StorageElement(super.GetReads(index));
- }
- public Builder AddReads(StorageElement value) {
- super.AddReads(value._PBJSuper);
- return this;
- }
- public Builder ClearWrites() { super.ClearWrites();return this;}
- public Builder SetWrites(int index,StorageElement value) {
- super.SetWrites(index,value._PBJSuper);
- return this;
- }
- public const int WritesFieldTag=10;
- public int WritesCount { get { return super.WritesCount;} }
- public bool HasWrites(int index) {return true;}
- public StorageElement Writes(int index) {
- return new StorageElement(super.GetWrites(index));
- }
- public Builder AddWrites(StorageElement value) {
- super.AddWrites(value._PBJSuper);
- return this;
- }
- public Builder ClearOptions() { super.ClearOptions();return this;}
- public const int OptionsFieldTag=14;
- public bool HasOptions { get {
- if (!super.HasOptions) return false;
- return PBJ._PBJ.ValidateFlags(super.Options,(ulong)Types.ReadWriteSetOptions.RETURN_READ_NAMES);
- } }
- public ulong Options{ get {
- if (HasOptions) {
- return (ulong)PBJ._PBJ.CastFlags(super.Options,(ulong)Types.ReadWriteSetOptions.RETURN_READ_NAMES);
- } else {
- return (ulong)PBJ._PBJ.CastFlags((ulong)Types.ReadWriteSetOptions.RETURN_READ_NAMES);
- }
- }
- set {
- super.Options=((value));
- }
- }
- }
- }
-}
-namespace Sirikata.Persistence.Protocol {
- public class Minitransaction : PBJ.IMessage {
- protected _PBJ_Internal.Minitransaction super;
- public _PBJ_Internal.Minitransaction _PBJSuper{ get { return super;} }
- public Minitransaction() {
- super=new _PBJ_Internal.Minitransaction();
- }
- public Minitransaction(_PBJ_Internal.Minitransaction reference) {
- super=reference;
- }
- public static Minitransaction defaultInstance= new Minitransaction (_PBJ_Internal.Minitransaction.DefaultInstance);
- public static Minitransaction DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.Minitransaction.Descriptor; } }
- public static class Types {
- public enum TransactionOptions {
- RETURN_READ_NAMES=_PBJ_Internal.Minitransaction.Types.TransactionOptions.RETURN_READ_NAMES
- };
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false;
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false;
- }
- public const int ReadsFieldTag=9;
- public int ReadsCount { get { return super.ReadsCount;} }
- public bool HasReads(int index) {return true;}
- public StorageElement Reads(int index) {
- return new StorageElement(super.GetReads(index));
- }
- public const int WritesFieldTag=10;
- public int WritesCount { get { return super.WritesCount;} }
- public bool HasWrites(int index) {return true;}
- public StorageElement Writes(int index) {
- return new StorageElement(super.GetWrites(index));
- }
- public const int ComparesFieldTag=11;
- public int ComparesCount { get { return super.ComparesCount;} }
- public bool HasCompares(int index) {return true;}
- public CompareElement Compares(int index) {
- return new CompareElement(super.GetCompares(index));
- }
- public const int OptionsFieldTag=14;
- public bool HasOptions { get {
- if (!super.HasOptions) return false;
- return PBJ._PBJ.ValidateFlags(super.Options,(ulong)Types.TransactionOptions.RETURN_READ_NAMES);
- } }
- public ulong Options{ get {
- if (HasOptions) {
- return (ulong)PBJ._PBJ.CastFlags(super.Options,(ulong)Types.TransactionOptions.RETURN_READ_NAMES);
- } else {
- return (ulong)PBJ._PBJ.CastFlags((ulong)Types.TransactionOptions.RETURN_READ_NAMES);
- }
- }
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(Minitransaction prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static Minitransaction ParseFrom(pb::ByteString data) {
- return new Minitransaction(_PBJ_Internal.Minitransaction.ParseFrom(data));
- }
- public static Minitransaction ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new Minitransaction(_PBJ_Internal.Minitransaction.ParseFrom(data,er));
- }
- public static Minitransaction ParseFrom(byte[] data) {
- return new Minitransaction(_PBJ_Internal.Minitransaction.ParseFrom(data));
- }
- public static Minitransaction ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new Minitransaction(_PBJ_Internal.Minitransaction.ParseFrom(data,er));
- }
- public static Minitransaction ParseFrom(global::System.IO.Stream data) {
- return new Minitransaction(_PBJ_Internal.Minitransaction.ParseFrom(data));
- }
- public static Minitransaction ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new Minitransaction(_PBJ_Internal.Minitransaction.ParseFrom(data,er));
- }
- public static Minitransaction ParseFrom(pb::CodedInputStream data) {
- return new Minitransaction(_PBJ_Internal.Minitransaction.ParseFrom(data));
- }
- public static Minitransaction ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new Minitransaction(_PBJ_Internal.Minitransaction.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.Minitransaction.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.Minitransaction.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.Minitransaction.Builder();}
- public Builder(_PBJ_Internal.Minitransaction.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(Minitransaction prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public Minitransaction BuildPartial() {return new Minitransaction(super.BuildPartial());}
- public Minitransaction Build() {if (_HasAllPBJFields) return new Minitransaction(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return Minitransaction.Descriptor; } }
- public Builder ClearReads() { super.ClearReads();return this;}
- public Builder SetReads(int index,StorageElement value) {
- super.SetReads(index,value._PBJSuper);
- return this;
- }
- public const int ReadsFieldTag=9;
- public int ReadsCount { get { return super.ReadsCount;} }
- public bool HasReads(int index) {return true;}
- public StorageElement Reads(int index) {
- return new StorageElement(super.GetReads(index));
- }
- public Builder AddReads(StorageElement value) {
- super.AddReads(value._PBJSuper);
- return this;
- }
- public Builder ClearWrites() { super.ClearWrites();return this;}
- public Builder SetWrites(int index,StorageElement value) {
- super.SetWrites(index,value._PBJSuper);
- return this;
- }
- public const int WritesFieldTag=10;
- public int WritesCount { get { return super.WritesCount;} }
- public bool HasWrites(int index) {return true;}
- public StorageElement Writes(int index) {
- return new StorageElement(super.GetWrites(index));
- }
- public Builder AddWrites(StorageElement value) {
- super.AddWrites(value._PBJSuper);
- return this;
- }
- public Builder ClearCompares() { super.ClearCompares();return this;}
- public Builder SetCompares(int index,CompareElement value) {
- super.SetCompares(index,value._PBJSuper);
- return this;
- }
- public const int ComparesFieldTag=11;
- public int ComparesCount { get { return super.ComparesCount;} }
- public bool HasCompares(int index) {return true;}
- public CompareElement Compares(int index) {
- return new CompareElement(super.GetCompares(index));
- }
- public Builder AddCompares(CompareElement value) {
- super.AddCompares(value._PBJSuper);
- return this;
- }
- public Builder ClearOptions() { super.ClearOptions();return this;}
- public const int OptionsFieldTag=14;
- public bool HasOptions { get {
- if (!super.HasOptions) return false;
- return PBJ._PBJ.ValidateFlags(super.Options,(ulong)Types.TransactionOptions.RETURN_READ_NAMES);
- } }
- public ulong Options{ get {
- if (HasOptions) {
- return (ulong)PBJ._PBJ.CastFlags(super.Options,(ulong)Types.TransactionOptions.RETURN_READ_NAMES);
- } else {
- return (ulong)PBJ._PBJ.CastFlags((ulong)Types.TransactionOptions.RETURN_READ_NAMES);
- }
- }
- set {
- super.Options=((value));
- }
- }
- }
- }
-}
-namespace Sirikata.Persistence.Protocol {
- public class Response : PBJ.IMessage {
- protected _PBJ_Internal.Response super;
- public _PBJ_Internal.Response _PBJSuper{ get { return super;} }
- public Response() {
- super=new _PBJ_Internal.Response();
- }
- public Response(_PBJ_Internal.Response reference) {
- super=reference;
- }
- public static Response defaultInstance= new Response (_PBJ_Internal.Response.DefaultInstance);
- public static Response DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.Response.Descriptor; } }
- public static class Types {
- public enum ReturnStatus {
- SUCCESS=_PBJ_Internal.Response.Types.ReturnStatus.SUCCESS,
- DATABASE_LOCKED=_PBJ_Internal.Response.Types.ReturnStatus.DATABASE_LOCKED,
- KEY_MISSING=_PBJ_Internal.Response.Types.ReturnStatus.KEY_MISSING,
- COMPARISON_FAILED=_PBJ_Internal.Response.Types.ReturnStatus.COMPARISON_FAILED,
- INTERNAL_ERROR=_PBJ_Internal.Response.Types.ReturnStatus.INTERNAL_ERROR
- };
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false||(field_tag>=1&&field_tag<=8);
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false;
- }
- public const int ReadsFieldTag=9;
- public int ReadsCount { get { return super.ReadsCount;} }
- public bool HasReads(int index) {return true;}
- public StorageElement Reads(int index) {
- return new StorageElement(super.GetReads(index));
- }
- public const int ReturnStatusFieldTag=15;
- public bool HasReturnStatus{ get {return super.HasReturnStatus;} }
- public Types.ReturnStatus ReturnStatus{ get {
- if (HasReturnStatus) {
- return (Types.ReturnStatus)super.ReturnStatus;
- } else {
- return new Types.ReturnStatus();
- }
- }
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(Response prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static Response ParseFrom(pb::ByteString data) {
- return new Response(_PBJ_Internal.Response.ParseFrom(data));
- }
- public static Response ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new Response(_PBJ_Internal.Response.ParseFrom(data,er));
- }
- public static Response ParseFrom(byte[] data) {
- return new Response(_PBJ_Internal.Response.ParseFrom(data));
- }
- public static Response ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new Response(_PBJ_Internal.Response.ParseFrom(data,er));
- }
- public static Response ParseFrom(global::System.IO.Stream data) {
- return new Response(_PBJ_Internal.Response.ParseFrom(data));
- }
- public static Response ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new Response(_PBJ_Internal.Response.ParseFrom(data,er));
- }
- public static Response ParseFrom(pb::CodedInputStream data) {
- return new Response(_PBJ_Internal.Response.ParseFrom(data));
- }
- public static Response ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new Response(_PBJ_Internal.Response.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.Response.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.Response.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.Response.Builder();}
- public Builder(_PBJ_Internal.Response.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(Response prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public Response BuildPartial() {return new Response(super.BuildPartial());}
- public Response Build() {if (_HasAllPBJFields) return new Response(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return Response.Descriptor; } }
- public Builder ClearReads() { super.ClearReads();return this;}
- public Builder SetReads(int index,StorageElement value) {
- super.SetReads(index,value._PBJSuper);
- return this;
- }
- public const int ReadsFieldTag=9;
- public int ReadsCount { get { return super.ReadsCount;} }
- public bool HasReads(int index) {return true;}
- public StorageElement Reads(int index) {
- return new StorageElement(super.GetReads(index));
- }
- public Builder AddReads(StorageElement value) {
- super.AddReads(value._PBJSuper);
- return this;
- }
- public Builder ClearReturnStatus() { super.ClearReturnStatus();return this;}
- public const int ReturnStatusFieldTag=15;
- public bool HasReturnStatus{ get {return super.HasReturnStatus;} }
- public Types.ReturnStatus ReturnStatus{ get {
- if (HasReturnStatus) {
- return (Types.ReturnStatus)super.ReturnStatus;
- } else {
- return new Types.ReturnStatus();
- }
- }
- set {
- super.ReturnStatus=((_PBJ_Internal.Response.Types.ReturnStatus)value);
- }
- }
- }
- }
-}
diff --git a/OpenSim/Client/Sirikata/Protocol/Physics.cs b/OpenSim/Client/Sirikata/Protocol/Physics.cs
deleted file mode 100644
index a81a6fd20b..0000000000
--- a/OpenSim/Client/Sirikata/Protocol/Physics.cs
+++ /dev/null
@@ -1,840 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-
-using pb = global::Google.ProtocolBuffers;
-using pbc = global::Google.ProtocolBuffers.Collections;
-using pbd = global::Google.ProtocolBuffers.Descriptors;
-using scg = global::System.Collections.Generic;
-namespace Sirikata.Physics.Protocol._PBJ_Internal {
-
- public static partial class Physics {
-
- #region Extension registration
- public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
- }
- #endregion
- #region Static variables
- internal static pbd::MessageDescriptor internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionBegin__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionBegin__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionEnd__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionEnd__FieldAccessorTable;
- #endregion
- #region Descriptor
- public static pbd::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbd::FileDescriptor descriptor;
-
- static Physics() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- "Cg1QaHlzaWNzLnByb3RvEidTaXJpa2F0YS5QaHlzaWNzLlByb3RvY29sLl9Q" +
- "QkpfSW50ZXJuYWwiqAEKDkNvbGxpc2lvbkJlZ2luEhEKCXRpbWVzdGFtcBgC" +
- "IAEoBhIZCg10aGlzX3Bvc2l0aW9uGAMgAygBQgIQARIaCg5vdGhlcl9wb3Np" +
- "dGlvbhgEIAMoAUICEAESFwoLdGhpc19ub3JtYWwYBSADKAJCAhABEhMKB2lt" +
- "cHVsc2UYBiADKAJCAhABEh4KFm90aGVyX29iamVjdF9yZWZlcmVuY2UYByAB" +
- "KAwiQQoMQ29sbGlzaW9uRW5kEhEKCXRpbWVzdGFtcBgCIAEoBhIeChZvdGhl" +
- "cl9vYmplY3RfcmVmZXJlbmNlGAYgASgM");
- pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
- descriptor = root;
- internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionBegin__Descriptor = Descriptor.MessageTypes[0];
- internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionBegin__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionBegin__Descriptor,
- new string[] { "Timestamp", "ThisPosition", "OtherPosition", "ThisNormal", "Impulse", "OtherObjectReference", });
- internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionEnd__Descriptor = Descriptor.MessageTypes[1];
- internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionEnd__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionEnd__Descriptor,
- new string[] { "Timestamp", "OtherObjectReference", });
- return null;
- };
- pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
- new pbd::FileDescriptor[] {
- }, assigner);
- }
- #endregion
-
- }
- #region Messages
- public sealed partial class CollisionBegin : pb::GeneratedMessage {
- private static readonly CollisionBegin defaultInstance = new Builder().BuildPartial();
- public static CollisionBegin DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override CollisionBegin DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override CollisionBegin ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Physics.Protocol._PBJ_Internal.Physics.internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionBegin__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
- get { return global::Sirikata.Physics.Protocol._PBJ_Internal.Physics.internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionBegin__FieldAccessorTable; }
- }
-
- public const int TimestampFieldNumber = 2;
- private bool hasTimestamp;
- private ulong timestamp_ = 0;
- public bool HasTimestamp {
- get { return hasTimestamp; }
- }
- [global::System.CLSCompliant(false)]
- public ulong Timestamp {
- get { return timestamp_; }
- }
-
- public const int ThisPositionFieldNumber = 3;
- private int thisPositionMemoizedSerializedSize;
- private pbc::PopsicleList thisPosition_ = new pbc::PopsicleList();
- public scg::IList ThisPositionList {
- get { return pbc::Lists.AsReadOnly(thisPosition_); }
- }
- public int ThisPositionCount {
- get { return thisPosition_.Count; }
- }
- public double GetThisPosition(int index) {
- return thisPosition_[index];
- }
-
- public const int OtherPositionFieldNumber = 4;
- private int otherPositionMemoizedSerializedSize;
- private pbc::PopsicleList otherPosition_ = new pbc::PopsicleList();
- public scg::IList OtherPositionList {
- get { return pbc::Lists.AsReadOnly(otherPosition_); }
- }
- public int OtherPositionCount {
- get { return otherPosition_.Count; }
- }
- public double GetOtherPosition(int index) {
- return otherPosition_[index];
- }
-
- public const int ThisNormalFieldNumber = 5;
- private int thisNormalMemoizedSerializedSize;
- private pbc::PopsicleList thisNormal_ = new pbc::PopsicleList();
- public scg::IList ThisNormalList {
- get { return pbc::Lists.AsReadOnly(thisNormal_); }
- }
- public int ThisNormalCount {
- get { return thisNormal_.Count; }
- }
- public float GetThisNormal(int index) {
- return thisNormal_[index];
- }
-
- public const int ImpulseFieldNumber = 6;
- private int impulseMemoizedSerializedSize;
- private pbc::PopsicleList impulse_ = new pbc::PopsicleList();
- public scg::IList ImpulseList {
- get { return pbc::Lists.AsReadOnly(impulse_); }
- }
- public int ImpulseCount {
- get { return impulse_.Count; }
- }
- public float GetImpulse(int index) {
- return impulse_[index];
- }
-
- public const int OtherObjectReferenceFieldNumber = 7;
- private bool hasOtherObjectReference;
- private pb::ByteString otherObjectReference_ = pb::ByteString.Empty;
- public bool HasOtherObjectReference {
- get { return hasOtherObjectReference; }
- }
- public pb::ByteString OtherObjectReference {
- get { return otherObjectReference_; }
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- if (HasTimestamp) {
- output.WriteFixed64(2, Timestamp);
- }
- if (thisPosition_.Count > 0) {
- output.WriteRawVarint32(26);
- output.WriteRawVarint32((uint) thisPositionMemoizedSerializedSize);
- foreach (double element in thisPosition_) {
- output.WriteDoubleNoTag(element);
- }
- }
- if (otherPosition_.Count > 0) {
- output.WriteRawVarint32(34);
- output.WriteRawVarint32((uint) otherPositionMemoizedSerializedSize);
- foreach (double element in otherPosition_) {
- output.WriteDoubleNoTag(element);
- }
- }
- if (thisNormal_.Count > 0) {
- output.WriteRawVarint32(42);
- output.WriteRawVarint32((uint) thisNormalMemoizedSerializedSize);
- foreach (float element in thisNormal_) {
- output.WriteFloatNoTag(element);
- }
- }
- if (impulse_.Count > 0) {
- output.WriteRawVarint32(50);
- output.WriteRawVarint32((uint) impulseMemoizedSerializedSize);
- foreach (float element in impulse_) {
- output.WriteFloatNoTag(element);
- }
- }
- if (HasOtherObjectReference) {
- output.WriteBytes(7, OtherObjectReference);
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (HasTimestamp) {
- size += pb::CodedOutputStream.ComputeFixed64Size(2, Timestamp);
- }
- {
- int dataSize = 0;
- dataSize = 8 * thisPosition_.Count;
- size += dataSize;
- if (thisPosition_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- thisPositionMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- dataSize = 8 * otherPosition_.Count;
- size += dataSize;
- if (otherPosition_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- otherPositionMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- dataSize = 4 * thisNormal_.Count;
- size += dataSize;
- if (thisNormal_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- thisNormalMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- dataSize = 4 * impulse_.Count;
- size += dataSize;
- if (impulse_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- impulseMemoizedSerializedSize = dataSize;
- }
- if (HasOtherObjectReference) {
- size += pb::CodedOutputStream.ComputeBytesSize(7, OtherObjectReference);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static CollisionBegin ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static CollisionBegin ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static CollisionBegin ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static CollisionBegin ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static CollisionBegin ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static CollisionBegin ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static CollisionBegin ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static CollisionBegin ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static CollisionBegin ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static CollisionBegin ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(CollisionBegin prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- CollisionBegin result = new CollisionBegin();
-
- protected override CollisionBegin MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new CollisionBegin();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionBegin.Descriptor; }
- }
-
- public override CollisionBegin DefaultInstanceForType {
- get { return global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionBegin.DefaultInstance; }
- }
-
- public override CollisionBegin BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- result.thisPosition_.MakeReadOnly();
- result.otherPosition_.MakeReadOnly();
- result.thisNormal_.MakeReadOnly();
- result.impulse_.MakeReadOnly();
- CollisionBegin returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is CollisionBegin) {
- return MergeFrom((CollisionBegin) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(CollisionBegin other) {
- if (other == global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionBegin.DefaultInstance) return this;
- if (other.HasTimestamp) {
- Timestamp = other.Timestamp;
- }
- if (other.thisPosition_.Count != 0) {
- base.AddRange(other.thisPosition_, result.thisPosition_);
- }
- if (other.otherPosition_.Count != 0) {
- base.AddRange(other.otherPosition_, result.otherPosition_);
- }
- if (other.thisNormal_.Count != 0) {
- base.AddRange(other.thisNormal_, result.thisNormal_);
- }
- if (other.impulse_.Count != 0) {
- base.AddRange(other.impulse_, result.impulse_);
- }
- if (other.HasOtherObjectReference) {
- OtherObjectReference = other.OtherObjectReference;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 17: {
- Timestamp = input.ReadFixed64();
- break;
- }
- case 26: {
- int length = input.ReadInt32();
- int limit = input.PushLimit(length);
- while (!input.ReachedLimit) {
- AddThisPosition(input.ReadDouble());
- }
- input.PopLimit(limit);
- break;
- }
- case 34: {
- int length = input.ReadInt32();
- int limit = input.PushLimit(length);
- while (!input.ReachedLimit) {
- AddOtherPosition(input.ReadDouble());
- }
- input.PopLimit(limit);
- break;
- }
- case 42: {
- int length = input.ReadInt32();
- int limit = input.PushLimit(length);
- while (!input.ReachedLimit) {
- AddThisNormal(input.ReadFloat());
- }
- input.PopLimit(limit);
- break;
- }
- case 50: {
- int length = input.ReadInt32();
- int limit = input.PushLimit(length);
- while (!input.ReachedLimit) {
- AddImpulse(input.ReadFloat());
- }
- input.PopLimit(limit);
- break;
- }
- case 58: {
- OtherObjectReference = input.ReadBytes();
- break;
- }
- }
- }
- }
-
-
- public bool HasTimestamp {
- get { return result.HasTimestamp; }
- }
- [global::System.CLSCompliant(false)]
- public ulong Timestamp {
- get { return result.Timestamp; }
- set { SetTimestamp(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetTimestamp(ulong value) {
- result.hasTimestamp = true;
- result.timestamp_ = value;
- return this;
- }
- public Builder ClearTimestamp() {
- result.hasTimestamp = false;
- result.timestamp_ = 0;
- return this;
- }
-
- public pbc::IPopsicleList ThisPositionList {
- get { return result.thisPosition_; }
- }
- public int ThisPositionCount {
- get { return result.ThisPositionCount; }
- }
- public double GetThisPosition(int index) {
- return result.GetThisPosition(index);
- }
- public Builder SetThisPosition(int index, double value) {
- result.thisPosition_[index] = value;
- return this;
- }
- public Builder AddThisPosition(double value) {
- result.thisPosition_.Add(value);
- return this;
- }
- public Builder AddRangeThisPosition(scg::IEnumerable values) {
- base.AddRange(values, result.thisPosition_);
- return this;
- }
- public Builder ClearThisPosition() {
- result.thisPosition_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList OtherPositionList {
- get { return result.otherPosition_; }
- }
- public int OtherPositionCount {
- get { return result.OtherPositionCount; }
- }
- public double GetOtherPosition(int index) {
- return result.GetOtherPosition(index);
- }
- public Builder SetOtherPosition(int index, double value) {
- result.otherPosition_[index] = value;
- return this;
- }
- public Builder AddOtherPosition(double value) {
- result.otherPosition_.Add(value);
- return this;
- }
- public Builder AddRangeOtherPosition(scg::IEnumerable values) {
- base.AddRange(values, result.otherPosition_);
- return this;
- }
- public Builder ClearOtherPosition() {
- result.otherPosition_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList ThisNormalList {
- get { return result.thisNormal_; }
- }
- public int ThisNormalCount {
- get { return result.ThisNormalCount; }
- }
- public float GetThisNormal(int index) {
- return result.GetThisNormal(index);
- }
- public Builder SetThisNormal(int index, float value) {
- result.thisNormal_[index] = value;
- return this;
- }
- public Builder AddThisNormal(float value) {
- result.thisNormal_.Add(value);
- return this;
- }
- public Builder AddRangeThisNormal(scg::IEnumerable values) {
- base.AddRange(values, result.thisNormal_);
- return this;
- }
- public Builder ClearThisNormal() {
- result.thisNormal_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList ImpulseList {
- get { return result.impulse_; }
- }
- public int ImpulseCount {
- get { return result.ImpulseCount; }
- }
- public float GetImpulse(int index) {
- return result.GetImpulse(index);
- }
- public Builder SetImpulse(int index, float value) {
- result.impulse_[index] = value;
- return this;
- }
- public Builder AddImpulse(float value) {
- result.impulse_.Add(value);
- return this;
- }
- public Builder AddRangeImpulse(scg::IEnumerable values) {
- base.AddRange(values, result.impulse_);
- return this;
- }
- public Builder ClearImpulse() {
- result.impulse_.Clear();
- return this;
- }
-
- public bool HasOtherObjectReference {
- get { return result.HasOtherObjectReference; }
- }
- public pb::ByteString OtherObjectReference {
- get { return result.OtherObjectReference; }
- set { SetOtherObjectReference(value); }
- }
- public Builder SetOtherObjectReference(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasOtherObjectReference = true;
- result.otherObjectReference_ = value;
- return this;
- }
- public Builder ClearOtherObjectReference() {
- result.hasOtherObjectReference = false;
- result.otherObjectReference_ = pb::ByteString.Empty;
- return this;
- }
- }
- static CollisionBegin() {
- object.ReferenceEquals(global::Sirikata.Physics.Protocol._PBJ_Internal.Physics.Descriptor, null);
- }
- }
-
- public sealed partial class CollisionEnd : pb::GeneratedMessage {
- private static readonly CollisionEnd defaultInstance = new Builder().BuildPartial();
- public static CollisionEnd DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override CollisionEnd DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override CollisionEnd ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Physics.Protocol._PBJ_Internal.Physics.internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionEnd__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
- get { return global::Sirikata.Physics.Protocol._PBJ_Internal.Physics.internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionEnd__FieldAccessorTable; }
- }
-
- public const int TimestampFieldNumber = 2;
- private bool hasTimestamp;
- private ulong timestamp_ = 0;
- public bool HasTimestamp {
- get { return hasTimestamp; }
- }
- [global::System.CLSCompliant(false)]
- public ulong Timestamp {
- get { return timestamp_; }
- }
-
- public const int OtherObjectReferenceFieldNumber = 6;
- private bool hasOtherObjectReference;
- private pb::ByteString otherObjectReference_ = pb::ByteString.Empty;
- public bool HasOtherObjectReference {
- get { return hasOtherObjectReference; }
- }
- public pb::ByteString OtherObjectReference {
- get { return otherObjectReference_; }
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- if (HasTimestamp) {
- output.WriteFixed64(2, Timestamp);
- }
- if (HasOtherObjectReference) {
- output.WriteBytes(6, OtherObjectReference);
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (HasTimestamp) {
- size += pb::CodedOutputStream.ComputeFixed64Size(2, Timestamp);
- }
- if (HasOtherObjectReference) {
- size += pb::CodedOutputStream.ComputeBytesSize(6, OtherObjectReference);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static CollisionEnd ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static CollisionEnd ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static CollisionEnd ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static CollisionEnd ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static CollisionEnd ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static CollisionEnd ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static CollisionEnd ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static CollisionEnd ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static CollisionEnd ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static CollisionEnd ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(CollisionEnd prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- CollisionEnd result = new CollisionEnd();
-
- protected override CollisionEnd MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new CollisionEnd();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionEnd.Descriptor; }
- }
-
- public override CollisionEnd DefaultInstanceForType {
- get { return global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionEnd.DefaultInstance; }
- }
-
- public override CollisionEnd BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- CollisionEnd returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is CollisionEnd) {
- return MergeFrom((CollisionEnd) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(CollisionEnd other) {
- if (other == global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionEnd.DefaultInstance) return this;
- if (other.HasTimestamp) {
- Timestamp = other.Timestamp;
- }
- if (other.HasOtherObjectReference) {
- OtherObjectReference = other.OtherObjectReference;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 17: {
- Timestamp = input.ReadFixed64();
- break;
- }
- case 50: {
- OtherObjectReference = input.ReadBytes();
- break;
- }
- }
- }
- }
-
-
- public bool HasTimestamp {
- get { return result.HasTimestamp; }
- }
- [global::System.CLSCompliant(false)]
- public ulong Timestamp {
- get { return result.Timestamp; }
- set { SetTimestamp(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetTimestamp(ulong value) {
- result.hasTimestamp = true;
- result.timestamp_ = value;
- return this;
- }
- public Builder ClearTimestamp() {
- result.hasTimestamp = false;
- result.timestamp_ = 0;
- return this;
- }
-
- public bool HasOtherObjectReference {
- get { return result.HasOtherObjectReference; }
- }
- public pb::ByteString OtherObjectReference {
- get { return result.OtherObjectReference; }
- set { SetOtherObjectReference(value); }
- }
- public Builder SetOtherObjectReference(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasOtherObjectReference = true;
- result.otherObjectReference_ = value;
- return this;
- }
- public Builder ClearOtherObjectReference() {
- result.hasOtherObjectReference = false;
- result.otherObjectReference_ = pb::ByteString.Empty;
- return this;
- }
- }
- static CollisionEnd() {
- object.ReferenceEquals(global::Sirikata.Physics.Protocol._PBJ_Internal.Physics.Descriptor, null);
- }
- }
-
- #endregion
-
-}
diff --git a/OpenSim/Client/Sirikata/Protocol/Physics.pbj.cs b/OpenSim/Client/Sirikata/Protocol/Physics.pbj.cs
deleted file mode 100644
index 9fb5a28876..0000000000
--- a/OpenSim/Client/Sirikata/Protocol/Physics.pbj.cs
+++ /dev/null
@@ -1,421 +0,0 @@
-/*
- * Copyright (c) Contributors, http://opensimulator.org/
- * See CONTRIBUTORS.TXT for a full list of copyright holders.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of the OpenSimulator Project nor the
- * names of its contributors may be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-using pbd = global::Google.ProtocolBuffers.Descriptors;
-using pb = global::Google.ProtocolBuffers;
-namespace Sirikata.Physics.Protocol {
- public class CollisionBegin : PBJ.IMessage {
- protected _PBJ_Internal.CollisionBegin super;
- public _PBJ_Internal.CollisionBegin _PBJSuper{ get { return super;} }
- public CollisionBegin() {
- super=new _PBJ_Internal.CollisionBegin();
- }
- public CollisionBegin(_PBJ_Internal.CollisionBegin reference) {
- super=reference;
- }
- public static CollisionBegin defaultInstance= new CollisionBegin (_PBJ_Internal.CollisionBegin.DefaultInstance);
- public static CollisionBegin DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.CollisionBegin.Descriptor; } }
- public static class Types {
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false;
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false;
- }
- public const int TimestampFieldTag=2;
- public bool HasTimestamp{ get {return super.HasTimestamp&&PBJ._PBJ.ValidateTime(super.Timestamp);} }
- public PBJ.Time Timestamp{ get {
- if (HasTimestamp) {
- return PBJ._PBJ.CastTime(super.Timestamp);
- } else {
- return PBJ._PBJ.CastTime();
- }
- }
- }
- public const int ThisPositionFieldTag=3;
- public int ThisPositionCount { get { return super.ThisPositionCount/3;} }
- public bool HasThisPosition(int index) { return true; }
- public PBJ.Vector3d GetThisPosition(int index) {
- if (HasThisPosition(index)) {
- return PBJ._PBJ.CastVector3d(super.GetThisPosition(index*3+0),super.GetThisPosition(index*3+1),super.GetThisPosition(index*3+2));
- } else {
- return PBJ._PBJ.CastVector3d();
- }
- }
- public const int OtherPositionFieldTag=4;
- public int OtherPositionCount { get { return super.OtherPositionCount/3;} }
- public bool HasOtherPosition(int index) { return true; }
- public PBJ.Vector3d GetOtherPosition(int index) {
- if (HasOtherPosition(index)) {
- return PBJ._PBJ.CastVector3d(super.GetOtherPosition(index*3+0),super.GetOtherPosition(index*3+1),super.GetOtherPosition(index*3+2));
- } else {
- return PBJ._PBJ.CastVector3d();
- }
- }
- public const int ThisNormalFieldTag=5;
- public int ThisNormalCount { get { return super.ThisNormalCount/2;} }
- public bool HasThisNormal(int index) { return true; }
- public PBJ.Vector3f GetThisNormal(int index) {
- if (HasThisNormal(index)) {
- return PBJ._PBJ.CastNormal(super.GetThisNormal(index*2+0),super.GetThisNormal(index*2+1));
- } else {
- return PBJ._PBJ.CastNormal();
- }
- }
- public const int ImpulseFieldTag=6;
- public int ImpulseCount { get { return super.ImpulseCount;} }
- public bool HasImpulse(int index) {return PBJ._PBJ.ValidateFloat(super.GetImpulse(index));}
- public float Impulse(int index) {
- return (float)PBJ._PBJ.CastFloat(super.GetImpulse(index));
- }
- public const int OtherObjectReferenceFieldTag=7;
- public bool HasOtherObjectReference{ get {return super.HasOtherObjectReference&&PBJ._PBJ.ValidateUuid(super.OtherObjectReference);} }
- public PBJ.UUID OtherObjectReference{ get {
- if (HasOtherObjectReference) {
- return PBJ._PBJ.CastUuid(super.OtherObjectReference);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(CollisionBegin prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static CollisionBegin ParseFrom(pb::ByteString data) {
- return new CollisionBegin(_PBJ_Internal.CollisionBegin.ParseFrom(data));
- }
- public static CollisionBegin ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new CollisionBegin(_PBJ_Internal.CollisionBegin.ParseFrom(data,er));
- }
- public static CollisionBegin ParseFrom(byte[] data) {
- return new CollisionBegin(_PBJ_Internal.CollisionBegin.ParseFrom(data));
- }
- public static CollisionBegin ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new CollisionBegin(_PBJ_Internal.CollisionBegin.ParseFrom(data,er));
- }
- public static CollisionBegin ParseFrom(global::System.IO.Stream data) {
- return new CollisionBegin(_PBJ_Internal.CollisionBegin.ParseFrom(data));
- }
- public static CollisionBegin ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new CollisionBegin(_PBJ_Internal.CollisionBegin.ParseFrom(data,er));
- }
- public static CollisionBegin ParseFrom(pb::CodedInputStream data) {
- return new CollisionBegin(_PBJ_Internal.CollisionBegin.ParseFrom(data));
- }
- public static CollisionBegin ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new CollisionBegin(_PBJ_Internal.CollisionBegin.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.CollisionBegin.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.CollisionBegin.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.CollisionBegin.Builder();}
- public Builder(_PBJ_Internal.CollisionBegin.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(CollisionBegin prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public CollisionBegin BuildPartial() {return new CollisionBegin(super.BuildPartial());}
- public CollisionBegin Build() {if (_HasAllPBJFields) return new CollisionBegin(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return CollisionBegin.Descriptor; } }
- public Builder ClearTimestamp() { super.ClearTimestamp();return this;}
- public const int TimestampFieldTag=2;
- public bool HasTimestamp{ get {return super.HasTimestamp&&PBJ._PBJ.ValidateTime(super.Timestamp);} }
- public PBJ.Time Timestamp{ get {
- if (HasTimestamp) {
- return PBJ._PBJ.CastTime(super.Timestamp);
- } else {
- return PBJ._PBJ.CastTime();
- }
- }
- set {
- super.Timestamp=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearThisPosition() { super.ClearThisPosition();return this;}
- public const int ThisPositionFieldTag=3;
- public int ThisPositionCount { get { return super.ThisPositionCount/3;} }
- public bool HasThisPosition(int index) { return true; }
- public PBJ.Vector3d GetThisPosition(int index) {
- if (HasThisPosition(index)) {
- return PBJ._PBJ.CastVector3d(super.GetThisPosition(index*3+0),super.GetThisPosition(index*3+1),super.GetThisPosition(index*3+2));
- } else {
- return PBJ._PBJ.CastVector3d();
- }
- }
- public Builder AddThisPosition(PBJ.Vector3d value) {
- double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
- super.AddThisPosition(_PBJtempArray[0]);
- super.AddThisPosition(_PBJtempArray[1]);
- super.AddThisPosition(_PBJtempArray[2]);
- return this;
- }
- public Builder SetThisPosition(int index,PBJ.Vector3d value) {
- double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
- super.SetThisPosition(index*3+0,_PBJtempArray[0]);
- super.SetThisPosition(index*3+1,_PBJtempArray[1]);
- super.SetThisPosition(index*3+2,_PBJtempArray[2]);
- return this;
- }
- public Builder ClearOtherPosition() { super.ClearOtherPosition();return this;}
- public const int OtherPositionFieldTag=4;
- public int OtherPositionCount { get { return super.OtherPositionCount/3;} }
- public bool HasOtherPosition(int index) { return true; }
- public PBJ.Vector3d GetOtherPosition(int index) {
- if (HasOtherPosition(index)) {
- return PBJ._PBJ.CastVector3d(super.GetOtherPosition(index*3+0),super.GetOtherPosition(index*3+1),super.GetOtherPosition(index*3+2));
- } else {
- return PBJ._PBJ.CastVector3d();
- }
- }
- public Builder AddOtherPosition(PBJ.Vector3d value) {
- double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
- super.AddOtherPosition(_PBJtempArray[0]);
- super.AddOtherPosition(_PBJtempArray[1]);
- super.AddOtherPosition(_PBJtempArray[2]);
- return this;
- }
- public Builder SetOtherPosition(int index,PBJ.Vector3d value) {
- double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
- super.SetOtherPosition(index*3+0,_PBJtempArray[0]);
- super.SetOtherPosition(index*3+1,_PBJtempArray[1]);
- super.SetOtherPosition(index*3+2,_PBJtempArray[2]);
- return this;
- }
- public Builder ClearThisNormal() { super.ClearThisNormal();return this;}
- public const int ThisNormalFieldTag=5;
- public int ThisNormalCount { get { return super.ThisNormalCount/2;} }
- public bool HasThisNormal(int index) { return true; }
- public PBJ.Vector3f GetThisNormal(int index) {
- if (HasThisNormal(index)) {
- return PBJ._PBJ.CastNormal(super.GetThisNormal(index*2+0),super.GetThisNormal(index*2+1));
- } else {
- return PBJ._PBJ.CastNormal();
- }
- }
- public Builder AddThisNormal(PBJ.Vector3f value) {
- float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
- super.AddThisNormal(_PBJtempArray[0]);
- super.AddThisNormal(_PBJtempArray[1]);
- return this;
- }
- public Builder SetThisNormal(int index,PBJ.Vector3f value) {
- float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
- super.SetThisNormal(index*2+0,_PBJtempArray[0]);
- super.SetThisNormal(index*2+1,_PBJtempArray[1]);
- return this;
- }
- public Builder ClearImpulse() { super.ClearImpulse();return this;}
- public Builder SetImpulse(int index, float value) {
- super.SetImpulse(index,PBJ._PBJ.Construct(value));
- return this;
- }
- public const int ImpulseFieldTag=6;
- public int ImpulseCount { get { return super.ImpulseCount;} }
- public bool HasImpulse(int index) {return PBJ._PBJ.ValidateFloat(super.GetImpulse(index));}
- public float Impulse(int index) {
- return (float)PBJ._PBJ.CastFloat(super.GetImpulse(index));
- }
- public Builder AddImpulse(float value) {
- super.AddImpulse(PBJ._PBJ.Construct(value));
- return this;
- }
- public Builder ClearOtherObjectReference() { super.ClearOtherObjectReference();return this;}
- public const int OtherObjectReferenceFieldTag=7;
- public bool HasOtherObjectReference{ get {return super.HasOtherObjectReference&&PBJ._PBJ.ValidateUuid(super.OtherObjectReference);} }
- public PBJ.UUID OtherObjectReference{ get {
- if (HasOtherObjectReference) {
- return PBJ._PBJ.CastUuid(super.OtherObjectReference);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- set {
- super.OtherObjectReference=(PBJ._PBJ.Construct(value));
- }
- }
- }
- }
-}
-namespace Sirikata.Physics.Protocol {
- public class CollisionEnd : PBJ.IMessage {
- protected _PBJ_Internal.CollisionEnd super;
- public _PBJ_Internal.CollisionEnd _PBJSuper{ get { return super;} }
- public CollisionEnd() {
- super=new _PBJ_Internal.CollisionEnd();
- }
- public CollisionEnd(_PBJ_Internal.CollisionEnd reference) {
- super=reference;
- }
- public static CollisionEnd defaultInstance= new CollisionEnd (_PBJ_Internal.CollisionEnd.DefaultInstance);
- public static CollisionEnd DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.CollisionEnd.Descriptor; } }
- public static class Types {
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false;
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false;
- }
- public const int TimestampFieldTag=2;
- public bool HasTimestamp{ get {return super.HasTimestamp&&PBJ._PBJ.ValidateTime(super.Timestamp);} }
- public PBJ.Time Timestamp{ get {
- if (HasTimestamp) {
- return PBJ._PBJ.CastTime(super.Timestamp);
- } else {
- return PBJ._PBJ.CastTime();
- }
- }
- }
- public const int OtherObjectReferenceFieldTag=6;
- public bool HasOtherObjectReference{ get {return super.HasOtherObjectReference&&PBJ._PBJ.ValidateUuid(super.OtherObjectReference);} }
- public PBJ.UUID OtherObjectReference{ get {
- if (HasOtherObjectReference) {
- return PBJ._PBJ.CastUuid(super.OtherObjectReference);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(CollisionEnd prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static CollisionEnd ParseFrom(pb::ByteString data) {
- return new CollisionEnd(_PBJ_Internal.CollisionEnd.ParseFrom(data));
- }
- public static CollisionEnd ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new CollisionEnd(_PBJ_Internal.CollisionEnd.ParseFrom(data,er));
- }
- public static CollisionEnd ParseFrom(byte[] data) {
- return new CollisionEnd(_PBJ_Internal.CollisionEnd.ParseFrom(data));
- }
- public static CollisionEnd ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new CollisionEnd(_PBJ_Internal.CollisionEnd.ParseFrom(data,er));
- }
- public static CollisionEnd ParseFrom(global::System.IO.Stream data) {
- return new CollisionEnd(_PBJ_Internal.CollisionEnd.ParseFrom(data));
- }
- public static CollisionEnd ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new CollisionEnd(_PBJ_Internal.CollisionEnd.ParseFrom(data,er));
- }
- public static CollisionEnd ParseFrom(pb::CodedInputStream data) {
- return new CollisionEnd(_PBJ_Internal.CollisionEnd.ParseFrom(data));
- }
- public static CollisionEnd ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new CollisionEnd(_PBJ_Internal.CollisionEnd.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.CollisionEnd.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.CollisionEnd.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.CollisionEnd.Builder();}
- public Builder(_PBJ_Internal.CollisionEnd.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(CollisionEnd prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public CollisionEnd BuildPartial() {return new CollisionEnd(super.BuildPartial());}
- public CollisionEnd Build() {if (_HasAllPBJFields) return new CollisionEnd(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return CollisionEnd.Descriptor; } }
- public Builder ClearTimestamp() { super.ClearTimestamp();return this;}
- public const int TimestampFieldTag=2;
- public bool HasTimestamp{ get {return super.HasTimestamp&&PBJ._PBJ.ValidateTime(super.Timestamp);} }
- public PBJ.Time Timestamp{ get {
- if (HasTimestamp) {
- return PBJ._PBJ.CastTime(super.Timestamp);
- } else {
- return PBJ._PBJ.CastTime();
- }
- }
- set {
- super.Timestamp=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearOtherObjectReference() { super.ClearOtherObjectReference();return this;}
- public const int OtherObjectReferenceFieldTag=6;
- public bool HasOtherObjectReference{ get {return super.HasOtherObjectReference&&PBJ._PBJ.ValidateUuid(super.OtherObjectReference);} }
- public PBJ.UUID OtherObjectReference{ get {
- if (HasOtherObjectReference) {
- return PBJ._PBJ.CastUuid(super.OtherObjectReference);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- set {
- super.OtherObjectReference=(PBJ._PBJ.Construct(value));
- }
- }
- }
- }
-}
diff --git a/OpenSim/Client/Sirikata/Protocol/Sirikata.cs b/OpenSim/Client/Sirikata/Protocol/Sirikata.cs
deleted file mode 100644
index 928308626f..0000000000
--- a/OpenSim/Client/Sirikata/Protocol/Sirikata.cs
+++ /dev/null
@@ -1,8074 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-
-using pb = global::Google.ProtocolBuffers;
-using pbc = global::Google.ProtocolBuffers.Collections;
-using pbd = global::Google.ProtocolBuffers.Descriptors;
-using scg = global::System.Collections.Generic;
-namespace Sirikata.Protocol._PBJ_Internal {
-
- public static partial class Sirikata {
-
- #region Extension registration
- public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
- }
- #endregion
- #region Static variables
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_MessageBody__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_MessageBody__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_ReadOnlyMessage__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_ReadOnlyMessage__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_SpaceServices__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_SpaceServices__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_ObjLoc__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_ObjLoc__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_LocRequest__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_LocRequest__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_NewObj__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_NewObj__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_RetObj__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_RetObj__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_DelObj__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_DelObj__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_NewProxQuery__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_NewProxQuery__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_ProxCall__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_ProxCall__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_DelProxQuery__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_DelProxQuery__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_Vector3fProperty__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_Vector3fProperty__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_StringProperty__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_StringProperty__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_StringMapProperty__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_StringMapProperty__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_PhysicalParameters__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_PhysicalParameters__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_LightInfoProperty__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_LightInfoProperty__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_ParentProperty__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_ParentProperty__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_UUIDListProperty__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_UUIDListProperty__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_ConnectToSpace__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_ConnectToSpace__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_CreateObject__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_Sirikata_Protocol__PBJ_Internal_CreateObject__FieldAccessorTable;
- #endregion
- #region Descriptor
- public static pbd::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbd::FileDescriptor descriptor;
-
- static Sirikata() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- "Cg5TaXJpa2F0YS5wcm90bxIfU2lyaWthdGEuUHJvdG9jb2wuX1BCSl9JbnRl" +
- "cm5hbCI/CgtNZXNzYWdlQm9keRIVCg1tZXNzYWdlX25hbWVzGAkgAygJEhkK" +
- "EW1lc3NhZ2VfYXJndW1lbnRzGAogAygMIroDCg9SZWFkT25seU1lc3NhZ2US" +
- "FQoNc291cmNlX29iamVjdBgBIAEoDBITCgtzb3VyY2VfcG9ydBgDIAEoDRIV" +
- "Cgxzb3VyY2Vfc3BhY2UYgAwgASgMEhoKEmRlc3RpbmF0aW9uX29iamVjdBgC" +
- "IAEoDBIYChBkZXN0aW5hdGlvbl9wb3J0GAQgASgNEhoKEWRlc3RpbmF0aW9u" +
- "X3NwYWNlGIEMIAEoDBIKCgJpZBgHIAEoAxIQCghyZXBseV9pZBgIIAEoAxJV" +
- "Cg1yZXR1cm5fc3RhdHVzGIAOIAEoDjI9LlNpcmlrYXRhLlByb3RvY29sLl9Q" +
- "QkpfSW50ZXJuYWwuUmVhZE9ubHlNZXNzYWdlLlJldHVyblN0YXR1cxIVCg1t" +
- "ZXNzYWdlX25hbWVzGAkgAygJEhkKEW1lc3NhZ2VfYXJndW1lbnRzGAogAygM" +
- "ImsKDFJldHVyblN0YXR1cxILCgdTVUNDRVNTEAASEwoPTkVUV09SS19GQUlM" +
- "VVJFEAESEwoPVElNRU9VVF9GQUlMVVJFEAMSEgoOUFJPVE9DT0xfRVJST1IQ" +
- "BBIQCgxQT1JUX0ZBSUxVUkUQBSLOAQoNU3BhY2VTZXJ2aWNlcxIZChFyZWdp" +
- "c3RyYXRpb25fcG9ydBghIAEoDRIQCghsb2NfcG9ydBgiIAEoDRIRCglnZW9t" +
- "X3BvcnQYIyABKA0SEQoJb3NlZ19wb3J0GCQgASgNEhEKCWNzZWdfcG9ydBgl" +
- "IAEoDRITCgtyb3V0ZXJfcG9ydBgmIAEoDRIdChVwcmVfY29ubmVjdGlvbl9i" +
- "dWZmZXIYQCABKAQSIwobbWF4X3ByZV9jb25uZWN0aW9uX21lc3NhZ2VzGEEg" +
- "ASgEIsQBCgZPYmpMb2MSEQoJdGltZXN0YW1wGAIgASgGEhQKCHBvc2l0aW9u" +
- "GAMgAygBQgIQARIXCgtvcmllbnRhdGlvbhgEIAMoAkICEAESFAoIdmVsb2Np" +
- "dHkYBSADKAJCAhABEhsKD3JvdGF0aW9uYWxfYXhpcxgHIAMoAkICEAESFQoN" +
- "YW5ndWxhcl9zcGVlZBgIIAEoAhIUCgx1cGRhdGVfZmxhZ3MYBiABKA0iGAoL" +
- "VXBkYXRlRmxhZ3MSCQoFRk9SQ0UQASKFAQoKTG9jUmVxdWVzdBIYChByZXF1" +
- "ZXN0ZWRfZmllbGRzGAIgASgNIl0KBkZpZWxkcxIMCghQT1NJVElPThABEg8K" +
- "C09SSUVOVEFUSU9OEAISDAoIVkVMT0NJVFkQBBITCg9ST1RBVElPTkFMX0FY" +
- "SVMQCBIRCg1BTkdVTEFSX1NQRUVEEBAiigEKBk5ld09iahIcChRvYmplY3Rf" +
- "dXVpZF9ldmlkZW5jZRgCIAEoDBJFChRyZXF1ZXN0ZWRfb2JqZWN0X2xvYxgD" +
- "IAEoCzInLlNpcmlrYXRhLlByb3RvY29sLl9QQkpfSW50ZXJuYWwuT2JqTG9j" +
- "EhsKD2JvdW5kaW5nX3NwaGVyZRgEIAMoAkICEAEiegoGUmV0T2JqEhgKEG9i" +
- "amVjdF9yZWZlcmVuY2UYAiABKAwSOQoIbG9jYXRpb24YAyABKAsyJy5TaXJp" +
- "a2F0YS5Qcm90b2NvbC5fUEJKX0ludGVybmFsLk9iakxvYxIbCg9ib3VuZGlu" +
- "Z19zcGhlcmUYBCADKAJCAhABIiIKBkRlbE9iahIYChBvYmplY3RfcmVmZXJl" +
- "bmNlGAIgASgMIpoBCgxOZXdQcm94UXVlcnkSEAoIcXVlcnlfaWQYAiABKA0S" +
- "EQoJc3RhdGVsZXNzGAMgASgIEhsKD3JlbGF0aXZlX2NlbnRlchgEIAMoAkIC" +
- "EAESGwoPYWJzb2x1dGVfY2VudGVyGAUgAygBQgIQARISCgptYXhfcmFkaXVz" +
- "GAYgASgCEhcKD21pbl9zb2xpZF9hbmdsZRgHIAEoAiLhAQoIUHJveENhbGwS" +
- "EAoIcXVlcnlfaWQYAiACKA0SGAoQcHJveGltYXRlX29iamVjdBgDIAIoDBJR" +
- "Cg9wcm94aW1pdHlfZXZlbnQYBCACKA4yOC5TaXJpa2F0YS5Qcm90b2NvbC5f" +
- "UEJKX0ludGVybmFsLlByb3hDYWxsLlByb3hpbWl0eUV2ZW50IlYKDlByb3hp" +
- "bWl0eUV2ZW50EhQKEEVYSVRFRF9QUk9YSU1JVFkQABIVChFFTlRFUkVEX1BS" +
- "T1hJTUlUWRABEhcKE1NUQVRFTEVTU19QUk9YSU1JVFkQAiIgCgxEZWxQcm94" +
- "UXVlcnkSEAoIcXVlcnlfaWQYAiABKA0iJQoQVmVjdG9yM2ZQcm9wZXJ0eRIR" +
- "CgV2YWx1ZRgKIAMoAkICEAEiHwoOU3RyaW5nUHJvcGVydHkSDQoFdmFsdWUY" +
- "CiABKAkiMQoRU3RyaW5nTWFwUHJvcGVydHkSDAoEa2V5cxgCIAMoCRIOCgZ2" +
- "YWx1ZXMYAyADKAkiyQIKElBoeXNpY2FsUGFyYW1ldGVycxJGCgRtb2RlGAIg" +
- "ASgOMjguU2lyaWthdGEuUHJvdG9jb2wuX1BCSl9JbnRlcm5hbC5QaHlzaWNh" +
- "bFBhcmFtZXRlcnMuTW9kZRIPCgdkZW5zaXR5GAMgASgCEhAKCGZyaWN0aW9u" +
- "GAQgASgCEg4KBmJvdW5jZRgFIAEoAhIQCgRodWxsGAYgAygCQgIQARITCgtj" +
- "b2xsaWRlX21zZxgQIAEoDRIUCgxjb2xsaWRlX21hc2sYESABKA0SDwoHZ3Jh" +
- "dml0eRgSIAEoAiJqCgRNb2RlEg8KC05PTlBIWVNJQ0FMEAASCgoGU1RBVElD" +
- "EAESDgoKRFlOQU1JQ0JPWBACEhEKDURZTkFNSUNTUEhFUkUQAxITCg9EWU5B" +
- "TUlDQ1lMSU5ERVIQBBINCglDSEFSQUNURVIQBSLaAwoRTGlnaHRJbmZvUHJv" +
- "cGVydHkSGQoNZGlmZnVzZV9jb2xvchgDIAMoAkICEAESGgoOc3BlY3VsYXJf" +
- "Y29sb3IYBCADKAJCAhABEg0KBXBvd2VyGAUgASgCEhkKDWFtYmllbnRfY29s" +
- "b3IYBiADKAJCAhABEhgKDHNoYWRvd19jb2xvchgHIAMoAkICEAESEwoLbGln" +
- "aHRfcmFuZ2UYCCABKAESGAoQY29uc3RhbnRfZmFsbG9mZhgJIAEoAhIWCg5s" +
- "aW5lYXJfZmFsbG9mZhgKIAEoAhIZChFxdWFkcmF0aWNfZmFsbG9mZhgLIAEo" +
- "AhIaChJjb25lX2lubmVyX3JhZGlhbnMYDCABKAISGgoSY29uZV9vdXRlcl9y" +
- "YWRpYW5zGA0gASgCEhQKDGNvbmVfZmFsbG9mZhgOIAEoAhJLCgR0eXBlGA8g" +
- "ASgOMj0uU2lyaWthdGEuUHJvdG9jb2wuX1BCSl9JbnRlcm5hbC5MaWdodElu" +
- "Zm9Qcm9wZXJ0eS5MaWdodFR5cGVzEhQKDGNhc3RzX3NoYWRvdxgQIAEoCCI3" +
- "CgpMaWdodFR5cGVzEgkKBVBPSU5UEAASDQoJU1BPVExJR0hUEAESDwoLRElS" +
- "RUNUSU9OQUwQAiIfCg5QYXJlbnRQcm9wZXJ0eRINCgV2YWx1ZRgKIAEoDCIh" +
- "ChBVVUlETGlzdFByb3BlcnR5Eg0KBXZhbHVlGAogAygMIqQBCg5Db25uZWN0" +
- "VG9TcGFjZRIQCghzcGFjZV9pZBgBIAEoDBIcChRvYmplY3RfdXVpZF9ldmlk" +
- "ZW5jZRgCIAEoDBJFChRyZXF1ZXN0ZWRfb2JqZWN0X2xvYxgDIAEoCzInLlNp" +
- "cmlrYXRhLlByb3RvY29sLl9QQkpfSW50ZXJuYWwuT2JqTG9jEhsKD2JvdW5k" +
- "aW5nX3NwaGVyZRgEIAMoAkICEAEivgIKDENyZWF0ZU9iamVjdBITCgtvYmpl" +
- "Y3RfdXVpZBgBIAEoDBJJChBzcGFjZV9wcm9wZXJ0aWVzGAIgAygLMi8uU2ly" +
- "aWthdGEuUHJvdG9jb2wuX1BCSl9JbnRlcm5hbC5Db25uZWN0VG9TcGFjZRIM" +
- "CgRtZXNoGAMgASgJEhEKBXNjYWxlGAQgAygCQgIQARIOCgZ3ZWJ1cmwYBSAB" +
- "KAkSRgoKbGlnaHRfaW5mbxgGIAEoCzIyLlNpcmlrYXRhLlByb3RvY29sLl9Q" +
- "QkpfSW50ZXJuYWwuTGlnaHRJbmZvUHJvcGVydHkSDgoGY2FtZXJhGAcgASgI" +
- "EkUKCHBoeXNpY2FsGAggASgLMjMuU2lyaWthdGEuUHJvdG9jb2wuX1BCSl9J" +
- "bnRlcm5hbC5QaHlzaWNhbFBhcmFtZXRlcnM=");
- pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
- descriptor = root;
- internal__static_Sirikata_Protocol__PBJ_Internal_MessageBody__Descriptor = Descriptor.MessageTypes[0];
- internal__static_Sirikata_Protocol__PBJ_Internal_MessageBody__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_MessageBody__Descriptor,
- new string[] { "MessageNames", "MessageArguments", });
- internal__static_Sirikata_Protocol__PBJ_Internal_ReadOnlyMessage__Descriptor = Descriptor.MessageTypes[1];
- internal__static_Sirikata_Protocol__PBJ_Internal_ReadOnlyMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_ReadOnlyMessage__Descriptor,
- new string[] { "SourceObject", "SourcePort", "SourceSpace", "DestinationObject", "DestinationPort", "DestinationSpace", "Id", "ReplyId", "ReturnStatus", "MessageNames", "MessageArguments", });
- internal__static_Sirikata_Protocol__PBJ_Internal_SpaceServices__Descriptor = Descriptor.MessageTypes[2];
- internal__static_Sirikata_Protocol__PBJ_Internal_SpaceServices__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_SpaceServices__Descriptor,
- new string[] { "RegistrationPort", "LocPort", "GeomPort", "OsegPort", "CsegPort", "RouterPort", "PreConnectionBuffer", "MaxPreConnectionMessages", });
- internal__static_Sirikata_Protocol__PBJ_Internal_ObjLoc__Descriptor = Descriptor.MessageTypes[3];
- internal__static_Sirikata_Protocol__PBJ_Internal_ObjLoc__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_ObjLoc__Descriptor,
- new string[] { "Timestamp", "Position", "Orientation", "Velocity", "RotationalAxis", "AngularSpeed", "UpdateFlags", });
- internal__static_Sirikata_Protocol__PBJ_Internal_LocRequest__Descriptor = Descriptor.MessageTypes[4];
- internal__static_Sirikata_Protocol__PBJ_Internal_LocRequest__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_LocRequest__Descriptor,
- new string[] { "RequestedFields", });
- internal__static_Sirikata_Protocol__PBJ_Internal_NewObj__Descriptor = Descriptor.MessageTypes[5];
- internal__static_Sirikata_Protocol__PBJ_Internal_NewObj__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_NewObj__Descriptor,
- new string[] { "ObjectUuidEvidence", "RequestedObjectLoc", "BoundingSphere", });
- internal__static_Sirikata_Protocol__PBJ_Internal_RetObj__Descriptor = Descriptor.MessageTypes[6];
- internal__static_Sirikata_Protocol__PBJ_Internal_RetObj__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_RetObj__Descriptor,
- new string[] { "ObjectReference", "Location", "BoundingSphere", });
- internal__static_Sirikata_Protocol__PBJ_Internal_DelObj__Descriptor = Descriptor.MessageTypes[7];
- internal__static_Sirikata_Protocol__PBJ_Internal_DelObj__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_DelObj__Descriptor,
- new string[] { "ObjectReference", });
- internal__static_Sirikata_Protocol__PBJ_Internal_NewProxQuery__Descriptor = Descriptor.MessageTypes[8];
- internal__static_Sirikata_Protocol__PBJ_Internal_NewProxQuery__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_NewProxQuery__Descriptor,
- new string[] { "QueryId", "Stateless", "RelativeCenter", "AbsoluteCenter", "MaxRadius", "MinSolidAngle", });
- internal__static_Sirikata_Protocol__PBJ_Internal_ProxCall__Descriptor = Descriptor.MessageTypes[9];
- internal__static_Sirikata_Protocol__PBJ_Internal_ProxCall__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_ProxCall__Descriptor,
- new string[] { "QueryId", "ProximateObject", "ProximityEvent", });
- internal__static_Sirikata_Protocol__PBJ_Internal_DelProxQuery__Descriptor = Descriptor.MessageTypes[10];
- internal__static_Sirikata_Protocol__PBJ_Internal_DelProxQuery__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_DelProxQuery__Descriptor,
- new string[] { "QueryId", });
- internal__static_Sirikata_Protocol__PBJ_Internal_Vector3fProperty__Descriptor = Descriptor.MessageTypes[11];
- internal__static_Sirikata_Protocol__PBJ_Internal_Vector3fProperty__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_Vector3fProperty__Descriptor,
- new string[] { "Value", });
- internal__static_Sirikata_Protocol__PBJ_Internal_StringProperty__Descriptor = Descriptor.MessageTypes[12];
- internal__static_Sirikata_Protocol__PBJ_Internal_StringProperty__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_StringProperty__Descriptor,
- new string[] { "Value", });
- internal__static_Sirikata_Protocol__PBJ_Internal_StringMapProperty__Descriptor = Descriptor.MessageTypes[13];
- internal__static_Sirikata_Protocol__PBJ_Internal_StringMapProperty__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_StringMapProperty__Descriptor,
- new string[] { "Keys", "Values", });
- internal__static_Sirikata_Protocol__PBJ_Internal_PhysicalParameters__Descriptor = Descriptor.MessageTypes[14];
- internal__static_Sirikata_Protocol__PBJ_Internal_PhysicalParameters__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_PhysicalParameters__Descriptor,
- new string[] { "Mode", "Density", "Friction", "Bounce", "Hull", "CollideMsg", "CollideMask", "Gravity", });
- internal__static_Sirikata_Protocol__PBJ_Internal_LightInfoProperty__Descriptor = Descriptor.MessageTypes[15];
- internal__static_Sirikata_Protocol__PBJ_Internal_LightInfoProperty__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_LightInfoProperty__Descriptor,
- new string[] { "DiffuseColor", "SpecularColor", "Power", "AmbientColor", "ShadowColor", "LightRange", "ConstantFalloff", "LinearFalloff", "QuadraticFalloff", "ConeInnerRadians", "ConeOuterRadians", "ConeFalloff", "Type", "CastsShadow", });
- internal__static_Sirikata_Protocol__PBJ_Internal_ParentProperty__Descriptor = Descriptor.MessageTypes[16];
- internal__static_Sirikata_Protocol__PBJ_Internal_ParentProperty__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_ParentProperty__Descriptor,
- new string[] { "Value", });
- internal__static_Sirikata_Protocol__PBJ_Internal_UUIDListProperty__Descriptor = Descriptor.MessageTypes[17];
- internal__static_Sirikata_Protocol__PBJ_Internal_UUIDListProperty__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_UUIDListProperty__Descriptor,
- new string[] { "Value", });
- internal__static_Sirikata_Protocol__PBJ_Internal_ConnectToSpace__Descriptor = Descriptor.MessageTypes[18];
- internal__static_Sirikata_Protocol__PBJ_Internal_ConnectToSpace__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_ConnectToSpace__Descriptor,
- new string[] { "SpaceId", "ObjectUuidEvidence", "RequestedObjectLoc", "BoundingSphere", });
- internal__static_Sirikata_Protocol__PBJ_Internal_CreateObject__Descriptor = Descriptor.MessageTypes[19];
- internal__static_Sirikata_Protocol__PBJ_Internal_CreateObject__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(internal__static_Sirikata_Protocol__PBJ_Internal_CreateObject__Descriptor,
- new string[] { "ObjectUuid", "SpaceProperties", "Mesh", "Scale", "Weburl", "LightInfo", "Camera", "Physical", });
- return null;
- };
- pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
- new pbd::FileDescriptor[] {
- }, assigner);
- }
- #endregion
-
- }
- #region Messages
- public sealed partial class MessageBody : pb::GeneratedMessage {
- private static readonly MessageBody defaultInstance = new Builder().BuildPartial();
- public static MessageBody DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override MessageBody DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override MessageBody ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_MessageBody__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
- get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_MessageBody__FieldAccessorTable; }
- }
-
- public const int MessageNamesFieldNumber = 9;
- private pbc::PopsicleList messageNames_ = new pbc::PopsicleList();
- public scg::IList MessageNamesList {
- get { return pbc::Lists.AsReadOnly(messageNames_); }
- }
- public int MessageNamesCount {
- get { return messageNames_.Count; }
- }
- public string GetMessageNames(int index) {
- return messageNames_[index];
- }
-
- public const int MessageArgumentsFieldNumber = 10;
- private pbc::PopsicleList messageArguments_ = new pbc::PopsicleList();
- public scg::IList MessageArgumentsList {
- get { return pbc::Lists.AsReadOnly(messageArguments_); }
- }
- public int MessageArgumentsCount {
- get { return messageArguments_.Count; }
- }
- public pb::ByteString GetMessageArguments(int index) {
- return messageArguments_[index];
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- if (messageNames_.Count > 0) {
- foreach (string element in messageNames_) {
- output.WriteString(9, element);
- }
- }
- if (messageArguments_.Count > 0) {
- foreach (pb::ByteString element in messageArguments_) {
- output.WriteBytes(10, element);
- }
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- {
- int dataSize = 0;
- foreach (string element in MessageNamesList) {
- dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
- }
- size += dataSize;
- size += 1 * messageNames_.Count;
- }
- {
- int dataSize = 0;
- foreach (pb::ByteString element in MessageArgumentsList) {
- dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element);
- }
- size += dataSize;
- size += 1 * messageArguments_.Count;
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static MessageBody ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static MessageBody ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static MessageBody ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static MessageBody ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static MessageBody ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static MessageBody ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static MessageBody ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static MessageBody ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static MessageBody ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static MessageBody ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(MessageBody prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- MessageBody result = new MessageBody();
-
- protected override MessageBody MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new MessageBody();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Protocol._PBJ_Internal.MessageBody.Descriptor; }
- }
-
- public override MessageBody DefaultInstanceForType {
- get { return global::Sirikata.Protocol._PBJ_Internal.MessageBody.DefaultInstance; }
- }
-
- public override MessageBody BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- result.messageNames_.MakeReadOnly();
- result.messageArguments_.MakeReadOnly();
- MessageBody returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is MessageBody) {
- return MergeFrom((MessageBody) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(MessageBody other) {
- if (other == global::Sirikata.Protocol._PBJ_Internal.MessageBody.DefaultInstance) return this;
- if (other.messageNames_.Count != 0) {
- base.AddRange(other.messageNames_, result.messageNames_);
- }
- if (other.messageArguments_.Count != 0) {
- base.AddRange(other.messageArguments_, result.messageArguments_);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 74: {
- AddMessageNames(input.ReadString());
- break;
- }
- case 82: {
- AddMessageArguments(input.ReadBytes());
- break;
- }
- }
- }
- }
-
-
- public pbc::IPopsicleList MessageNamesList {
- get { return result.messageNames_; }
- }
- public int MessageNamesCount {
- get { return result.MessageNamesCount; }
- }
- public string GetMessageNames(int index) {
- return result.GetMessageNames(index);
- }
- public Builder SetMessageNames(int index, string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.messageNames_[index] = value;
- return this;
- }
- public Builder AddMessageNames(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.messageNames_.Add(value);
- return this;
- }
- public Builder AddRangeMessageNames(scg::IEnumerable values) {
- base.AddRange(values, result.messageNames_);
- return this;
- }
- public Builder ClearMessageNames() {
- result.messageNames_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList