This is an automated email from the ASF dual-hosted git repository.

curth pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new bdba2e5bf fix(csharp/src/Drivers/Apache/Thrift): Generated 
Thrift-based code should not be exposed publicly (#2710)
bdba2e5bf is described below

commit bdba2e5bf1aeb8dade4260604f2d4e48ab4a3f64
Author: Curt Hagenlocher <[email protected]>
AuthorDate: Wed Apr 16 18:57:34 2025 -0700

    fix(csharp/src/Drivers/Apache/Thrift): Generated Thrift-based code should 
not be exposed publicly (#2710)
    
    The Thrift classes in the HiveServer2-based drivers are intended to be
    internal implementation details and not exposed publicly. This PR
    changes their visibility from public to internal.
---
 .../Drivers/Apache/Thrift/IPeekableTransport.cs    |   2 +-
 .../Thrift/Service/Rpc/Thrift/TArrayTypeEntry.cs   |   2 +-
 .../Thrift/Service/Rpc/Thrift/TBinaryColumn.cs     |   2 +-
 .../Thrift/Service/Rpc/Thrift/TBoolColumn.cs       |   2 +-
 .../Apache/Thrift/Service/Rpc/Thrift/TBoolValue.cs |   2 +-
 .../Thrift/Service/Rpc/Thrift/TByteColumn.cs       |   2 +-
 .../Apache/Thrift/Service/Rpc/Thrift/TByteValue.cs |   2 +-
 .../Service/Rpc/Thrift/TCLIService.Constants.cs    |   2 +-
 .../Service/Rpc/Thrift/TCLIService.Extensions.cs   |   2 +-
 .../Thrift/Service/Rpc/Thrift/TCLIService.cs       | 110 ++++++++++-----------
 .../Service/Rpc/Thrift/TCacheLookupResult.cs       |   2 +-
 .../Rpc/Thrift/TCancelDelegationTokenReq.cs        |   2 +-
 .../Rpc/Thrift/TCancelDelegationTokenResp.cs       |   2 +-
 .../Service/Rpc/Thrift/TCancelOperationReq.cs      |   2 +-
 .../Service/Rpc/Thrift/TCancelOperationResp.cs     |   2 +-
 .../Service/Rpc/Thrift/TCloseOperationReq.cs       |   2 +-
 .../Service/Rpc/Thrift/TCloseOperationResp.cs      |   2 +-
 .../Thrift/Service/Rpc/Thrift/TCloseSessionReq.cs  |   2 +-
 .../Thrift/Service/Rpc/Thrift/TCloseSessionResp.cs |   2 +-
 .../Rpc/Thrift/TCloudFetchDisabledReason.cs        |   2 +-
 .../Apache/Thrift/Service/Rpc/Thrift/TColumn.cs    |   2 +-
 .../Thrift/Service/Rpc/Thrift/TColumnDesc.cs       |   2 +-
 .../Thrift/Service/Rpc/Thrift/TColumnValue.cs      |   2 +-
 .../Thrift/Service/Rpc/Thrift/TDBSqlArrowFormat.cs |   2 +-
 .../Thrift/Service/Rpc/Thrift/TDBSqlArrowLayout.cs |   2 +-
 .../Rpc/Thrift/TDBSqlCloseOperationReason.cs       |   2 +-
 .../Service/Rpc/Thrift/TDBSqlCloudResultFile.cs    |   2 +-
 .../Service/Rpc/Thrift/TDBSqlCompressionCodec.cs   |   2 +-
 .../Thrift/Service/Rpc/Thrift/TDBSqlConfValue.cs   |   2 +-
 .../Thrift/Service/Rpc/Thrift/TDBSqlCsvFormat.cs   |   2 +-
 .../Service/Rpc/Thrift/TDBSqlFetchDisposition.cs   |   2 +-
 .../Service/Rpc/Thrift/TDBSqlJsonArrayFormat.cs    |   2 +-
 .../Service/Rpc/Thrift/TDBSqlManifestFileFormat.cs |   2 +-
 .../Service/Rpc/Thrift/TDBSqlResultFormat.cs       |   2 +-
 .../Rpc/Thrift/TDBSqlSessionCapabilities.cs        |   2 +-
 .../Thrift/Service/Rpc/Thrift/TDBSqlSessionConf.cs |   2 +-
 .../Thrift/Service/Rpc/Thrift/TDBSqlStatement.cs   |   2 +-
 .../Thrift/Service/Rpc/Thrift/TDBSqlTempView.cs    |   2 +-
 .../Thrift/Service/Rpc/Thrift/TDoubleColumn.cs     |   2 +-
 .../Thrift/Service/Rpc/Thrift/TDoubleValue.cs      |   2 +-
 .../Thrift/Service/Rpc/Thrift/TDownloadDataReq.cs  |   2 +-
 .../Thrift/Service/Rpc/Thrift/TDownloadDataResp.cs |   2 +-
 .../Service/Rpc/Thrift/TExecuteStatementReq.cs     |   2 +-
 .../Service/Rpc/Thrift/TExecuteStatementResp.cs    |   2 +-
 .../Thrift/Service/Rpc/Thrift/TExpressionInfo.cs   |   2 +-
 .../Thrift/Service/Rpc/Thrift/TFetchOrientation.cs |   2 +-
 .../Thrift/Service/Rpc/Thrift/TFetchResultsReq.cs  |   2 +-
 .../Thrift/Service/Rpc/Thrift/TFetchResultsResp.cs |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetCatalogsReq.cs   |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetCatalogsResp.cs  |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetColumnsReq.cs    |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetColumnsResp.cs   |   2 +-
 .../Service/Rpc/Thrift/TGetCrossReferenceReq.cs    |   2 +-
 .../Service/Rpc/Thrift/TGetCrossReferenceResp.cs   |   2 +-
 .../Service/Rpc/Thrift/TGetDelegationTokenReq.cs   |   2 +-
 .../Service/Rpc/Thrift/TGetDelegationTokenResp.cs  |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetFunctionsReq.cs  |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetFunctionsResp.cs |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetInfoReq.cs       |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetInfoResp.cs      |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetInfoType.cs      |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetInfoValue.cs     |   2 +-
 .../Service/Rpc/Thrift/TGetOperationStatusReq.cs   |   2 +-
 .../Service/Rpc/Thrift/TGetOperationStatusResp.cs  |   2 +-
 .../Service/Rpc/Thrift/TGetPrimaryKeysReq.cs       |   2 +-
 .../Service/Rpc/Thrift/TGetPrimaryKeysResp.cs      |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetQueryIdReq.cs    |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetQueryIdResp.cs   |   2 +-
 .../Service/Rpc/Thrift/TGetResultSetMetadataReq.cs |   2 +-
 .../Rpc/Thrift/TGetResultSetMetadataResp.cs        |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetSchemasReq.cs    |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetSchemasResp.cs   |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetTableTypesReq.cs |   2 +-
 .../Service/Rpc/Thrift/TGetTableTypesResp.cs       |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetTablesReq.cs     |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetTablesResp.cs    |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetTypeInfoReq.cs   |   2 +-
 .../Thrift/Service/Rpc/Thrift/TGetTypeInfoResp.cs  |   2 +-
 .../Thrift/Service/Rpc/Thrift/THandleIdentifier.cs |   2 +-
 .../Apache/Thrift/Service/Rpc/Thrift/TI16Column.cs |   2 +-
 .../Apache/Thrift/Service/Rpc/Thrift/TI16Value.cs  |   2 +-
 .../Apache/Thrift/Service/Rpc/Thrift/TI32Column.cs |   2 +-
 .../Apache/Thrift/Service/Rpc/Thrift/TI32Value.cs  |   2 +-
 .../Apache/Thrift/Service/Rpc/Thrift/TI64Column.cs |   2 +-
 .../Apache/Thrift/Service/Rpc/Thrift/TI64Value.cs  |   2 +-
 .../Service/Rpc/Thrift/TJobExecutionStatus.cs      |   2 +-
 .../Thrift/Service/Rpc/Thrift/TMapTypeEntry.cs     |   2 +-
 .../Apache/Thrift/Service/Rpc/Thrift/TNamespace.cs |   2 +-
 .../Thrift/Service/Rpc/Thrift/TOpenSessionReq.cs   |   2 +-
 .../Thrift/Service/Rpc/Thrift/TOpenSessionResp.cs  |   2 +-
 .../Thrift/Service/Rpc/Thrift/TOperationHandle.cs  |   2 +-
 .../Rpc/Thrift/TOperationIdempotencyType.cs        |   2 +-
 .../Thrift/Service/Rpc/Thrift/TOperationState.cs   |   2 +-
 .../Service/Rpc/Thrift/TOperationTimeoutLevel.cs   |   2 +-
 .../Thrift/Service/Rpc/Thrift/TOperationType.cs    |   2 +-
 .../Service/Rpc/Thrift/TPrimitiveTypeEntry.cs      |   2 +-
 .../Service/Rpc/Thrift/TProgressUpdateResp.cs      |   2 +-
 .../Thrift/Service/Rpc/Thrift/TProtocolVersion.cs  |   2 +-
 .../Service/Rpc/Thrift/TRenewDelegationTokenReq.cs |   2 +-
 .../Rpc/Thrift/TRenewDelegationTokenResp.cs        |   2 +-
 .../Service/Rpc/Thrift/TResultPersistenceMode.cs   |   2 +-
 .../Apache/Thrift/Service/Rpc/Thrift/TRow.cs       |   2 +-
 .../Apache/Thrift/Service/Rpc/Thrift/TRowSet.cs    |   2 +-
 .../Thrift/Service/Rpc/Thrift/TSQLVariable.cs      |   2 +-
 .../Thrift/Service/Rpc/Thrift/TSessionHandle.cs    |   2 +-
 .../Thrift/Service/Rpc/Thrift/TSetClientInfoReq.cs |   2 +-
 .../Service/Rpc/Thrift/TSetClientInfoResp.cs       |   2 +-
 .../Thrift/Service/Rpc/Thrift/TSparkArrowBatch.cs  |   2 +-
 .../Service/Rpc/Thrift/TSparkArrowResultLink.cs    |   2 +-
 .../Thrift/Service/Rpc/Thrift/TSparkArrowTypes.cs  |   2 +-
 .../Service/Rpc/Thrift/TSparkDirectResults.cs      |   2 +-
 .../Service/Rpc/Thrift/TSparkGetDirectResults.cs   |   2 +-
 .../Thrift/Service/Rpc/Thrift/TSparkParameter.cs   |   2 +-
 .../Service/Rpc/Thrift/TSparkParameterValue.cs     |   2 +-
 .../Service/Rpc/Thrift/TSparkParameterValueArg.cs  |   2 +-
 .../Thrift/Service/Rpc/Thrift/TSparkRowSetType.cs  |   2 +-
 .../Thrift/Service/Rpc/Thrift/TStatementConf.cs    |   2 +-
 .../Apache/Thrift/Service/Rpc/Thrift/TStatus.cs    |   2 +-
 .../Thrift/Service/Rpc/Thrift/TStatusCode.cs       |   2 +-
 .../Thrift/Service/Rpc/Thrift/TStringColumn.cs     |   2 +-
 .../Thrift/Service/Rpc/Thrift/TStringValue.cs      |   2 +-
 .../Thrift/Service/Rpc/Thrift/TStructTypeEntry.cs  |   2 +-
 .../Thrift/Service/Rpc/Thrift/TTableSchema.cs      |   2 +-
 .../Apache/Thrift/Service/Rpc/Thrift/TTypeDesc.cs  |   2 +-
 .../Apache/Thrift/Service/Rpc/Thrift/TTypeEntry.cs |   2 +-
 .../Apache/Thrift/Service/Rpc/Thrift/TTypeId.cs    |   2 +-
 .../Service/Rpc/Thrift/TTypeQualifierValue.cs      |   2 +-
 .../Thrift/Service/Rpc/Thrift/TTypeQualifiers.cs   |   2 +-
 .../Thrift/Service/Rpc/Thrift/TUnionTypeEntry.cs   |   2 +-
 .../Thrift/Service/Rpc/Thrift/TUploadDataReq.cs    |   2 +-
 .../Thrift/Service/Rpc/Thrift/TUploadDataResp.cs   |   2 +-
 .../Service/Rpc/Thrift/TUserDefinedTypeEntry.cs    |   2 +-
 .../src/Drivers/Apache/Thrift/StreamExtensions.cs  |   2 +-
 133 files changed, 187 insertions(+), 187 deletions(-)

diff --git a/csharp/src/Drivers/Apache/Thrift/IPeekableTransport.cs 
b/csharp/src/Drivers/Apache/Thrift/IPeekableTransport.cs
index cf1f5ebeb..ddceac1a3 100644
--- a/csharp/src/Drivers/Apache/Thrift/IPeekableTransport.cs
+++ b/csharp/src/Drivers/Apache/Thrift/IPeekableTransport.cs
@@ -19,7 +19,7 @@ using System.IO;
 
 namespace Apache.Arrow.Adbc.Drivers.Apache
 {
-    public interface IPeekableTransport
+    internal interface IPeekableTransport
     {
         Stream Input { get; }
         Stream Output { get; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TArrayTypeEntry.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TArrayTypeEntry.cs
index 371dbb9f0..3dfda9135 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TArrayTypeEntry.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TArrayTypeEntry.cs
@@ -41,7 +41,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TArrayTypeEntry : TBase
+  internal partial class TArrayTypeEntry : TBase
   {
 
     public int ObjectTypePtr { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TBinaryColumn.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TBinaryColumn.cs
index 27bd3d10d..aacec569f 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TBinaryColumn.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TBinaryColumn.cs
@@ -30,7 +30,7 @@ using Thrift.Protocol.Utilities;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-    public partial class TBinaryColumn : TBase
+    internal partial class TBinaryColumn : TBase
   {
     public BinaryArray Values { get; set; }
 
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TBoolColumn.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TBoolColumn.cs
index 63748f4aa..fed4ece10 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TBoolColumn.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TBoolColumn.cs
@@ -28,7 +28,7 @@ using Thrift.Protocol.Utilities;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TBoolColumn : TBase
+  internal partial class TBoolColumn : TBase
   {
 
     public BooleanArray Values { get; set; }
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TBoolValue.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TBoolValue.cs
index db852f6a9..efab40b97 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TBoolValue.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TBoolValue.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TBoolValue : TBase
+  internal partial class TBoolValue : TBase
   {
     private bool _value;
 
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TByteColumn.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TByteColumn.cs
index 72fe86ec8..9d21795e9 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TByteColumn.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TByteColumn.cs
@@ -30,7 +30,7 @@ using Thrift.Protocol.Utilities;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TByteColumn : TBase
+  internal partial class TByteColumn : TBase
   {
 
     public Int8Array Values { get; set; }
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TByteValue.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TByteValue.cs
index aedea5b8d..c0add3fe7 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TByteValue.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TByteValue.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TByteValue : TBase
+  internal partial class TByteValue : TBase
   {
     private sbyte _value;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCLIService.Constants.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCLIService.Constants.cs
index 78a304224..89292f945 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCLIService.Constants.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCLIService.Constants.cs
@@ -32,7 +32,7 @@ using Thrift.Collections;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public static class TCLIServiceConstants
+  internal static class TCLIServiceConstants
   {
     public static HashSet<global::Apache.Hive.Service.Rpc.Thrift.TTypeId> 
PRIMITIVE_TYPES = new HashSet<global::Apache.Hive.Service.Rpc.Thrift.TTypeId>();
     public static HashSet<global::Apache.Hive.Service.Rpc.Thrift.TTypeId> 
COMPLEX_TYPES = new HashSet<global::Apache.Hive.Service.Rpc.Thrift.TTypeId>();
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCLIService.Extensions.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCLIService.Extensions.cs
index 1538794f1..a0efd3400 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCLIService.Extensions.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCLIService.Extensions.cs
@@ -33,7 +33,7 @@ using Thrift.Protocol;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public static class TCLIServiceExtensions
+  internal static class TCLIServiceExtensions
   {
     public static bool Equals(this Dictionary<string, double> instance, object 
that)
     {
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCLIService.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCLIService.cs
index 59670656d..d67a11693 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCLIService.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCLIService.cs
@@ -39,9 +39,9 @@ using Thrift.Processor;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public partial class TCLIService
+  internal partial class TCLIService
   {
-    public interface IAsync
+    internal interface IAsync
     {
       
global::System.Threading.Tasks.Task<global::Apache.Hive.Service.Rpc.Thrift.TOpenSessionResp>
 OpenSession(global::Apache.Hive.Service.Rpc.Thrift.TOpenSessionReq @req, 
CancellationToken cancellationToken = default);
 
@@ -96,7 +96,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
     }
 
 
-    public class Client : TBaseClient, IDisposable, IAsync
+    internal class Client : TBaseClient, IDisposable, IAsync
     {
       public Client(TProtocol protocol) : this(protocol, protocol)
       {
@@ -1108,7 +1108,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
 
     }
 
-    public class AsyncProcessor : ITAsyncProcessor
+    internal class AsyncProcessor : ITAsyncProcessor
     {
       private readonly IAsync _iAsync;
       private readonly ILogger<AsyncProcessor> _logger;
@@ -1960,10 +1960,10 @@ namespace Apache.Hive.Service.Rpc.Thrift
 
     }
 
-    public class InternalStructs
+    internal class InternalStructs
     {
 
-      public partial class OpenSession_args : TBase
+      internal partial class OpenSession_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TOpenSessionReq _req;
 
@@ -2095,7 +2095,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class OpenSession_result : TBase
+      internal partial class OpenSession_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TOpenSessionResp 
_success;
 
@@ -2231,7 +2231,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class CloseSession_args : TBase
+      internal partial class CloseSession_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TCloseSessionReq _req;
 
@@ -2363,7 +2363,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class CloseSession_result : TBase
+      internal partial class CloseSession_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TCloseSessionResp 
_success;
 
@@ -2499,7 +2499,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetInfo_args : TBase
+      internal partial class GetInfo_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetInfoReq _req;
 
@@ -2631,7 +2631,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetInfo_result : TBase
+      internal partial class GetInfo_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetInfoResp _success;
 
@@ -2767,7 +2767,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class ExecuteStatement_args : TBase
+      internal partial class ExecuteStatement_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TExecuteStatementReq 
_req;
 
@@ -2899,7 +2899,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class ExecuteStatement_result : TBase
+      internal partial class ExecuteStatement_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TExecuteStatementResp 
_success;
 
@@ -3035,7 +3035,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetTypeInfo_args : TBase
+      internal partial class GetTypeInfo_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetTypeInfoReq _req;
 
@@ -3167,7 +3167,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetTypeInfo_result : TBase
+      internal partial class GetTypeInfo_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetTypeInfoResp 
_success;
 
@@ -3303,7 +3303,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetCatalogs_args : TBase
+      internal partial class GetCatalogs_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetCatalogsReq _req;
 
@@ -3435,7 +3435,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetCatalogs_result : TBase
+      internal partial class GetCatalogs_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetCatalogsResp 
_success;
 
@@ -3571,7 +3571,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetSchemas_args : TBase
+      internal partial class GetSchemas_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetSchemasReq _req;
 
@@ -3703,7 +3703,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetSchemas_result : TBase
+      internal partial class GetSchemas_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetSchemasResp 
_success;
 
@@ -3839,7 +3839,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetTables_args : TBase
+      internal partial class GetTables_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetTablesReq _req;
 
@@ -3971,7 +3971,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetTables_result : TBase
+      internal partial class GetTables_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetTablesResp _success;
 
@@ -4107,7 +4107,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetTableTypes_args : TBase
+      internal partial class GetTableTypes_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetTableTypesReq _req;
 
@@ -4239,7 +4239,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetTableTypes_result : TBase
+      internal partial class GetTableTypes_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetTableTypesResp 
_success;
 
@@ -4375,7 +4375,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetColumns_args : TBase
+      internal partial class GetColumns_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetColumnsReq _req;
 
@@ -4507,7 +4507,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetColumns_result : TBase
+      internal partial class GetColumns_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetColumnsResp 
_success;
 
@@ -4643,7 +4643,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetFunctions_args : TBase
+      internal partial class GetFunctions_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetFunctionsReq _req;
 
@@ -4775,7 +4775,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetFunctions_result : TBase
+      internal partial class GetFunctions_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetFunctionsResp 
_success;
 
@@ -4911,7 +4911,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetPrimaryKeys_args : TBase
+      internal partial class GetPrimaryKeys_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetPrimaryKeysReq _req;
 
@@ -5043,7 +5043,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetPrimaryKeys_result : TBase
+      internal partial class GetPrimaryKeys_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetPrimaryKeysResp 
_success;
 
@@ -5179,7 +5179,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetCrossReference_args : TBase
+      internal partial class GetCrossReference_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetCrossReferenceReq 
_req;
 
@@ -5311,7 +5311,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetCrossReference_result : TBase
+      internal partial class GetCrossReference_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetCrossReferenceResp 
_success;
 
@@ -5447,7 +5447,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetOperationStatus_args : TBase
+      internal partial class GetOperationStatus_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetOperationStatusReq 
_req;
 
@@ -5579,7 +5579,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetOperationStatus_result : TBase
+      internal partial class GetOperationStatus_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetOperationStatusResp 
_success;
 
@@ -5715,7 +5715,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class CancelOperation_args : TBase
+      internal partial class CancelOperation_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TCancelOperationReq 
_req;
 
@@ -5847,7 +5847,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class CancelOperation_result : TBase
+      internal partial class CancelOperation_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TCancelOperationResp 
_success;
 
@@ -5983,7 +5983,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class CloseOperation_args : TBase
+      internal partial class CloseOperation_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TCloseOperationReq _req;
 
@@ -6115,7 +6115,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class CloseOperation_result : TBase
+      internal partial class CloseOperation_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TCloseOperationResp 
_success;
 
@@ -6251,7 +6251,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetResultSetMetadata_args : TBase
+      internal partial class GetResultSetMetadata_args : TBase
       {
         private 
global::Apache.Hive.Service.Rpc.Thrift.TGetResultSetMetadataReq _req;
 
@@ -6383,7 +6383,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetResultSetMetadata_result : TBase
+      internal partial class GetResultSetMetadata_result : TBase
       {
         private 
global::Apache.Hive.Service.Rpc.Thrift.TGetResultSetMetadataResp _success;
 
@@ -6519,7 +6519,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class FetchResults_args : TBase
+      internal partial class FetchResults_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TFetchResultsReq _req;
 
@@ -6651,7 +6651,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class FetchResults_result : TBase
+      internal partial class FetchResults_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TFetchResultsResp 
_success;
 
@@ -6787,7 +6787,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetDelegationToken_args : TBase
+      internal partial class GetDelegationToken_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetDelegationTokenReq 
_req;
 
@@ -6919,7 +6919,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetDelegationToken_result : TBase
+      internal partial class GetDelegationToken_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetDelegationTokenResp 
_success;
 
@@ -7055,7 +7055,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class CancelDelegationToken_args : TBase
+      internal partial class CancelDelegationToken_args : TBase
       {
         private 
global::Apache.Hive.Service.Rpc.Thrift.TCancelDelegationTokenReq _req;
 
@@ -7187,7 +7187,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class CancelDelegationToken_result : TBase
+      internal partial class CancelDelegationToken_result : TBase
       {
         private 
global::Apache.Hive.Service.Rpc.Thrift.TCancelDelegationTokenResp _success;
 
@@ -7323,7 +7323,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class RenewDelegationToken_args : TBase
+      internal partial class RenewDelegationToken_args : TBase
       {
         private 
global::Apache.Hive.Service.Rpc.Thrift.TRenewDelegationTokenReq _req;
 
@@ -7455,7 +7455,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class RenewDelegationToken_result : TBase
+      internal partial class RenewDelegationToken_result : TBase
       {
         private 
global::Apache.Hive.Service.Rpc.Thrift.TRenewDelegationTokenResp _success;
 
@@ -7591,7 +7591,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetQueryId_args : TBase
+      internal partial class GetQueryId_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetQueryIdReq _req;
 
@@ -7723,7 +7723,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class GetQueryId_result : TBase
+      internal partial class GetQueryId_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TGetQueryIdResp 
_success;
 
@@ -7859,7 +7859,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class SetClientInfo_args : TBase
+      internal partial class SetClientInfo_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TSetClientInfoReq _req;
 
@@ -7991,7 +7991,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class SetClientInfo_result : TBase
+      internal partial class SetClientInfo_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TSetClientInfoResp 
_success;
 
@@ -8127,7 +8127,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class UploadData_args : TBase
+      internal partial class UploadData_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TUploadDataReq _req;
 
@@ -8259,7 +8259,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class UploadData_result : TBase
+      internal partial class UploadData_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TUploadDataResp 
_success;
 
@@ -8395,7 +8395,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class DownloadData_args : TBase
+      internal partial class DownloadData_args : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TDownloadDataReq _req;
 
@@ -8527,7 +8527,7 @@ namespace Apache.Hive.Service.Rpc.Thrift
       }
 
 
-      public partial class DownloadData_result : TBase
+      internal partial class DownloadData_result : TBase
       {
         private global::Apache.Hive.Service.Rpc.Thrift.TDownloadDataResp 
_success;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCacheLookupResult.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCacheLookupResult.cs
index ea7064e1e..9f5dd1e08 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCacheLookupResult.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCacheLookupResult.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TCacheLookupResult
+  internal enum TCacheLookupResult
   {
     CACHE_INELIGIBLE = 0,
     LOCAL_CACHE_HIT = 1,
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCancelDelegationTokenReq.cs
 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCancelDelegationTokenReq.cs
index 9ef8b19e8..c2fd88d95 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCancelDelegationTokenReq.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCancelDelegationTokenReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TCancelDelegationTokenReq : TBase
+  internal partial class TCancelDelegationTokenReq : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TDBSqlSessionConf 
_sessionConf;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCancelDelegationTokenResp.cs
 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCancelDelegationTokenResp.cs
index 4edf9da9a..720be62f5 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCancelDelegationTokenResp.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCancelDelegationTokenResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TCancelDelegationTokenResp : TBase
+  internal partial class TCancelDelegationTokenResp : TBase
   {
 
     public global::Apache.Hive.Service.Rpc.Thrift.TStatus Status { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCancelOperationReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCancelOperationReq.cs
index 73f517734..2099b669e 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCancelOperationReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCancelOperationReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TCancelOperationReq : TBase
+  internal partial class TCancelOperationReq : TBase
   {
     private short _executionVersion;
     private bool _replacedByNextAttempt;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCancelOperationResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCancelOperationResp.cs
index a21d4ce03..4d78babe6 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCancelOperationResp.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCancelOperationResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TCancelOperationResp : TBase
+  internal partial class TCancelOperationResp : TBase
   {
 
     public global::Apache.Hive.Service.Rpc.Thrift.TStatus Status { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloseOperationReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloseOperationReq.cs
index 45d683815..dde706498 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloseOperationReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloseOperationReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TCloseOperationReq : TBase
+  internal partial class TCloseOperationReq : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TDBSqlCloseOperationReason 
_closeReason;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloseOperationResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloseOperationResp.cs
index 36d71b868..2b33351b4 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloseOperationResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloseOperationResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TCloseOperationResp : TBase
+  internal partial class TCloseOperationResp : TBase
   {
 
     public global::Apache.Hive.Service.Rpc.Thrift.TStatus Status { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloseSessionReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloseSessionReq.cs
index e456eae4a..7a54eff39 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloseSessionReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloseSessionReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TCloseSessionReq : TBase
+  internal partial class TCloseSessionReq : TBase
   {
 
     public global::Apache.Hive.Service.Rpc.Thrift.TSessionHandle SessionHandle 
{ get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloseSessionResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloseSessionResp.cs
index 5abc66d2e..6dd59a5ad 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloseSessionResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloseSessionResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TCloseSessionResp : TBase
+  internal partial class TCloseSessionResp : TBase
   {
 
     public global::Apache.Hive.Service.Rpc.Thrift.TStatus Status { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloudFetchDisabledReason.cs
 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloudFetchDisabledReason.cs
index f35e14512..74172be44 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloudFetchDisabledReason.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TCloudFetchDisabledReason.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TCloudFetchDisabledReason
+  internal enum TCloudFetchDisabledReason
   {
     ARROW_SUPPORT = 0,
     CLOUD_FETCH_SUPPORT = 1,
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TColumn.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TColumn.cs
index 49be30f82..eeca64848 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TColumn.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TColumn.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TColumn : TBase
+  internal partial class TColumn : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TBoolColumn _boolVal;
     private global::Apache.Hive.Service.Rpc.Thrift.TByteColumn _byteVal;
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TColumnDesc.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TColumnDesc.cs
index 99c0b8c77..7fe1de231 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TColumnDesc.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TColumnDesc.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TColumnDesc : TBase
+  internal partial class TColumnDesc : TBase
   {
     private string _comment;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TColumnValue.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TColumnValue.cs
index cac462cd9..d0ef37e64 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TColumnValue.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TColumnValue.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TColumnValue : TBase
+  internal partial class TColumnValue : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TBoolValue _boolVal;
     private global::Apache.Hive.Service.Rpc.Thrift.TByteValue _byteVal;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlArrowFormat.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlArrowFormat.cs
index 1e5851611..61f6014c0 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlArrowFormat.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlArrowFormat.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TDBSqlArrowFormat : TBase
+  internal partial class TDBSqlArrowFormat : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TDBSqlArrowLayout 
_arrowLayout;
     private global::Apache.Hive.Service.Rpc.Thrift.TDBSqlCompressionCodec 
_compressionCodec;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlArrowLayout.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlArrowLayout.cs
index 0af4f55a7..42179218e 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlArrowLayout.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlArrowLayout.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TDBSqlArrowLayout
+  internal enum TDBSqlArrowLayout
   {
     ARROW_BATCH = 0,
     ARROW_STREAMING = 1,
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlCloseOperationReason.cs
 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlCloseOperationReason.cs
index 0a05f15f9..2d27e3465 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlCloseOperationReason.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlCloseOperationReason.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TDBSqlCloseOperationReason
+  internal enum TDBSqlCloseOperationReason
   {
     NONE = 0,
     COMMAND_INACTIVITY_TIMEOUT = 1,
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlCloudResultFile.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlCloudResultFile.cs
index 8f065de55..827b3dfea 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlCloudResultFile.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlCloudResultFile.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TDBSqlCloudResultFile : TBase
+  internal partial class TDBSqlCloudResultFile : TBase
   {
     private string _filePath;
     private long _startRowOffset;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlCompressionCodec.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlCompressionCodec.cs
index 884d9cf21..2e7cf0f6e 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlCompressionCodec.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlCompressionCodec.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TDBSqlCompressionCodec
+  internal enum TDBSqlCompressionCodec
   {
     NONE = 0,
     LZ4_FRAME = 1,
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlConfValue.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlConfValue.cs
index 5c2ef50c4..b66ccd130 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlConfValue.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlConfValue.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TDBSqlConfValue : TBase
+  internal partial class TDBSqlConfValue : TBase
   {
     private string _value;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlCsvFormat.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlCsvFormat.cs
index db919efdb..564b61e9d 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlCsvFormat.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlCsvFormat.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TDBSqlCsvFormat : TBase
+  internal partial class TDBSqlCsvFormat : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TDBSqlCompressionCodec 
_compressionCodec;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlFetchDisposition.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlFetchDisposition.cs
index cfe9f95b5..629baef92 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlFetchDisposition.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlFetchDisposition.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TDBSqlFetchDisposition
+  internal enum TDBSqlFetchDisposition
   {
     DISPOSITION_UNSPECIFIED = 0,
     DISPOSITION_INLINE = 1,
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlJsonArrayFormat.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlJsonArrayFormat.cs
index 58ad5a4fc..e92e77b71 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlJsonArrayFormat.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlJsonArrayFormat.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TDBSqlJsonArrayFormat : TBase
+  internal partial class TDBSqlJsonArrayFormat : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TDBSqlCompressionCodec 
_compressionCodec;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlManifestFileFormat.cs
 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlManifestFileFormat.cs
index b798e3a00..0eb45cf36 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlManifestFileFormat.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlManifestFileFormat.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TDBSqlManifestFileFormat
+  internal enum TDBSqlManifestFileFormat
   {
     THRIFT_GET_RESULT_SET_METADATA_RESP = 0,
   }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlResultFormat.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlResultFormat.cs
index 96cc68712..203a7c431 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlResultFormat.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlResultFormat.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TDBSqlResultFormat : TBase
+  internal partial class TDBSqlResultFormat : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TDBSqlArrowFormat 
_arrowFormat;
     private global::Apache.Hive.Service.Rpc.Thrift.TDBSqlCsvFormat _csvFormat;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlSessionCapabilities.cs
 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlSessionCapabilities.cs
index 5a50aa0f6..1ca826acb 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlSessionCapabilities.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlSessionCapabilities.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TDBSqlSessionCapabilities : TBase
+  internal partial class TDBSqlSessionCapabilities : TBase
   {
     private bool _supportsMultipleCatalogs;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlSessionConf.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlSessionConf.cs
index adfd8005c..44df81fa1 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlSessionConf.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlSessionConf.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TDBSqlSessionConf : TBase
+  internal partial class TDBSqlSessionConf : TBase
   {
     private Dictionary<string, string> _confs;
     private List<global::Apache.Hive.Service.Rpc.Thrift.TDBSqlTempView> 
_tempViews;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlStatement.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlStatement.cs
index b02803630..4a245977c 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlStatement.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlStatement.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TDBSqlStatement : TBase
+  internal partial class TDBSqlStatement : TBase
   {
     private string _statement;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlTempView.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlTempView.cs
index d5111a799..659f96e63 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlTempView.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDBSqlTempView.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TDBSqlTempView : TBase
+  internal partial class TDBSqlTempView : TBase
   {
     private string _name;
     private string _sqlStatement;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDoubleColumn.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDoubleColumn.cs
index 405b127d5..5ba749148 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDoubleColumn.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDoubleColumn.cs
@@ -29,7 +29,7 @@ using Thrift.Protocol.Utilities;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TDoubleColumn : TBase
+  internal partial class TDoubleColumn : TBase
   {
     public DoubleArray Values { get; set; }
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDoubleValue.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDoubleValue.cs
index 831fa796e..24066b17f 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDoubleValue.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDoubleValue.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TDoubleValue : TBase
+  internal partial class TDoubleValue : TBase
   {
     private double _value;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDownloadDataReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDownloadDataReq.cs
index 49483cac1..5e499e3f0 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDownloadDataReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDownloadDataReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TDownloadDataReq : TBase
+  internal partial class TDownloadDataReq : TBase
   {
     private string _tableName;
     private string _query;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDownloadDataResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDownloadDataResp.cs
index 7c66e3d1d..c8f6e77e8 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDownloadDataResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TDownloadDataResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TDownloadDataResp : TBase
+  internal partial class TDownloadDataResp : TBase
   {
 
     public global::Apache.Hive.Service.Rpc.Thrift.TStatus Status { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TExecuteStatementReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TExecuteStatementReq.cs
index 9eb55e2ee..40c5ab323 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TExecuteStatementReq.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TExecuteStatementReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TExecuteStatementReq : TBase
+  internal partial class TExecuteStatementReq : TBase
   {
     private Dictionary<string, string> _confOverlay;
     private bool _runAsync;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TExecuteStatementResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TExecuteStatementResp.cs
index 30a34ad60..36064be51 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TExecuteStatementResp.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TExecuteStatementResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TExecuteStatementResp : TBase
+  internal partial class TExecuteStatementResp : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TOperationHandle 
_operationHandle;
     private global::Apache.Hive.Service.Rpc.Thrift.TSparkDirectResults 
_directResults;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TExpressionInfo.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TExpressionInfo.cs
index 4d9f6031f..32386b764 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TExpressionInfo.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TExpressionInfo.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TExpressionInfo : TBase
+  internal partial class TExpressionInfo : TBase
   {
     private string _className;
     private string _usage;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TFetchOrientation.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TFetchOrientation.cs
index b4f93e936..bd384c88d 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TFetchOrientation.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TFetchOrientation.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TFetchOrientation
+  internal enum TFetchOrientation
   {
     FETCH_NEXT = 0,
     FETCH_PRIOR = 1,
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TFetchResultsReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TFetchResultsReq.cs
index bb2225d68..03acdb56a 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TFetchResultsReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TFetchResultsReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TFetchResultsReq : TBase
+  internal partial class TFetchResultsReq : TBase
   {
     private short _fetchType;
     private long _maxBytes;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TFetchResultsResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TFetchResultsResp.cs
index f1b14f5da..0794bd2c2 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TFetchResultsResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TFetchResultsResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TFetchResultsResp : TBase
+  internal partial class TFetchResultsResp : TBase
   {
     private bool _hasMoreRows;
     private global::Apache.Hive.Service.Rpc.Thrift.TRowSet _results;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetCatalogsReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetCatalogsReq.cs
index 577f51af2..3a4d5b6c1 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetCatalogsReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetCatalogsReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetCatalogsReq : TBase
+  internal partial class TGetCatalogsReq : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TSparkGetDirectResults 
_getDirectResults;
     private bool _runAsync;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetCatalogsResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetCatalogsResp.cs
index 4fbd1ef8d..5d2ffd993 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetCatalogsResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetCatalogsResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetCatalogsResp : TBase
+  internal partial class TGetCatalogsResp : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TOperationHandle 
_operationHandle;
     private global::Apache.Hive.Service.Rpc.Thrift.TSparkDirectResults 
_directResults;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetColumnsReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetColumnsReq.cs
index ebfb6acb6..c9e5d8a09 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetColumnsReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetColumnsReq.cs
@@ -41,7 +41,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetColumnsReq : TBase
+  internal partial class TGetColumnsReq : TBase
   {
     private string _catalogName;
     private string _schemaName;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetColumnsResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetColumnsResp.cs
index 84aff47c8..ce7afda2c 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetColumnsResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetColumnsResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetColumnsResp : TBase
+  internal partial class TGetColumnsResp : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TOperationHandle 
_operationHandle;
     private global::Apache.Hive.Service.Rpc.Thrift.TSparkDirectResults 
_directResults;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetCrossReferenceReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetCrossReferenceReq.cs
index dd0b1645f..ffa4d5f6e 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetCrossReferenceReq.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetCrossReferenceReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetCrossReferenceReq : TBase
+  internal partial class TGetCrossReferenceReq : TBase
   {
     private string _parentCatalogName;
     private string _parentSchemaName;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetCrossReferenceResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetCrossReferenceResp.cs
index 300a48f4f..cd29d3259 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetCrossReferenceResp.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetCrossReferenceResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetCrossReferenceResp : TBase
+  internal partial class TGetCrossReferenceResp : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TOperationHandle 
_operationHandle;
     private global::Apache.Hive.Service.Rpc.Thrift.TSparkDirectResults 
_directResults;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetDelegationTokenReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetDelegationTokenReq.cs
index 58c97a349..fc5f43d5d 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetDelegationTokenReq.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetDelegationTokenReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetDelegationTokenReq : TBase
+  internal partial class TGetDelegationTokenReq : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TDBSqlSessionConf 
_sessionConf;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetDelegationTokenResp.cs
 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetDelegationTokenResp.cs
index 005294a4f..205d7ae48 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetDelegationTokenResp.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetDelegationTokenResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetDelegationTokenResp : TBase
+  internal partial class TGetDelegationTokenResp : TBase
   {
     private string _delegationToken;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetFunctionsReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetFunctionsReq.cs
index 26eb08ee2..594a32a01 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetFunctionsReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetFunctionsReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetFunctionsReq : TBase
+  internal partial class TGetFunctionsReq : TBase
   {
     private string _catalogName;
     private string _schemaName;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetFunctionsResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetFunctionsResp.cs
index a4df11062..3f3c17132 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetFunctionsResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetFunctionsResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetFunctionsResp : TBase
+  internal partial class TGetFunctionsResp : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TOperationHandle 
_operationHandle;
     private global::Apache.Hive.Service.Rpc.Thrift.TSparkDirectResults 
_directResults;
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetInfoReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetInfoReq.cs
index 1fd8f723e..2c09d9d10 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetInfoReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetInfoReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetInfoReq : TBase
+  internal partial class TGetInfoReq : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TDBSqlSessionConf 
_sessionConf;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetInfoResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetInfoResp.cs
index d2ab8ee43..b5df57f85 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetInfoResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetInfoResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetInfoResp : TBase
+  internal partial class TGetInfoResp : TBase
   {
 
     public global::Apache.Hive.Service.Rpc.Thrift.TStatus Status { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetInfoType.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetInfoType.cs
index 25f2391db..19365281d 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetInfoType.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetInfoType.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TGetInfoType
+  internal enum TGetInfoType
   {
     CLI_MAX_DRIVER_CONNECTIONS = 0,
     CLI_MAX_CONCURRENT_ACTIVITIES = 1,
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetInfoValue.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetInfoValue.cs
index 198be00e0..4d19c4be1 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetInfoValue.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetInfoValue.cs
@@ -41,7 +41,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetInfoValue : TBase
+  internal partial class TGetInfoValue : TBase
   {
     private string _stringValue;
     private short _smallIntValue;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetOperationStatusReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetOperationStatusReq.cs
index 14362a487..a6f579d6f 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetOperationStatusReq.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetOperationStatusReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetOperationStatusReq : TBase
+  internal partial class TGetOperationStatusReq : TBase
   {
     private bool _getProgressUpdate;
     private bool _getResultSetMetadataOnCompletion;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetOperationStatusResp.cs
 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetOperationStatusResp.cs
index 64dded10e..15e55e2cd 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetOperationStatusResp.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetOperationStatusResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetOperationStatusResp : TBase
+  internal partial class TGetOperationStatusResp : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TOperationState 
_operationState;
     private string _sqlState;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetPrimaryKeysReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetPrimaryKeysReq.cs
index f39275690..e268444f5 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetPrimaryKeysReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetPrimaryKeysReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetPrimaryKeysReq : TBase
+  internal partial class TGetPrimaryKeysReq : TBase
   {
     private string _catalogName;
     private string _schemaName;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetPrimaryKeysResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetPrimaryKeysResp.cs
index 265244639..5c6b741fb 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetPrimaryKeysResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetPrimaryKeysResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetPrimaryKeysResp : TBase
+  internal partial class TGetPrimaryKeysResp : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TOperationHandle 
_operationHandle;
     private global::Apache.Hive.Service.Rpc.Thrift.TSparkDirectResults 
_directResults;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetQueryIdReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetQueryIdReq.cs
index b13cefcb2..7f78b8a66 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetQueryIdReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetQueryIdReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetQueryIdReq : TBase
+  internal partial class TGetQueryIdReq : TBase
   {
 
     public global::Apache.Hive.Service.Rpc.Thrift.TOperationHandle 
OperationHandle { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetQueryIdResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetQueryIdResp.cs
index eda05cc8c..e03921313 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetQueryIdResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetQueryIdResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetQueryIdResp : TBase
+  internal partial class TGetQueryIdResp : TBase
   {
 
     public string QueryId { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetResultSetMetadataReq.cs
 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetResultSetMetadataReq.cs
index 4687ecf0f..12f0399ae 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetResultSetMetadataReq.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetResultSetMetadataReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetResultSetMetadataReq : TBase
+  internal partial class TGetResultSetMetadataReq : TBase
   {
     private bool _includeCloudResultFiles;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetResultSetMetadataResp.cs
 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetResultSetMetadataResp.cs
index 9ee6e2119..c44d40123 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetResultSetMetadataResp.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetResultSetMetadataResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetResultSetMetadataResp : TBase
+  internal partial class TGetResultSetMetadataResp : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TTableSchema _schema;
     private global::Apache.Hive.Service.Rpc.Thrift.TSparkRowSetType 
_resultFormat;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetSchemasReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetSchemasReq.cs
index 32f1c4c6a..fbc41a11a 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetSchemasReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetSchemasReq.cs
@@ -41,7 +41,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetSchemasReq : TBase
+  internal partial class TGetSchemasReq : TBase
   {
     private string _catalogName;
     private string _schemaName;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetSchemasResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetSchemasResp.cs
index acabce57b..643586315 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetSchemasResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetSchemasResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetSchemasResp : TBase
+  internal partial class TGetSchemasResp : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TOperationHandle 
_operationHandle;
     private global::Apache.Hive.Service.Rpc.Thrift.TSparkDirectResults 
_directResults;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTableTypesReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTableTypesReq.cs
index 5307f4171..5db93b2a8 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTableTypesReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTableTypesReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetTableTypesReq : TBase
+  internal partial class TGetTableTypesReq : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TSparkGetDirectResults 
_getDirectResults;
     private bool _runAsync;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTableTypesResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTableTypesResp.cs
index 39922267a..628e06334 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTableTypesResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTableTypesResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetTableTypesResp : TBase
+  internal partial class TGetTableTypesResp : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TOperationHandle 
_operationHandle;
     private global::Apache.Hive.Service.Rpc.Thrift.TSparkDirectResults 
_directResults;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTablesReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTablesReq.cs
index 0c345310b..976b0f53d 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTablesReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTablesReq.cs
@@ -41,7 +41,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetTablesReq : TBase
+  internal partial class TGetTablesReq : TBase
   {
     private string _catalogName;
     private string _schemaName;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTablesResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTablesResp.cs
index f1c046850..3f21a8688 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTablesResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTablesResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetTablesResp : TBase
+  internal partial class TGetTablesResp : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TOperationHandle 
_operationHandle;
     private global::Apache.Hive.Service.Rpc.Thrift.TSparkDirectResults 
_directResults;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTypeInfoReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTypeInfoReq.cs
index 3cac52aa6..e57aa26d0 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTypeInfoReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTypeInfoReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetTypeInfoReq : TBase
+  internal partial class TGetTypeInfoReq : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TSparkGetDirectResults 
_getDirectResults;
     private bool _runAsync;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTypeInfoResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTypeInfoResp.cs
index 0e5a1f484..fb5575b19 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTypeInfoResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TGetTypeInfoResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TGetTypeInfoResp : TBase
+  internal partial class TGetTypeInfoResp : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TOperationHandle 
_operationHandle;
     private global::Apache.Hive.Service.Rpc.Thrift.TSparkDirectResults 
_directResults;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/THandleIdentifier.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/THandleIdentifier.cs
index 367de70c4..38bbb90da 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/THandleIdentifier.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/THandleIdentifier.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class THandleIdentifier : TBase
+  internal partial class THandleIdentifier : TBase
   {
     private short _executionVersion;
 
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI16Column.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI16Column.cs
index 6554afbf0..715f8397e 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI16Column.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI16Column.cs
@@ -30,7 +30,7 @@ using Thrift.Protocol.Utilities;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TI16Column : TBase
+  internal partial class TI16Column : TBase
   {
 
     public Int16Array Values { get; set; }
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI16Value.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI16Value.cs
index 47301c870..5780bee90 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI16Value.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI16Value.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TI16Value : TBase
+  internal partial class TI16Value : TBase
   {
     private short _value;
 
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI32Column.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI32Column.cs
index 80032aa72..dba3a316d 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI32Column.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI32Column.cs
@@ -30,7 +30,7 @@ using Thrift.Protocol.Utilities;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TI32Column : TBase
+  internal partial class TI32Column : TBase
   {
 
     public Int32Array Values { get; set; }
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI32Value.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI32Value.cs
index 0353805d0..f52ce4631 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI32Value.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI32Value.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TI32Value : TBase
+  internal partial class TI32Value : TBase
   {
     private int _value;
 
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI64Column.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI64Column.cs
index 23eeb9292..9401e9035 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI64Column.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI64Column.cs
@@ -30,7 +30,7 @@ using Thrift.Protocol.Utilities;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TI64Column : TBase
+  internal partial class TI64Column : TBase
   {
     public Int64Array Values { get; set; }
 
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI64Value.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI64Value.cs
index 4f0761d70..d206cac9f 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI64Value.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TI64Value.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TI64Value : TBase
+  internal partial class TI64Value : TBase
   {
     private long _value;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TJobExecutionStatus.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TJobExecutionStatus.cs
index bb90d5de2..95bbbe3dd 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TJobExecutionStatus.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TJobExecutionStatus.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TJobExecutionStatus
+  internal enum TJobExecutionStatus
   {
     IN_PROGRESS = 0,
     COMPLETE = 1,
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TMapTypeEntry.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TMapTypeEntry.cs
index c86d93560..a2704063d 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TMapTypeEntry.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TMapTypeEntry.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TMapTypeEntry : TBase
+  internal partial class TMapTypeEntry : TBase
   {
 
     public int KeyTypePtr { get; set; }
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TNamespace.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TNamespace.cs
index 84e67bff3..889a9610c 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TNamespace.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TNamespace.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TNamespace : TBase
+  internal partial class TNamespace : TBase
   {
     private string _catalogName;
     private string _schemaName;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOpenSessionReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOpenSessionReq.cs
index 11fe42cb6..2f984f179 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOpenSessionReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOpenSessionReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TOpenSessionReq : TBase
+  internal partial class TOpenSessionReq : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TProtocolVersion 
_client_protocol;
     private string _username;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOpenSessionResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOpenSessionResp.cs
index ddab7010e..4b4b50988 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOpenSessionResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOpenSessionResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TOpenSessionResp : TBase
+  internal partial class TOpenSessionResp : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TSessionHandle 
_sessionHandle;
     private Dictionary<string, string> _configuration;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationHandle.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationHandle.cs
index 549fd56eb..4f618d7e0 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationHandle.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationHandle.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TOperationHandle : TBase
+  internal partial class TOperationHandle : TBase
   {
     private double _modifiedRowCount;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationIdempotencyType.cs
 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationIdempotencyType.cs
index 94f5e6cc8..ed739208b 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationIdempotencyType.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationIdempotencyType.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TOperationIdempotencyType
+  internal enum TOperationIdempotencyType
   {
     UNKNOWN = 0,
     NON_IDEMPOTENT = 1,
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationState.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationState.cs
index ad9fbfc81..c50037e1c 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationState.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationState.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TOperationState
+  internal enum TOperationState
   {
     INITIALIZED_STATE = 0,
     RUNNING_STATE = 1,
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationTimeoutLevel.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationTimeoutLevel.cs
index c6a0aa45f..9e6a53238 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationTimeoutLevel.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationTimeoutLevel.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TOperationTimeoutLevel
+  internal enum TOperationTimeoutLevel
   {
     CLUSTER = 0,
     SESSION = 1,
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationType.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationType.cs
index 462b6a039..b98a3fd3e 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationType.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TOperationType.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TOperationType
+  internal enum TOperationType
   {
     EXECUTE_STATEMENT = 0,
     GET_TYPE_INFO = 1,
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TPrimitiveTypeEntry.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TPrimitiveTypeEntry.cs
index d638ada6f..5424dafc0 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TPrimitiveTypeEntry.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TPrimitiveTypeEntry.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TPrimitiveTypeEntry : TBase
+  internal partial class TPrimitiveTypeEntry : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TTypeQualifiers 
_typeQualifiers;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TProgressUpdateResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TProgressUpdateResp.cs
index ba188b289..026c15b37 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TProgressUpdateResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TProgressUpdateResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TProgressUpdateResp : TBase
+  internal partial class TProgressUpdateResp : TBase
   {
 
     public List<string> HeaderNames { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TProtocolVersion.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TProtocolVersion.cs
index e599485e8..2fd47beba 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TProtocolVersion.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TProtocolVersion.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TProtocolVersion
+  internal enum TProtocolVersion
   {
     __HIVE_JDBC_WORKAROUND = -7,
     __TEST_PROTOCOL_VERSION = 65281,
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TRenewDelegationTokenReq.cs
 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TRenewDelegationTokenReq.cs
index bbafafea9..c8f6b2124 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TRenewDelegationTokenReq.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TRenewDelegationTokenReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TRenewDelegationTokenReq : TBase
+  internal partial class TRenewDelegationTokenReq : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TDBSqlSessionConf 
_sessionConf;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TRenewDelegationTokenResp.cs
 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TRenewDelegationTokenResp.cs
index ec84f1e21..0a8a8bdfb 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TRenewDelegationTokenResp.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TRenewDelegationTokenResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TRenewDelegationTokenResp : TBase
+  internal partial class TRenewDelegationTokenResp : TBase
   {
 
     public global::Apache.Hive.Service.Rpc.Thrift.TStatus Status { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TResultPersistenceMode.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TResultPersistenceMode.cs
index 09f049d54..79bb70e2b 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TResultPersistenceMode.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TResultPersistenceMode.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TResultPersistenceMode
+  internal enum TResultPersistenceMode
   {
     ONLY_LARGE_RESULTS = 0,
     ALL_QUERY_RESULTS = 1,
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TRow.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TRow.cs
index f1ab07cf8..08dacdd11 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TRow.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TRow.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TRow : TBase
+  internal partial class TRow : TBase
   {
 
     public List<global::Apache.Hive.Service.Rpc.Thrift.TColumnValue> ColVals { 
get; set; }
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TRowSet.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TRowSet.cs
index 77730b500..de0c94001 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TRowSet.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TRowSet.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TRowSet : TBase
+  internal partial class TRowSet : TBase
   {
     private List<global::Apache.Hive.Service.Rpc.Thrift.TColumn> _columns;
     private byte[] _binaryColumns;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSQLVariable.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSQLVariable.cs
index 0f669a1c9..caf66b6bb 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSQLVariable.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSQLVariable.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TSQLVariable : TBase
+  internal partial class TSQLVariable : TBase
   {
     private string _catalogName;
     private string _schemaName;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSessionHandle.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSessionHandle.cs
index 2ca0e3ab9..52ff2300b 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSessionHandle.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSessionHandle.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TSessionHandle : TBase
+  internal partial class TSessionHandle : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TProtocolVersion 
_serverProtocolVersion;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSetClientInfoReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSetClientInfoReq.cs
index 72eead98e..93c9f8963 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSetClientInfoReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSetClientInfoReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TSetClientInfoReq : TBase
+  internal partial class TSetClientInfoReq : TBase
   {
     private Dictionary<string, string> _configuration;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSetClientInfoResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSetClientInfoResp.cs
index 1b02bff91..b810b47d0 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSetClientInfoResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSetClientInfoResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TSetClientInfoResp : TBase
+  internal partial class TSetClientInfoResp : TBase
   {
 
     public global::Apache.Hive.Service.Rpc.Thrift.TStatus Status { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkArrowBatch.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkArrowBatch.cs
index e1ee7f1a3..4ccc80da4 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkArrowBatch.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkArrowBatch.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TSparkArrowBatch : TBase
+  internal partial class TSparkArrowBatch : TBase
   {
 
     public byte[] Batch { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkArrowResultLink.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkArrowResultLink.cs
index b7a4e6ad2..1271ef82b 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkArrowResultLink.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkArrowResultLink.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TSparkArrowResultLink : TBase
+  internal partial class TSparkArrowResultLink : TBase
   {
     private Dictionary<string, string> _httpHeaders;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkArrowTypes.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkArrowTypes.cs
index 7bf4126e0..567a9cc4e 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkArrowTypes.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkArrowTypes.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TSparkArrowTypes : TBase
+  internal partial class TSparkArrowTypes : TBase
   {
     private bool _timestampAsArrow;
     private bool _decimalAsArrow;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkDirectResults.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkDirectResults.cs
index 73e64aabb..04be8efa4 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkDirectResults.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkDirectResults.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TSparkDirectResults : TBase
+  internal partial class TSparkDirectResults : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TGetOperationStatusResp 
_operationStatus;
     private global::Apache.Hive.Service.Rpc.Thrift.TGetResultSetMetadataResp 
_resultSetMetadata;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkGetDirectResults.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkGetDirectResults.cs
index d87058696..22d023512 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkGetDirectResults.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkGetDirectResults.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TSparkGetDirectResults : TBase
+  internal partial class TSparkGetDirectResults : TBase
   {
     private long _maxBytes;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkParameter.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkParameter.cs
index 4625d6fd7..aadb4fd5d 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkParameter.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkParameter.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TSparkParameter : TBase
+  internal partial class TSparkParameter : TBase
   {
     private int _ordinal;
     private string _name;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkParameterValue.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkParameterValue.cs
index db2d5dcad..a9fa65cc1 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkParameterValue.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkParameterValue.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TSparkParameterValue : TBase
+  internal partial class TSparkParameterValue : TBase
   {
     private string _stringValue;
     private double _doubleValue;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkParameterValueArg.cs
 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkParameterValueArg.cs
index 0d13493d8..1109db693 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkParameterValueArg.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkParameterValueArg.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TSparkParameterValueArg : TBase
+  internal partial class TSparkParameterValueArg : TBase
   {
     private string _type;
     private string _value;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkRowSetType.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkRowSetType.cs
index 9fdb8f27a..f3070d28a 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkRowSetType.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TSparkRowSetType.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TSparkRowSetType
+  internal enum TSparkRowSetType
   {
     ARROW_BASED_SET = 0,
     COLUMN_BASED_SET = 1,
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStatementConf.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStatementConf.cs
index ba13026fb..8525cfb9b 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStatementConf.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStatementConf.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TStatementConf : TBase
+  internal partial class TStatementConf : TBase
   {
     private bool _sessionless;
     private global::Apache.Hive.Service.Rpc.Thrift.TNamespace 
_initialNamespace;
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStatus.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStatus.cs
index 36a64dd38..d24d1369a 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStatus.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStatus.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TStatus : TBase
+  internal partial class TStatus : TBase
   {
     private List<string> _infoMessages;
     private string _sqlState;
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStatusCode.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStatusCode.cs
index b6c8446cd..9c1aeb3e2 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStatusCode.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStatusCode.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TStatusCode
+  internal enum TStatusCode
   {
     SUCCESS_STATUS = 0,
     SUCCESS_WITH_INFO_STATUS = 1,
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStringColumn.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStringColumn.cs
index 90d86482b..fdbc3eea8 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStringColumn.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStringColumn.cs
@@ -29,7 +29,7 @@ using Thrift.Protocol.Utilities;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TStringColumn : TBase
+  internal partial class TStringColumn : TBase
   {
 
     public StringArray Values { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStringValue.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStringValue.cs
index 02a6a4ee0..cd271beef 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStringValue.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStringValue.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TStringValue : TBase
+  internal partial class TStringValue : TBase
   {
     private string _value;
 
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStructTypeEntry.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStructTypeEntry.cs
index 0ea4a4343..9f17786a3 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStructTypeEntry.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TStructTypeEntry.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TStructTypeEntry : TBase
+  internal partial class TStructTypeEntry : TBase
   {
 
     public Dictionary<string, int> NameToTypePtr { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTableSchema.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTableSchema.cs
index a683c31eb..dd2fba10b 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTableSchema.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTableSchema.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TTableSchema : TBase
+  internal partial class TTableSchema : TBase
   {
 
     public List<global::Apache.Hive.Service.Rpc.Thrift.TColumnDesc> Columns { 
get; set; }
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeDesc.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeDesc.cs
index b6db2ac26..46ef872ce 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeDesc.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeDesc.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TTypeDesc : TBase
+  internal partial class TTypeDesc : TBase
   {
 
     public List<global::Apache.Hive.Service.Rpc.Thrift.TTypeEntry> Types { 
get; set; }
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeEntry.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeEntry.cs
index 12f47e785..d41675d8f 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeEntry.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeEntry.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TTypeEntry : TBase
+  internal partial class TTypeEntry : TBase
   {
     private global::Apache.Hive.Service.Rpc.Thrift.TPrimitiveTypeEntry 
_primitiveEntry;
     private global::Apache.Hive.Service.Rpc.Thrift.TArrayTypeEntry _arrayEntry;
diff --git a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeId.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeId.cs
index 997dc4d92..4a846de6d 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeId.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeId.cs
@@ -21,7 +21,7 @@ using System;
 
 namespace Apache.Hive.Service.Rpc.Thrift
 {
-  public enum TTypeId
+  internal enum TTypeId
   {
     BOOLEAN_TYPE = 0,
     TINYINT_TYPE = 1,
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeQualifierValue.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeQualifierValue.cs
index 3eb083118..17a41d543 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeQualifierValue.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeQualifierValue.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TTypeQualifierValue : TBase
+  internal partial class TTypeQualifierValue : TBase
   {
     private int _i32Value;
     private string _stringValue;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeQualifiers.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeQualifiers.cs
index 58dfa77a8..8c7e4ecc4 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeQualifiers.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TTypeQualifiers.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TTypeQualifiers : TBase
+  internal partial class TTypeQualifiers : TBase
   {
 
     public Dictionary<string, 
global::Apache.Hive.Service.Rpc.Thrift.TTypeQualifierValue> Qualifiers { get; 
set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TUnionTypeEntry.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TUnionTypeEntry.cs
index e26099503..714f97f01 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TUnionTypeEntry.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TUnionTypeEntry.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TUnionTypeEntry : TBase
+  internal partial class TUnionTypeEntry : TBase
   {
 
     public Dictionary<string, int> NameToTypePtr { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TUploadDataReq.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TUploadDataReq.cs
index 84ee7adaf..387ea571a 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TUploadDataReq.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TUploadDataReq.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TUploadDataReq : TBase
+  internal partial class TUploadDataReq : TBase
   {
     private string _tableName;
     private string _path;
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TUploadDataResp.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TUploadDataResp.cs
index 0ce089be3..7779868b3 100644
--- a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TUploadDataResp.cs
+++ b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TUploadDataResp.cs
@@ -40,7 +40,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TUploadDataResp : TBase
+  internal partial class TUploadDataResp : TBase
   {
 
     public global::Apache.Hive.Service.Rpc.Thrift.TStatus Status { get; set; }
diff --git 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TUserDefinedTypeEntry.cs 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TUserDefinedTypeEntry.cs
index e31484cf6..e60928c9a 100644
--- 
a/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TUserDefinedTypeEntry.cs
+++ 
b/csharp/src/Drivers/Apache/Thrift/Service/Rpc/Thrift/TUserDefinedTypeEntry.cs
@@ -41,7 +41,7 @@ using Thrift.Processor;
 namespace Apache.Hive.Service.Rpc.Thrift
 {
 
-  public partial class TUserDefinedTypeEntry : TBase
+  internal partial class TUserDefinedTypeEntry : TBase
   {
 
     public string TypeClassName { get; set; }
diff --git a/csharp/src/Drivers/Apache/Thrift/StreamExtensions.cs 
b/csharp/src/Drivers/Apache/Thrift/StreamExtensions.cs
index 7a72822c9..6563b7ea0 100644
--- a/csharp/src/Drivers/Apache/Thrift/StreamExtensions.cs
+++ b/csharp/src/Drivers/Apache/Thrift/StreamExtensions.cs
@@ -24,7 +24,7 @@ using System.Threading.Tasks;
 
 namespace Apache.Arrow.Adbc.Drivers.Apache.Thrift
 {
-    public static class StreamExtensions
+    internal static class StreamExtensions
     {
         public static void WriteInt32LittleEndian(int value, Span<byte> 
buffer, int offset)
         {

Reply via email to