Example #1
0
 public void MergeFrom(AppEngineHttpRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.HttpMethod != 0)
     {
         HttpMethod = other.HttpMethod;
     }
     if (other.appEngineRouting_ != null)
     {
         if (appEngineRouting_ == null)
         {
             appEngineRouting_ = new global::Google.Cloud.Tasks.V2.AppEngineRouting();
         }
         AppEngineRouting.MergeFrom(other.AppEngineRouting);
     }
     if (other.RelativeUri.Length != 0)
     {
         RelativeUri = other.RelativeUri;
     }
     headers_.Add(other.headers_);
     if (other.Body.Length != 0)
     {
         Body = other.Body;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #2
0
 public void MergeFrom(Record other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Time != 0UL)
     {
         Time = other.Time;
     }
     if (other.Service.Length != 0)
     {
         Service = other.Service;
     }
     if (other.Metricvalue != 0D)
     {
         Metricvalue = other.Metricvalue;
     }
     if (other.Metricname.Length != 0)
     {
         Metricname = other.Metricname;
     }
     attributes_.Add(other.attributes_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #3
0
 public void MergeFrom(ClusterOperationMetadata other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ClusterName.Length != 0)
     {
         ClusterName = other.ClusterName;
     }
     if (other.ClusterUuid.Length != 0)
     {
         ClusterUuid = other.ClusterUuid;
     }
     if (other.status_ != null)
     {
         if (status_ == null)
         {
             status_ = new global::Google.Cloud.Dataproc.V1.ClusterOperationStatus();
         }
         Status.MergeFrom(other.Status);
     }
     statusHistory_.Add(other.statusHistory_);
     if (other.OperationType.Length != 0)
     {
         OperationType = other.OperationType;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     labels_.Add(other.labels_);
     warnings_.Add(other.warnings_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #4
0
 public void MergeFrom(HealthCheck other)
 {
     if (other == null)
     {
         return;
     }
     if (other.passThroughMode_ != null)
     {
         if (passThroughMode_ == null || other.PassThroughMode != false)
         {
             PassThroughMode = other.PassThroughMode;
         }
     }
     if (other.cacheTime_ != null)
     {
         if (cacheTime_ == null)
         {
             CacheTime = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         CacheTime.MergeFrom(other.CacheTime);
     }
     clusterMinHealthyPercentages_.Add(other.clusterMinHealthyPercentages_);
     headers_.Add(other.headers_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(EstafetteManifest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.builder_ != null)
     {
         if (builder_ == null)
         {
             Builder = new global::Estafette.Ci.Manifest.V1.EstafetteBuilder();
         }
         Builder.MergeFrom(other.Builder);
     }
     labels_.Add(other.labels_);
     if (other.version_ != null)
     {
         if (version_ == null)
         {
             Version = new global::Estafette.Ci.Manifest.V1.EstafetteVersion();
         }
         Version.MergeFrom(other.Version);
     }
     globalEnvVars_.Add(other.globalEnvVars_);
     triggers_.Add(other.triggers_);
     stages_.Add(other.stages_);
     releases_.Add(other.releases_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #6
0
 public void MergeFrom(UserFavorabilityPB other)
 {
     if (other == null)
     {
         return;
     }
     if (other.UserId != 0)
     {
         UserId = other.UserId;
     }
     if (other.Player != 0)
     {
         Player = other.Player;
     }
     if (other.Level != 0)
     {
         Level = other.Level;
     }
     if (other.Exp != 0)
     {
         Exp = other.Exp;
     }
     apparel_.Add(other.apparel_);
     voiceKeep_.Add(other.voiceKeep_);
 }
Example #7
0
 public void MergeFrom(Location other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.LocationId.Length != 0)
     {
         LocationId = other.LocationId;
     }
     if (other.DisplayName.Length != 0)
     {
         DisplayName = other.DisplayName;
     }
     labels_.Add(other.labels_);
     if (other.metadata_ != null)
     {
         if (metadata_ == null)
         {
             Metadata = new global::Google.Protobuf.WellKnownTypes.Any();
         }
         Metadata.MergeFrom(other.Metadata);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #8
0
 public void MergeFrom(SystemStatus other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             header_ = new global::Apollo.Common.Header();
         }
         Header.MergeFrom(other.Header);
     }
     hmiModules_.Add(other.hmiModules_);
     components_.Add(other.components_);
     if (other.PassengerMsg.Length != 0)
     {
         PassengerMsg = other.PassengerMsg;
     }
     if (other.SafetyModeTriggerTime != 0D)
     {
         SafetyModeTriggerTime = other.SafetyModeTriggerTime;
     }
     if (other.RequireEmergencyStop != false)
     {
         RequireEmergencyStop = other.RequireEmergencyStop;
     }
     if (other.IsRealtimeInSimulation != false)
     {
         IsRealtimeInSimulation = other.IsRealtimeInSimulation;
     }
 }
 public void MergeFrom(Metadata other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ClientIp.Length != 0)
     {
         ClientIp = other.ClientIp;
     }
     if (other.ClientPort != 0)
     {
         ClientPort = other.ClientPort;
     }
     if (other.Type.Length != 0)
     {
         Type = other.Type;
     }
     if (other.ConnectionId.Length != 0)
     {
         ConnectionId = other.ConnectionId;
     }
     if (other.ClientVersion.Length != 0)
     {
         ClientVersion = other.ClientVersion;
     }
     labels_.Add(other.labels_);
     headers_.Add(other.headers_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #10
0
 public void MergeFrom(Document other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     fields_.Add(other.fields_);
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             createTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.updateTime_ != null)
     {
         if (updateTime_ == null)
         {
             updateTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdateTime.MergeFrom(other.UpdateTime);
     }
 }
Example #11
0
 public void MergeFrom(Service other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     metadata_.Add(other.metadata_);
     endpoints_.Add(other.endpoints_);
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.updateTime_ != null)
     {
         if (updateTime_ == null)
         {
             UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdateTime.MergeFrom(other.UpdateTime);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #12
0
 public void MergeFrom(BrokerRequest other) {
   if (other == null) {
     return;
   }
   input_.Add(other.input_);
   _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #13
0
 public void MergeFrom(CouponCampaignAnalyticsResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Period != global::PKIo.Period.Day)
     {
         Period = other.Period;
     }
     if (other.Redeemed != 0)
     {
         Redeemed = other.Redeemed;
     }
     if (other.devices_ != null)
     {
         if (devices_ == null)
         {
             Devices = new global::PKIo.DeviceBreakdown();
         }
         Devices.MergeFrom(other.Devices);
     }
     sources_.Add(other.sources_);
     data_.Add(other.data_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #14
0
 public void MergeFrom(TestProto other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Account.Length != 0)
     {
         Account = other.Account;
     }
     if (other.Password.Length != 0)
     {
         Password = other.Password;
     }
     dict_.Add(other.dict_);
     adresses_.Add(other.adresses_);
     if (other.testSubProto_ != null)
     {
         if (testSubProto_ == null)
         {
             testSubProto_ = new global::Com.Test.TestSubProto();
         }
         TestSubProto.MergeFrom(other.TestSubProto);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #15
0
 public void MergeFrom(WorldMetadata other)
 {
     if (other == null)
     {
         return;
     }
     if (other.environmentMetadata_ != null)
     {
         if (environmentMetadata_ == null)
         {
             environmentMetadata_ = new global::CyberLife.Protobuff.Metadata.EnvironmentMetadata();
         }
         EnvironmentMetadata.MergeFrom(other.EnvironmentMetadata);
     }
     lifeFormMetadata_.Add(other.lifeFormMetadata_);
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Age != 0)
     {
         Age = other.Age;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #16
0
 public void MergeFrom(LevelPB other)
 {
     if (other == null)
     {
         return;
     }
     if (other.LevelId != 0)
     {
         LevelId = other.LevelId;
     }
     if (other.BeforeLevelId != 0)
     {
         BeforeLevelId = other.BeforeLevelId;
     }
     if (other.AfterLevelId != 0)
     {
         AfterLevelId = other.AfterLevelId;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
     abilities_.Add(other.abilities_);
     itemMax_.Add(other.itemMax_);
     fansMax_.Add(other.fansMax_);
     if (other.Max != 0)
     {
         Max = other.Max;
     }
     eventId_.Add(other.eventId_);
     starSource_.Add(other.starSource_);
     awards_.Add(other.awards_);
     if (other.GameType != 0)
     {
         GameType = other.GameType;
     }
     if (other.LevelInfoId != 0)
     {
         LevelInfoId = other.LevelInfoId;
     }
     if (other.ChapterGroup != 0)
     {
         ChapterGroup = other.ChapterGroup;
     }
     if (other.LevelMark.Length != 0)
     {
         LevelMark = other.LevelMark;
     }
     levelPlot_.Add(other.levelPlot_);
     levelCoordinate_.Add(other.levelCoordinate_);
     levelBackdrop_.Add(other.levelBackdrop_);
     if (other.levelExtra_ != null)
     {
         if (levelExtra_ == null)
         {
             levelExtra_ = new global::Com.Proto.LevelExtraPB();
         }
         LevelExtra.MergeFrom(other.LevelExtra);
     }
 }
Example #17
0
 public void MergeFrom(PhenomenMetadata other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.place_ != null)
     {
         if (place_ == null)
         {
             place_ = new global::CyberLife.Protobuff.Place();
         }
         Place.MergeFrom(other.Place);
     }
     if (other.TypeName.Length != 0)
     {
         TypeName = other.TypeName;
     }
     parameters_.Add(other.parameters_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #18
0
 public void MergeFrom(ServerConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.AuthType != 0)
     {
         AuthType = other.AuthType;
     }
     accounts_.Add(other.accounts_);
     if (other.address_ != null)
     {
         if (address_ == null)
         {
             address_ = new global::V2Ray.Core.Common.Net.IPOrDomain();
         }
         Address.MergeFrom(other.Address);
     }
     if (other.UdpEnabled != false)
     {
         UdpEnabled = other.UdpEnabled;
     }
     if (other.Timeout != 0)
     {
         Timeout = other.Timeout;
     }
     if (other.UserLevel != 0)
     {
         UserLevel = other.UserLevel;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(MiniRequestObject other)
 {
     if (other == null)
     {
         return;
     }
     headers_.Add(other.headers_);
     setHeaders_.Add(other.setHeaders_);
     deleteHeaders_.Add(other.deleteHeaders_);
     if (other.Body.Length != 0)
     {
         Body = other.Body;
     }
     if (other.Url.Length != 0)
     {
         Url = other.Url;
     }
     params_.Add(other.params_);
     addParams_.Add(other.addParams_);
     extendedParams_.Add(other.extendedParams_);
     deleteParams_.Add(other.deleteParams_);
     if (other.returnOverrides_ != null)
     {
         if (returnOverrides_ == null)
         {
             returnOverrides_ = new global::Coprocess.ReturnOverrides();
         }
         ReturnOverrides.MergeFrom(other.ReturnOverrides);
     }
 }
Example #20
0
 public void MergeFrom(Context other)
 {
     if (other == null)
     {
         return;
     }
     if (other.HasUri)
     {
         Uri = other.Uri;
     }
     if (other.HasUrl)
     {
         Url = other.Url;
     }
     metadata_.Add(other.metadata_);
     if (other.restrictions_ != null)
     {
         if (restrictions_ == null)
         {
             Restrictions = new global::Spotify.Player.Proto.Restrictions();
         }
         Restrictions.MergeFrom(other.Restrictions);
     }
     pages_.Add(other.pages_);
     if (other.HasLoading)
     {
         Loading = other.Loading;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(DailyRewardMonthlySchedule other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.NumberOfDays != 0)
     {
         NumberOfDays = other.NumberOfDays;
     }
     if (other.defaultReward_ != null)
     {
         if (defaultReward_ == null)
         {
             DefaultReward = new global::WUProtos.Data.Loot.LootCollection();
         }
         DefaultReward.MergeFrom(other.DefaultReward);
     }
     dailyRewards_.Add(other.dailyRewards_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(Object other)
 {
     if (other == null)
     {
         return;
     }
     if (other.HookType != 0)
     {
         HookType = other.HookType;
     }
     if (other.HookName.Length != 0)
     {
         HookName = other.HookName;
     }
     if (other.request_ != null)
     {
         if (request_ == null)
         {
             request_ = new global::Coprocess.MiniRequestObject();
         }
         Request.MergeFrom(other.Request);
     }
     if (other.session_ != null)
     {
         if (session_ == null)
         {
             session_ = new global::Coprocess.SessionState();
         }
         Session.MergeFrom(other.Session);
     }
     metadata_.Add(other.metadata_);
     spec_.Add(other.spec_);
 }
Example #23
0
 public void MergeFrom(Model other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Key.Length != 0)
     {
         Key = other.Key;
     }
     if (other.Code.Length != 0)
     {
         Code = other.Code;
     }
     if (other.Message.Length != 0)
     {
         Message = other.Message;
     }
     if (other.Timestamp != 0L)
     {
         Timestamp = other.Timestamp;
     }
     data_.Add(other.data_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #24
0
 public void MergeFrom(Node other)
 {
     if (other == null)
     {
         return;
     }
     if (other.identifier_ != null)
     {
         if (identifier_ == null)
         {
             identifier_ = new global::Opencensus.Proto.Agent.Common.V1.ProcessIdentifier();
         }
         Identifier.MergeFrom(other.Identifier);
     }
     if (other.libraryInfo_ != null)
     {
         if (libraryInfo_ == null)
         {
             libraryInfo_ = new global::Opencensus.Proto.Agent.Common.V1.LibraryInfo();
         }
         LibraryInfo.MergeFrom(other.LibraryInfo);
     }
     if (other.serviceInfo_ != null)
     {
         if (serviceInfo_ == null)
         {
             serviceInfo_ = new global::Opencensus.Proto.Agent.Common.V1.ServiceInfo();
         }
         ServiceInfo.MergeFrom(other.ServiceInfo);
     }
     attributes_.Add(other.attributes_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(PubsubMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Data.Length != 0)
     {
         Data = other.Data;
     }
     attributes_.Add(other.attributes_);
     if (other.MessageId.Length != 0)
     {
         MessageId = other.MessageId;
     }
     if (other.publishTime_ != null)
     {
         if (publishTime_ == null)
         {
             PublishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         PublishTime.MergeFrom(other.PublishTime);
     }
     if (other.OrderingKey.Length != 0)
     {
         OrderingKey = other.OrderingKey;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #26
0
 public void MergeFrom(BatchPredictRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.inputConfig_ != null)
     {
         if (inputConfig_ == null)
         {
             InputConfig = new global::Google.Cloud.AutoML.V1.BatchPredictInputConfig();
         }
         InputConfig.MergeFrom(other.InputConfig);
     }
     if (other.outputConfig_ != null)
     {
         if (outputConfig_ == null)
         {
             OutputConfig = new global::Google.Cloud.AutoML.V1.BatchPredictOutputConfig();
         }
         OutputConfig.MergeFrom(other.OutputConfig);
     }
     params_.Add(other.params_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #27
0
 public void MergeFrom(TraceEvent other)
 {
     if (other == null)
     {
         return;
     }
     if (other.DeviceId != 0)
     {
         DeviceId = other.DeviceId;
     }
     if (other.ResourceId != 0)
     {
         ResourceId = other.ResourceId;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.TimestampPs != 0UL)
     {
         TimestampPs = other.TimestampPs;
     }
     if (other.DurationPs != 0UL)
     {
         DurationPs = other.DurationPs;
     }
     args_.Add(other.args_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #28
0
 public void MergeFrom(PageRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.PageIndex != 0)
     {
         PageIndex = other.PageIndex;
     }
     if (other.PageSize != 0)
     {
         PageSize = other.PageSize;
     }
     if (other.Total != 0)
     {
         Total = other.Total;
     }
     if (other.Skip != 0)
     {
         Skip = other.Skip;
     }
     sort_.Add(other.sort_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #29
0
 public void MergeFrom(Pb other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Uid != 0L)
     {
         Uid = other.Uid;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Figure != 0)
     {
         Figure = other.Figure;
     }
     if (other.ext_ != null)
     {
         if (ext_ == null)
         {
             ext_ = new global::Org.OkraAx.V3.AxAny();
         }
         Ext.MergeFrom(other.Ext);
     }
     items_.Add(other.items_);
 }
Example #30
0
 public void MergeFrom(AppInfo other)
 {
     if (other == null)
     {
         return;
     }
     if (other.AppName.Length != 0)
     {
         AppName = other.AppName;
     }
     if (other.AppVersion.Length != 0)
     {
         AppVersion = other.AppVersion;
     }
     if (other.AppChannel.Length != 0)
     {
         AppChannel = other.AppChannel;
     }
     if (other.SdkVersion.Length != 0)
     {
         SdkVersion = other.SdkVersion;
     }
     extensionInfo_.Add(other.extensionInfo_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public void RowInsertWithArbitraryTimestamp()
        {
            // https://phoenix.apache.org/faq.html#Can_phoenix_work_on_tables_with_arbitrary_timestamp_as_flexible_as_HBase_API
            // The table creation time must not be later than the row insert timestamp
            // Otherwise will get table NOT FOUND exception
            // Row insert time must not be later than row query time
            // Otherwise the row will not appear in the resultset
            var client = new PhoenixClient(_credentials);
            string connId = GenerateRandomConnId();
            RequestOptions options = RequestOptions.GetGatewayDefaultOptions();

            // In gateway mode, url format will be https://<cluster dns name>.azurehdinsight.net/hbasephoenix<N>/
            // Requests sent to hbasephoenix0/ will be forwarded to PQS on workernode0
            options.AlternativeEndpoint = "hbasephoenix0/";
            string tableName = "Persons" + connId;
            OpenConnectionResponse openConnResponse = null;
            CreateStatementResponse createStatementResponse = null;
            try
            {
                // Opening connection
                // Set table creation time to 0
                long ts = 0;
                pbc::MapField<string, string> info = new pbc::MapField<string, string>();
                info.Add("CurrentSCN", ts.ToString());
                openConnResponse = client.OpenConnectionRequestAsync(connId, info, options).Result;
                // Syncing connection
                ConnectionProperties connProperties = new ConnectionProperties
                {
                    HasAutoCommit = true,
                    AutoCommit = true,
                    HasReadOnly = true,
                    ReadOnly = false,
                    TransactionIsolation = 0,
                    Catalog = "",
                    Schema = "",
                    IsDirty = true
                };
                client.ConnectionSyncRequestAsync(connId, connProperties, options).Wait();

                createStatementResponse = client.CreateStatementRequestAsync(connId, options).Result;
                // Running query 1
                string sql1 = "CREATE TABLE " + tableName + " (LastName varchar(255) PRIMARY KEY,FirstName varchar(255))";
                client.PrepareAndExecuteRequestAsync(connId, sql1, createStatementResponse.StatementId, long.MaxValue, int.MaxValue, options).Wait();
            }
            catch (Exception ex)
            {
                Assert.Fail(ex.Message);
            }
            finally
            {
                if (createStatementResponse != null)
                {
                    client.CloseStatementRequestAsync(connId, createStatementResponse.StatementId, options).Wait();
                    createStatementResponse = null;
                }

                if (openConnResponse != null)
                {
                    client.CloseConnectionRequestAsync(connId, options).Wait();
                    openConnResponse = null;
                }
            }

            // insert row with specified timestamp
            try
            {
                // Opening connection
                long ts = (long)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalMilliseconds;
                pbc::MapField<string, string> info = new pbc::MapField<string, string>();
                info.Add("CurrentSCN", ts.ToString());
                openConnResponse = client.OpenConnectionRequestAsync(connId, info, options).Result;
                // Syncing connection
                ConnectionProperties connProperties = new ConnectionProperties
                {
                    HasAutoCommit = true,
                    AutoCommit = true,
                    HasReadOnly = true,
                    ReadOnly = false,
                    TransactionIsolation = 0,
                    Catalog = "",
                    Schema = "",
                    IsDirty = true
                };
                client.ConnectionSyncRequestAsync(connId, connProperties, options).Wait();

                createStatementResponse = client.CreateStatementRequestAsync(connId, options).Result;
                // Running query 2
                string sql2 = "UPSERT INTO " + tableName + " VALUES ('d1','x1')";
                client.PrepareAndExecuteRequestAsync(connId, sql2, createStatementResponse.StatementId, long.MaxValue, int.MaxValue, options).Wait();
            }
            catch (Exception ex)
            {
                Assert.Fail(ex.Message);
            }
            finally
            {
                if (createStatementResponse != null)
                {
                    client.CloseStatementRequestAsync(connId, createStatementResponse.StatementId, options).Wait();
                    createStatementResponse = null;
                }

                if (openConnResponse != null)
                {
                    client.CloseConnectionRequestAsync(connId, options).Wait();
                    openConnResponse = null;
                }
            }

            // query row with specified timestamp
            try
            {
                // Opening connection
                long ts = (long)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalMilliseconds;
                pbc::MapField<string, string> info = new pbc::MapField<string, string>();
                info.Add("CurrentSCN", ts.ToString());
                openConnResponse = client.OpenConnectionRequestAsync(connId, info, options).Result;
                // Syncing connection
                ConnectionProperties connProperties = new ConnectionProperties
                {
                    HasAutoCommit = true,
                    AutoCommit = true,
                    HasReadOnly = true,
                    ReadOnly = false,
                    TransactionIsolation = 0,
                    Catalog = "",
                    Schema = "",
                    IsDirty = true
                };
                client.ConnectionSyncRequestAsync(connId, connProperties, options).Wait();

                createStatementResponse = client.CreateStatementRequestAsync(connId, options).Result;

                // Running query 3
                string sql3 = "select count(*) from " + tableName;
                ExecuteResponse execResponse3 = client.PrepareAndExecuteRequestAsync(connId, sql3, createStatementResponse.StatementId, long.MaxValue, int.MaxValue, options).Result;
                long count = execResponse3.Results[0].FirstFrame.Rows[0].Value[0].ScalarValue.NumberValue;
                Assert.AreEqual(1, count);

                // Running query 4
                string sql4 = "DROP TABLE " + tableName;
                client.PrepareAndExecuteRequestAsync(connId, sql4, createStatementResponse.StatementId, long.MaxValue, int.MaxValue, options).Wait();
            }
            catch (Exception ex)
            {
                Assert.Fail(ex.Message);
            }
            finally
            {
                if (createStatementResponse != null)
                {
                    client.CloseStatementRequestAsync(connId, createStatementResponse.StatementId, options).Wait();
                    createStatementResponse = null;
                }

                if (openConnResponse != null)
                {
                    client.CloseConnectionRequestAsync(connId, options).Wait();
                    openConnResponse = null;
                }
            }
        }