diff --git a/generation_config.yaml b/generation_config.yaml index e52d30a27e..5d82f26a02 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.68.0 -googleapis_commitish: cd090841ab172574e740c214c99df00aef9c0dee +googleapis_commitish: f5cb7afc40b63d52f43bc306cb9b64a87b681aea libraries_bom_version: 26.79.0 template_excludes: - .gitignore diff --git a/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.data.v2/reflect-config.json b/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.data.v2/reflect-config.json index 9123849654..fd3a9f86ff 100644 --- a/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.data.v2/reflect-config.json +++ b/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.data.v2/reflect-config.json @@ -531,7 +531,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Cell", + "name": "com.google.bigtable.v2.AuthorizedViewRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -540,7 +540,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Cell$Builder", + "name": "com.google.bigtable.v2.AuthorizedViewRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -549,7 +549,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.CheckAndMutateRowRequest", + "name": "com.google.bigtable.v2.AuthorizedViewResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -558,7 +558,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.CheckAndMutateRowRequest$Builder", + "name": "com.google.bigtable.v2.AuthorizedViewResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -567,7 +567,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.CheckAndMutateRowResponse", + "name": "com.google.bigtable.v2.BackendIdentifier", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -576,7 +576,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.CheckAndMutateRowResponse$Builder", + "name": "com.google.bigtable.v2.BackendIdentifier$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -585,7 +585,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Column", + "name": "com.google.bigtable.v2.Cell", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -594,7 +594,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Column$Builder", + "name": "com.google.bigtable.v2.Cell$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -603,7 +603,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ColumnMetadata", + "name": "com.google.bigtable.v2.CheckAndMutateRowRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -612,7 +612,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ColumnMetadata$Builder", + "name": "com.google.bigtable.v2.CheckAndMutateRowRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -621,7 +621,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ColumnRange", + "name": "com.google.bigtable.v2.CheckAndMutateRowResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -630,7 +630,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ColumnRange$Builder", + "name": "com.google.bigtable.v2.CheckAndMutateRowResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -639,7 +639,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ExecuteQueryRequest", + "name": "com.google.bigtable.v2.ClientConfiguration", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -648,7 +648,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ExecuteQueryRequest$Builder", + "name": "com.google.bigtable.v2.ClientConfiguration$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -657,7 +657,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ExecuteQueryResponse", + "name": "com.google.bigtable.v2.ClientConfiguration$PollingConfiguration", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -666,7 +666,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ExecuteQueryResponse$Builder", + "name": "com.google.bigtable.v2.ClientConfiguration$PollingConfiguration$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -675,7 +675,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Family", + "name": "com.google.bigtable.v2.CloseSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -684,7 +684,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Family$Builder", + "name": "com.google.bigtable.v2.CloseSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -693,7 +693,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.FeatureFlags", + "name": "com.google.bigtable.v2.CloseSessionRequest$CloseSessionReason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -702,7 +702,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.FeatureFlags$Builder", + "name": "com.google.bigtable.v2.ClusterInformation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -711,7 +711,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.FullReadStatsView", + "name": "com.google.bigtable.v2.ClusterInformation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -720,7 +720,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.FullReadStatsView$Builder", + "name": "com.google.bigtable.v2.Column", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -729,7 +729,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest", + "name": "com.google.bigtable.v2.Column$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -738,7 +738,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest$Builder", + "name": "com.google.bigtable.v2.ColumnMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -747,7 +747,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse", + "name": "com.google.bigtable.v2.ColumnMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -756,7 +756,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse$Builder", + "name": "com.google.bigtable.v2.ColumnRange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -765,7 +765,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Idempotency", + "name": "com.google.bigtable.v2.ColumnRange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -774,7 +774,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Idempotency$Builder", + "name": "com.google.bigtable.v2.ErrorResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -783,7 +783,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.MutateRowRequest", + "name": "com.google.bigtable.v2.ErrorResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -792,7 +792,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.MutateRowRequest$Builder", + "name": "com.google.bigtable.v2.ExecuteQueryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -801,7 +801,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.MutateRowResponse", + "name": "com.google.bigtable.v2.ExecuteQueryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -810,7 +810,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.MutateRowResponse$Builder", + "name": "com.google.bigtable.v2.ExecuteQueryResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -819,7 +819,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.MutateRowsRequest", + "name": "com.google.bigtable.v2.ExecuteQueryResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -828,7 +828,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.MutateRowsRequest$Builder", + "name": "com.google.bigtable.v2.Family", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -837,7 +837,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.MutateRowsRequest$Entry", + "name": "com.google.bigtable.v2.Family$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -846,7 +846,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.MutateRowsRequest$Entry$Builder", + "name": "com.google.bigtable.v2.FeatureFlags", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -855,7 +855,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.MutateRowsResponse", + "name": "com.google.bigtable.v2.FeatureFlags$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -864,7 +864,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.MutateRowsResponse$Builder", + "name": "com.google.bigtable.v2.FullReadStatsView", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -873,7 +873,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.MutateRowsResponse$Entry", + "name": "com.google.bigtable.v2.FullReadStatsView$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -882,7 +882,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.MutateRowsResponse$Entry$Builder", + "name": "com.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -891,7 +891,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Mutation", + "name": "com.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -900,7 +900,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Mutation$AddToCell", + "name": "com.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -909,7 +909,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Mutation$AddToCell$Builder", + "name": "com.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -918,7 +918,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Mutation$Builder", + "name": "com.google.bigtable.v2.GetClientConfigurationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -927,7 +927,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Mutation$DeleteFromColumn", + "name": "com.google.bigtable.v2.GetClientConfigurationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -936,7 +936,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Mutation$DeleteFromColumn$Builder", + "name": "com.google.bigtable.v2.GoAwayResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -945,7 +945,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Mutation$DeleteFromFamily", + "name": "com.google.bigtable.v2.GoAwayResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -954,7 +954,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Mutation$DeleteFromFamily$Builder", + "name": "com.google.bigtable.v2.HeartbeatResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -963,7 +963,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Mutation$DeleteFromRow", + "name": "com.google.bigtable.v2.HeartbeatResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -972,7 +972,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Mutation$DeleteFromRow$Builder", + "name": "com.google.bigtable.v2.Idempotency", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -981,7 +981,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Mutation$MergeToCell", + "name": "com.google.bigtable.v2.Idempotency$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -990,7 +990,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Mutation$MergeToCell$Builder", + "name": "com.google.bigtable.v2.LoadBalancingOptions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -999,7 +999,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Mutation$SetCell", + "name": "com.google.bigtable.v2.LoadBalancingOptions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1008,7 +1008,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Mutation$SetCell$Builder", + "name": "com.google.bigtable.v2.LoadBalancingOptions$LeastInFlight", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +1017,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.PartialResultSet", + "name": "com.google.bigtable.v2.LoadBalancingOptions$LeastInFlight$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1026,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.PartialResultSet$Builder", + "name": "com.google.bigtable.v2.LoadBalancingOptions$PeakEwma", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1035,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.PeerInfo", + "name": "com.google.bigtable.v2.LoadBalancingOptions$PeakEwma$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1044,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.PeerInfo$Builder", + "name": "com.google.bigtable.v2.LoadBalancingOptions$Random", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1053,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.PeerInfo$TransportType", + "name": "com.google.bigtable.v2.LoadBalancingOptions$Random$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1062,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.PingAndWarmRequest", + "name": "com.google.bigtable.v2.MaterializedViewRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1071,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.PingAndWarmRequest$Builder", + "name": "com.google.bigtable.v2.MaterializedViewRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1080,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.PingAndWarmResponse", + "name": "com.google.bigtable.v2.MaterializedViewResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1089,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.PingAndWarmResponse$Builder", + "name": "com.google.bigtable.v2.MaterializedViewResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1098,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.PrepareQueryRequest", + "name": "com.google.bigtable.v2.MutateRowRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1107,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.PrepareQueryRequest$Builder", + "name": "com.google.bigtable.v2.MutateRowRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1116,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.PrepareQueryResponse", + "name": "com.google.bigtable.v2.MutateRowResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.PrepareQueryResponse$Builder", + "name": "com.google.bigtable.v2.MutateRowResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ProtoFormat", + "name": "com.google.bigtable.v2.MutateRowsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ProtoFormat$Builder", + "name": "com.google.bigtable.v2.MutateRowsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ProtoRows", + "name": "com.google.bigtable.v2.MutateRowsRequest$Entry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ProtoRows$Builder", + "name": "com.google.bigtable.v2.MutateRowsRequest$Entry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ProtoRowsBatch", + "name": "com.google.bigtable.v2.MutateRowsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ProtoRowsBatch$Builder", + "name": "com.google.bigtable.v2.MutateRowsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ProtoSchema", + "name": "com.google.bigtable.v2.MutateRowsResponse$Entry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ProtoSchema$Builder", + "name": "com.google.bigtable.v2.MutateRowsResponse$Entry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RateLimitInfo", + "name": "com.google.bigtable.v2.Mutation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RateLimitInfo$Builder", + "name": "com.google.bigtable.v2.Mutation$AddToCell", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadChangeStreamRequest", + "name": "com.google.bigtable.v2.Mutation$AddToCell$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadChangeStreamRequest$Builder", + "name": "com.google.bigtable.v2.Mutation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadChangeStreamResponse", + "name": "com.google.bigtable.v2.Mutation$DeleteFromColumn", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadChangeStreamResponse$Builder", + "name": "com.google.bigtable.v2.Mutation$DeleteFromColumn$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadChangeStreamResponse$CloseStream", + "name": "com.google.bigtable.v2.Mutation$DeleteFromFamily", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadChangeStreamResponse$CloseStream$Builder", + "name": "com.google.bigtable.v2.Mutation$DeleteFromFamily$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadChangeStreamResponse$DataChange", + "name": "com.google.bigtable.v2.Mutation$DeleteFromRow", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadChangeStreamResponse$DataChange$Builder", + "name": "com.google.bigtable.v2.Mutation$DeleteFromRow$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadChangeStreamResponse$DataChange$Type", + "name": "com.google.bigtable.v2.Mutation$MergeToCell", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadChangeStreamResponse$Heartbeat", + "name": "com.google.bigtable.v2.Mutation$MergeToCell$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadChangeStreamResponse$Heartbeat$Builder", + "name": "com.google.bigtable.v2.Mutation$SetCell", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadChangeStreamResponse$MutationChunk", + "name": "com.google.bigtable.v2.Mutation$SetCell$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadChangeStreamResponse$MutationChunk$Builder", + "name": "com.google.bigtable.v2.OpenAuthorizedViewRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadChangeStreamResponse$MutationChunk$ChunkInfo", + "name": "com.google.bigtable.v2.OpenAuthorizedViewRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadChangeStreamResponse$MutationChunk$ChunkInfo$Builder", + "name": "com.google.bigtable.v2.OpenAuthorizedViewRequest$Permission", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadIterationStats", + "name": "com.google.bigtable.v2.OpenAuthorizedViewResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadIterationStats$Builder", + "name": "com.google.bigtable.v2.OpenAuthorizedViewResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadModifyWriteRowRequest", + "name": "com.google.bigtable.v2.OpenMaterializedViewRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadModifyWriteRowRequest$Builder", + "name": "com.google.bigtable.v2.OpenMaterializedViewRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadModifyWriteRowResponse", + "name": "com.google.bigtable.v2.OpenMaterializedViewRequest$Permission", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadModifyWriteRowResponse$Builder", + "name": "com.google.bigtable.v2.OpenMaterializedViewResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadModifyWriteRule", + "name": "com.google.bigtable.v2.OpenMaterializedViewResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +1422,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadModifyWriteRule$Builder", + "name": "com.google.bigtable.v2.OpenSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +1431,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadRowsRequest", + "name": "com.google.bigtable.v2.OpenSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +1440,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadRowsRequest$Builder", + "name": "com.google.bigtable.v2.OpenSessionResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +1449,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadRowsRequest$RequestStatsView", + "name": "com.google.bigtable.v2.OpenSessionResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +1458,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadRowsResponse", + "name": "com.google.bigtable.v2.OpenTableRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +1467,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadRowsResponse$Builder", + "name": "com.google.bigtable.v2.OpenTableRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +1476,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadRowsResponse$CellChunk", + "name": "com.google.bigtable.v2.OpenTableRequest$Permission", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +1485,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ReadRowsResponse$CellChunk$Builder", + "name": "com.google.bigtable.v2.OpenTableResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +1494,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RequestLatencyStats", + "name": "com.google.bigtable.v2.OpenTableResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +1503,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RequestLatencyStats$Builder", + "name": "com.google.bigtable.v2.PartialResultSet", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +1512,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RequestStats", + "name": "com.google.bigtable.v2.PartialResultSet$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +1521,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RequestStats$Builder", + "name": "com.google.bigtable.v2.PeerInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +1530,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ResponseParams", + "name": "com.google.bigtable.v2.PeerInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +1539,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ResponseParams$Builder", + "name": "com.google.bigtable.v2.PeerInfo$TransportType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +1548,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ResultSetMetadata", + "name": "com.google.bigtable.v2.PingAndWarmRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +1557,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ResultSetMetadata$Builder", + "name": "com.google.bigtable.v2.PingAndWarmRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +1566,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Row", + "name": "com.google.bigtable.v2.PingAndWarmResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +1575,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Row$Builder", + "name": "com.google.bigtable.v2.PingAndWarmResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +1584,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RowFilter", + "name": "com.google.bigtable.v2.PrepareQueryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +1593,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RowFilter$Builder", + "name": "com.google.bigtable.v2.PrepareQueryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +1602,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RowFilter$Chain", + "name": "com.google.bigtable.v2.PrepareQueryResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +1611,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RowFilter$Chain$Builder", + "name": "com.google.bigtable.v2.PrepareQueryResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +1620,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RowFilter$Condition", + "name": "com.google.bigtable.v2.ProtoFormat", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +1629,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RowFilter$Condition$Builder", + "name": "com.google.bigtable.v2.ProtoFormat$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1638,7 +1638,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RowFilter$Interleave", + "name": "com.google.bigtable.v2.ProtoRows", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1647,7 +1647,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RowFilter$Interleave$Builder", + "name": "com.google.bigtable.v2.ProtoRows$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1656,7 +1656,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RowRange", + "name": "com.google.bigtable.v2.ProtoRowsBatch", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1665,7 +1665,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RowRange$Builder", + "name": "com.google.bigtable.v2.ProtoRowsBatch$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1674,7 +1674,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RowSet", + "name": "com.google.bigtable.v2.ProtoSchema", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1683,7 +1683,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.RowSet$Builder", + "name": "com.google.bigtable.v2.ProtoSchema$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1692,7 +1692,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.SampleRowKeysRequest", + "name": "com.google.bigtable.v2.RateLimitInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1701,7 +1701,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.SampleRowKeysRequest$Builder", + "name": "com.google.bigtable.v2.RateLimitInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1710,7 +1710,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.SampleRowKeysResponse", + "name": "com.google.bigtable.v2.ReadChangeStreamRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1719,7 +1719,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.SampleRowKeysResponse$Builder", + "name": "com.google.bigtable.v2.ReadChangeStreamRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1728,7 +1728,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.StreamContinuationToken", + "name": "com.google.bigtable.v2.ReadChangeStreamResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1737,7 +1737,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.StreamContinuationToken$Builder", + "name": "com.google.bigtable.v2.ReadChangeStreamResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1746,7 +1746,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.StreamContinuationTokens", + "name": "com.google.bigtable.v2.ReadChangeStreamResponse$CloseStream", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1755,7 +1755,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.StreamContinuationTokens$Builder", + "name": "com.google.bigtable.v2.ReadChangeStreamResponse$CloseStream$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1764,7 +1764,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.StreamPartition", + "name": "com.google.bigtable.v2.ReadChangeStreamResponse$DataChange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1773,7 +1773,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.StreamPartition$Builder", + "name": "com.google.bigtable.v2.ReadChangeStreamResponse$DataChange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1782,7 +1782,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.TimestampRange", + "name": "com.google.bigtable.v2.ReadChangeStreamResponse$DataChange$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1791,7 +1791,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.TimestampRange$Builder", + "name": "com.google.bigtable.v2.ReadChangeStreamResponse$Heartbeat", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1800,7 +1800,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type", + "name": "com.google.bigtable.v2.ReadChangeStreamResponse$Heartbeat$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1809,7 +1809,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Aggregate", + "name": "com.google.bigtable.v2.ReadChangeStreamResponse$MutationChunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1818,7 +1818,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Aggregate$Builder", + "name": "com.google.bigtable.v2.ReadChangeStreamResponse$MutationChunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1827,7 +1827,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Aggregate$HyperLogLogPlusPlusUniqueCount", + "name": "com.google.bigtable.v2.ReadChangeStreamResponse$MutationChunk$ChunkInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1836,7 +1836,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Aggregate$HyperLogLogPlusPlusUniqueCount$Builder", + "name": "com.google.bigtable.v2.ReadChangeStreamResponse$MutationChunk$ChunkInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1845,7 +1845,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Aggregate$Max", + "name": "com.google.bigtable.v2.ReadIterationStats", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1854,7 +1854,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Aggregate$Max$Builder", + "name": "com.google.bigtable.v2.ReadIterationStats$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1863,7 +1863,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Aggregate$Min", + "name": "com.google.bigtable.v2.ReadModifyWriteRowRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1872,7 +1872,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Aggregate$Min$Builder", + "name": "com.google.bigtable.v2.ReadModifyWriteRowRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1881,7 +1881,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Aggregate$Sum", + "name": "com.google.bigtable.v2.ReadModifyWriteRowResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1890,7 +1890,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Aggregate$Sum$Builder", + "name": "com.google.bigtable.v2.ReadModifyWriteRowResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1899,7 +1899,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Array", + "name": "com.google.bigtable.v2.ReadModifyWriteRule", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1908,7 +1908,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Array$Builder", + "name": "com.google.bigtable.v2.ReadModifyWriteRule$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1917,7 +1917,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Bool", + "name": "com.google.bigtable.v2.ReadRowsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1926,7 +1926,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Bool$Builder", + "name": "com.google.bigtable.v2.ReadRowsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1935,7 +1935,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Builder", + "name": "com.google.bigtable.v2.ReadRowsRequest$RequestStatsView", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1944,7 +1944,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Bytes", + "name": "com.google.bigtable.v2.ReadRowsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1953,7 +1953,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Bytes$Builder", + "name": "com.google.bigtable.v2.ReadRowsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1962,7 +1962,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Bytes$Encoding", + "name": "com.google.bigtable.v2.ReadRowsResponse$CellChunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1971,7 +1971,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Bytes$Encoding$Builder", + "name": "com.google.bigtable.v2.ReadRowsResponse$CellChunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1980,7 +1980,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Bytes$Encoding$Raw", + "name": "com.google.bigtable.v2.RequestLatencyStats", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1989,7 +1989,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Bytes$Encoding$Raw$Builder", + "name": "com.google.bigtable.v2.RequestLatencyStats$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1998,7 +1998,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Date", + "name": "com.google.bigtable.v2.RequestStats", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2007,7 +2007,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Date$Builder", + "name": "com.google.bigtable.v2.RequestStats$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2016,7 +2016,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Enum", + "name": "com.google.bigtable.v2.ResponseParams", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2025,7 +2025,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Enum$Builder", + "name": "com.google.bigtable.v2.ResponseParams$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2034,7 +2034,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Float32", + "name": "com.google.bigtable.v2.ResultSetMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2043,7 +2043,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Float32$Builder", + "name": "com.google.bigtable.v2.ResultSetMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2052,7 +2052,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Float64", + "name": "com.google.bigtable.v2.Row", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2061,7 +2061,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Float64$Builder", + "name": "com.google.bigtable.v2.Row$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2070,7 +2070,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Int64", + "name": "com.google.bigtable.v2.RowFilter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2079,7 +2079,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Int64$Builder", + "name": "com.google.bigtable.v2.RowFilter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2088,7 +2088,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Int64$Encoding", + "name": "com.google.bigtable.v2.RowFilter$Chain", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2097,7 +2097,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Int64$Encoding$BigEndianBytes", + "name": "com.google.bigtable.v2.RowFilter$Chain$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2106,7 +2106,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Int64$Encoding$BigEndianBytes$Builder", + "name": "com.google.bigtable.v2.RowFilter$Condition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2115,7 +2115,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Int64$Encoding$Builder", + "name": "com.google.bigtable.v2.RowFilter$Condition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2124,7 +2124,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Int64$Encoding$OrderedCodeBytes", + "name": "com.google.bigtable.v2.RowFilter$Interleave", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2133,7 +2133,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Int64$Encoding$OrderedCodeBytes$Builder", + "name": "com.google.bigtable.v2.RowFilter$Interleave$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2142,7 +2142,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Map", + "name": "com.google.bigtable.v2.RowRange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2151,7 +2151,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Map$Builder", + "name": "com.google.bigtable.v2.RowRange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2160,7 +2160,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Proto", + "name": "com.google.bigtable.v2.RowSet", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2169,7 +2169,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Proto$Builder", + "name": "com.google.bigtable.v2.RowSet$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2178,7 +2178,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$String", + "name": "com.google.bigtable.v2.SampleRowKeysRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2187,7 +2187,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$String$Builder", + "name": "com.google.bigtable.v2.SampleRowKeysRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2196,7 +2196,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$String$Encoding", + "name": "com.google.bigtable.v2.SampleRowKeysResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2205,7 +2205,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$String$Encoding$Builder", + "name": "com.google.bigtable.v2.SampleRowKeysResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2214,7 +2214,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$String$Encoding$Utf8Bytes", + "name": "com.google.bigtable.v2.SessionClientConfiguration", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2223,7 +2223,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$String$Encoding$Utf8Bytes$Builder", + "name": "com.google.bigtable.v2.SessionClientConfiguration$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2232,7 +2232,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$String$Encoding$Utf8Raw", + "name": "com.google.bigtable.v2.SessionClientConfiguration$ChannelPoolConfiguration", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2241,7 +2241,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$String$Encoding$Utf8Raw$Builder", + "name": "com.google.bigtable.v2.SessionClientConfiguration$ChannelPoolConfiguration$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2250,7 +2250,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Struct", + "name": "com.google.bigtable.v2.SessionClientConfiguration$ChannelPoolConfiguration$CloudPathOnly", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2259,7 +2259,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Struct$Builder", + "name": "com.google.bigtable.v2.SessionClientConfiguration$ChannelPoolConfiguration$CloudPathOnly$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2268,7 +2268,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Struct$Encoding", + "name": "com.google.bigtable.v2.SessionClientConfiguration$ChannelPoolConfiguration$DirectAccessOnly", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2277,7 +2277,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Struct$Encoding$Builder", + "name": "com.google.bigtable.v2.SessionClientConfiguration$ChannelPoolConfiguration$DirectAccessOnly$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2286,7 +2286,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Struct$Encoding$DelimitedBytes", + "name": "com.google.bigtable.v2.SessionClientConfiguration$ChannelPoolConfiguration$DirectAccessWithFallback", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2295,7 +2295,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Struct$Encoding$DelimitedBytes$Builder", + "name": "com.google.bigtable.v2.SessionClientConfiguration$ChannelPoolConfiguration$DirectAccessWithFallback$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2304,7 +2304,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Struct$Encoding$OrderedCodeBytes", + "name": "com.google.bigtable.v2.SessionClientConfiguration$SessionPoolConfiguration", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2313,7 +2313,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Struct$Encoding$OrderedCodeBytes$Builder", + "name": "com.google.bigtable.v2.SessionClientConfiguration$SessionPoolConfiguration$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2322,7 +2322,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Struct$Encoding$Singleton", + "name": "com.google.bigtable.v2.SessionMutateRowRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2331,7 +2331,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Struct$Encoding$Singleton$Builder", + "name": "com.google.bigtable.v2.SessionMutateRowRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2340,7 +2340,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Struct$Field", + "name": "com.google.bigtable.v2.SessionMutateRowResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2349,7 +2349,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Struct$Field$Builder", + "name": "com.google.bigtable.v2.SessionMutateRowResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2358,7 +2358,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Timestamp", + "name": "com.google.bigtable.v2.SessionParametersResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2367,7 +2367,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Timestamp$Builder", + "name": "com.google.bigtable.v2.SessionParametersResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2376,7 +2376,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Timestamp$Encoding", + "name": "com.google.bigtable.v2.SessionReadRowRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2385,7 +2385,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Type$Timestamp$Encoding$Builder", + "name": "com.google.bigtable.v2.SessionReadRowRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2394,7 +2394,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Value", + "name": "com.google.bigtable.v2.SessionReadRowResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2403,7 +2403,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.Value$Builder", + "name": "com.google.bigtable.v2.SessionReadRowResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2412,7 +2412,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ValueRange", + "name": "com.google.bigtable.v2.SessionRefreshConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2421,7 +2421,7 @@ "allPublicClasses": true }, { - "name": "com.google.bigtable.v2.ValueRange$Builder", + "name": "com.google.bigtable.v2.SessionRefreshConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2430,7 +2430,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.Any", + "name": "com.google.bigtable.v2.SessionRefreshConfig$Metadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2439,7 +2439,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.Any$Builder", + "name": "com.google.bigtable.v2.SessionRefreshConfig$Metadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2448,7 +2448,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.BoolValue", + "name": "com.google.bigtable.v2.SessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2457,7 +2457,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.BoolValue$Builder", + "name": "com.google.bigtable.v2.SessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2466,7 +2466,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.BytesValue", + "name": "com.google.bigtable.v2.SessionRequestStats", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2475,7 +2475,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.BytesValue$Builder", + "name": "com.google.bigtable.v2.SessionRequestStats$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2484,7 +2484,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "name": "com.google.bigtable.v2.SessionResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2493,7 +2493,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "name": "com.google.bigtable.v2.SessionResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2502,7 +2502,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "name": "com.google.bigtable.v2.SessionType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2511,7 +2511,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "name": "com.google.bigtable.v2.StreamContinuationToken", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2520,7 +2520,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "name": "com.google.bigtable.v2.StreamContinuationToken$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2529,7 +2529,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "name": "com.google.bigtable.v2.StreamContinuationTokens", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2538,7 +2538,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$Edition", + "name": "com.google.bigtable.v2.StreamContinuationTokens$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2547,7 +2547,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "name": "com.google.bigtable.v2.StreamPartition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2556,7 +2556,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "name": "com.google.bigtable.v2.StreamPartition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2565,7 +2565,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "name": "com.google.bigtable.v2.TableRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2574,7 +2574,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "name": "com.google.bigtable.v2.TableRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2583,7 +2583,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "name": "com.google.bigtable.v2.TableResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2592,7 +2592,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "name": "com.google.bigtable.v2.TableResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2601,7 +2601,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "name": "com.google.bigtable.v2.TelemetryConfiguration", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2610,7 +2610,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "name": "com.google.bigtable.v2.TelemetryConfiguration$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2619,7 +2619,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "name": "com.google.bigtable.v2.TelemetryConfiguration$Level", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2628,7 +2628,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "name": "com.google.bigtable.v2.TimestampRange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2637,7 +2637,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "name": "com.google.bigtable.v2.TimestampRange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2646,7 +2646,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "name": "com.google.bigtable.v2.Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2655,7 +2655,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "name": "com.google.bigtable.v2.Type$Aggregate", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2664,7 +2664,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "name": "com.google.bigtable.v2.Type$Aggregate$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2673,7 +2673,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "name": "com.google.bigtable.v2.Type$Aggregate$HyperLogLogPlusPlusUniqueCount", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2682,7 +2682,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "name": "com.google.bigtable.v2.Type$Aggregate$HyperLogLogPlusPlusUniqueCount$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2691,7 +2691,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "name": "com.google.bigtable.v2.Type$Aggregate$Max", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2700,7 +2700,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnforceNamingStyle", + "name": "com.google.bigtable.v2.Type$Aggregate$Max$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2709,7 +2709,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "name": "com.google.bigtable.v2.Type$Aggregate$Min", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2718,7 +2718,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "name": "com.google.bigtable.v2.Type$Aggregate$Min$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2727,7 +2727,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "name": "com.google.bigtable.v2.Type$Aggregate$Sum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2736,7 +2736,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "name": "com.google.bigtable.v2.Type$Aggregate$Sum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2745,7 +2745,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "name": "com.google.bigtable.v2.Type$Array", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2754,7 +2754,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "name": "com.google.bigtable.v2.Type$Array$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2763,7 +2763,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature", + "name": "com.google.bigtable.v2.Type$Bool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2772,7 +2772,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$Builder", + "name": "com.google.bigtable.v2.Type$Bool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2781,7 +2781,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$DefaultSymbolVisibility", + "name": "com.google.bigtable.v2.Type$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2790,7 +2790,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "name": "com.google.bigtable.v2.Type$Bytes", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2799,7 +2799,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "name": "com.google.bigtable.v2.Type$Bytes$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2808,7 +2808,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "name": "com.google.bigtable.v2.Type$Bytes$Encoding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2817,7 +2817,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "name": "com.google.bigtable.v2.Type$Bytes$Encoding$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2826,7 +2826,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "name": "com.google.bigtable.v2.Type$Bytes$Encoding$Raw", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2835,7 +2835,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "name": "com.google.bigtable.v2.Type$Bytes$Encoding$Raw$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2844,7 +2844,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "name": "com.google.bigtable.v2.Type$Date", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2853,7 +2853,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "name": "com.google.bigtable.v2.Type$Date$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2862,7 +2862,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "name": "com.google.bigtable.v2.Type$Enum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2871,7 +2871,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "name": "com.google.bigtable.v2.Type$Enum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2880,7 +2880,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "name": "com.google.bigtable.v2.Type$Float32", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2889,7 +2889,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "name": "com.google.bigtable.v2.Type$Float32$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2898,7 +2898,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "name": "com.google.bigtable.v2.Type$Float64", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2907,7 +2907,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport", + "name": "com.google.bigtable.v2.Type$Float64$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2916,7 +2916,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport$Builder", + "name": "com.google.bigtable.v2.Type$Int64", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2925,7 +2925,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "name": "com.google.bigtable.v2.Type$Int64$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2934,7 +2934,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "name": "com.google.bigtable.v2.Type$Int64$Encoding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2943,7 +2943,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "name": "com.google.bigtable.v2.Type$Int64$Encoding$BigEndianBytes", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2952,7 +2952,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "name": "com.google.bigtable.v2.Type$Int64$Encoding$BigEndianBytes$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2961,7 +2961,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "name": "com.google.bigtable.v2.Type$Int64$Encoding$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2970,7 +2970,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "name": "com.google.bigtable.v2.Type$Int64$Encoding$OrderedCodeBytes", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2979,7 +2979,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "name": "com.google.bigtable.v2.Type$Int64$Encoding$OrderedCodeBytes$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2988,7 +2988,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "name": "com.google.bigtable.v2.Type$Map", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2997,7 +2997,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "name": "com.google.bigtable.v2.Type$Map$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3006,7 +3006,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "name": "com.google.bigtable.v2.Type$Proto", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3015,7 +3015,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "name": "com.google.bigtable.v2.Type$Proto$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3024,7 +3024,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "name": "com.google.bigtable.v2.Type$String", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3033,7 +3033,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "name": "com.google.bigtable.v2.Type$String$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3042,7 +3042,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "name": "com.google.bigtable.v2.Type$String$Encoding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3051,7 +3051,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "name": "com.google.bigtable.v2.Type$String$Encoding$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3060,7 +3060,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "name": "com.google.bigtable.v2.Type$String$Encoding$Utf8Bytes", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3069,7 +3069,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "name": "com.google.bigtable.v2.Type$String$Encoding$Utf8Bytes$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3078,7 +3078,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "name": "com.google.bigtable.v2.Type$String$Encoding$Utf8Raw", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3087,7 +3087,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "name": "com.google.bigtable.v2.Type$String$Encoding$Utf8Raw$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3096,7 +3096,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "name": "com.google.bigtable.v2.Type$Struct", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3105,7 +3105,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "name": "com.google.bigtable.v2.Type$Struct$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3114,7 +3114,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "name": "com.google.bigtable.v2.Type$Struct$Encoding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3123,7 +3123,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "name": "com.google.bigtable.v2.Type$Struct$Encoding$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3132,7 +3132,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "name": "com.google.bigtable.v2.Type$Struct$Encoding$DelimitedBytes", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3141,7 +3141,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "name": "com.google.bigtable.v2.Type$Struct$Encoding$DelimitedBytes$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3150,7 +3150,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "name": "com.google.bigtable.v2.Type$Struct$Encoding$OrderedCodeBytes", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3159,7 +3159,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "name": "com.google.bigtable.v2.Type$Struct$Encoding$OrderedCodeBytes$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3168,7 +3168,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "name": "com.google.bigtable.v2.Type$Struct$Encoding$Singleton", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3177,7 +3177,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "name": "com.google.bigtable.v2.Type$Struct$Encoding$Singleton$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3186,7 +3186,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "name": "com.google.bigtable.v2.Type$Struct$Field", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3195,7 +3195,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "name": "com.google.bigtable.v2.Type$Struct$Field$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3204,7 +3204,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "name": "com.google.bigtable.v2.Type$Timestamp", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3213,7 +3213,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "name": "com.google.bigtable.v2.Type$Timestamp$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3222,7 +3222,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "name": "com.google.bigtable.v2.Type$Timestamp$Encoding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3231,7 +3231,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$SymbolVisibility", + "name": "com.google.bigtable.v2.Type$Timestamp$Encoding$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3240,7 +3240,7 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "name": "com.google.bigtable.v2.Value", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3249,7 +3249,907 @@ "allPublicClasses": true }, { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "name": "com.google.bigtable.v2.Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.v2.ValueRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.v2.ValueRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.v2.VirtualRpcRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.v2.VirtualRpcRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.v2.VirtualRpcRequest$Metadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.v2.VirtualRpcRequest$Metadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.v2.VirtualRpcResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.v2.VirtualRpcResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.BoolValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.BoolValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.BytesValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.BytesValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnforceNamingStyle", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$DefaultSymbolVisibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SymbolVisibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3437,6 +4337,258 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.rpc.BadRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.BadRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.BadRequest$FieldViolation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.BadRequest$FieldViolation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.DebugInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.DebugInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.ErrorInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.ErrorInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Help", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Help$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Help$Link", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Help$Link$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.LocalizedMessage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.LocalizedMessage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.PreconditionFailure", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.PreconditionFailure$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.PreconditionFailure$Violation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.PreconditionFailure$Violation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.QuotaFailure", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.QuotaFailure$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.QuotaFailure$Violation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.QuotaFailure$Violation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.RequestInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.RequestInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.ResourceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.ResourceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.RetryInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.RetryInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.rpc.Status", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/CookiesHolderTest.java b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/CookiesHolderTest.java index 182fd68726..3fd2204905 100644 --- a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/CookiesHolderTest.java +++ b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/CookiesHolderTest.java @@ -623,6 +623,12 @@ public void testAllMethodsAreCalled() { methods.add("PingAndWarm"); methods.add("ExecuteQuery"); // TODO remove when retries are implemented + // Session APIs. Routing cookie is handled differently + methods.add("OpenAuthorizedView"); + methods.add("OpenMaterializedView"); + methods.add("GetClientConfiguration"); + methods.add("OpenTable"); + assertThat(methods).containsExactlyElementsIn(expected); } diff --git a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/RetryInfoTest.java b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/RetryInfoTest.java index 4903433a65..8b93a043f6 100644 --- a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/RetryInfoTest.java +++ b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/RetryInfoTest.java @@ -231,6 +231,12 @@ public void testAllMethods() { methods.add("PingAndWarm"); methods.add("ExecuteQuery"); // TODO remove when retries are implemented + // Session APIs. RetryInfo is handled differently + methods.add("OpenAuthorizedView"); + methods.add("OpenMaterializedView"); + methods.add("GetClientConfiguration"); + methods.add("OpenTable"); + assertThat(methods).containsExactlyElementsIn(expected); } diff --git a/grpc-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableGrpc.java b/grpc-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableGrpc.java index d579262bb9..2dc40ecdec 100644 --- a/grpc-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableGrpc.java +++ b/grpc-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableGrpc.java @@ -511,6 +511,180 @@ private BigtableGrpc() {} return getExecuteQueryMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.v2.GetClientConfigurationRequest, + com.google.bigtable.v2.ClientConfiguration> + getGetClientConfigurationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetClientConfiguration", + requestType = com.google.bigtable.v2.GetClientConfigurationRequest.class, + responseType = com.google.bigtable.v2.ClientConfiguration.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.bigtable.v2.GetClientConfigurationRequest, + com.google.bigtable.v2.ClientConfiguration> + getGetClientConfigurationMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.v2.GetClientConfigurationRequest, + com.google.bigtable.v2.ClientConfiguration> + getGetClientConfigurationMethod; + if ((getGetClientConfigurationMethod = BigtableGrpc.getGetClientConfigurationMethod) == null) { + synchronized (BigtableGrpc.class) { + if ((getGetClientConfigurationMethod = BigtableGrpc.getGetClientConfigurationMethod) + == null) { + BigtableGrpc.getGetClientConfigurationMethod = + getGetClientConfigurationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetClientConfiguration")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.v2.GetClientConfigurationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.v2.ClientConfiguration.getDefaultInstance())) + .setSchemaDescriptor( + new BigtableMethodDescriptorSupplier("GetClientConfiguration")) + .build(); + } + } + } + return getGetClientConfigurationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.v2.SessionRequest, com.google.bigtable.v2.SessionResponse> + getOpenTableMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "OpenTable", + requestType = com.google.bigtable.v2.SessionRequest.class, + responseType = com.google.bigtable.v2.SessionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.bigtable.v2.SessionRequest, com.google.bigtable.v2.SessionResponse> + getOpenTableMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.v2.SessionRequest, com.google.bigtable.v2.SessionResponse> + getOpenTableMethod; + if ((getOpenTableMethod = BigtableGrpc.getOpenTableMethod) == null) { + synchronized (BigtableGrpc.class) { + if ((getOpenTableMethod = BigtableGrpc.getOpenTableMethod) == null) { + BigtableGrpc.getOpenTableMethod = + getOpenTableMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OpenTable")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.v2.SessionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.v2.SessionResponse.getDefaultInstance())) + .setSchemaDescriptor(new BigtableMethodDescriptorSupplier("OpenTable")) + .build(); + } + } + } + return getOpenTableMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.v2.SessionRequest, com.google.bigtable.v2.SessionResponse> + getOpenAuthorizedViewMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "OpenAuthorizedView", + requestType = com.google.bigtable.v2.SessionRequest.class, + responseType = com.google.bigtable.v2.SessionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.bigtable.v2.SessionRequest, com.google.bigtable.v2.SessionResponse> + getOpenAuthorizedViewMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.v2.SessionRequest, com.google.bigtable.v2.SessionResponse> + getOpenAuthorizedViewMethod; + if ((getOpenAuthorizedViewMethod = BigtableGrpc.getOpenAuthorizedViewMethod) == null) { + synchronized (BigtableGrpc.class) { + if ((getOpenAuthorizedViewMethod = BigtableGrpc.getOpenAuthorizedViewMethod) == null) { + BigtableGrpc.getOpenAuthorizedViewMethod = + getOpenAuthorizedViewMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OpenAuthorizedView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.v2.SessionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.v2.SessionResponse.getDefaultInstance())) + .setSchemaDescriptor( + new BigtableMethodDescriptorSupplier("OpenAuthorizedView")) + .build(); + } + } + } + return getOpenAuthorizedViewMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.v2.SessionRequest, com.google.bigtable.v2.SessionResponse> + getOpenMaterializedViewMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "OpenMaterializedView", + requestType = com.google.bigtable.v2.SessionRequest.class, + responseType = com.google.bigtable.v2.SessionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.bigtable.v2.SessionRequest, com.google.bigtable.v2.SessionResponse> + getOpenMaterializedViewMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.v2.SessionRequest, com.google.bigtable.v2.SessionResponse> + getOpenMaterializedViewMethod; + if ((getOpenMaterializedViewMethod = BigtableGrpc.getOpenMaterializedViewMethod) == null) { + synchronized (BigtableGrpc.class) { + if ((getOpenMaterializedViewMethod = BigtableGrpc.getOpenMaterializedViewMethod) == null) { + BigtableGrpc.getOpenMaterializedViewMethod = + getOpenMaterializedViewMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "OpenMaterializedView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.v2.SessionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.v2.SessionResponse.getDefaultInstance())) + .setSchemaDescriptor( + new BigtableMethodDescriptorSupplier("OpenMaterializedView")) + .build(); + } + } + } + return getOpenMaterializedViewMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static BigtableStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -750,6 +924,67 @@ default void executeQuery( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getExecuteQueryMethod(), responseObserver); } + + /** + * + * + *
+     * This RPC is only intended to be used by the official Cloud Bigtable client
+     * libraries to implement the Bigtable Session based protocol. It is subject
+     * to change without notice.
+     * 
+ */ + default void getClientConfiguration( + com.google.bigtable.v2.GetClientConfigurationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetClientConfigurationMethod(), responseObserver); + } + + /** + * + * + *
+     * This RPC is only intended to be used by the official Cloud Bigtable client
+     * libraries to implement the Bigtable Session based protocol. It is subject
+     * to change without notice.
+     * 
+ */ + default io.grpc.stub.StreamObserver openTable( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getOpenTableMethod(), responseObserver); + } + + /** + * + * + *
+     * This RPC is only intended to be used by the official Cloud Bigtable client
+     * libraries to implement the Bigtable Session based protocol. It is subject
+     * to change without notice.
+     * 
+ */ + default io.grpc.stub.StreamObserver openAuthorizedView( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getOpenAuthorizedViewMethod(), responseObserver); + } + + /** + * + * + *
+     * This RPC is only intended to be used by the official Cloud Bigtable client
+     * libraries to implement the Bigtable Session based protocol. It is subject
+     * to change without notice.
+     * 
+ */ + default io.grpc.stub.StreamObserver openMaterializedView( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getOpenMaterializedViewMethod(), responseObserver); + } } /** @@ -980,6 +1215,70 @@ public void executeQuery( request, responseObserver); } + + /** + * + * + *
+     * This RPC is only intended to be used by the official Cloud Bigtable client
+     * libraries to implement the Bigtable Session based protocol. It is subject
+     * to change without notice.
+     * 
+ */ + public void getClientConfiguration( + com.google.bigtable.v2.GetClientConfigurationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetClientConfigurationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * This RPC is only intended to be used by the official Cloud Bigtable client
+     * libraries to implement the Bigtable Session based protocol. It is subject
+     * to change without notice.
+     * 
+ */ + public io.grpc.stub.StreamObserver openTable( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getOpenTableMethod(), getCallOptions()), responseObserver); + } + + /** + * + * + *
+     * This RPC is only intended to be used by the official Cloud Bigtable client
+     * libraries to implement the Bigtable Session based protocol. It is subject
+     * to change without notice.
+     * 
+ */ + public io.grpc.stub.StreamObserver openAuthorizedView( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getOpenAuthorizedViewMethod(), getCallOptions()), responseObserver); + } + + /** + * + * + *
+     * This RPC is only intended to be used by the official Cloud Bigtable client
+     * libraries to implement the Bigtable Session based protocol. It is subject
+     * to change without notice.
+     * 
+ */ + public io.grpc.stub.StreamObserver openMaterializedView( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getOpenMaterializedViewMethod(), getCallOptions()), + responseObserver); + } } /** @@ -1175,6 +1474,73 @@ public com.google.bigtable.v2.PrepareQueryResponse prepareQuery( return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( getChannel(), getExecuteQueryMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * This RPC is only intended to be used by the official Cloud Bigtable client
+     * libraries to implement the Bigtable Session based protocol. It is subject
+     * to change without notice.
+     * 
+ */ + public com.google.bigtable.v2.ClientConfiguration getClientConfiguration( + com.google.bigtable.v2.GetClientConfigurationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetClientConfigurationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * This RPC is only intended to be used by the official Cloud Bigtable client
+     * libraries to implement the Bigtable Session based protocol. It is subject
+     * to change without notice.
+     * 
+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + com.google.bigtable.v2.SessionRequest, com.google.bigtable.v2.SessionResponse> + openTable() { + return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( + getChannel(), getOpenTableMethod(), getCallOptions()); + } + + /** + * + * + *
+     * This RPC is only intended to be used by the official Cloud Bigtable client
+     * libraries to implement the Bigtable Session based protocol. It is subject
+     * to change without notice.
+     * 
+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + com.google.bigtable.v2.SessionRequest, com.google.bigtable.v2.SessionResponse> + openAuthorizedView() { + return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( + getChannel(), getOpenAuthorizedViewMethod(), getCallOptions()); + } + + /** + * + * + *
+     * This RPC is only intended to be used by the official Cloud Bigtable client
+     * libraries to implement the Bigtable Session based protocol. It is subject
+     * to change without notice.
+     * 
+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + com.google.bigtable.v2.SessionRequest, com.google.bigtable.v2.SessionResponse> + openMaterializedView() { + return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( + getChannel(), getOpenMaterializedViewMethod(), getCallOptions()); + } } /** @@ -1362,6 +1728,21 @@ public java.util.Iterator executeQu return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getExecuteQueryMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * This RPC is only intended to be used by the official Cloud Bigtable client
+     * libraries to implement the Bigtable Session based protocol. It is subject
+     * to change without notice.
+     * 
+ */ + public com.google.bigtable.v2.ClientConfiguration getClientConfiguration( + com.google.bigtable.v2.GetClientConfigurationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetClientConfigurationMethod(), getCallOptions(), request); + } } /** @@ -1457,6 +1838,22 @@ protected BigtableFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPrepareQueryMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * This RPC is only intended to be used by the official Cloud Bigtable client
+     * libraries to implement the Bigtable Session based protocol. It is subject
+     * to change without notice.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.bigtable.v2.ClientConfiguration> + getClientConfiguration(com.google.bigtable.v2.GetClientConfigurationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetClientConfigurationMethod(), getCallOptions()), request); + } } private static final int METHODID_READ_ROWS = 0; @@ -1470,6 +1867,10 @@ protected BigtableFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_READ_CHANGE_STREAM = 8; private static final int METHODID_PREPARE_QUERY = 9; private static final int METHODID_EXECUTE_QUERY = 10; + private static final int METHODID_GET_CLIENT_CONFIGURATION = 11; + private static final int METHODID_OPEN_TABLE = 12; + private static final int METHODID_OPEN_AUTHORIZED_VIEW = 13; + private static final int METHODID_OPEN_MATERIALIZED_VIEW = 14; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1555,6 +1956,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_CLIENT_CONFIGURATION: + serviceImpl.getClientConfiguration( + (com.google.bigtable.v2.GetClientConfigurationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -1565,6 +1972,21 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { + case METHODID_OPEN_TABLE: + return (io.grpc.stub.StreamObserver) + serviceImpl.openTable( + (io.grpc.stub.StreamObserver) + responseObserver); + case METHODID_OPEN_AUTHORIZED_VIEW: + return (io.grpc.stub.StreamObserver) + serviceImpl.openAuthorizedView( + (io.grpc.stub.StreamObserver) + responseObserver); + case METHODID_OPEN_MATERIALIZED_VIEW: + return (io.grpc.stub.StreamObserver) + serviceImpl.openMaterializedView( + (io.grpc.stub.StreamObserver) + responseObserver); default: throw new AssertionError(); } @@ -1644,6 +2066,31 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.bigtable.v2.ExecuteQueryRequest, com.google.bigtable.v2.ExecuteQueryResponse>(service, METHODID_EXECUTE_QUERY))) + .addMethod( + getGetClientConfigurationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.bigtable.v2.GetClientConfigurationRequest, + com.google.bigtable.v2.ClientConfiguration>( + service, METHODID_GET_CLIENT_CONFIGURATION))) + .addMethod( + getOpenTableMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.bigtable.v2.SessionRequest, com.google.bigtable.v2.SessionResponse>( + service, METHODID_OPEN_TABLE))) + .addMethod( + getOpenAuthorizedViewMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.bigtable.v2.SessionRequest, com.google.bigtable.v2.SessionResponse>( + service, METHODID_OPEN_AUTHORIZED_VIEW))) + .addMethod( + getOpenMaterializedViewMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.bigtable.v2.SessionRequest, com.google.bigtable.v2.SessionResponse>( + service, METHODID_OPEN_MATERIALIZED_VIEW))) .build(); } @@ -1704,6 +2151,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getReadChangeStreamMethod()) .addMethod(getPrepareQueryMethod()) .addMethod(getExecuteQueryMethod()) + .addMethod(getGetClientConfigurationMethod()) + .addMethod(getOpenTableMethod()) + .addMethod(getOpenAuthorizedViewMethod()) + .addMethod(getOpenMaterializedViewMethod()) .build(); } } diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AuthorizedViewRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AuthorizedViewRequest.java new file mode 100644 index 0000000000..587e10e50e --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AuthorizedViewRequest.java @@ -0,0 +1,925 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * A request wrapper for operations on an authorized view. Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.AuthorizedViewRequest} + */ +@com.google.protobuf.Generated +public final class AuthorizedViewRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.AuthorizedViewRequest) + AuthorizedViewRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthorizedViewRequest"); + } + + // Use AuthorizedViewRequest.newBuilder() to construct. + private AuthorizedViewRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AuthorizedViewRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_AuthorizedViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_AuthorizedViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.AuthorizedViewRequest.class, + com.google.bigtable.v2.AuthorizedViewRequest.Builder.class); + } + + private int payloadCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object payload_; + + public enum PayloadCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + READ_ROW(1), + MUTATE_ROW(2), + PAYLOAD_NOT_SET(0); + private final int value; + + private PayloadCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PayloadCase valueOf(int value) { + return forNumber(value); + } + + public static PayloadCase forNumber(int value) { + switch (value) { + case 1: + return READ_ROW; + case 2: + return MUTATE_ROW; + case 0: + return PAYLOAD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public static final int READ_ROW_FIELD_NUMBER = 1; + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return Whether the readRow field is set. + */ + @java.lang.Override + public boolean hasReadRow() { + return payloadCase_ == 1; + } + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return The readRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowRequest getReadRow() { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowRequest) payload_; + } + return com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowRequestOrBuilder getReadRowOrBuilder() { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowRequest) payload_; + } + return com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } + + public static final int MUTATE_ROW_FIELD_NUMBER = 2; + + /** + * .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; + * + * @return Whether the mutateRow field is set. + */ + @java.lang.Override + public boolean hasMutateRow() { + return payloadCase_ == 2; + } + + /** + * .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; + * + * @return The mutateRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowRequest getMutateRow() { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.SessionMutateRowRequest) payload_; + } + return com.google.bigtable.v2.SessionMutateRowRequest.getDefaultInstance(); + } + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowRequestOrBuilder getMutateRowOrBuilder() { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.SessionMutateRowRequest) payload_; + } + return com.google.bigtable.v2.SessionMutateRowRequest.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (payloadCase_ == 1) { + output.writeMessage(1, (com.google.bigtable.v2.SessionReadRowRequest) payload_); + } + if (payloadCase_ == 2) { + output.writeMessage(2, (com.google.bigtable.v2.SessionMutateRowRequest) payload_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (payloadCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.bigtable.v2.SessionReadRowRequest) payload_); + } + if (payloadCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.bigtable.v2.SessionMutateRowRequest) payload_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.AuthorizedViewRequest)) { + return super.equals(obj); + } + com.google.bigtable.v2.AuthorizedViewRequest other = + (com.google.bigtable.v2.AuthorizedViewRequest) obj; + + if (!getPayloadCase().equals(other.getPayloadCase())) return false; + switch (payloadCase_) { + case 1: + if (!getReadRow().equals(other.getReadRow())) return false; + break; + case 2: + if (!getMutateRow().equals(other.getMutateRow())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (payloadCase_) { + case 1: + hash = (37 * hash) + READ_ROW_FIELD_NUMBER; + hash = (53 * hash) + getReadRow().hashCode(); + break; + case 2: + hash = (37 * hash) + MUTATE_ROW_FIELD_NUMBER; + hash = (53 * hash) + getMutateRow().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.AuthorizedViewRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.AuthorizedViewRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.AuthorizedViewRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.AuthorizedViewRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.AuthorizedViewRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.AuthorizedViewRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.AuthorizedViewRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.AuthorizedViewRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.AuthorizedViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.AuthorizedViewRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.AuthorizedViewRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.AuthorizedViewRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.AuthorizedViewRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request wrapper for operations on an authorized view. Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.AuthorizedViewRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.AuthorizedViewRequest) + com.google.bigtable.v2.AuthorizedViewRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_AuthorizedViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_AuthorizedViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.AuthorizedViewRequest.class, + com.google.bigtable.v2.AuthorizedViewRequest.Builder.class); + } + + // Construct using com.google.bigtable.v2.AuthorizedViewRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (readRowBuilder_ != null) { + readRowBuilder_.clear(); + } + if (mutateRowBuilder_ != null) { + mutateRowBuilder_.clear(); + } + payloadCase_ = 0; + payload_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_AuthorizedViewRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.AuthorizedViewRequest getDefaultInstanceForType() { + return com.google.bigtable.v2.AuthorizedViewRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.AuthorizedViewRequest build() { + com.google.bigtable.v2.AuthorizedViewRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.AuthorizedViewRequest buildPartial() { + com.google.bigtable.v2.AuthorizedViewRequest result = + new com.google.bigtable.v2.AuthorizedViewRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.AuthorizedViewRequest result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.bigtable.v2.AuthorizedViewRequest result) { + result.payloadCase_ = payloadCase_; + result.payload_ = this.payload_; + if (payloadCase_ == 1 && readRowBuilder_ != null) { + result.payload_ = readRowBuilder_.build(); + } + if (payloadCase_ == 2 && mutateRowBuilder_ != null) { + result.payload_ = mutateRowBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.AuthorizedViewRequest) { + return mergeFrom((com.google.bigtable.v2.AuthorizedViewRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.AuthorizedViewRequest other) { + if (other == com.google.bigtable.v2.AuthorizedViewRequest.getDefaultInstance()) return this; + switch (other.getPayloadCase()) { + case READ_ROW: + { + mergeReadRow(other.getReadRow()); + break; + } + case MUTATE_ROW: + { + mergeMutateRow(other.getMutateRow()); + break; + } + case PAYLOAD_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetReadRowFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetMutateRowFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int payloadCase_ = 0; + private java.lang.Object payload_; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public Builder clearPayload() { + payloadCase_ = 0; + payload_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowRequest, + com.google.bigtable.v2.SessionReadRowRequest.Builder, + com.google.bigtable.v2.SessionReadRowRequestOrBuilder> + readRowBuilder_; + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return Whether the readRow field is set. + */ + @java.lang.Override + public boolean hasReadRow() { + return payloadCase_ == 1; + } + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return The readRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowRequest getReadRow() { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowRequest) payload_; + } + return com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } else { + if (payloadCase_ == 1) { + return readRowBuilder_.getMessage(); + } + return com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + public Builder setReadRow(com.google.bigtable.v2.SessionReadRowRequest value) { + if (readRowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + readRowBuilder_.setMessage(value); + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + public Builder setReadRow( + com.google.bigtable.v2.SessionReadRowRequest.Builder builderForValue) { + if (readRowBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + readRowBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + public Builder mergeReadRow(com.google.bigtable.v2.SessionReadRowRequest value) { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1 + && payload_ != com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.SessionReadRowRequest.newBuilder( + (com.google.bigtable.v2.SessionReadRowRequest) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 1) { + readRowBuilder_.mergeFrom(value); + } else { + readRowBuilder_.setMessage(value); + } + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + public Builder clearReadRow() { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + } + readRowBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + public com.google.bigtable.v2.SessionReadRowRequest.Builder getReadRowBuilder() { + return internalGetReadRowFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowRequestOrBuilder getReadRowOrBuilder() { + if ((payloadCase_ == 1) && (readRowBuilder_ != null)) { + return readRowBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowRequest) payload_; + } + return com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowRequest, + com.google.bigtable.v2.SessionReadRowRequest.Builder, + com.google.bigtable.v2.SessionReadRowRequestOrBuilder> + internalGetReadRowFieldBuilder() { + if (readRowBuilder_ == null) { + if (!(payloadCase_ == 1)) { + payload_ = com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } + readRowBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowRequest, + com.google.bigtable.v2.SessionReadRowRequest.Builder, + com.google.bigtable.v2.SessionReadRowRequestOrBuilder>( + (com.google.bigtable.v2.SessionReadRowRequest) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 1; + onChanged(); + return readRowBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionMutateRowRequest, + com.google.bigtable.v2.SessionMutateRowRequest.Builder, + com.google.bigtable.v2.SessionMutateRowRequestOrBuilder> + mutateRowBuilder_; + + /** + * .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; + * + * @return Whether the mutateRow field is set. + */ + @java.lang.Override + public boolean hasMutateRow() { + return payloadCase_ == 2; + } + + /** + * .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; + * + * @return The mutateRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowRequest getMutateRow() { + if (mutateRowBuilder_ == null) { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.SessionMutateRowRequest) payload_; + } + return com.google.bigtable.v2.SessionMutateRowRequest.getDefaultInstance(); + } else { + if (payloadCase_ == 2) { + return mutateRowBuilder_.getMessage(); + } + return com.google.bigtable.v2.SessionMutateRowRequest.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + public Builder setMutateRow(com.google.bigtable.v2.SessionMutateRowRequest value) { + if (mutateRowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + mutateRowBuilder_.setMessage(value); + } + payloadCase_ = 2; + return this; + } + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + public Builder setMutateRow( + com.google.bigtable.v2.SessionMutateRowRequest.Builder builderForValue) { + if (mutateRowBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + mutateRowBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 2; + return this; + } + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + public Builder mergeMutateRow(com.google.bigtable.v2.SessionMutateRowRequest value) { + if (mutateRowBuilder_ == null) { + if (payloadCase_ == 2 + && payload_ != com.google.bigtable.v2.SessionMutateRowRequest.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.SessionMutateRowRequest.newBuilder( + (com.google.bigtable.v2.SessionMutateRowRequest) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 2) { + mutateRowBuilder_.mergeFrom(value); + } else { + mutateRowBuilder_.setMessage(value); + } + } + payloadCase_ = 2; + return this; + } + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + public Builder clearMutateRow() { + if (mutateRowBuilder_ == null) { + if (payloadCase_ == 2) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 2) { + payloadCase_ = 0; + payload_ = null; + } + mutateRowBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + public com.google.bigtable.v2.SessionMutateRowRequest.Builder getMutateRowBuilder() { + return internalGetMutateRowFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowRequestOrBuilder getMutateRowOrBuilder() { + if ((payloadCase_ == 2) && (mutateRowBuilder_ != null)) { + return mutateRowBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.SessionMutateRowRequest) payload_; + } + return com.google.bigtable.v2.SessionMutateRowRequest.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionMutateRowRequest, + com.google.bigtable.v2.SessionMutateRowRequest.Builder, + com.google.bigtable.v2.SessionMutateRowRequestOrBuilder> + internalGetMutateRowFieldBuilder() { + if (mutateRowBuilder_ == null) { + if (!(payloadCase_ == 2)) { + payload_ = com.google.bigtable.v2.SessionMutateRowRequest.getDefaultInstance(); + } + mutateRowBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionMutateRowRequest, + com.google.bigtable.v2.SessionMutateRowRequest.Builder, + com.google.bigtable.v2.SessionMutateRowRequestOrBuilder>( + (com.google.bigtable.v2.SessionMutateRowRequest) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 2; + onChanged(); + return mutateRowBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.AuthorizedViewRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.AuthorizedViewRequest) + private static final com.google.bigtable.v2.AuthorizedViewRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.AuthorizedViewRequest(); + } + + public static com.google.bigtable.v2.AuthorizedViewRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthorizedViewRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.AuthorizedViewRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AuthorizedViewRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AuthorizedViewRequestOrBuilder.java new file mode 100644 index 0000000000..ab0b9e4e23 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AuthorizedViewRequestOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface AuthorizedViewRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.AuthorizedViewRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return Whether the readRow field is set. + */ + boolean hasReadRow(); + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return The readRow. + */ + com.google.bigtable.v2.SessionReadRowRequest getReadRow(); + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + com.google.bigtable.v2.SessionReadRowRequestOrBuilder getReadRowOrBuilder(); + + /** + * .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; + * + * @return Whether the mutateRow field is set. + */ + boolean hasMutateRow(); + + /** + * .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; + * + * @return The mutateRow. + */ + com.google.bigtable.v2.SessionMutateRowRequest getMutateRow(); + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + com.google.bigtable.v2.SessionMutateRowRequestOrBuilder getMutateRowOrBuilder(); + + com.google.bigtable.v2.AuthorizedViewRequest.PayloadCase getPayloadCase(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AuthorizedViewResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AuthorizedViewResponse.java new file mode 100644 index 0000000000..e7bfbdc73e --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AuthorizedViewResponse.java @@ -0,0 +1,925 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * A response wrapper for operations on an authorized view. Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.AuthorizedViewResponse} + */ +@com.google.protobuf.Generated +public final class AuthorizedViewResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.AuthorizedViewResponse) + AuthorizedViewResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthorizedViewResponse"); + } + + // Use AuthorizedViewResponse.newBuilder() to construct. + private AuthorizedViewResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AuthorizedViewResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_AuthorizedViewResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_AuthorizedViewResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.AuthorizedViewResponse.class, + com.google.bigtable.v2.AuthorizedViewResponse.Builder.class); + } + + private int payloadCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object payload_; + + public enum PayloadCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + READ_ROW(1), + MUTATE_ROW(2), + PAYLOAD_NOT_SET(0); + private final int value; + + private PayloadCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PayloadCase valueOf(int value) { + return forNumber(value); + } + + public static PayloadCase forNumber(int value) { + switch (value) { + case 1: + return READ_ROW; + case 2: + return MUTATE_ROW; + case 0: + return PAYLOAD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public static final int READ_ROW_FIELD_NUMBER = 1; + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return Whether the readRow field is set. + */ + @java.lang.Override + public boolean hasReadRow() { + return payloadCase_ == 1; + } + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return The readRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowResponse getReadRow() { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowResponse) payload_; + } + return com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowResponseOrBuilder getReadRowOrBuilder() { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowResponse) payload_; + } + return com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } + + public static final int MUTATE_ROW_FIELD_NUMBER = 2; + + /** + * .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; + * + * @return Whether the mutateRow field is set. + */ + @java.lang.Override + public boolean hasMutateRow() { + return payloadCase_ == 2; + } + + /** + * .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; + * + * @return The mutateRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowResponse getMutateRow() { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.SessionMutateRowResponse) payload_; + } + return com.google.bigtable.v2.SessionMutateRowResponse.getDefaultInstance(); + } + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowResponseOrBuilder getMutateRowOrBuilder() { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.SessionMutateRowResponse) payload_; + } + return com.google.bigtable.v2.SessionMutateRowResponse.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (payloadCase_ == 1) { + output.writeMessage(1, (com.google.bigtable.v2.SessionReadRowResponse) payload_); + } + if (payloadCase_ == 2) { + output.writeMessage(2, (com.google.bigtable.v2.SessionMutateRowResponse) payload_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (payloadCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.bigtable.v2.SessionReadRowResponse) payload_); + } + if (payloadCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.bigtable.v2.SessionMutateRowResponse) payload_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.AuthorizedViewResponse)) { + return super.equals(obj); + } + com.google.bigtable.v2.AuthorizedViewResponse other = + (com.google.bigtable.v2.AuthorizedViewResponse) obj; + + if (!getPayloadCase().equals(other.getPayloadCase())) return false; + switch (payloadCase_) { + case 1: + if (!getReadRow().equals(other.getReadRow())) return false; + break; + case 2: + if (!getMutateRow().equals(other.getMutateRow())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (payloadCase_) { + case 1: + hash = (37 * hash) + READ_ROW_FIELD_NUMBER; + hash = (53 * hash) + getReadRow().hashCode(); + break; + case 2: + hash = (37 * hash) + MUTATE_ROW_FIELD_NUMBER; + hash = (53 * hash) + getMutateRow().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.AuthorizedViewResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.AuthorizedViewResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.AuthorizedViewResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.AuthorizedViewResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.AuthorizedViewResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.AuthorizedViewResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.AuthorizedViewResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.AuthorizedViewResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.AuthorizedViewResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.AuthorizedViewResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.AuthorizedViewResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.AuthorizedViewResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.AuthorizedViewResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A response wrapper for operations on an authorized view. Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.AuthorizedViewResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.AuthorizedViewResponse) + com.google.bigtable.v2.AuthorizedViewResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_AuthorizedViewResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_AuthorizedViewResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.AuthorizedViewResponse.class, + com.google.bigtable.v2.AuthorizedViewResponse.Builder.class); + } + + // Construct using com.google.bigtable.v2.AuthorizedViewResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (readRowBuilder_ != null) { + readRowBuilder_.clear(); + } + if (mutateRowBuilder_ != null) { + mutateRowBuilder_.clear(); + } + payloadCase_ = 0; + payload_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_AuthorizedViewResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.AuthorizedViewResponse getDefaultInstanceForType() { + return com.google.bigtable.v2.AuthorizedViewResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.AuthorizedViewResponse build() { + com.google.bigtable.v2.AuthorizedViewResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.AuthorizedViewResponse buildPartial() { + com.google.bigtable.v2.AuthorizedViewResponse result = + new com.google.bigtable.v2.AuthorizedViewResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.AuthorizedViewResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.bigtable.v2.AuthorizedViewResponse result) { + result.payloadCase_ = payloadCase_; + result.payload_ = this.payload_; + if (payloadCase_ == 1 && readRowBuilder_ != null) { + result.payload_ = readRowBuilder_.build(); + } + if (payloadCase_ == 2 && mutateRowBuilder_ != null) { + result.payload_ = mutateRowBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.AuthorizedViewResponse) { + return mergeFrom((com.google.bigtable.v2.AuthorizedViewResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.AuthorizedViewResponse other) { + if (other == com.google.bigtable.v2.AuthorizedViewResponse.getDefaultInstance()) return this; + switch (other.getPayloadCase()) { + case READ_ROW: + { + mergeReadRow(other.getReadRow()); + break; + } + case MUTATE_ROW: + { + mergeMutateRow(other.getMutateRow()); + break; + } + case PAYLOAD_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetReadRowFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetMutateRowFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int payloadCase_ = 0; + private java.lang.Object payload_; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public Builder clearPayload() { + payloadCase_ = 0; + payload_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowResponse, + com.google.bigtable.v2.SessionReadRowResponse.Builder, + com.google.bigtable.v2.SessionReadRowResponseOrBuilder> + readRowBuilder_; + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return Whether the readRow field is set. + */ + @java.lang.Override + public boolean hasReadRow() { + return payloadCase_ == 1; + } + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return The readRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowResponse getReadRow() { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowResponse) payload_; + } + return com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } else { + if (payloadCase_ == 1) { + return readRowBuilder_.getMessage(); + } + return com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + public Builder setReadRow(com.google.bigtable.v2.SessionReadRowResponse value) { + if (readRowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + readRowBuilder_.setMessage(value); + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + public Builder setReadRow( + com.google.bigtable.v2.SessionReadRowResponse.Builder builderForValue) { + if (readRowBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + readRowBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + public Builder mergeReadRow(com.google.bigtable.v2.SessionReadRowResponse value) { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1 + && payload_ != com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.SessionReadRowResponse.newBuilder( + (com.google.bigtable.v2.SessionReadRowResponse) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 1) { + readRowBuilder_.mergeFrom(value); + } else { + readRowBuilder_.setMessage(value); + } + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + public Builder clearReadRow() { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + } + readRowBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + public com.google.bigtable.v2.SessionReadRowResponse.Builder getReadRowBuilder() { + return internalGetReadRowFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowResponseOrBuilder getReadRowOrBuilder() { + if ((payloadCase_ == 1) && (readRowBuilder_ != null)) { + return readRowBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowResponse) payload_; + } + return com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowResponse, + com.google.bigtable.v2.SessionReadRowResponse.Builder, + com.google.bigtable.v2.SessionReadRowResponseOrBuilder> + internalGetReadRowFieldBuilder() { + if (readRowBuilder_ == null) { + if (!(payloadCase_ == 1)) { + payload_ = com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } + readRowBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowResponse, + com.google.bigtable.v2.SessionReadRowResponse.Builder, + com.google.bigtable.v2.SessionReadRowResponseOrBuilder>( + (com.google.bigtable.v2.SessionReadRowResponse) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 1; + onChanged(); + return readRowBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionMutateRowResponse, + com.google.bigtable.v2.SessionMutateRowResponse.Builder, + com.google.bigtable.v2.SessionMutateRowResponseOrBuilder> + mutateRowBuilder_; + + /** + * .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; + * + * @return Whether the mutateRow field is set. + */ + @java.lang.Override + public boolean hasMutateRow() { + return payloadCase_ == 2; + } + + /** + * .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; + * + * @return The mutateRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowResponse getMutateRow() { + if (mutateRowBuilder_ == null) { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.SessionMutateRowResponse) payload_; + } + return com.google.bigtable.v2.SessionMutateRowResponse.getDefaultInstance(); + } else { + if (payloadCase_ == 2) { + return mutateRowBuilder_.getMessage(); + } + return com.google.bigtable.v2.SessionMutateRowResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + public Builder setMutateRow(com.google.bigtable.v2.SessionMutateRowResponse value) { + if (mutateRowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + mutateRowBuilder_.setMessage(value); + } + payloadCase_ = 2; + return this; + } + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + public Builder setMutateRow( + com.google.bigtable.v2.SessionMutateRowResponse.Builder builderForValue) { + if (mutateRowBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + mutateRowBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 2; + return this; + } + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + public Builder mergeMutateRow(com.google.bigtable.v2.SessionMutateRowResponse value) { + if (mutateRowBuilder_ == null) { + if (payloadCase_ == 2 + && payload_ != com.google.bigtable.v2.SessionMutateRowResponse.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.SessionMutateRowResponse.newBuilder( + (com.google.bigtable.v2.SessionMutateRowResponse) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 2) { + mutateRowBuilder_.mergeFrom(value); + } else { + mutateRowBuilder_.setMessage(value); + } + } + payloadCase_ = 2; + return this; + } + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + public Builder clearMutateRow() { + if (mutateRowBuilder_ == null) { + if (payloadCase_ == 2) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 2) { + payloadCase_ = 0; + payload_ = null; + } + mutateRowBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + public com.google.bigtable.v2.SessionMutateRowResponse.Builder getMutateRowBuilder() { + return internalGetMutateRowFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowResponseOrBuilder getMutateRowOrBuilder() { + if ((payloadCase_ == 2) && (mutateRowBuilder_ != null)) { + return mutateRowBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.SessionMutateRowResponse) payload_; + } + return com.google.bigtable.v2.SessionMutateRowResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionMutateRowResponse, + com.google.bigtable.v2.SessionMutateRowResponse.Builder, + com.google.bigtable.v2.SessionMutateRowResponseOrBuilder> + internalGetMutateRowFieldBuilder() { + if (mutateRowBuilder_ == null) { + if (!(payloadCase_ == 2)) { + payload_ = com.google.bigtable.v2.SessionMutateRowResponse.getDefaultInstance(); + } + mutateRowBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionMutateRowResponse, + com.google.bigtable.v2.SessionMutateRowResponse.Builder, + com.google.bigtable.v2.SessionMutateRowResponseOrBuilder>( + (com.google.bigtable.v2.SessionMutateRowResponse) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 2; + onChanged(); + return mutateRowBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.AuthorizedViewResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.AuthorizedViewResponse) + private static final com.google.bigtable.v2.AuthorizedViewResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.AuthorizedViewResponse(); + } + + public static com.google.bigtable.v2.AuthorizedViewResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthorizedViewResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.AuthorizedViewResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AuthorizedViewResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AuthorizedViewResponseOrBuilder.java new file mode 100644 index 0000000000..4c56458ed6 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AuthorizedViewResponseOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface AuthorizedViewResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.AuthorizedViewResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return Whether the readRow field is set. + */ + boolean hasReadRow(); + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return The readRow. + */ + com.google.bigtable.v2.SessionReadRowResponse getReadRow(); + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + com.google.bigtable.v2.SessionReadRowResponseOrBuilder getReadRowOrBuilder(); + + /** + * .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; + * + * @return Whether the mutateRow field is set. + */ + boolean hasMutateRow(); + + /** + * .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; + * + * @return The mutateRow. + */ + com.google.bigtable.v2.SessionMutateRowResponse getMutateRow(); + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + com.google.bigtable.v2.SessionMutateRowResponseOrBuilder getMutateRowOrBuilder(); + + com.google.bigtable.v2.AuthorizedViewResponse.PayloadCase getPayloadCase(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BackendIdentifier.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BackendIdentifier.java new file mode 100644 index 0000000000..e951f9ad6c --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BackendIdentifier.java @@ -0,0 +1,802 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Information about the connected backends from a session client's
+ * perspective. This information may be used to make choices about session
+ * re-establishment en-masse for sessions with the same backend identifiers.
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.BackendIdentifier} + */ +@com.google.protobuf.Generated +public final class BackendIdentifier extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.BackendIdentifier) + BackendIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BackendIdentifier"); + } + + // Use BackendIdentifier.newBuilder() to construct. + private BackendIdentifier(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BackendIdentifier() { + applicationFrontendZone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_BackendIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_BackendIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.BackendIdentifier.class, + com.google.bigtable.v2.BackendIdentifier.Builder.class); + } + + public static final int GOOGLE_FRONTEND_ID_FIELD_NUMBER = 1; + private long googleFrontendId_ = 0L; + + /** + * + * + *
+   * An opaque identifier for the Google Frontend which serviced this request.
+   * Only set when not using DirectAccess.
+   * 
+ * + * int64 google_frontend_id = 1; + * + * @return The googleFrontendId. + */ + @java.lang.Override + public long getGoogleFrontendId() { + return googleFrontendId_; + } + + public static final int APPLICATION_FRONTEND_ID_FIELD_NUMBER = 2; + private long applicationFrontendId_ = 0L; + + /** + * + * + *
+   * An opaque identifier for the application frontend which serviced this
+   * request.
+   * 
+ * + * int64 application_frontend_id = 2; + * + * @return The applicationFrontendId. + */ + @java.lang.Override + public long getApplicationFrontendId() { + return applicationFrontendId_; + } + + public static final int APPLICATION_FRONTEND_ZONE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object applicationFrontendZone_ = ""; + + /** + * + * + *
+   * The zone of the application frontend that served this request.
+   * 
+ * + * string application_frontend_zone = 3; + * + * @return The applicationFrontendZone. + */ + @java.lang.Override + public java.lang.String getApplicationFrontendZone() { + java.lang.Object ref = applicationFrontendZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationFrontendZone_ = s; + return s; + } + } + + /** + * + * + *
+   * The zone of the application frontend that served this request.
+   * 
+ * + * string application_frontend_zone = 3; + * + * @return The bytes for applicationFrontendZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationFrontendZoneBytes() { + java.lang.Object ref = applicationFrontendZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationFrontendZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (googleFrontendId_ != 0L) { + output.writeInt64(1, googleFrontendId_); + } + if (applicationFrontendId_ != 0L) { + output.writeInt64(2, applicationFrontendId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationFrontendZone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, applicationFrontendZone_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (googleFrontendId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, googleFrontendId_); + } + if (applicationFrontendId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, applicationFrontendId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationFrontendZone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, applicationFrontendZone_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.BackendIdentifier)) { + return super.equals(obj); + } + com.google.bigtable.v2.BackendIdentifier other = (com.google.bigtable.v2.BackendIdentifier) obj; + + if (getGoogleFrontendId() != other.getGoogleFrontendId()) return false; + if (getApplicationFrontendId() != other.getApplicationFrontendId()) return false; + if (!getApplicationFrontendZone().equals(other.getApplicationFrontendZone())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GOOGLE_FRONTEND_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGoogleFrontendId()); + hash = (37 * hash) + APPLICATION_FRONTEND_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getApplicationFrontendId()); + hash = (37 * hash) + APPLICATION_FRONTEND_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getApplicationFrontendZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.BackendIdentifier parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.BackendIdentifier parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.BackendIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.BackendIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.BackendIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.BackendIdentifier parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.BackendIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.BackendIdentifier parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.BackendIdentifier parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.BackendIdentifier parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.BackendIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.BackendIdentifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.BackendIdentifier prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Information about the connected backends from a session client's
+   * perspective. This information may be used to make choices about session
+   * re-establishment en-masse for sessions with the same backend identifiers.
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.BackendIdentifier} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.BackendIdentifier) + com.google.bigtable.v2.BackendIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_BackendIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_BackendIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.BackendIdentifier.class, + com.google.bigtable.v2.BackendIdentifier.Builder.class); + } + + // Construct using com.google.bigtable.v2.BackendIdentifier.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + googleFrontendId_ = 0L; + applicationFrontendId_ = 0L; + applicationFrontendZone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_BackendIdentifier_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.BackendIdentifier getDefaultInstanceForType() { + return com.google.bigtable.v2.BackendIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.BackendIdentifier build() { + com.google.bigtable.v2.BackendIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.BackendIdentifier buildPartial() { + com.google.bigtable.v2.BackendIdentifier result = + new com.google.bigtable.v2.BackendIdentifier(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.BackendIdentifier result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.googleFrontendId_ = googleFrontendId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.applicationFrontendId_ = applicationFrontendId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.applicationFrontendZone_ = applicationFrontendZone_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.BackendIdentifier) { + return mergeFrom((com.google.bigtable.v2.BackendIdentifier) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.BackendIdentifier other) { + if (other == com.google.bigtable.v2.BackendIdentifier.getDefaultInstance()) return this; + if (other.getGoogleFrontendId() != 0L) { + setGoogleFrontendId(other.getGoogleFrontendId()); + } + if (other.getApplicationFrontendId() != 0L) { + setApplicationFrontendId(other.getApplicationFrontendId()); + } + if (!other.getApplicationFrontendZone().isEmpty()) { + applicationFrontendZone_ = other.applicationFrontendZone_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + googleFrontendId_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + applicationFrontendId_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + applicationFrontendZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long googleFrontendId_; + + /** + * + * + *
+     * An opaque identifier for the Google Frontend which serviced this request.
+     * Only set when not using DirectAccess.
+     * 
+ * + * int64 google_frontend_id = 1; + * + * @return The googleFrontendId. + */ + @java.lang.Override + public long getGoogleFrontendId() { + return googleFrontendId_; + } + + /** + * + * + *
+     * An opaque identifier for the Google Frontend which serviced this request.
+     * Only set when not using DirectAccess.
+     * 
+ * + * int64 google_frontend_id = 1; + * + * @param value The googleFrontendId to set. + * @return This builder for chaining. + */ + public Builder setGoogleFrontendId(long value) { + + googleFrontendId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * An opaque identifier for the Google Frontend which serviced this request.
+     * Only set when not using DirectAccess.
+     * 
+ * + * int64 google_frontend_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearGoogleFrontendId() { + bitField0_ = (bitField0_ & ~0x00000001); + googleFrontendId_ = 0L; + onChanged(); + return this; + } + + private long applicationFrontendId_; + + /** + * + * + *
+     * An opaque identifier for the application frontend which serviced this
+     * request.
+     * 
+ * + * int64 application_frontend_id = 2; + * + * @return The applicationFrontendId. + */ + @java.lang.Override + public long getApplicationFrontendId() { + return applicationFrontendId_; + } + + /** + * + * + *
+     * An opaque identifier for the application frontend which serviced this
+     * request.
+     * 
+ * + * int64 application_frontend_id = 2; + * + * @param value The applicationFrontendId to set. + * @return This builder for chaining. + */ + public Builder setApplicationFrontendId(long value) { + + applicationFrontendId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * An opaque identifier for the application frontend which serviced this
+     * request.
+     * 
+ * + * int64 application_frontend_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearApplicationFrontendId() { + bitField0_ = (bitField0_ & ~0x00000002); + applicationFrontendId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object applicationFrontendZone_ = ""; + + /** + * + * + *
+     * The zone of the application frontend that served this request.
+     * 
+ * + * string application_frontend_zone = 3; + * + * @return The applicationFrontendZone. + */ + public java.lang.String getApplicationFrontendZone() { + java.lang.Object ref = applicationFrontendZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationFrontendZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The zone of the application frontend that served this request.
+     * 
+ * + * string application_frontend_zone = 3; + * + * @return The bytes for applicationFrontendZone. + */ + public com.google.protobuf.ByteString getApplicationFrontendZoneBytes() { + java.lang.Object ref = applicationFrontendZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationFrontendZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The zone of the application frontend that served this request.
+     * 
+ * + * string application_frontend_zone = 3; + * + * @param value The applicationFrontendZone to set. + * @return This builder for chaining. + */ + public Builder setApplicationFrontendZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + applicationFrontendZone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The zone of the application frontend that served this request.
+     * 
+ * + * string application_frontend_zone = 3; + * + * @return This builder for chaining. + */ + public Builder clearApplicationFrontendZone() { + applicationFrontendZone_ = getDefaultInstance().getApplicationFrontendZone(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The zone of the application frontend that served this request.
+     * 
+ * + * string application_frontend_zone = 3; + * + * @param value The bytes for applicationFrontendZone to set. + * @return This builder for chaining. + */ + public Builder setApplicationFrontendZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + applicationFrontendZone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.BackendIdentifier) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.BackendIdentifier) + private static final com.google.bigtable.v2.BackendIdentifier DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.BackendIdentifier(); + } + + public static com.google.bigtable.v2.BackendIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackendIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.BackendIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BackendIdentifierOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BackendIdentifierOrBuilder.java new file mode 100644 index 0000000000..e966217925 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BackendIdentifierOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface BackendIdentifierOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.BackendIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * An opaque identifier for the Google Frontend which serviced this request.
+   * Only set when not using DirectAccess.
+   * 
+ * + * int64 google_frontend_id = 1; + * + * @return The googleFrontendId. + */ + long getGoogleFrontendId(); + + /** + * + * + *
+   * An opaque identifier for the application frontend which serviced this
+   * request.
+   * 
+ * + * int64 application_frontend_id = 2; + * + * @return The applicationFrontendId. + */ + long getApplicationFrontendId(); + + /** + * + * + *
+   * The zone of the application frontend that served this request.
+   * 
+ * + * string application_frontend_zone = 3; + * + * @return The applicationFrontendZone. + */ + java.lang.String getApplicationFrontendZone(); + + /** + * + * + *
+   * The zone of the application frontend that served this request.
+   * 
+ * + * string application_frontend_zone = 3; + * + * @return The bytes for applicationFrontendZone. + */ + com.google.protobuf.ByteString getApplicationFrontendZoneBytes(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableProto.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableProto.java index 3a75fff0ac..da1b7d6197 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableProto.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableProto.java @@ -187,11 +187,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\032\027google/api/client.proto\032\037google/a" + "pi/field_behavior.proto\032\031google/api/reso" + "urce.proto\032\030google/api/routing.proto\032\035go" - + "ogle/bigtable/v2/data.proto\032&google/bigt" - + "able/v2/request_stats.proto\032\036google/bigt" - + "able/v2/types.proto\032\036google/protobuf/dur" - + "ation.proto\032\037google/protobuf/timestamp.p" - + "roto\032\036google/protobuf/wrappers.proto\032\027google/rpc/status.proto\"\314\004\n" + + "ogle/bigtable/v2/data.proto\032&google/bigtable/v2/request_stats.proto\032 google/bigt" + + "able/v2/session.proto\032\036google/bigtable/v" + + "2/types.proto\032\036google/protobuf/duration." + + "proto\032\037google/protobuf/timestamp.proto\032\036" + + "google/protobuf/wrappers.proto\032\027google/rpc/status.proto\"\314\004\n" + "\017ReadRowsRequest\022>\n\n" + "table_name\030\001 \001(\tB*\340A\001\372A$\n" + "\"bigtableadmin.googleapis.com/Table\022Q\n" @@ -203,8 +203,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004rows\030\002 \001(\0132\032.google.bigtable.v2.RowSet\022-\n" + "\006filter\030\003 \001(\0132\035.google.bigtable.v2.RowFilter\022\022\n\n" + "rows_limit\030\004 \001(\003\022P\n" - + "\022request_stats_view\030\006 \001(\01624.g" - + "oogle.bigtable.v2.ReadRowsRequest.RequestStatsView\022\020\n" + + "\022request_stats_view\030\006 \001(\01624.google." + + "bigtable.v2.ReadRowsRequest.RequestStatsView\022\020\n" + "\010reversed\030\007 \001(\010\"f\n" + "\020RequestStatsView\022\"\n" + "\036REQUEST_STATS_VIEW_UNSPECIFIED\020\000\022\026\n" @@ -252,16 +252,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024authorized_view_name\030\005 \001(\tB3\340A\001\372A-\n" + "+bigtableadmin.googleapis.com/AuthorizedView\022\026\n" + "\016app_profile_id\030\003 \001(\t\022A\n" - + "\007entries\030\002 \003(\0132+.google.bi" - + "gtable.v2.MutateRowsRequest.EntryB\003\340A\002\032\204\001\n" + + "\007entries\030\002" + + " \003(\0132+.google.bigtable.v2.MutateRowsRequest.EntryB\003\340A\002\032\204\001\n" + "\005Entry\022\017\n" + "\007row_key\030\001 \001(\014\0224\n" + "\tmutations\030\002 \003(\0132\034.google.bigtable.v2.MutationB\003\340A\002\0224\n" + "\013idempotency\030\003 \001(\0132\037.google.bigtable.v2.Idempotency\"\344\001\n" + "\022MutateRowsResponse\022=\n" + "\007entries\030\001 \003(\0132,.google.bigtable.v2.MutateRowsResponse.Entry\022?\n" - + "\017rate_limit_info\030\003" - + " \001(\0132!.google.bigtable.v2.RateLimitInfoH\000\210\001\001\032:\n" + + "\017rate_limit_info\030\003 \001(\0132!" + + ".google.bigtable.v2.RateLimitInfoH\000\210\001\001\032:\n" + "\005Entry\022\r\n" + "\005index\030\001 \001(\003\022\"\n" + "\006status\030\002 \001(\0132\022.google.rpc.StatusB\022\n" @@ -315,30 +315,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022heartbeat_duration\030\007 \001(\0132\031.google.protobuf.DurationB\014\n\n" + "start_from\"\251\n\n" + "\030ReadChangeStreamResponse\022N\n" - + "\013data_change\030\001 \001(\01327.googl" - + "e.bigtable.v2.ReadChangeStreamResponse.DataChangeH\000\022K\n" - + "\theartbeat\030\002 \001(\01326.google." - + "bigtable.v2.ReadChangeStreamResponse.HeartbeatH\000\022P\n" - + "\014close_stream\030\003 \001(\01328.google." - + "bigtable.v2.ReadChangeStreamResponse.CloseStreamH\000\032\364\001\n\r" + + "\013data_change\030\001 \001(\01327.google.bigt" + + "able.v2.ReadChangeStreamResponse.DataChangeH\000\022K\n" + + "\theartbeat\030\002 \001(\01326.google.bigtab" + + "le.v2.ReadChangeStreamResponse.HeartbeatH\000\022P\n" + + "\014close_stream\030\003 \001(\01328.google.bigtab" + + "le.v2.ReadChangeStreamResponse.CloseStreamH\000\032\364\001\n\r" + "MutationChunk\022X\n\n" - + "chunk_info\030\001 \001(\0132D.google.bigtable.v2.ReadChange" - + "StreamResponse.MutationChunk.ChunkInfo\022.\n" + + "chunk_info\030\001 \001" + + "(\0132D.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo\022.\n" + "\010mutation\030\002 \001(\0132\034.google.bigtable.v2.Mutation\032Y\n" + "\tChunkInfo\022\032\n" + "\022chunked_value_size\030\001 \001(\005\022\034\n" - + "\024chunked_value_offset\030\002 \001(\005\022\022\n" - + "\n" + + "\024chunked_value_offset\030\002 \001(\005\022\022\n\n" + "last_chunk\030\003 \001(\010\032\306\003\n\n" + "DataChange\022J\n" - + "\004type\030\001" - + " \001(\0162<.google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type\022\031\n" + + "\004type\030\001 \001(\016" + + "2<.google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type\022\031\n" + "\021source_cluster_id\030\002 \001(\t\022\017\n" + "\007row_key\030\003 \001(\014\0224\n" + "\020commit_timestamp\030\004 \001(\0132\032.google.protobuf.Timestamp\022\022\n\n" + "tiebreaker\030\005 \001(\005\022J\n" - + "\006chunks\030\006 \003" - + "(\0132:.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk\022\014\n" + + "\006chunks\030\006 \003(\0132:.g" + + "oogle.bigtable.v2.ReadChangeStreamResponse.MutationChunk\022\014\n" + "\004done\030\010 \001(\010\022\r\n" + "\005token\030\t \001(\t\022;\n" + "\027estimated_low_watermark\030\n" @@ -349,8 +348,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022GARBAGE_COLLECTION\020\002\022\020\n" + "\014CONTINUATION\020\003\032\221\001\n" + "\tHeartbeat\022G\n" - + "\022continuation_token\030\001 \001(\0132+.g" - + "oogle.bigtable.v2.StreamContinuationToken\022;\n" + + "\022continuation_token\030\001" + + " \001(\0132+.google.bigtable.v2.StreamContinuationToken\022;\n" + "\027estimated_low_watermark\030\002" + " \001(\0132\032.google.protobuf.Timestamp\032\270\001\n" + "\013CloseStream\022\"\n" @@ -384,8 +383,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016app_profile_id\030\002 \001(\tB\003\340A\001\022\022\n" + "\005query\030\003 \001(\tB\003\340A\002\0227\n" + "\014proto_format\030\004 \001(\0132\037.google.bigtable.v2.ProtoFormatH\000\022Q\n" - + "\013param_types\030\006 \003(\01327.google.bigtable.v" - + "2.PrepareQueryRequest.ParamTypesEntryB\003\340A\002\032K\n" + + "\013param_types\030\006" + + " \003(\01327.google.bigtable.v2.PrepareQueryRequest.ParamTypesEntryB\003\340A\002\032K\n" + "\017ParamTypesEntry\022\013\n" + "\003key\030\001 \001(\t\022\'\n" + "\005value\030\002 \001(\0132\030.google.bigtable.v2.Type:\0028\001B\r\n" @@ -393,121 +392,129 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024PrepareQueryResponse\0227\n" + "\010metadata\030\001 \001(\0132%.google.bigtable.v2.ResultSetMetadata\022\026\n" + "\016prepared_query\030\002 \001(\014\022/\n" - + "\013valid_until\030\003 \001(\0132\032.google.protobuf.Timestamp2\333\'\n" + + "\013valid_until\030\003 \001(\0132\032.google.protobuf.Timestamp2\215+\n" + "\010Bigtable\022\325\004\n" - + "\010ReadRows\022#.go" - + "ogle.bigtable.v2.ReadRowsRequest\032$.google.bigtable.v2.ReadRowsResponse\"\373\003\332A\n" - + "table_name\332A\031table_name,app_profile_id\202\323\344\223\002\361" - + "\001\"9/v2/{table_name=projects/*/instances/" - + "*/tables/*}:readRows:\001*ZZ\"U/v2/{authorized_view_name=projects/*/instances/*/tabl" - + "es/*/authorizedViews/*}:readRows:\001*ZU\"P/v2/{materialized_view_name=projects/*/in" - + "stances/*/materializedViews/*}:readRows:\001*\212\323\344\223\002\323\001\022:\n\n" + + "\010ReadRows\022#.google.b" + + "igtable.v2.ReadRowsRequest\032$.google.bigtable.v2.ReadRowsResponse\"\373\003\332A\n" + + "table_name\332A\031table_name,app_profile_id\202\323\344\223\002\361\001\"9/v2" + + "/{table_name=projects/*/instances/*/tables/*}:readRows:\001*ZZ\"U/v2/{authorized_vie" + + "w_name=projects/*/instances/*/tables/*/authorizedViews/*}:readRows:\001*ZU\"P/v2/{ma" + + "terialized_view_name=projects/*/instance" + + "s/*/materializedViews/*}:readRows:\001*\212\323\344\223\002\323\001\022:\n\n" + "table_name\022,{table_name=projects/*/instances/*/tables/*}\022\020\n" + "\016app_profile_id\022G\n" + "\024authorized_view_name\022/{table_name=projects/*/instances/*/tables/*}/**\022:\n" + "\026materialized_view_name\022 {name=projects/*/instances/*}/**0\001\022\352\004\n\r" - + "SampleRowKeys\022(.google.bigtable.v2.SampleRowKeysReque" - + "st\032).google.bigtable.v2.SampleRowKeysResponse\"\201\004\332A\n" - + "table_name\332A\031table_name,app_p" - + "rofile_id\202\323\344\223\002\367\001\022>/v2/{table_name=projec" - + "ts/*/instances/*/tables/*}:sampleRowKeysZ\\\022Z/v2/{authorized_view_name=projects/*" - + "/instances/*/tables/*/authorizedViews/*}:sampleRowKeysZW\022U/v2/{materialized_view" - + "_name=projects/*/instances/*/materializedViews/*}:sampleRowKeys\212\323\344\223\002\323\001\022:\n\n" + + "SampleRowKeys\022(.google.bigtable.v2.SampleRowKeysRequest\032).g" + + "oogle.bigtable.v2.SampleRowKeysResponse\"\201\004\332A\n" + + "table_name\332A\031table_name,app_profile" + + "_id\202\323\344\223\002\367\001\022>/v2/{table_name=projects/*/i" + + "nstances/*/tables/*}:sampleRowKeysZ\\\022Z/v2/{authorized_view_name=projects/*/insta" + + "nces/*/tables/*/authorizedViews/*}:sampleRowKeysZW\022U/v2/{materialized_view_name=" + + "projects/*/instances/*/materializedViews/*}:sampleRowKeys\212\323\344\223\002\323\001\022:\n\n" + "table_name\022,{table_name=projects/*/instances/*/tables/*}\022\020\n" + "\016app_profile_id\022G\n" + "\024authorized_view_name\022/{table_name=projects/*/instances/*/tables/*}/**\022:\n" + "\026materialized_view_name\022 {name=projects/*/instances/*}/**0\001\022\351\003\n" - + "\tMutateRow\022$.google.bigtable.v2.MutateRowRequest\032%.google.bigtable.v2.Mut" - + "ateRowResponse\"\216\003\332A\034table_name,row_key,m" - + "utations\332A+table_name,row_key,mutations," - + "app_profile_id\202\323\344\223\002\234\001\":/v2/{table_name=p" - + "rojects/*/instances/*/tables/*}:mutateRow:\001*Z[\"V/v2/{authorized_view_name=projec" - + "ts/*/instances/*/tables/*/authorizedViews/*}:mutateRow:\001*\212\323\344\223\002\227\001\022:\n\n" + + "\tMutateRow\022$.google.bigtable.v2.MutateRowRequest\032%.google.bigtable.v2.MutateRow" + + "Response\"\216\003\332A\034table_name,row_key,mutatio" + + "ns\332A+table_name,row_key,mutations,app_pr" + + "ofile_id\202\323\344\223\002\234\001\":/v2/{table_name=project" + + "s/*/instances/*/tables/*}:mutateRow:\001*Z[\"V/v2/{authorized_view_name=projects/*/i" + + "nstances/*/tables/*/authorizedViews/*}:mutateRow:\001*\212\323\344\223\002\227\001\022:\n\n" + "table_name\022,{table_name=projects/*/instances/*/tables/*}\022\020\n" + "\016app_profile_id\022G\n" - + "\024authorized_vie" - + "w_name\022/{table_name=projects/*/instances/*/tables/*}/**\022\334\003\n\n" - + "MutateRows\022%.google.bigtable.v2.MutateRowsRequest\032&.google.b" - + "igtable.v2.MutateRowsResponse\"\374\002\332A\022table" - + "_name,entries\332A!table_name,entries,app_p" - + "rofile_id\202\323\344\223\002\236\001\";/v2/{table_name=projec" - + "ts/*/instances/*/tables/*}:mutateRows:\001*Z\\\"W/v2/{authorized_view_name=projects/*" - + "/instances/*/tables/*/authorizedViews/*}:mutateRows:\001*\212\323\344\223\002\227\001\022:\n\n" + + "\024authorized_view_name" + + "\022/{table_name=projects/*/instances/*/tables/*}/**\022\334\003\n\n" + + "MutateRows\022%.google.bigtable.v2.MutateRowsRequest\032&.google.bigtabl" + + "e.v2.MutateRowsResponse\"\374\002\332A\022table_name," + + "entries\332A!table_name,entries,app_profile" + + "_id\202\323\344\223\002\236\001\";/v2/{table_name=projects/*/i" + + "nstances/*/tables/*}:mutateRows:\001*Z\\\"W/v2/{authorized_view_name=projects/*/insta" + + "nces/*/tables/*/authorizedViews/*}:mutateRows:\001*\212\323\344\223\002\227\001\022:\n\n" + "table_name\022,{table_name=projects/*/instances/*/tables/*}\022\020\n" + "\016app_profile_id\022G\n" - + "\024authorized_view_n" - + "ame\022/{table_name=projects/*/instances/*/tables/*}/**0\001\022\335\004\n" - + "\021CheckAndMutateRow\022,.google.bigtable.v2.CheckAndMutateRowReque" - + "st\032-.google.bigtable.v2.CheckAndMutateRo" - + "wResponse\"\352\003\332ABtable_name,row_key,predic" - + "ate_filter,true_mutations,false_mutations\332AQtable_name,row_key,predicate_filter," - + "true_mutations,false_mutations,app_profi" - + "le_id\202\323\344\223\002\254\001\"B/v2/{table_name=projects/*" - + "/instances/*/tables/*}:checkAndMutateRow:\001*Zc\"^/v2/{authorized_view_name=project" - + "s/*/instances/*/tables/*/authorizedViews/*}:checkAndMutateRow:\001*\212\323\344\223\002\227\001\022:\n\n" + + "\024authorized_view_name\022/{" + + "table_name=projects/*/instances/*/tables/*}/**0\001\022\335\004\n" + + "\021CheckAndMutateRow\022,.google.bigtable.v2.CheckAndMutateRowRequest\032-.g" + + "oogle.bigtable.v2.CheckAndMutateRowRespo" + + "nse\"\352\003\332ABtable_name,row_key,predicate_fi" + + "lter,true_mutations,false_mutations\332AQtable_name,row_key,predicate_filter,true_m" + + "utations,false_mutations,app_profile_id\202" + + "\323\344\223\002\254\001\"B/v2/{table_name=projects/*/insta" + + "nces/*/tables/*}:checkAndMutateRow:\001*Zc\"^/v2/{authorized_view_name=projects/*/in" + + "stances/*/tables/*/authorizedViews/*}:checkAndMutateRow:\001*\212\323\344\223\002\227\001\022:\n\n" + "table_name\022,{table_name=projects/*/instances/*/tables/*}\022\020\n" + "\016app_profile_id\022G\n" - + "\024authori" - + "zed_view_name\022/{table_name=projects/*/instances/*/tables/*}/**\022\356\001\n" - + "\013PingAndWarm\022&.google.bigtable.v2.PingAndWarmRequest\032\'" - + ".google.bigtable.v2.PingAndWarmResponse\"" - + "\215\001\332A\004name\332A\023name,app_profile_id\202\323\344\223\002+\"&/" - + "v2/{name=projects/*/instances/*}:ping:\001*\212\323\344\223\0029\022%\n" + + "\024authorized_vi" + + "ew_name\022/{table_name=projects/*/instances/*/tables/*}/**\022\356\001\n" + + "\013PingAndWarm\022&.google.bigtable.v2.PingAndWarmRequest\032\'.googl" + + "e.bigtable.v2.PingAndWarmResponse\"\215\001\332A\004n" + + "ame\332A\023name,app_profile_id\202\323\344\223\002+\"&/v2/{na" + + "me=projects/*/instances/*}:ping:\001*\212\323\344\223\0029\022%\n" + "\004name\022\035{name=projects/*/instances/*}\022\020\n" + "\016app_profile_id\022\216\004\n" - + "\022ReadModifyWriteRow\022-.google.bigtable.v2.ReadModifyWr" - + "iteRowRequest\032..google.bigtable.v2.ReadM" - + "odifyWriteRowResponse\"\230\003\332A\030table_name,ro" - + "w_key,rules\332A\'table_name,row_key,rules,a" - + "pp_profile_id\202\323\344\223\002\256\001\"C/v2/{table_name=pr" - + "ojects/*/instances/*/tables/*}:readModifyWriteRow:\001*Zd\"_/v2/{authorized_view_nam" - + "e=projects/*/instances/*/tables/*/author" - + "izedViews/*}:readModifyWriteRow:\001*\212\323\344\223\002\227\001\022:\n\n" + + "\022ReadModifyWriteRow\022-.google.bigtable.v2.ReadModifyWriteRow" + + "Request\032..google.bigtable.v2.ReadModifyW" + + "riteRowResponse\"\230\003\332A\030table_name,row_key," + + "rules\332A\'table_name,row_key,rules,app_pro" + + "file_id\202\323\344\223\002\256\001\"C/v2/{table_name=projects" + + "/*/instances/*/tables/*}:readModifyWriteRow:\001*Zd\"_/v2/{authorized_view_name=proj" + + "ects/*/instances/*/tables/*/authorizedViews/*}:readModifyWriteRow:\001*\212\323\344\223\002\227\001\022:\n\n" + "table_name\022,{table_name=projects/*/instances/*/tables/*}\022\020\n" + "\016app_profile_id\022G\n" - + "\024authorized_view_name\022/{table_name=projects/*/instances/*/tables/*}/**\022\273\002\n" - + "%GenerateInitialChangeStreamPartitions\022@.goo" - + "gle.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest\032A.google.bigtable.v" - + "2.GenerateInitialChangeStreamPartitionsResponse\"\212\001\332A\n" - + "table_name\332A\031table_name,app" - + "_profile_id\202\323\344\223\002[\"V/v2/{table_name=proje" - + "cts/*/instances/*/tables/*}:generateInitialChangeStreamPartitions:\001*0\001\022\346\001\n" - + "\020ReadChangeStream\022+.google.bigtable.v2.ReadCha" - + "ngeStreamRequest\032,.google.bigtable.v2.ReadChangeStreamResponse\"u\332A\n" - + "table_name\332A\031table_name,app_profile_id\202\323\344\223\002F\"A/v2/{ta" - + "ble_name=projects/*/instances/*/tables/*}:readChangeStream:\001*0\001\022\251\002\n" - + "\014PrepareQuery\022\'.google.bigtable.v2.PrepareQueryReques" - + "t\032(.google.bigtable.v2.PrepareQueryRespo" - + "nse\"\305\001\332A\023instance_name,query\332A\"instance_" - + "name,query,app_profile_id\202\323\344\223\002<\"7/v2/{in" - + "stance_name=projects/*/instances/*}:prepareQuery:\001*\212\323\344\223\002B\022.\n\r" + + "\024aut" + + "horized_view_name\022/{table_name=projects/*/instances/*/tables/*}/**\022\273\002\n" + + "%GenerateInitialChangeStreamPartitions\022@.google.bi" + + "gtable.v2.GenerateInitialChangeStreamPartitionsRequest\032A.google.bigtable.v2.Gene" + + "rateInitialChangeStreamPartitionsResponse\"\212\001\332A\n" + + "table_name\332A\031table_name,app_profi" + + "le_id\202\323\344\223\002[\"V/v2/{table_name=projects/*/" + + "instances/*/tables/*}:generateInitialChangeStreamPartitions:\001*0\001\022\346\001\n" + + "\020ReadChangeStream\022+.google.bigtable.v2.ReadChangeStr" + + "eamRequest\032,.google.bigtable.v2.ReadChangeStreamResponse\"u\332A\n" + + "table_name\332A\031table_name,app_profile_id\202\323\344\223\002F\"A/v2/{table_na" + + "me=projects/*/instances/*/tables/*}:readChangeStream:\001*0\001\022\251\002\n" + + "\014PrepareQuery\022\'.google.bigtable.v2.PrepareQueryRequest\032(.go" + + "ogle.bigtable.v2.PrepareQueryResponse\"\305\001" + + "\332A\023instance_name,query\332A\"instance_name,q" + + "uery,app_profile_id\202\323\344\223\002<\"7/v2/{instance" + + "_name=projects/*/instances/*}:prepareQuery:\001*\212\323\344\223\002B\022.\n\r" + "instance_name\022\035{name=projects/*/instances/*}\022\020\n" + "\016app_profile_id\022\253\002\n" - + "\014ExecuteQuery\022\'.google.bigtable.v2.ExecuteQueryRequest\032(.google.bigtable." - + "v2.ExecuteQueryResponse\"\305\001\332A\023instance_na" - + "me,query\332A\"instance_name,query,app_profi" - + "le_id\202\323\344\223\002<\"7/v2/{instance_name=projects/*/instances/*}:executeQuery:\001*\212\323\344\223\002B\022.\n" - + "\r" + + "\014ExecuteQuery\022\'.google.bigtable.v2.Exec" + + "uteQueryRequest\032(.google.bigtable.v2.Exe" + + "cuteQueryResponse\"\305\001\332A\023instance_name,que" + + "ry\332A\"instance_name,query,app_profile_id\202" + + "\323\344\223\002<\"7/v2/{instance_name=projects/*/instances/*}:executeQuery:\001*\212\323\344\223\002B\022.\n\r" + "instance_name\022\035{name=projects/*/instances/*}\022\020\n" - + "\016app_profile_id0\001\032\333\002\312A\027bigtable." - + "googleapis.com\322A\275\002https://www.googleapis" - + ".com/auth/bigtable.data,https://www.googleapis.com/auth/bigtable.data.readonly,h" - + "ttps://www.googleapis.com/auth/cloud-bigtable.data,https://www.googleapis.com/au" - + "th/cloud-bigtable.data.readonly,https://www.googleapis.com/auth/cloud-platform,h" - + "ttps://www.googleapis.com/auth/cloud-platform.read-onlyB\365\004\n" + + "\016app_profile_id0\001\022v\n" + + "\026GetClientConfiguration\0221.google.bigtable.v2.GetClientConf" + + "igurationRequest\032\'.google.bigtable.v2.ClientConfiguration\"\000\022`\n" + + "\tOpenTable\022\".googl" + + "e.bigtable.v2.SessionRequest\032#.google.bigtable.v2.SessionResponse\"\006\240\320\245\216\004\001(\0010\001\022i\n" + + "\022OpenAuthorizedView\022\".google.bigtable.v2" + + ".SessionRequest\032#.google.bigtable.v2.SessionResponse\"\006\240\320\245\216\004\002(\0010\001\022k\n" + + "\024OpenMaterializedView\022\".google.bigtable.v2.SessionReq" + + "uest\032#.google.bigtable.v2.SessionRespons" + + "e\"\006\240\320\245\216\004\003(\0010\001\032\333\002\312A\027bigtable.googleapis.c" + + "om\322A\275\002https://www.googleapis.com/auth/bi" + + "gtable.data,https://www.googleapis.com/auth/bigtable.data.readonly,https://www.g" + + "oogleapis.com/auth/cloud-bigtable.data,https://www.googleapis.com/auth/cloud-big" + + "table.data.readonly,https://www.googleapis.com/auth/cloud-platform,https://www.g" + + "oogleapis.com/auth/cloud-platform.read-onlyB\365\004\n" + "\026com.google.bigtable.v2B\r" - + "BigtableProtoP\001Z8cloud.google.com/go" - + "/bigtable/apiv2/bigtablepb;bigtablepb\252\002\030" - + "Google.Cloud.Bigtable.V2\312\002\030Google\\Cloud\\" - + "Bigtable\\V2\352\002\033Google::Cloud::Bigtable::V2\352AP\n" - + "%bigtableadmin.googleapis.com/Insta" - + "nce\022\'projects/{project}/instances/{instance}\352A\\\n" - + "\"bigtableadmin.googleapis.com/Ta" - + "ble\0226projects/{project}/instances/{instance}/tables/{table}\352A\207\001\n" - + "+bigtableadmin.googleapis.com/AuthorizedView\022Xprojects/{" - + "project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}\352A~\n" - + "-bigtableadmin.googleapis.com/MaterializedView\022Mprojects/{project}/instances/{" - + "instance}/materializedViews/{materialized_view}b\006proto3" + + "BigtableProtoP\001Z8cloud.google.com/go/bigtable/ap" + + "iv2/bigtablepb;bigtablepb\252\002\030Google.Cloud" + + ".Bigtable.V2\312\002\030Google\\Cloud\\Bigtable\\V2\352\002\033Google::Cloud::Bigtable::V2\352AP\n" + + "%bigtab" + + "leadmin.googleapis.com/Instance\022\'projects/{project}/instances/{instance}\352A\\\n" + + "\"bigtableadmin.googleapis.com/Table\0226project" + + "s/{project}/instances/{instance}/tables/{table}\352A\207\001\n" + + "+bigtableadmin.googleapis.com/AuthorizedView\022Xprojects/{project}/ins" + + "tances/{instance}/tables/{table}/authorizedViews/{authorized_view}\352A~\n" + + "-bigtableadmin.googleapis.com/MaterializedView\022Mpr" + + "ojects/{project}/instances/{instance}/materializedViews/{materialized_view}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -520,6 +527,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.RoutingProto.getDescriptor(), com.google.bigtable.v2.DataProto.getDescriptor(), com.google.bigtable.v2.RequestStatsProto.getDescriptor(), + com.google.bigtable.v2.SessionProto.getDescriptor(), com.google.bigtable.v2.TypesProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -844,6 +852,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.RoutingProto.getDescriptor(); com.google.bigtable.v2.DataProto.getDescriptor(); com.google.bigtable.v2.RequestStatsProto.getDescriptor(); + com.google.bigtable.v2.SessionProto.getDescriptor(); com.google.bigtable.v2.TypesProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); @@ -859,6 +868,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); registry.add(com.google.api.RoutingProto.routing); + registry.add(com.google.bigtable.v2.SessionProto.rpcSessionType); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ClientConfiguration.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ClientConfiguration.java new file mode 100644 index 0000000000..0e8c7601b3 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ClientConfiguration.java @@ -0,0 +1,3171 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Configuration for the Session API. Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.ClientConfiguration} + */ +@com.google.protobuf.Generated +public final class ClientConfiguration extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.ClientConfiguration) + ClientConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ClientConfiguration"); + } + + // Use ClientConfiguration.newBuilder() to construct. + private ClientConfiguration(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ClientConfiguration() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ClientConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ClientConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.ClientConfiguration.class, + com.google.bigtable.v2.ClientConfiguration.Builder.class); + } + + public interface PollingConfigurationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.ClientConfiguration.PollingConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A duration describing the time between GetClientConfiguration RPCs.
+     * Only strictly positive values are permissible.
+     * 
+ * + * .google.protobuf.Duration polling_interval = 1; + * + * @return Whether the pollingInterval field is set. + */ + boolean hasPollingInterval(); + + /** + * + * + *
+     * A duration describing the time between GetClientConfiguration RPCs.
+     * Only strictly positive values are permissible.
+     * 
+ * + * .google.protobuf.Duration polling_interval = 1; + * + * @return The pollingInterval. + */ + com.google.protobuf.Duration getPollingInterval(); + + /** + * + * + *
+     * A duration describing the time between GetClientConfiguration RPCs.
+     * Only strictly positive values are permissible.
+     * 
+ * + * .google.protobuf.Duration polling_interval = 1; + */ + com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder(); + + /** + * + * + *
+     * How long the client should consider the configuration it receives from
+     * GetClientConfiguration valid for. Once this duration has passed, the
+     * client should consider the configuration invalid and must either:
+     * - Get a new configuration from GetClientConfiguration
+     * - Or if it cannot, use a sane default configuration
+     *
+     * This duration will be at least as long as the polling interval.
+     * 
+ * + * .google.protobuf.Duration validity_duration = 2; + * + * @return Whether the validityDuration field is set. + */ + boolean hasValidityDuration(); + + /** + * + * + *
+     * How long the client should consider the configuration it receives from
+     * GetClientConfiguration valid for. Once this duration has passed, the
+     * client should consider the configuration invalid and must either:
+     * - Get a new configuration from GetClientConfiguration
+     * - Or if it cannot, use a sane default configuration
+     *
+     * This duration will be at least as long as the polling interval.
+     * 
+ * + * .google.protobuf.Duration validity_duration = 2; + * + * @return The validityDuration. + */ + com.google.protobuf.Duration getValidityDuration(); + + /** + * + * + *
+     * How long the client should consider the configuration it receives from
+     * GetClientConfiguration valid for. Once this duration has passed, the
+     * client should consider the configuration invalid and must either:
+     * - Get a new configuration from GetClientConfiguration
+     * - Or if it cannot, use a sane default configuration
+     *
+     * This duration will be at least as long as the polling interval.
+     * 
+ * + * .google.protobuf.Duration validity_duration = 2; + */ + com.google.protobuf.DurationOrBuilder getValidityDurationOrBuilder(); + + /** + * + * + *
+     * Number of times the client should retry a failed
+     * GetClientConfiguration RPC per polling interval before giving up.
+     * 
+ * + * int32 max_rpc_retry_count = 6; + * + * @return The maxRpcRetryCount. + */ + int getMaxRpcRetryCount(); + } + + /** Protobuf type {@code google.bigtable.v2.ClientConfiguration.PollingConfiguration} */ + public static final class PollingConfiguration extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.ClientConfiguration.PollingConfiguration) + PollingConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PollingConfiguration"); + } + + // Use PollingConfiguration.newBuilder() to construct. + private PollingConfiguration(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PollingConfiguration() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ClientConfiguration_PollingConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ClientConfiguration_PollingConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.class, + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.Builder.class); + } + + private int bitField0_; + public static final int POLLING_INTERVAL_FIELD_NUMBER = 1; + private com.google.protobuf.Duration pollingInterval_; + + /** + * + * + *
+     * A duration describing the time between GetClientConfiguration RPCs.
+     * Only strictly positive values are permissible.
+     * 
+ * + * .google.protobuf.Duration polling_interval = 1; + * + * @return Whether the pollingInterval field is set. + */ + @java.lang.Override + public boolean hasPollingInterval() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * A duration describing the time between GetClientConfiguration RPCs.
+     * Only strictly positive values are permissible.
+     * 
+ * + * .google.protobuf.Duration polling_interval = 1; + * + * @return The pollingInterval. + */ + @java.lang.Override + public com.google.protobuf.Duration getPollingInterval() { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } + + /** + * + * + *
+     * A duration describing the time between GetClientConfiguration RPCs.
+     * Only strictly positive values are permissible.
+     * 
+ * + * .google.protobuf.Duration polling_interval = 1; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder() { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } + + public static final int VALIDITY_DURATION_FIELD_NUMBER = 2; + private com.google.protobuf.Duration validityDuration_; + + /** + * + * + *
+     * How long the client should consider the configuration it receives from
+     * GetClientConfiguration valid for. Once this duration has passed, the
+     * client should consider the configuration invalid and must either:
+     * - Get a new configuration from GetClientConfiguration
+     * - Or if it cannot, use a sane default configuration
+     *
+     * This duration will be at least as long as the polling interval.
+     * 
+ * + * .google.protobuf.Duration validity_duration = 2; + * + * @return Whether the validityDuration field is set. + */ + @java.lang.Override + public boolean hasValidityDuration() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * How long the client should consider the configuration it receives from
+     * GetClientConfiguration valid for. Once this duration has passed, the
+     * client should consider the configuration invalid and must either:
+     * - Get a new configuration from GetClientConfiguration
+     * - Or if it cannot, use a sane default configuration
+     *
+     * This duration will be at least as long as the polling interval.
+     * 
+ * + * .google.protobuf.Duration validity_duration = 2; + * + * @return The validityDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getValidityDuration() { + return validityDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : validityDuration_; + } + + /** + * + * + *
+     * How long the client should consider the configuration it receives from
+     * GetClientConfiguration valid for. Once this duration has passed, the
+     * client should consider the configuration invalid and must either:
+     * - Get a new configuration from GetClientConfiguration
+     * - Or if it cannot, use a sane default configuration
+     *
+     * This duration will be at least as long as the polling interval.
+     * 
+ * + * .google.protobuf.Duration validity_duration = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getValidityDurationOrBuilder() { + return validityDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : validityDuration_; + } + + public static final int MAX_RPC_RETRY_COUNT_FIELD_NUMBER = 6; + private int maxRpcRetryCount_ = 0; + + /** + * + * + *
+     * Number of times the client should retry a failed
+     * GetClientConfiguration RPC per polling interval before giving up.
+     * 
+ * + * int32 max_rpc_retry_count = 6; + * + * @return The maxRpcRetryCount. + */ + @java.lang.Override + public int getMaxRpcRetryCount() { + return maxRpcRetryCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPollingInterval()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getValidityDuration()); + } + if (maxRpcRetryCount_ != 0) { + output.writeInt32(6, maxRpcRetryCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPollingInterval()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValidityDuration()); + } + if (maxRpcRetryCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, maxRpcRetryCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.ClientConfiguration.PollingConfiguration)) { + return super.equals(obj); + } + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration other = + (com.google.bigtable.v2.ClientConfiguration.PollingConfiguration) obj; + + if (hasPollingInterval() != other.hasPollingInterval()) return false; + if (hasPollingInterval()) { + if (!getPollingInterval().equals(other.getPollingInterval())) return false; + } + if (hasValidityDuration() != other.hasValidityDuration()) return false; + if (hasValidityDuration()) { + if (!getValidityDuration().equals(other.getValidityDuration())) return false; + } + if (getMaxRpcRetryCount() != other.getMaxRpcRetryCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPollingInterval()) { + hash = (37 * hash) + POLLING_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getPollingInterval().hashCode(); + } + if (hasValidityDuration()) { + hash = (37 * hash) + VALIDITY_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getValidityDuration().hashCode(); + } + hash = (37 * hash) + MAX_RPC_RETRY_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxRpcRetryCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.ClientConfiguration.PollingConfiguration parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ClientConfiguration.PollingConfiguration parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ClientConfiguration.PollingConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ClientConfiguration.PollingConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ClientConfiguration.PollingConfiguration parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ClientConfiguration.PollingConfiguration parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ClientConfiguration.PollingConfiguration parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ClientConfiguration.PollingConfiguration parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.ClientConfiguration.PollingConfiguration + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ClientConfiguration.PollingConfiguration + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.ClientConfiguration.PollingConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ClientConfiguration.PollingConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** Protobuf type {@code google.bigtable.v2.ClientConfiguration.PollingConfiguration} */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.ClientConfiguration.PollingConfiguration) + com.google.bigtable.v2.ClientConfiguration.PollingConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ClientConfiguration_PollingConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ClientConfiguration_PollingConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.class, + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.Builder.class); + } + + // Construct using + // com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPollingIntervalFieldBuilder(); + internalGetValidityDurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pollingInterval_ = null; + if (pollingIntervalBuilder_ != null) { + pollingIntervalBuilder_.dispose(); + pollingIntervalBuilder_ = null; + } + validityDuration_ = null; + if (validityDurationBuilder_ != null) { + validityDurationBuilder_.dispose(); + validityDurationBuilder_ = null; + } + maxRpcRetryCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ClientConfiguration_PollingConfiguration_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.ClientConfiguration.PollingConfiguration + getDefaultInstanceForType() { + return com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.ClientConfiguration.PollingConfiguration build() { + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.ClientConfiguration.PollingConfiguration buildPartial() { + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration result = + new com.google.bigtable.v2.ClientConfiguration.PollingConfiguration(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pollingInterval_ = + pollingIntervalBuilder_ == null ? pollingInterval_ : pollingIntervalBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validityDuration_ = + validityDurationBuilder_ == null + ? validityDuration_ + : validityDurationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxRpcRetryCount_ = maxRpcRetryCount_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.ClientConfiguration.PollingConfiguration) { + return mergeFrom((com.google.bigtable.v2.ClientConfiguration.PollingConfiguration) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration other) { + if (other + == com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.getDefaultInstance()) + return this; + if (other.hasPollingInterval()) { + mergePollingInterval(other.getPollingInterval()); + } + if (other.hasValidityDuration()) { + mergeValidityDuration(other.getValidityDuration()); + } + if (other.getMaxRpcRetryCount() != 0) { + setMaxRpcRetryCount(other.getMaxRpcRetryCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetPollingIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetValidityDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 48: + { + maxRpcRetryCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Duration pollingInterval_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + pollingIntervalBuilder_; + + /** + * + * + *
+       * A duration describing the time between GetClientConfiguration RPCs.
+       * Only strictly positive values are permissible.
+       * 
+ * + * .google.protobuf.Duration polling_interval = 1; + * + * @return Whether the pollingInterval field is set. + */ + public boolean hasPollingInterval() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * A duration describing the time between GetClientConfiguration RPCs.
+       * Only strictly positive values are permissible.
+       * 
+ * + * .google.protobuf.Duration polling_interval = 1; + * + * @return The pollingInterval. + */ + public com.google.protobuf.Duration getPollingInterval() { + if (pollingIntervalBuilder_ == null) { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } else { + return pollingIntervalBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * A duration describing the time between GetClientConfiguration RPCs.
+       * Only strictly positive values are permissible.
+       * 
+ * + * .google.protobuf.Duration polling_interval = 1; + */ + public Builder setPollingInterval(com.google.protobuf.Duration value) { + if (pollingIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pollingInterval_ = value; + } else { + pollingIntervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * A duration describing the time between GetClientConfiguration RPCs.
+       * Only strictly positive values are permissible.
+       * 
+ * + * .google.protobuf.Duration polling_interval = 1; + */ + public Builder setPollingInterval(com.google.protobuf.Duration.Builder builderForValue) { + if (pollingIntervalBuilder_ == null) { + pollingInterval_ = builderForValue.build(); + } else { + pollingIntervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * A duration describing the time between GetClientConfiguration RPCs.
+       * Only strictly positive values are permissible.
+       * 
+ * + * .google.protobuf.Duration polling_interval = 1; + */ + public Builder mergePollingInterval(com.google.protobuf.Duration value) { + if (pollingIntervalBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && pollingInterval_ != null + && pollingInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + getPollingIntervalBuilder().mergeFrom(value); + } else { + pollingInterval_ = value; + } + } else { + pollingIntervalBuilder_.mergeFrom(value); + } + if (pollingInterval_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * A duration describing the time between GetClientConfiguration RPCs.
+       * Only strictly positive values are permissible.
+       * 
+ * + * .google.protobuf.Duration polling_interval = 1; + */ + public Builder clearPollingInterval() { + bitField0_ = (bitField0_ & ~0x00000001); + pollingInterval_ = null; + if (pollingIntervalBuilder_ != null) { + pollingIntervalBuilder_.dispose(); + pollingIntervalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * A duration describing the time between GetClientConfiguration RPCs.
+       * Only strictly positive values are permissible.
+       * 
+ * + * .google.protobuf.Duration polling_interval = 1; + */ + public com.google.protobuf.Duration.Builder getPollingIntervalBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetPollingIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * A duration describing the time between GetClientConfiguration RPCs.
+       * Only strictly positive values are permissible.
+       * 
+ * + * .google.protobuf.Duration polling_interval = 1; + */ + public com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder() { + if (pollingIntervalBuilder_ != null) { + return pollingIntervalBuilder_.getMessageOrBuilder(); + } else { + return pollingInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pollingInterval_; + } + } + + /** + * + * + *
+       * A duration describing the time between GetClientConfiguration RPCs.
+       * Only strictly positive values are permissible.
+       * 
+ * + * .google.protobuf.Duration polling_interval = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetPollingIntervalFieldBuilder() { + if (pollingIntervalBuilder_ == null) { + pollingIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getPollingInterval(), getParentForChildren(), isClean()); + pollingInterval_ = null; + } + return pollingIntervalBuilder_; + } + + private com.google.protobuf.Duration validityDuration_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + validityDurationBuilder_; + + /** + * + * + *
+       * How long the client should consider the configuration it receives from
+       * GetClientConfiguration valid for. Once this duration has passed, the
+       * client should consider the configuration invalid and must either:
+       * - Get a new configuration from GetClientConfiguration
+       * - Or if it cannot, use a sane default configuration
+       *
+       * This duration will be at least as long as the polling interval.
+       * 
+ * + * .google.protobuf.Duration validity_duration = 2; + * + * @return Whether the validityDuration field is set. + */ + public boolean hasValidityDuration() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * How long the client should consider the configuration it receives from
+       * GetClientConfiguration valid for. Once this duration has passed, the
+       * client should consider the configuration invalid and must either:
+       * - Get a new configuration from GetClientConfiguration
+       * - Or if it cannot, use a sane default configuration
+       *
+       * This duration will be at least as long as the polling interval.
+       * 
+ * + * .google.protobuf.Duration validity_duration = 2; + * + * @return The validityDuration. + */ + public com.google.protobuf.Duration getValidityDuration() { + if (validityDurationBuilder_ == null) { + return validityDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : validityDuration_; + } else { + return validityDurationBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * How long the client should consider the configuration it receives from
+       * GetClientConfiguration valid for. Once this duration has passed, the
+       * client should consider the configuration invalid and must either:
+       * - Get a new configuration from GetClientConfiguration
+       * - Or if it cannot, use a sane default configuration
+       *
+       * This duration will be at least as long as the polling interval.
+       * 
+ * + * .google.protobuf.Duration validity_duration = 2; + */ + public Builder setValidityDuration(com.google.protobuf.Duration value) { + if (validityDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + validityDuration_ = value; + } else { + validityDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * How long the client should consider the configuration it receives from
+       * GetClientConfiguration valid for. Once this duration has passed, the
+       * client should consider the configuration invalid and must either:
+       * - Get a new configuration from GetClientConfiguration
+       * - Or if it cannot, use a sane default configuration
+       *
+       * This duration will be at least as long as the polling interval.
+       * 
+ * + * .google.protobuf.Duration validity_duration = 2; + */ + public Builder setValidityDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (validityDurationBuilder_ == null) { + validityDuration_ = builderForValue.build(); + } else { + validityDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * How long the client should consider the configuration it receives from
+       * GetClientConfiguration valid for. Once this duration has passed, the
+       * client should consider the configuration invalid and must either:
+       * - Get a new configuration from GetClientConfiguration
+       * - Or if it cannot, use a sane default configuration
+       *
+       * This duration will be at least as long as the polling interval.
+       * 
+ * + * .google.protobuf.Duration validity_duration = 2; + */ + public Builder mergeValidityDuration(com.google.protobuf.Duration value) { + if (validityDurationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && validityDuration_ != null + && validityDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getValidityDurationBuilder().mergeFrom(value); + } else { + validityDuration_ = value; + } + } else { + validityDurationBuilder_.mergeFrom(value); + } + if (validityDuration_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * How long the client should consider the configuration it receives from
+       * GetClientConfiguration valid for. Once this duration has passed, the
+       * client should consider the configuration invalid and must either:
+       * - Get a new configuration from GetClientConfiguration
+       * - Or if it cannot, use a sane default configuration
+       *
+       * This duration will be at least as long as the polling interval.
+       * 
+ * + * .google.protobuf.Duration validity_duration = 2; + */ + public Builder clearValidityDuration() { + bitField0_ = (bitField0_ & ~0x00000002); + validityDuration_ = null; + if (validityDurationBuilder_ != null) { + validityDurationBuilder_.dispose(); + validityDurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * How long the client should consider the configuration it receives from
+       * GetClientConfiguration valid for. Once this duration has passed, the
+       * client should consider the configuration invalid and must either:
+       * - Get a new configuration from GetClientConfiguration
+       * - Or if it cannot, use a sane default configuration
+       *
+       * This duration will be at least as long as the polling interval.
+       * 
+ * + * .google.protobuf.Duration validity_duration = 2; + */ + public com.google.protobuf.Duration.Builder getValidityDurationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetValidityDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * How long the client should consider the configuration it receives from
+       * GetClientConfiguration valid for. Once this duration has passed, the
+       * client should consider the configuration invalid and must either:
+       * - Get a new configuration from GetClientConfiguration
+       * - Or if it cannot, use a sane default configuration
+       *
+       * This duration will be at least as long as the polling interval.
+       * 
+ * + * .google.protobuf.Duration validity_duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getValidityDurationOrBuilder() { + if (validityDurationBuilder_ != null) { + return validityDurationBuilder_.getMessageOrBuilder(); + } else { + return validityDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : validityDuration_; + } + } + + /** + * + * + *
+       * How long the client should consider the configuration it receives from
+       * GetClientConfiguration valid for. Once this duration has passed, the
+       * client should consider the configuration invalid and must either:
+       * - Get a new configuration from GetClientConfiguration
+       * - Or if it cannot, use a sane default configuration
+       *
+       * This duration will be at least as long as the polling interval.
+       * 
+ * + * .google.protobuf.Duration validity_duration = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetValidityDurationFieldBuilder() { + if (validityDurationBuilder_ == null) { + validityDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getValidityDuration(), getParentForChildren(), isClean()); + validityDuration_ = null; + } + return validityDurationBuilder_; + } + + private int maxRpcRetryCount_; + + /** + * + * + *
+       * Number of times the client should retry a failed
+       * GetClientConfiguration RPC per polling interval before giving up.
+       * 
+ * + * int32 max_rpc_retry_count = 6; + * + * @return The maxRpcRetryCount. + */ + @java.lang.Override + public int getMaxRpcRetryCount() { + return maxRpcRetryCount_; + } + + /** + * + * + *
+       * Number of times the client should retry a failed
+       * GetClientConfiguration RPC per polling interval before giving up.
+       * 
+ * + * int32 max_rpc_retry_count = 6; + * + * @param value The maxRpcRetryCount to set. + * @return This builder for chaining. + */ + public Builder setMaxRpcRetryCount(int value) { + + maxRpcRetryCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Number of times the client should retry a failed
+       * GetClientConfiguration RPC per polling interval before giving up.
+       * 
+ * + * int32 max_rpc_retry_count = 6; + * + * @return This builder for chaining. + */ + public Builder clearMaxRpcRetryCount() { + bitField0_ = (bitField0_ & ~0x00000004); + maxRpcRetryCount_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.ClientConfiguration.PollingConfiguration) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.ClientConfiguration.PollingConfiguration) + private static final com.google.bigtable.v2.ClientConfiguration.PollingConfiguration + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.ClientConfiguration.PollingConfiguration(); + } + + public static com.google.bigtable.v2.ClientConfiguration.PollingConfiguration + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PollingConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.ClientConfiguration.PollingConfiguration + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int pollingCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object polling_; + + public enum PollingCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STOP_POLLING(3), + @java.lang.Deprecated + POLLING_INTERVAL(4), + POLLING_CONFIGURATION(5), + POLLING_NOT_SET(0); + private final int value; + + private PollingCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PollingCase valueOf(int value) { + return forNumber(value); + } + + public static PollingCase forNumber(int value) { + switch (value) { + case 3: + return STOP_POLLING; + case 4: + return POLLING_INTERVAL; + case 5: + return POLLING_CONFIGURATION; + case 0: + return POLLING_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PollingCase getPollingCase() { + return PollingCase.forNumber(pollingCase_); + } + + public static final int SESSION_CONFIGURATION_FIELD_NUMBER = 2; + private com.google.bigtable.v2.SessionClientConfiguration sessionConfiguration_; + + /** + * + * + *
+   * The configuration for Bigtable Sessions.
+   * 
+ * + * .google.bigtable.v2.SessionClientConfiguration session_configuration = 2; + * + * @return Whether the sessionConfiguration field is set. + */ + @java.lang.Override + public boolean hasSessionConfiguration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The configuration for Bigtable Sessions.
+   * 
+ * + * .google.bigtable.v2.SessionClientConfiguration session_configuration = 2; + * + * @return The sessionConfiguration. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration getSessionConfiguration() { + return sessionConfiguration_ == null + ? com.google.bigtable.v2.SessionClientConfiguration.getDefaultInstance() + : sessionConfiguration_; + } + + /** + * + * + *
+   * The configuration for Bigtable Sessions.
+   * 
+ * + * .google.bigtable.v2.SessionClientConfiguration session_configuration = 2; + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfigurationOrBuilder + getSessionConfigurationOrBuilder() { + return sessionConfiguration_ == null + ? com.google.bigtable.v2.SessionClientConfiguration.getDefaultInstance() + : sessionConfiguration_; + } + + public static final int STOP_POLLING_FIELD_NUMBER = 3; + + /** + * + * + *
+   * If the client should cease to check for new configurations, e.g. a
+   * backstop to prevent excessive GetClientConfiguration RPCs.
+   * 
+ * + * bool stop_polling = 3; + * + * @return Whether the stopPolling field is set. + */ + @java.lang.Override + public boolean hasStopPolling() { + return pollingCase_ == 3; + } + + /** + * + * + *
+   * If the client should cease to check for new configurations, e.g. a
+   * backstop to prevent excessive GetClientConfiguration RPCs.
+   * 
+ * + * bool stop_polling = 3; + * + * @return The stopPolling. + */ + @java.lang.Override + public boolean getStopPolling() { + if (pollingCase_ == 3) { + return (java.lang.Boolean) polling_; + } + return false; + } + + public static final int POLLING_INTERVAL_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Deprecated, prerfer polling_configuration.
+   *
+   * A duration describing the time between GetClientConfiguration RPCs.
+   * Only strictly positive values are permissible.
+   * 
+ * + * .google.protobuf.Duration polling_interval = 4 [deprecated = true]; + * + * @deprecated google.bigtable.v2.ClientConfiguration.polling_interval is deprecated. See + * google/bigtable/v2/session.proto;l=288 + * @return Whether the pollingInterval field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasPollingInterval() { + return pollingCase_ == 4; + } + + /** + * + * + *
+   * Deprecated, prerfer polling_configuration.
+   *
+   * A duration describing the time between GetClientConfiguration RPCs.
+   * Only strictly positive values are permissible.
+   * 
+ * + * .google.protobuf.Duration polling_interval = 4 [deprecated = true]; + * + * @deprecated google.bigtable.v2.ClientConfiguration.polling_interval is deprecated. See + * google/bigtable/v2/session.proto;l=288 + * @return The pollingInterval. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.Duration getPollingInterval() { + if (pollingCase_ == 4) { + return (com.google.protobuf.Duration) polling_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + /** + * + * + *
+   * Deprecated, prerfer polling_configuration.
+   *
+   * A duration describing the time between GetClientConfiguration RPCs.
+   * Only strictly positive values are permissible.
+   * 
+ * + * .google.protobuf.Duration polling_interval = 4 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder() { + if (pollingCase_ == 4) { + return (com.google.protobuf.Duration) polling_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + public static final int POLLING_CONFIGURATION_FIELD_NUMBER = 5; + + /** + * + * + *
+   * If the client should continue to check for new configurations.
+   * 
+ * + * .google.bigtable.v2.ClientConfiguration.PollingConfiguration polling_configuration = 5; + * + * + * @return Whether the pollingConfiguration field is set. + */ + @java.lang.Override + public boolean hasPollingConfiguration() { + return pollingCase_ == 5; + } + + /** + * + * + *
+   * If the client should continue to check for new configurations.
+   * 
+ * + * .google.bigtable.v2.ClientConfiguration.PollingConfiguration polling_configuration = 5; + * + * + * @return The pollingConfiguration. + */ + @java.lang.Override + public com.google.bigtable.v2.ClientConfiguration.PollingConfiguration getPollingConfiguration() { + if (pollingCase_ == 5) { + return (com.google.bigtable.v2.ClientConfiguration.PollingConfiguration) polling_; + } + return com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.getDefaultInstance(); + } + + /** + * + * + *
+   * If the client should continue to check for new configurations.
+   * 
+ * + * .google.bigtable.v2.ClientConfiguration.PollingConfiguration polling_configuration = 5; + * + */ + @java.lang.Override + public com.google.bigtable.v2.ClientConfiguration.PollingConfigurationOrBuilder + getPollingConfigurationOrBuilder() { + if (pollingCase_ == 5) { + return (com.google.bigtable.v2.ClientConfiguration.PollingConfiguration) polling_; + } + return com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.getDefaultInstance(); + } + + public static final int TELEMETRY_CONFIGURATION_FIELD_NUMBER = 6; + private com.google.bigtable.v2.TelemetryConfiguration telemetryConfiguration_; + + /** + * + * + *
+   * Configuration for telemetry.
+   * 
+ * + * .google.bigtable.v2.TelemetryConfiguration telemetry_configuration = 6; + * + * @return Whether the telemetryConfiguration field is set. + */ + @java.lang.Override + public boolean hasTelemetryConfiguration() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Configuration for telemetry.
+   * 
+ * + * .google.bigtable.v2.TelemetryConfiguration telemetry_configuration = 6; + * + * @return The telemetryConfiguration. + */ + @java.lang.Override + public com.google.bigtable.v2.TelemetryConfiguration getTelemetryConfiguration() { + return telemetryConfiguration_ == null + ? com.google.bigtable.v2.TelemetryConfiguration.getDefaultInstance() + : telemetryConfiguration_; + } + + /** + * + * + *
+   * Configuration for telemetry.
+   * 
+ * + * .google.bigtable.v2.TelemetryConfiguration telemetry_configuration = 6; + */ + @java.lang.Override + public com.google.bigtable.v2.TelemetryConfigurationOrBuilder + getTelemetryConfigurationOrBuilder() { + return telemetryConfiguration_ == null + ? com.google.bigtable.v2.TelemetryConfiguration.getDefaultInstance() + : telemetryConfiguration_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSessionConfiguration()); + } + if (pollingCase_ == 3) { + output.writeBool(3, (boolean) ((java.lang.Boolean) polling_)); + } + if (pollingCase_ == 4) { + output.writeMessage(4, (com.google.protobuf.Duration) polling_); + } + if (pollingCase_ == 5) { + output.writeMessage( + 5, (com.google.bigtable.v2.ClientConfiguration.PollingConfiguration) polling_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getTelemetryConfiguration()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSessionConfiguration()); + } + if (pollingCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, (boolean) ((java.lang.Boolean) polling_)); + } + if (pollingCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.protobuf.Duration) polling_); + } + if (pollingCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.bigtable.v2.ClientConfiguration.PollingConfiguration) polling_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTelemetryConfiguration()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.ClientConfiguration)) { + return super.equals(obj); + } + com.google.bigtable.v2.ClientConfiguration other = + (com.google.bigtable.v2.ClientConfiguration) obj; + + if (hasSessionConfiguration() != other.hasSessionConfiguration()) return false; + if (hasSessionConfiguration()) { + if (!getSessionConfiguration().equals(other.getSessionConfiguration())) return false; + } + if (hasTelemetryConfiguration() != other.hasTelemetryConfiguration()) return false; + if (hasTelemetryConfiguration()) { + if (!getTelemetryConfiguration().equals(other.getTelemetryConfiguration())) return false; + } + if (!getPollingCase().equals(other.getPollingCase())) return false; + switch (pollingCase_) { + case 3: + if (getStopPolling() != other.getStopPolling()) return false; + break; + case 4: + if (!getPollingInterval().equals(other.getPollingInterval())) return false; + break; + case 5: + if (!getPollingConfiguration().equals(other.getPollingConfiguration())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSessionConfiguration()) { + hash = (37 * hash) + SESSION_CONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getSessionConfiguration().hashCode(); + } + if (hasTelemetryConfiguration()) { + hash = (37 * hash) + TELEMETRY_CONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getTelemetryConfiguration().hashCode(); + } + switch (pollingCase_) { + case 3: + hash = (37 * hash) + STOP_POLLING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStopPolling()); + break; + case 4: + hash = (37 * hash) + POLLING_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getPollingInterval().hashCode(); + break; + case 5: + hash = (37 * hash) + POLLING_CONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getPollingConfiguration().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.ClientConfiguration parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ClientConfiguration parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ClientConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ClientConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ClientConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ClientConfiguration parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ClientConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ClientConfiguration parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.ClientConfiguration parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ClientConfiguration parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.ClientConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ClientConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.ClientConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for the Session API. Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.ClientConfiguration} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.ClientConfiguration) + com.google.bigtable.v2.ClientConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ClientConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ClientConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.ClientConfiguration.class, + com.google.bigtable.v2.ClientConfiguration.Builder.class); + } + + // Construct using com.google.bigtable.v2.ClientConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSessionConfigurationFieldBuilder(); + internalGetTelemetryConfigurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sessionConfiguration_ = null; + if (sessionConfigurationBuilder_ != null) { + sessionConfigurationBuilder_.dispose(); + sessionConfigurationBuilder_ = null; + } + if (pollingIntervalBuilder_ != null) { + pollingIntervalBuilder_.clear(); + } + if (pollingConfigurationBuilder_ != null) { + pollingConfigurationBuilder_.clear(); + } + telemetryConfiguration_ = null; + if (telemetryConfigurationBuilder_ != null) { + telemetryConfigurationBuilder_.dispose(); + telemetryConfigurationBuilder_ = null; + } + pollingCase_ = 0; + polling_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ClientConfiguration_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.ClientConfiguration getDefaultInstanceForType() { + return com.google.bigtable.v2.ClientConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.ClientConfiguration build() { + com.google.bigtable.v2.ClientConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.ClientConfiguration buildPartial() { + com.google.bigtable.v2.ClientConfiguration result = + new com.google.bigtable.v2.ClientConfiguration(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.ClientConfiguration result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sessionConfiguration_ = + sessionConfigurationBuilder_ == null + ? sessionConfiguration_ + : sessionConfigurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.telemetryConfiguration_ = + telemetryConfigurationBuilder_ == null + ? telemetryConfiguration_ + : telemetryConfigurationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.bigtable.v2.ClientConfiguration result) { + result.pollingCase_ = pollingCase_; + result.polling_ = this.polling_; + if (pollingCase_ == 4 && pollingIntervalBuilder_ != null) { + result.polling_ = pollingIntervalBuilder_.build(); + } + if (pollingCase_ == 5 && pollingConfigurationBuilder_ != null) { + result.polling_ = pollingConfigurationBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.ClientConfiguration) { + return mergeFrom((com.google.bigtable.v2.ClientConfiguration) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.ClientConfiguration other) { + if (other == com.google.bigtable.v2.ClientConfiguration.getDefaultInstance()) return this; + if (other.hasSessionConfiguration()) { + mergeSessionConfiguration(other.getSessionConfiguration()); + } + if (other.hasTelemetryConfiguration()) { + mergeTelemetryConfiguration(other.getTelemetryConfiguration()); + } + switch (other.getPollingCase()) { + case STOP_POLLING: + { + setStopPolling(other.getStopPolling()); + break; + } + case POLLING_INTERVAL: + { + mergePollingInterval(other.getPollingInterval()); + break; + } + case POLLING_CONFIGURATION: + { + mergePollingConfiguration(other.getPollingConfiguration()); + break; + } + case POLLING_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + input.readMessage( + internalGetSessionConfigurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 24: + { + polling_ = input.readBool(); + pollingCase_ = 3; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetPollingIntervalFieldBuilder().getBuilder(), extensionRegistry); + pollingCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetPollingConfigurationFieldBuilder().getBuilder(), extensionRegistry); + pollingCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetTelemetryConfigurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int pollingCase_ = 0; + private java.lang.Object polling_; + + public PollingCase getPollingCase() { + return PollingCase.forNumber(pollingCase_); + } + + public Builder clearPolling() { + pollingCase_ = 0; + polling_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.bigtable.v2.SessionClientConfiguration sessionConfiguration_; + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration, + com.google.bigtable.v2.SessionClientConfiguration.Builder, + com.google.bigtable.v2.SessionClientConfigurationOrBuilder> + sessionConfigurationBuilder_; + + /** + * + * + *
+     * The configuration for Bigtable Sessions.
+     * 
+ * + * .google.bigtable.v2.SessionClientConfiguration session_configuration = 2; + * + * @return Whether the sessionConfiguration field is set. + */ + public boolean hasSessionConfiguration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The configuration for Bigtable Sessions.
+     * 
+ * + * .google.bigtable.v2.SessionClientConfiguration session_configuration = 2; + * + * @return The sessionConfiguration. + */ + public com.google.bigtable.v2.SessionClientConfiguration getSessionConfiguration() { + if (sessionConfigurationBuilder_ == null) { + return sessionConfiguration_ == null + ? com.google.bigtable.v2.SessionClientConfiguration.getDefaultInstance() + : sessionConfiguration_; + } else { + return sessionConfigurationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The configuration for Bigtable Sessions.
+     * 
+ * + * .google.bigtable.v2.SessionClientConfiguration session_configuration = 2; + */ + public Builder setSessionConfiguration( + com.google.bigtable.v2.SessionClientConfiguration value) { + if (sessionConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sessionConfiguration_ = value; + } else { + sessionConfigurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The configuration for Bigtable Sessions.
+     * 
+ * + * .google.bigtable.v2.SessionClientConfiguration session_configuration = 2; + */ + public Builder setSessionConfiguration( + com.google.bigtable.v2.SessionClientConfiguration.Builder builderForValue) { + if (sessionConfigurationBuilder_ == null) { + sessionConfiguration_ = builderForValue.build(); + } else { + sessionConfigurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The configuration for Bigtable Sessions.
+     * 
+ * + * .google.bigtable.v2.SessionClientConfiguration session_configuration = 2; + */ + public Builder mergeSessionConfiguration( + com.google.bigtable.v2.SessionClientConfiguration value) { + if (sessionConfigurationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && sessionConfiguration_ != null + && sessionConfiguration_ + != com.google.bigtable.v2.SessionClientConfiguration.getDefaultInstance()) { + getSessionConfigurationBuilder().mergeFrom(value); + } else { + sessionConfiguration_ = value; + } + } else { + sessionConfigurationBuilder_.mergeFrom(value); + } + if (sessionConfiguration_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The configuration for Bigtable Sessions.
+     * 
+ * + * .google.bigtable.v2.SessionClientConfiguration session_configuration = 2; + */ + public Builder clearSessionConfiguration() { + bitField0_ = (bitField0_ & ~0x00000001); + sessionConfiguration_ = null; + if (sessionConfigurationBuilder_ != null) { + sessionConfigurationBuilder_.dispose(); + sessionConfigurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The configuration for Bigtable Sessions.
+     * 
+ * + * .google.bigtable.v2.SessionClientConfiguration session_configuration = 2; + */ + public com.google.bigtable.v2.SessionClientConfiguration.Builder + getSessionConfigurationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSessionConfigurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The configuration for Bigtable Sessions.
+     * 
+ * + * .google.bigtable.v2.SessionClientConfiguration session_configuration = 2; + */ + public com.google.bigtable.v2.SessionClientConfigurationOrBuilder + getSessionConfigurationOrBuilder() { + if (sessionConfigurationBuilder_ != null) { + return sessionConfigurationBuilder_.getMessageOrBuilder(); + } else { + return sessionConfiguration_ == null + ? com.google.bigtable.v2.SessionClientConfiguration.getDefaultInstance() + : sessionConfiguration_; + } + } + + /** + * + * + *
+     * The configuration for Bigtable Sessions.
+     * 
+ * + * .google.bigtable.v2.SessionClientConfiguration session_configuration = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration, + com.google.bigtable.v2.SessionClientConfiguration.Builder, + com.google.bigtable.v2.SessionClientConfigurationOrBuilder> + internalGetSessionConfigurationFieldBuilder() { + if (sessionConfigurationBuilder_ == null) { + sessionConfigurationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration, + com.google.bigtable.v2.SessionClientConfiguration.Builder, + com.google.bigtable.v2.SessionClientConfigurationOrBuilder>( + getSessionConfiguration(), getParentForChildren(), isClean()); + sessionConfiguration_ = null; + } + return sessionConfigurationBuilder_; + } + + /** + * + * + *
+     * If the client should cease to check for new configurations, e.g. a
+     * backstop to prevent excessive GetClientConfiguration RPCs.
+     * 
+ * + * bool stop_polling = 3; + * + * @return Whether the stopPolling field is set. + */ + public boolean hasStopPolling() { + return pollingCase_ == 3; + } + + /** + * + * + *
+     * If the client should cease to check for new configurations, e.g. a
+     * backstop to prevent excessive GetClientConfiguration RPCs.
+     * 
+ * + * bool stop_polling = 3; + * + * @return The stopPolling. + */ + public boolean getStopPolling() { + if (pollingCase_ == 3) { + return (java.lang.Boolean) polling_; + } + return false; + } + + /** + * + * + *
+     * If the client should cease to check for new configurations, e.g. a
+     * backstop to prevent excessive GetClientConfiguration RPCs.
+     * 
+ * + * bool stop_polling = 3; + * + * @param value The stopPolling to set. + * @return This builder for chaining. + */ + public Builder setStopPolling(boolean value) { + + pollingCase_ = 3; + polling_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * If the client should cease to check for new configurations, e.g. a
+     * backstop to prevent excessive GetClientConfiguration RPCs.
+     * 
+ * + * bool stop_polling = 3; + * + * @return This builder for chaining. + */ + public Builder clearStopPolling() { + if (pollingCase_ == 3) { + pollingCase_ = 0; + polling_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + pollingIntervalBuilder_; + + /** + * + * + *
+     * Deprecated, prerfer polling_configuration.
+     *
+     * A duration describing the time between GetClientConfiguration RPCs.
+     * Only strictly positive values are permissible.
+     * 
+ * + * .google.protobuf.Duration polling_interval = 4 [deprecated = true]; + * + * @deprecated google.bigtable.v2.ClientConfiguration.polling_interval is deprecated. See + * google/bigtable/v2/session.proto;l=288 + * @return Whether the pollingInterval field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasPollingInterval() { + return pollingCase_ == 4; + } + + /** + * + * + *
+     * Deprecated, prerfer polling_configuration.
+     *
+     * A duration describing the time between GetClientConfiguration RPCs.
+     * Only strictly positive values are permissible.
+     * 
+ * + * .google.protobuf.Duration polling_interval = 4 [deprecated = true]; + * + * @deprecated google.bigtable.v2.ClientConfiguration.polling_interval is deprecated. See + * google/bigtable/v2/session.proto;l=288 + * @return The pollingInterval. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.Duration getPollingInterval() { + if (pollingIntervalBuilder_ == null) { + if (pollingCase_ == 4) { + return (com.google.protobuf.Duration) polling_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } else { + if (pollingCase_ == 4) { + return pollingIntervalBuilder_.getMessage(); + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Deprecated, prerfer polling_configuration.
+     *
+     * A duration describing the time between GetClientConfiguration RPCs.
+     * Only strictly positive values are permissible.
+     * 
+ * + * .google.protobuf.Duration polling_interval = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder setPollingInterval(com.google.protobuf.Duration value) { + if (pollingIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + polling_ = value; + onChanged(); + } else { + pollingIntervalBuilder_.setMessage(value); + } + pollingCase_ = 4; + return this; + } + + /** + * + * + *
+     * Deprecated, prerfer polling_configuration.
+     *
+     * A duration describing the time between GetClientConfiguration RPCs.
+     * Only strictly positive values are permissible.
+     * 
+ * + * .google.protobuf.Duration polling_interval = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder setPollingInterval(com.google.protobuf.Duration.Builder builderForValue) { + if (pollingIntervalBuilder_ == null) { + polling_ = builderForValue.build(); + onChanged(); + } else { + pollingIntervalBuilder_.setMessage(builderForValue.build()); + } + pollingCase_ = 4; + return this; + } + + /** + * + * + *
+     * Deprecated, prerfer polling_configuration.
+     *
+     * A duration describing the time between GetClientConfiguration RPCs.
+     * Only strictly positive values are permissible.
+     * 
+ * + * .google.protobuf.Duration polling_interval = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder mergePollingInterval(com.google.protobuf.Duration value) { + if (pollingIntervalBuilder_ == null) { + if (pollingCase_ == 4 && polling_ != com.google.protobuf.Duration.getDefaultInstance()) { + polling_ = + com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) polling_) + .mergeFrom(value) + .buildPartial(); + } else { + polling_ = value; + } + onChanged(); + } else { + if (pollingCase_ == 4) { + pollingIntervalBuilder_.mergeFrom(value); + } else { + pollingIntervalBuilder_.setMessage(value); + } + } + pollingCase_ = 4; + return this; + } + + /** + * + * + *
+     * Deprecated, prerfer polling_configuration.
+     *
+     * A duration describing the time between GetClientConfiguration RPCs.
+     * Only strictly positive values are permissible.
+     * 
+ * + * .google.protobuf.Duration polling_interval = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder clearPollingInterval() { + if (pollingIntervalBuilder_ == null) { + if (pollingCase_ == 4) { + pollingCase_ = 0; + polling_ = null; + onChanged(); + } + } else { + if (pollingCase_ == 4) { + pollingCase_ = 0; + polling_ = null; + } + pollingIntervalBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Deprecated, prerfer polling_configuration.
+     *
+     * A duration describing the time between GetClientConfiguration RPCs.
+     * Only strictly positive values are permissible.
+     * 
+ * + * .google.protobuf.Duration polling_interval = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.protobuf.Duration.Builder getPollingIntervalBuilder() { + return internalGetPollingIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Deprecated, prerfer polling_configuration.
+     *
+     * A duration describing the time between GetClientConfiguration RPCs.
+     * Only strictly positive values are permissible.
+     * 
+ * + * .google.protobuf.Duration polling_interval = 4 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder() { + if ((pollingCase_ == 4) && (pollingIntervalBuilder_ != null)) { + return pollingIntervalBuilder_.getMessageOrBuilder(); + } else { + if (pollingCase_ == 4) { + return (com.google.protobuf.Duration) polling_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Deprecated, prerfer polling_configuration.
+     *
+     * A duration describing the time between GetClientConfiguration RPCs.
+     * Only strictly positive values are permissible.
+     * 
+ * + * .google.protobuf.Duration polling_interval = 4 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetPollingIntervalFieldBuilder() { + if (pollingIntervalBuilder_ == null) { + if (!(pollingCase_ == 4)) { + polling_ = com.google.protobuf.Duration.getDefaultInstance(); + } + pollingIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) polling_, getParentForChildren(), isClean()); + polling_ = null; + } + pollingCase_ = 4; + onChanged(); + return pollingIntervalBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration, + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.Builder, + com.google.bigtable.v2.ClientConfiguration.PollingConfigurationOrBuilder> + pollingConfigurationBuilder_; + + /** + * + * + *
+     * If the client should continue to check for new configurations.
+     * 
+ * + * .google.bigtable.v2.ClientConfiguration.PollingConfiguration polling_configuration = 5; + * + * + * @return Whether the pollingConfiguration field is set. + */ + @java.lang.Override + public boolean hasPollingConfiguration() { + return pollingCase_ == 5; + } + + /** + * + * + *
+     * If the client should continue to check for new configurations.
+     * 
+ * + * .google.bigtable.v2.ClientConfiguration.PollingConfiguration polling_configuration = 5; + * + * + * @return The pollingConfiguration. + */ + @java.lang.Override + public com.google.bigtable.v2.ClientConfiguration.PollingConfiguration + getPollingConfiguration() { + if (pollingConfigurationBuilder_ == null) { + if (pollingCase_ == 5) { + return (com.google.bigtable.v2.ClientConfiguration.PollingConfiguration) polling_; + } + return com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.getDefaultInstance(); + } else { + if (pollingCase_ == 5) { + return pollingConfigurationBuilder_.getMessage(); + } + return com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.getDefaultInstance(); + } + } + + /** + * + * + *
+     * If the client should continue to check for new configurations.
+     * 
+ * + * .google.bigtable.v2.ClientConfiguration.PollingConfiguration polling_configuration = 5; + * + */ + public Builder setPollingConfiguration( + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration value) { + if (pollingConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + polling_ = value; + onChanged(); + } else { + pollingConfigurationBuilder_.setMessage(value); + } + pollingCase_ = 5; + return this; + } + + /** + * + * + *
+     * If the client should continue to check for new configurations.
+     * 
+ * + * .google.bigtable.v2.ClientConfiguration.PollingConfiguration polling_configuration = 5; + * + */ + public Builder setPollingConfiguration( + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.Builder builderForValue) { + if (pollingConfigurationBuilder_ == null) { + polling_ = builderForValue.build(); + onChanged(); + } else { + pollingConfigurationBuilder_.setMessage(builderForValue.build()); + } + pollingCase_ = 5; + return this; + } + + /** + * + * + *
+     * If the client should continue to check for new configurations.
+     * 
+ * + * .google.bigtable.v2.ClientConfiguration.PollingConfiguration polling_configuration = 5; + * + */ + public Builder mergePollingConfiguration( + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration value) { + if (pollingConfigurationBuilder_ == null) { + if (pollingCase_ == 5 + && polling_ + != com.google.bigtable.v2.ClientConfiguration.PollingConfiguration + .getDefaultInstance()) { + polling_ = + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.newBuilder( + (com.google.bigtable.v2.ClientConfiguration.PollingConfiguration) polling_) + .mergeFrom(value) + .buildPartial(); + } else { + polling_ = value; + } + onChanged(); + } else { + if (pollingCase_ == 5) { + pollingConfigurationBuilder_.mergeFrom(value); + } else { + pollingConfigurationBuilder_.setMessage(value); + } + } + pollingCase_ = 5; + return this; + } + + /** + * + * + *
+     * If the client should continue to check for new configurations.
+     * 
+ * + * .google.bigtable.v2.ClientConfiguration.PollingConfiguration polling_configuration = 5; + * + */ + public Builder clearPollingConfiguration() { + if (pollingConfigurationBuilder_ == null) { + if (pollingCase_ == 5) { + pollingCase_ = 0; + polling_ = null; + onChanged(); + } + } else { + if (pollingCase_ == 5) { + pollingCase_ = 0; + polling_ = null; + } + pollingConfigurationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * If the client should continue to check for new configurations.
+     * 
+ * + * .google.bigtable.v2.ClientConfiguration.PollingConfiguration polling_configuration = 5; + * + */ + public com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.Builder + getPollingConfigurationBuilder() { + return internalGetPollingConfigurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * If the client should continue to check for new configurations.
+     * 
+ * + * .google.bigtable.v2.ClientConfiguration.PollingConfiguration polling_configuration = 5; + * + */ + @java.lang.Override + public com.google.bigtable.v2.ClientConfiguration.PollingConfigurationOrBuilder + getPollingConfigurationOrBuilder() { + if ((pollingCase_ == 5) && (pollingConfigurationBuilder_ != null)) { + return pollingConfigurationBuilder_.getMessageOrBuilder(); + } else { + if (pollingCase_ == 5) { + return (com.google.bigtable.v2.ClientConfiguration.PollingConfiguration) polling_; + } + return com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.getDefaultInstance(); + } + } + + /** + * + * + *
+     * If the client should continue to check for new configurations.
+     * 
+ * + * .google.bigtable.v2.ClientConfiguration.PollingConfiguration polling_configuration = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration, + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.Builder, + com.google.bigtable.v2.ClientConfiguration.PollingConfigurationOrBuilder> + internalGetPollingConfigurationFieldBuilder() { + if (pollingConfigurationBuilder_ == null) { + if (!(pollingCase_ == 5)) { + polling_ = + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.getDefaultInstance(); + } + pollingConfigurationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration, + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration.Builder, + com.google.bigtable.v2.ClientConfiguration.PollingConfigurationOrBuilder>( + (com.google.bigtable.v2.ClientConfiguration.PollingConfiguration) polling_, + getParentForChildren(), + isClean()); + polling_ = null; + } + pollingCase_ = 5; + onChanged(); + return pollingConfigurationBuilder_; + } + + private com.google.bigtable.v2.TelemetryConfiguration telemetryConfiguration_; + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.TelemetryConfiguration, + com.google.bigtable.v2.TelemetryConfiguration.Builder, + com.google.bigtable.v2.TelemetryConfigurationOrBuilder> + telemetryConfigurationBuilder_; + + /** + * + * + *
+     * Configuration for telemetry.
+     * 
+ * + * .google.bigtable.v2.TelemetryConfiguration telemetry_configuration = 6; + * + * @return Whether the telemetryConfiguration field is set. + */ + public boolean hasTelemetryConfiguration() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Configuration for telemetry.
+     * 
+ * + * .google.bigtable.v2.TelemetryConfiguration telemetry_configuration = 6; + * + * @return The telemetryConfiguration. + */ + public com.google.bigtable.v2.TelemetryConfiguration getTelemetryConfiguration() { + if (telemetryConfigurationBuilder_ == null) { + return telemetryConfiguration_ == null + ? com.google.bigtable.v2.TelemetryConfiguration.getDefaultInstance() + : telemetryConfiguration_; + } else { + return telemetryConfigurationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Configuration for telemetry.
+     * 
+ * + * .google.bigtable.v2.TelemetryConfiguration telemetry_configuration = 6; + */ + public Builder setTelemetryConfiguration(com.google.bigtable.v2.TelemetryConfiguration value) { + if (telemetryConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + telemetryConfiguration_ = value; + } else { + telemetryConfigurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for telemetry.
+     * 
+ * + * .google.bigtable.v2.TelemetryConfiguration telemetry_configuration = 6; + */ + public Builder setTelemetryConfiguration( + com.google.bigtable.v2.TelemetryConfiguration.Builder builderForValue) { + if (telemetryConfigurationBuilder_ == null) { + telemetryConfiguration_ = builderForValue.build(); + } else { + telemetryConfigurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for telemetry.
+     * 
+ * + * .google.bigtable.v2.TelemetryConfiguration telemetry_configuration = 6; + */ + public Builder mergeTelemetryConfiguration( + com.google.bigtable.v2.TelemetryConfiguration value) { + if (telemetryConfigurationBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && telemetryConfiguration_ != null + && telemetryConfiguration_ + != com.google.bigtable.v2.TelemetryConfiguration.getDefaultInstance()) { + getTelemetryConfigurationBuilder().mergeFrom(value); + } else { + telemetryConfiguration_ = value; + } + } else { + telemetryConfigurationBuilder_.mergeFrom(value); + } + if (telemetryConfiguration_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Configuration for telemetry.
+     * 
+ * + * .google.bigtable.v2.TelemetryConfiguration telemetry_configuration = 6; + */ + public Builder clearTelemetryConfiguration() { + bitField0_ = (bitField0_ & ~0x00000010); + telemetryConfiguration_ = null; + if (telemetryConfigurationBuilder_ != null) { + telemetryConfigurationBuilder_.dispose(); + telemetryConfigurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for telemetry.
+     * 
+ * + * .google.bigtable.v2.TelemetryConfiguration telemetry_configuration = 6; + */ + public com.google.bigtable.v2.TelemetryConfiguration.Builder + getTelemetryConfigurationBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetTelemetryConfigurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Configuration for telemetry.
+     * 
+ * + * .google.bigtable.v2.TelemetryConfiguration telemetry_configuration = 6; + */ + public com.google.bigtable.v2.TelemetryConfigurationOrBuilder + getTelemetryConfigurationOrBuilder() { + if (telemetryConfigurationBuilder_ != null) { + return telemetryConfigurationBuilder_.getMessageOrBuilder(); + } else { + return telemetryConfiguration_ == null + ? com.google.bigtable.v2.TelemetryConfiguration.getDefaultInstance() + : telemetryConfiguration_; + } + } + + /** + * + * + *
+     * Configuration for telemetry.
+     * 
+ * + * .google.bigtable.v2.TelemetryConfiguration telemetry_configuration = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.TelemetryConfiguration, + com.google.bigtable.v2.TelemetryConfiguration.Builder, + com.google.bigtable.v2.TelemetryConfigurationOrBuilder> + internalGetTelemetryConfigurationFieldBuilder() { + if (telemetryConfigurationBuilder_ == null) { + telemetryConfigurationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.TelemetryConfiguration, + com.google.bigtable.v2.TelemetryConfiguration.Builder, + com.google.bigtable.v2.TelemetryConfigurationOrBuilder>( + getTelemetryConfiguration(), getParentForChildren(), isClean()); + telemetryConfiguration_ = null; + } + return telemetryConfigurationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.ClientConfiguration) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.ClientConfiguration) + private static final com.google.bigtable.v2.ClientConfiguration DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.ClientConfiguration(); + } + + public static com.google.bigtable.v2.ClientConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.ClientConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ClientConfigurationOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ClientConfigurationOrBuilder.java new file mode 100644 index 0000000000..c0e671a1f5 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ClientConfigurationOrBuilder.java @@ -0,0 +1,226 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface ClientConfigurationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.ClientConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The configuration for Bigtable Sessions.
+   * 
+ * + * .google.bigtable.v2.SessionClientConfiguration session_configuration = 2; + * + * @return Whether the sessionConfiguration field is set. + */ + boolean hasSessionConfiguration(); + + /** + * + * + *
+   * The configuration for Bigtable Sessions.
+   * 
+ * + * .google.bigtable.v2.SessionClientConfiguration session_configuration = 2; + * + * @return The sessionConfiguration. + */ + com.google.bigtable.v2.SessionClientConfiguration getSessionConfiguration(); + + /** + * + * + *
+   * The configuration for Bigtable Sessions.
+   * 
+ * + * .google.bigtable.v2.SessionClientConfiguration session_configuration = 2; + */ + com.google.bigtable.v2.SessionClientConfigurationOrBuilder getSessionConfigurationOrBuilder(); + + /** + * + * + *
+   * If the client should cease to check for new configurations, e.g. a
+   * backstop to prevent excessive GetClientConfiguration RPCs.
+   * 
+ * + * bool stop_polling = 3; + * + * @return Whether the stopPolling field is set. + */ + boolean hasStopPolling(); + + /** + * + * + *
+   * If the client should cease to check for new configurations, e.g. a
+   * backstop to prevent excessive GetClientConfiguration RPCs.
+   * 
+ * + * bool stop_polling = 3; + * + * @return The stopPolling. + */ + boolean getStopPolling(); + + /** + * + * + *
+   * Deprecated, prerfer polling_configuration.
+   *
+   * A duration describing the time between GetClientConfiguration RPCs.
+   * Only strictly positive values are permissible.
+   * 
+ * + * .google.protobuf.Duration polling_interval = 4 [deprecated = true]; + * + * @deprecated google.bigtable.v2.ClientConfiguration.polling_interval is deprecated. See + * google/bigtable/v2/session.proto;l=288 + * @return Whether the pollingInterval field is set. + */ + @java.lang.Deprecated + boolean hasPollingInterval(); + + /** + * + * + *
+   * Deprecated, prerfer polling_configuration.
+   *
+   * A duration describing the time between GetClientConfiguration RPCs.
+   * Only strictly positive values are permissible.
+   * 
+ * + * .google.protobuf.Duration polling_interval = 4 [deprecated = true]; + * + * @deprecated google.bigtable.v2.ClientConfiguration.polling_interval is deprecated. See + * google/bigtable/v2/session.proto;l=288 + * @return The pollingInterval. + */ + @java.lang.Deprecated + com.google.protobuf.Duration getPollingInterval(); + + /** + * + * + *
+   * Deprecated, prerfer polling_configuration.
+   *
+   * A duration describing the time between GetClientConfiguration RPCs.
+   * Only strictly positive values are permissible.
+   * 
+ * + * .google.protobuf.Duration polling_interval = 4 [deprecated = true]; + */ + @java.lang.Deprecated + com.google.protobuf.DurationOrBuilder getPollingIntervalOrBuilder(); + + /** + * + * + *
+   * If the client should continue to check for new configurations.
+   * 
+ * + * .google.bigtable.v2.ClientConfiguration.PollingConfiguration polling_configuration = 5; + * + * + * @return Whether the pollingConfiguration field is set. + */ + boolean hasPollingConfiguration(); + + /** + * + * + *
+   * If the client should continue to check for new configurations.
+   * 
+ * + * .google.bigtable.v2.ClientConfiguration.PollingConfiguration polling_configuration = 5; + * + * + * @return The pollingConfiguration. + */ + com.google.bigtable.v2.ClientConfiguration.PollingConfiguration getPollingConfiguration(); + + /** + * + * + *
+   * If the client should continue to check for new configurations.
+   * 
+ * + * .google.bigtable.v2.ClientConfiguration.PollingConfiguration polling_configuration = 5; + * + */ + com.google.bigtable.v2.ClientConfiguration.PollingConfigurationOrBuilder + getPollingConfigurationOrBuilder(); + + /** + * + * + *
+   * Configuration for telemetry.
+   * 
+ * + * .google.bigtable.v2.TelemetryConfiguration telemetry_configuration = 6; + * + * @return Whether the telemetryConfiguration field is set. + */ + boolean hasTelemetryConfiguration(); + + /** + * + * + *
+   * Configuration for telemetry.
+   * 
+ * + * .google.bigtable.v2.TelemetryConfiguration telemetry_configuration = 6; + * + * @return The telemetryConfiguration. + */ + com.google.bigtable.v2.TelemetryConfiguration getTelemetryConfiguration(); + + /** + * + * + *
+   * Configuration for telemetry.
+   * 
+ * + * .google.bigtable.v2.TelemetryConfiguration telemetry_configuration = 6; + */ + com.google.bigtable.v2.TelemetryConfigurationOrBuilder getTelemetryConfigurationOrBuilder(); + + com.google.bigtable.v2.ClientConfiguration.PollingCase getPollingCase(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/CloseSessionRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/CloseSessionRequest.java new file mode 100644 index 0000000000..9cb65a2fd5 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/CloseSessionRequest.java @@ -0,0 +1,821 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.CloseSessionRequest} + */ +@com.google.protobuf.Generated +public final class CloseSessionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.CloseSessionRequest) + CloseSessionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CloseSessionRequest"); + } + + // Use CloseSessionRequest.newBuilder() to construct. + private CloseSessionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CloseSessionRequest() { + reason_ = 0; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_CloseSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_CloseSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.CloseSessionRequest.class, + com.google.bigtable.v2.CloseSessionRequest.Builder.class); + } + + /** + * + * + *
+   * Client-generated reason for terminating the session, including a
+   * plain-text description of why.
+   * 'reason' may be used for metrics, while both may be logged (server-side).
+   * 
+ * + * Protobuf enum {@code google.bigtable.v2.CloseSessionRequest.CloseSessionReason} + */ + public enum CloseSessionReason implements com.google.protobuf.ProtocolMessageEnum { + /** CLOSE_SESSION_REASON_UNSET = 0; */ + CLOSE_SESSION_REASON_UNSET(0), + /** CLOSE_SESSION_REASON_GOAWAY = 1; */ + CLOSE_SESSION_REASON_GOAWAY(1), + /** CLOSE_SESSION_REASON_ERROR = 2; */ + CLOSE_SESSION_REASON_ERROR(2), + /** CLOSE_SESSION_REASON_USER = 3; */ + CLOSE_SESSION_REASON_USER(3), + /** CLOSE_SESSION_REASON_DOWNSIZE = 4; */ + CLOSE_SESSION_REASON_DOWNSIZE(4), + /** CLOSE_SESSION_REASON_MISSED_HEARTBEAT = 5; */ + CLOSE_SESSION_REASON_MISSED_HEARTBEAT(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CloseSessionReason"); + } + + /** CLOSE_SESSION_REASON_UNSET = 0; */ + public static final int CLOSE_SESSION_REASON_UNSET_VALUE = 0; + + /** CLOSE_SESSION_REASON_GOAWAY = 1; */ + public static final int CLOSE_SESSION_REASON_GOAWAY_VALUE = 1; + + /** CLOSE_SESSION_REASON_ERROR = 2; */ + public static final int CLOSE_SESSION_REASON_ERROR_VALUE = 2; + + /** CLOSE_SESSION_REASON_USER = 3; */ + public static final int CLOSE_SESSION_REASON_USER_VALUE = 3; + + /** CLOSE_SESSION_REASON_DOWNSIZE = 4; */ + public static final int CLOSE_SESSION_REASON_DOWNSIZE_VALUE = 4; + + /** CLOSE_SESSION_REASON_MISSED_HEARTBEAT = 5; */ + public static final int CLOSE_SESSION_REASON_MISSED_HEARTBEAT_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CloseSessionReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CloseSessionReason forNumber(int value) { + switch (value) { + case 0: + return CLOSE_SESSION_REASON_UNSET; + case 1: + return CLOSE_SESSION_REASON_GOAWAY; + case 2: + return CLOSE_SESSION_REASON_ERROR; + case 3: + return CLOSE_SESSION_REASON_USER; + case 4: + return CLOSE_SESSION_REASON_DOWNSIZE; + case 5: + return CLOSE_SESSION_REASON_MISSED_HEARTBEAT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CloseSessionReason findValueByNumber(int number) { + return CloseSessionReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.bigtable.v2.CloseSessionRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final CloseSessionReason[] VALUES = values(); + + public static CloseSessionReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CloseSessionReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.bigtable.v2.CloseSessionRequest.CloseSessionReason) + } + + public static final int REASON_FIELD_NUMBER = 1; + private int reason_ = 0; + + /** + * .google.bigtable.v2.CloseSessionRequest.CloseSessionReason reason = 1; + * + * @return The enum numeric value on the wire for reason. + */ + @java.lang.Override + public int getReasonValue() { + return reason_; + } + + /** + * .google.bigtable.v2.CloseSessionRequest.CloseSessionReason reason = 1; + * + * @return The reason. + */ + @java.lang.Override + public com.google.bigtable.v2.CloseSessionRequest.CloseSessionReason getReason() { + com.google.bigtable.v2.CloseSessionRequest.CloseSessionReason result = + com.google.bigtable.v2.CloseSessionRequest.CloseSessionReason.forNumber(reason_); + return result == null + ? com.google.bigtable.v2.CloseSessionRequest.CloseSessionReason.UNRECOGNIZED + : result; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * string description = 2; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * string description = 2; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (reason_ + != com.google.bigtable.v2.CloseSessionRequest.CloseSessionReason.CLOSE_SESSION_REASON_UNSET + .getNumber()) { + output.writeEnum(1, reason_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reason_ + != com.google.bigtable.v2.CloseSessionRequest.CloseSessionReason.CLOSE_SESSION_REASON_UNSET + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, reason_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.CloseSessionRequest)) { + return super.equals(obj); + } + com.google.bigtable.v2.CloseSessionRequest other = + (com.google.bigtable.v2.CloseSessionRequest) obj; + + if (reason_ != other.reason_) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + reason_; + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.CloseSessionRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.CloseSessionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.CloseSessionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.CloseSessionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.CloseSessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.CloseSessionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.CloseSessionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.CloseSessionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.CloseSessionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.CloseSessionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.CloseSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.CloseSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.CloseSessionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.CloseSessionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.CloseSessionRequest) + com.google.bigtable.v2.CloseSessionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_CloseSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_CloseSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.CloseSessionRequest.class, + com.google.bigtable.v2.CloseSessionRequest.Builder.class); + } + + // Construct using com.google.bigtable.v2.CloseSessionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reason_ = 0; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_CloseSessionRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.CloseSessionRequest getDefaultInstanceForType() { + return com.google.bigtable.v2.CloseSessionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.CloseSessionRequest build() { + com.google.bigtable.v2.CloseSessionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.CloseSessionRequest buildPartial() { + com.google.bigtable.v2.CloseSessionRequest result = + new com.google.bigtable.v2.CloseSessionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.CloseSessionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reason_ = reason_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.CloseSessionRequest) { + return mergeFrom((com.google.bigtable.v2.CloseSessionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.CloseSessionRequest other) { + if (other == com.google.bigtable.v2.CloseSessionRequest.getDefaultInstance()) return this; + if (other.reason_ != 0) { + setReasonValue(other.getReasonValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + reason_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int reason_ = 0; + + /** + * .google.bigtable.v2.CloseSessionRequest.CloseSessionReason reason = 1; + * + * @return The enum numeric value on the wire for reason. + */ + @java.lang.Override + public int getReasonValue() { + return reason_; + } + + /** + * .google.bigtable.v2.CloseSessionRequest.CloseSessionReason reason = 1; + * + * @param value The enum numeric value on the wire for reason to set. + * @return This builder for chaining. + */ + public Builder setReasonValue(int value) { + reason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .google.bigtable.v2.CloseSessionRequest.CloseSessionReason reason = 1; + * + * @return The reason. + */ + @java.lang.Override + public com.google.bigtable.v2.CloseSessionRequest.CloseSessionReason getReason() { + com.google.bigtable.v2.CloseSessionRequest.CloseSessionReason result = + com.google.bigtable.v2.CloseSessionRequest.CloseSessionReason.forNumber(reason_); + return result == null + ? com.google.bigtable.v2.CloseSessionRequest.CloseSessionReason.UNRECOGNIZED + : result; + } + + /** + * .google.bigtable.v2.CloseSessionRequest.CloseSessionReason reason = 1; + * + * @param value The reason to set. + * @return This builder for chaining. + */ + public Builder setReason(com.google.bigtable.v2.CloseSessionRequest.CloseSessionReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + reason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * .google.bigtable.v2.CloseSessionRequest.CloseSessionReason reason = 1; + * + * @return This builder for chaining. + */ + public Builder clearReason() { + bitField0_ = (bitField0_ & ~0x00000001); + reason_ = 0; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * string description = 2; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string description = 2; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * string description = 2; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.CloseSessionRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.CloseSessionRequest) + private static final com.google.bigtable.v2.CloseSessionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.CloseSessionRequest(); + } + + public static com.google.bigtable.v2.CloseSessionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloseSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.CloseSessionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/CloseSessionRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/CloseSessionRequestOrBuilder.java new file mode 100644 index 0000000000..e7f1fd2994 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/CloseSessionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface CloseSessionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.CloseSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.bigtable.v2.CloseSessionRequest.CloseSessionReason reason = 1; + * + * @return The enum numeric value on the wire for reason. + */ + int getReasonValue(); + + /** + * .google.bigtable.v2.CloseSessionRequest.CloseSessionReason reason = 1; + * + * @return The reason. + */ + com.google.bigtable.v2.CloseSessionRequest.CloseSessionReason getReason(); + + /** + * string description = 2; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * string description = 2; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ClusterInformation.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ClusterInformation.java new file mode 100644 index 0000000000..9e7d108425 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ClusterInformation.java @@ -0,0 +1,702 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Information on which Cluster served a vRPC, e.g. for Client-Side metrics.
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.ClusterInformation} + */ +@com.google.protobuf.Generated +public final class ClusterInformation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.ClusterInformation) + ClusterInformationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ClusterInformation"); + } + + // Use ClusterInformation.newBuilder() to construct. + private ClusterInformation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ClusterInformation() { + clusterId_ = ""; + zoneId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ClusterInformation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ClusterInformation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.ClusterInformation.class, + com.google.bigtable.v2.ClusterInformation.Builder.class); + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + + /** + * string cluster_id = 1; + * + * @return The clusterId. + */ + @java.lang.Override + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + + /** + * string cluster_id = 1; + * + * @return The bytes for clusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object zoneId_ = ""; + + /** + * string zone_id = 2; + * + * @return The zoneId. + */ + @java.lang.Override + public java.lang.String getZoneId() { + java.lang.Object ref = zoneId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zoneId_ = s; + return s; + } + } + + /** + * string zone_id = 2; + * + * @return The bytes for zoneId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneIdBytes() { + java.lang.Object ref = zoneId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zoneId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, clusterId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zoneId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, zoneId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, clusterId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zoneId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, zoneId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.ClusterInformation)) { + return super.equals(obj); + } + com.google.bigtable.v2.ClusterInformation other = + (com.google.bigtable.v2.ClusterInformation) obj; + + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getZoneId().equals(other.getZoneId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + ZONE_ID_FIELD_NUMBER; + hash = (53 * hash) + getZoneId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.ClusterInformation parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ClusterInformation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ClusterInformation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ClusterInformation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ClusterInformation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ClusterInformation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ClusterInformation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ClusterInformation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.ClusterInformation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ClusterInformation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.ClusterInformation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ClusterInformation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.ClusterInformation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Information on which Cluster served a vRPC, e.g. for Client-Side metrics.
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.ClusterInformation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.ClusterInformation) + com.google.bigtable.v2.ClusterInformationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ClusterInformation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ClusterInformation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.ClusterInformation.class, + com.google.bigtable.v2.ClusterInformation.Builder.class); + } + + // Construct using com.google.bigtable.v2.ClusterInformation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clusterId_ = ""; + zoneId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ClusterInformation_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.ClusterInformation getDefaultInstanceForType() { + return com.google.bigtable.v2.ClusterInformation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.ClusterInformation build() { + com.google.bigtable.v2.ClusterInformation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.ClusterInformation buildPartial() { + com.google.bigtable.v2.ClusterInformation result = + new com.google.bigtable.v2.ClusterInformation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.ClusterInformation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zoneId_ = zoneId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.ClusterInformation) { + return mergeFrom((com.google.bigtable.v2.ClusterInformation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.ClusterInformation other) { + if (other == com.google.bigtable.v2.ClusterInformation.getDefaultInstance()) return this; + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZoneId().isEmpty()) { + zoneId_ = other.zoneId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + zoneId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object clusterId_ = ""; + + /** + * string cluster_id = 1; + * + * @return The clusterId. + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string cluster_id = 1; + * + * @return The bytes for clusterId. + */ + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string cluster_id = 1; + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * string cluster_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * string cluster_id = 1; + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zoneId_ = ""; + + /** + * string zone_id = 2; + * + * @return The zoneId. + */ + public java.lang.String getZoneId() { + java.lang.Object ref = zoneId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zoneId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string zone_id = 2; + * + * @return The bytes for zoneId. + */ + public com.google.protobuf.ByteString getZoneIdBytes() { + java.lang.Object ref = zoneId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zoneId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string zone_id = 2; + * + * @param value The zoneId to set. + * @return This builder for chaining. + */ + public Builder setZoneId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zoneId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * string zone_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearZoneId() { + zoneId_ = getDefaultInstance().getZoneId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * string zone_id = 2; + * + * @param value The bytes for zoneId to set. + * @return This builder for chaining. + */ + public Builder setZoneIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zoneId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.ClusterInformation) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.ClusterInformation) + private static final com.google.bigtable.v2.ClusterInformation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.ClusterInformation(); + } + + public static com.google.bigtable.v2.ClusterInformation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterInformation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.ClusterInformation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ClusterInformationOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ClusterInformationOrBuilder.java new file mode 100644 index 0000000000..392d0b7a67 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ClusterInformationOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface ClusterInformationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.ClusterInformation) + com.google.protobuf.MessageOrBuilder { + + /** + * string cluster_id = 1; + * + * @return The clusterId. + */ + java.lang.String getClusterId(); + + /** + * string cluster_id = 1; + * + * @return The bytes for clusterId. + */ + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * string zone_id = 2; + * + * @return The zoneId. + */ + java.lang.String getZoneId(); + + /** + * string zone_id = 2; + * + * @return The bytes for zoneId. + */ + com.google.protobuf.ByteString getZoneIdBytes(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ErrorResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ErrorResponse.java new file mode 100644 index 0000000000..8f3bd05048 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ErrorResponse.java @@ -0,0 +1,1157 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.ErrorResponse} + */ +@com.google.protobuf.Generated +public final class ErrorResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.ErrorResponse) + ErrorResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ErrorResponse"); + } + + // Use ErrorResponse.newBuilder() to construct. + private ErrorResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ErrorResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ErrorResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ErrorResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.ErrorResponse.class, + com.google.bigtable.v2.ErrorResponse.Builder.class); + } + + private int bitField0_; + public static final int RPC_ID_FIELD_NUMBER = 1; + private long rpcId_ = 0L; + + /** + * + * + *
+   * Which vRPC this response is for.
+   * 
+ * + * int64 rpc_id = 1; + * + * @return The rpcId. + */ + @java.lang.Override + public long getRpcId() { + return rpcId_; + } + + public static final int CLUSTER_INFO_FIELD_NUMBER = 2; + private com.google.bigtable.v2.ClusterInformation clusterInfo_; + + /** + * .google.bigtable.v2.ClusterInformation cluster_info = 2; + * + * @return Whether the clusterInfo field is set. + */ + @java.lang.Override + public boolean hasClusterInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * .google.bigtable.v2.ClusterInformation cluster_info = 2; + * + * @return The clusterInfo. + */ + @java.lang.Override + public com.google.bigtable.v2.ClusterInformation getClusterInfo() { + return clusterInfo_ == null + ? com.google.bigtable.v2.ClusterInformation.getDefaultInstance() + : clusterInfo_; + } + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + @java.lang.Override + public com.google.bigtable.v2.ClusterInformationOrBuilder getClusterInfoOrBuilder() { + return clusterInfo_ == null + ? com.google.bigtable.v2.ClusterInformation.getDefaultInstance() + : clusterInfo_; + } + + public static final int STATUS_FIELD_NUMBER = 3; + private com.google.rpc.Status status_; + + /** + * + * + *
+   * The error from the vRPC and any retry information to consider.
+   * 
+ * + * .google.rpc.Status status = 3; + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The error from the vRPC and any retry information to consider.
+   * 
+ * + * .google.rpc.Status status = 3; + * + * @return The status. + */ + @java.lang.Override + public com.google.rpc.Status getStatus() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + + /** + * + * + *
+   * The error from the vRPC and any retry information to consider.
+   * 
+ * + * .google.rpc.Status status = 3; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + + public static final int RETRY_INFO_FIELD_NUMBER = 4; + private com.google.rpc.RetryInfo retryInfo_; + + /** + * .google.rpc.RetryInfo retry_info = 4; + * + * @return Whether the retryInfo field is set. + */ + @java.lang.Override + public boolean hasRetryInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * .google.rpc.RetryInfo retry_info = 4; + * + * @return The retryInfo. + */ + @java.lang.Override + public com.google.rpc.RetryInfo getRetryInfo() { + return retryInfo_ == null ? com.google.rpc.RetryInfo.getDefaultInstance() : retryInfo_; + } + + /** .google.rpc.RetryInfo retry_info = 4; */ + @java.lang.Override + public com.google.rpc.RetryInfoOrBuilder getRetryInfoOrBuilder() { + return retryInfo_ == null ? com.google.rpc.RetryInfo.getDefaultInstance() : retryInfo_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (rpcId_ != 0L) { + output.writeInt64(1, rpcId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getClusterInfo()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getStatus()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getRetryInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rpcId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, rpcId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getClusterInfo()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRetryInfo()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.ErrorResponse)) { + return super.equals(obj); + } + com.google.bigtable.v2.ErrorResponse other = (com.google.bigtable.v2.ErrorResponse) obj; + + if (getRpcId() != other.getRpcId()) return false; + if (hasClusterInfo() != other.hasClusterInfo()) return false; + if (hasClusterInfo()) { + if (!getClusterInfo().equals(other.getClusterInfo())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus().equals(other.getStatus())) return false; + } + if (hasRetryInfo() != other.hasRetryInfo()) return false; + if (hasRetryInfo()) { + if (!getRetryInfo().equals(other.getRetryInfo())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RPC_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRpcId()); + if (hasClusterInfo()) { + hash = (37 * hash) + CLUSTER_INFO_FIELD_NUMBER; + hash = (53 * hash) + getClusterInfo().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasRetryInfo()) { + hash = (37 * hash) + RETRY_INFO_FIELD_NUMBER; + hash = (53 * hash) + getRetryInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.ErrorResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ErrorResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ErrorResponse parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ErrorResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ErrorResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ErrorResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ErrorResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ErrorResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.ErrorResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ErrorResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.ErrorResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ErrorResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.ErrorResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.ErrorResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.ErrorResponse) + com.google.bigtable.v2.ErrorResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ErrorResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ErrorResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.ErrorResponse.class, + com.google.bigtable.v2.ErrorResponse.Builder.class); + } + + // Construct using com.google.bigtable.v2.ErrorResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetClusterInfoFieldBuilder(); + internalGetStatusFieldBuilder(); + internalGetRetryInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rpcId_ = 0L; + clusterInfo_ = null; + if (clusterInfoBuilder_ != null) { + clusterInfoBuilder_.dispose(); + clusterInfoBuilder_ = null; + } + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + retryInfo_ = null; + if (retryInfoBuilder_ != null) { + retryInfoBuilder_.dispose(); + retryInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_ErrorResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.ErrorResponse getDefaultInstanceForType() { + return com.google.bigtable.v2.ErrorResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.ErrorResponse build() { + com.google.bigtable.v2.ErrorResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.ErrorResponse buildPartial() { + com.google.bigtable.v2.ErrorResponse result = new com.google.bigtable.v2.ErrorResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.ErrorResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rpcId_ = rpcId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clusterInfo_ = + clusterInfoBuilder_ == null ? clusterInfo_ : clusterInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.retryInfo_ = retryInfoBuilder_ == null ? retryInfo_ : retryInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.ErrorResponse) { + return mergeFrom((com.google.bigtable.v2.ErrorResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.ErrorResponse other) { + if (other == com.google.bigtable.v2.ErrorResponse.getDefaultInstance()) return this; + if (other.getRpcId() != 0L) { + setRpcId(other.getRpcId()); + } + if (other.hasClusterInfo()) { + mergeClusterInfo(other.getClusterInfo()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (other.hasRetryInfo()) { + mergeRetryInfo(other.getRetryInfo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + rpcId_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetClusterInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetRetryInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long rpcId_; + + /** + * + * + *
+     * Which vRPC this response is for.
+     * 
+ * + * int64 rpc_id = 1; + * + * @return The rpcId. + */ + @java.lang.Override + public long getRpcId() { + return rpcId_; + } + + /** + * + * + *
+     * Which vRPC this response is for.
+     * 
+ * + * int64 rpc_id = 1; + * + * @param value The rpcId to set. + * @return This builder for chaining. + */ + public Builder setRpcId(long value) { + + rpcId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Which vRPC this response is for.
+     * 
+ * + * int64 rpc_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearRpcId() { + bitField0_ = (bitField0_ & ~0x00000001); + rpcId_ = 0L; + onChanged(); + return this; + } + + private com.google.bigtable.v2.ClusterInformation clusterInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.ClusterInformation, + com.google.bigtable.v2.ClusterInformation.Builder, + com.google.bigtable.v2.ClusterInformationOrBuilder> + clusterInfoBuilder_; + + /** + * .google.bigtable.v2.ClusterInformation cluster_info = 2; + * + * @return Whether the clusterInfo field is set. + */ + public boolean hasClusterInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * .google.bigtable.v2.ClusterInformation cluster_info = 2; + * + * @return The clusterInfo. + */ + public com.google.bigtable.v2.ClusterInformation getClusterInfo() { + if (clusterInfoBuilder_ == null) { + return clusterInfo_ == null + ? com.google.bigtable.v2.ClusterInformation.getDefaultInstance() + : clusterInfo_; + } else { + return clusterInfoBuilder_.getMessage(); + } + } + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + public Builder setClusterInfo(com.google.bigtable.v2.ClusterInformation value) { + if (clusterInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clusterInfo_ = value; + } else { + clusterInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + public Builder setClusterInfo( + com.google.bigtable.v2.ClusterInformation.Builder builderForValue) { + if (clusterInfoBuilder_ == null) { + clusterInfo_ = builderForValue.build(); + } else { + clusterInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + public Builder mergeClusterInfo(com.google.bigtable.v2.ClusterInformation value) { + if (clusterInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && clusterInfo_ != null + && clusterInfo_ != com.google.bigtable.v2.ClusterInformation.getDefaultInstance()) { + getClusterInfoBuilder().mergeFrom(value); + } else { + clusterInfo_ = value; + } + } else { + clusterInfoBuilder_.mergeFrom(value); + } + if (clusterInfo_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + public Builder clearClusterInfo() { + bitField0_ = (bitField0_ & ~0x00000002); + clusterInfo_ = null; + if (clusterInfoBuilder_ != null) { + clusterInfoBuilder_.dispose(); + clusterInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + public com.google.bigtable.v2.ClusterInformation.Builder getClusterInfoBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetClusterInfoFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + public com.google.bigtable.v2.ClusterInformationOrBuilder getClusterInfoOrBuilder() { + if (clusterInfoBuilder_ != null) { + return clusterInfoBuilder_.getMessageOrBuilder(); + } else { + return clusterInfo_ == null + ? com.google.bigtable.v2.ClusterInformation.getDefaultInstance() + : clusterInfo_; + } + } + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.ClusterInformation, + com.google.bigtable.v2.ClusterInformation.Builder, + com.google.bigtable.v2.ClusterInformationOrBuilder> + internalGetClusterInfoFieldBuilder() { + if (clusterInfoBuilder_ == null) { + clusterInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.ClusterInformation, + com.google.bigtable.v2.ClusterInformation.Builder, + com.google.bigtable.v2.ClusterInformationOrBuilder>( + getClusterInfo(), getParentForChildren(), isClean()); + clusterInfo_ = null; + } + return clusterInfoBuilder_; + } + + private com.google.rpc.Status status_; + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; + + /** + * + * + *
+     * The error from the vRPC and any retry information to consider.
+     * 
+ * + * .google.rpc.Status status = 3; + * + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * The error from the vRPC and any retry information to consider.
+     * 
+ * + * .google.rpc.Status status = 3; + * + * @return The status. + */ + public com.google.rpc.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The error from the vRPC and any retry information to consider.
+     * 
+ * + * .google.rpc.Status status = 3; + */ + public Builder setStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The error from the vRPC and any retry information to consider.
+     * 
+ * + * .google.rpc.Status status = 3; + */ + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The error from the vRPC and any retry information to consider.
+     * 
+ * + * .google.rpc.Status status = 3; + */ + public Builder mergeStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The error from the vRPC and any retry information to consider.
+     * 
+ * + * .google.rpc.Status status = 3; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000004); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The error from the vRPC and any retry information to consider.
+     * 
+ * + * .google.rpc.Status status = 3; + */ + public com.google.rpc.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetStatusFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The error from the vRPC and any retry information to consider.
+     * 
+ * + * .google.rpc.Status status = 3; + */ + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + } + + /** + * + * + *
+     * The error from the vRPC and any retry information to consider.
+     * 
+ * + * .google.rpc.Status status = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + internalGetStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); + status_ = null; + } + return statusBuilder_; + } + + private com.google.rpc.RetryInfo retryInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.RetryInfo, + com.google.rpc.RetryInfo.Builder, + com.google.rpc.RetryInfoOrBuilder> + retryInfoBuilder_; + + /** + * .google.rpc.RetryInfo retry_info = 4; + * + * @return Whether the retryInfo field is set. + */ + public boolean hasRetryInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * .google.rpc.RetryInfo retry_info = 4; + * + * @return The retryInfo. + */ + public com.google.rpc.RetryInfo getRetryInfo() { + if (retryInfoBuilder_ == null) { + return retryInfo_ == null ? com.google.rpc.RetryInfo.getDefaultInstance() : retryInfo_; + } else { + return retryInfoBuilder_.getMessage(); + } + } + + /** .google.rpc.RetryInfo retry_info = 4; */ + public Builder setRetryInfo(com.google.rpc.RetryInfo value) { + if (retryInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retryInfo_ = value; + } else { + retryInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** .google.rpc.RetryInfo retry_info = 4; */ + public Builder setRetryInfo(com.google.rpc.RetryInfo.Builder builderForValue) { + if (retryInfoBuilder_ == null) { + retryInfo_ = builderForValue.build(); + } else { + retryInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** .google.rpc.RetryInfo retry_info = 4; */ + public Builder mergeRetryInfo(com.google.rpc.RetryInfo value) { + if (retryInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && retryInfo_ != null + && retryInfo_ != com.google.rpc.RetryInfo.getDefaultInstance()) { + getRetryInfoBuilder().mergeFrom(value); + } else { + retryInfo_ = value; + } + } else { + retryInfoBuilder_.mergeFrom(value); + } + if (retryInfo_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** .google.rpc.RetryInfo retry_info = 4; */ + public Builder clearRetryInfo() { + bitField0_ = (bitField0_ & ~0x00000008); + retryInfo_ = null; + if (retryInfoBuilder_ != null) { + retryInfoBuilder_.dispose(); + retryInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** .google.rpc.RetryInfo retry_info = 4; */ + public com.google.rpc.RetryInfo.Builder getRetryInfoBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetRetryInfoFieldBuilder().getBuilder(); + } + + /** .google.rpc.RetryInfo retry_info = 4; */ + public com.google.rpc.RetryInfoOrBuilder getRetryInfoOrBuilder() { + if (retryInfoBuilder_ != null) { + return retryInfoBuilder_.getMessageOrBuilder(); + } else { + return retryInfo_ == null ? com.google.rpc.RetryInfo.getDefaultInstance() : retryInfo_; + } + } + + /** .google.rpc.RetryInfo retry_info = 4; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.RetryInfo, + com.google.rpc.RetryInfo.Builder, + com.google.rpc.RetryInfoOrBuilder> + internalGetRetryInfoFieldBuilder() { + if (retryInfoBuilder_ == null) { + retryInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.rpc.RetryInfo, + com.google.rpc.RetryInfo.Builder, + com.google.rpc.RetryInfoOrBuilder>( + getRetryInfo(), getParentForChildren(), isClean()); + retryInfo_ = null; + } + return retryInfoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.ErrorResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.ErrorResponse) + private static final com.google.bigtable.v2.ErrorResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.ErrorResponse(); + } + + public static com.google.bigtable.v2.ErrorResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.ErrorResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ErrorResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ErrorResponseOrBuilder.java new file mode 100644 index 0000000000..d29988fedc --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ErrorResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface ErrorResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.ErrorResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Which vRPC this response is for.
+   * 
+ * + * int64 rpc_id = 1; + * + * @return The rpcId. + */ + long getRpcId(); + + /** + * .google.bigtable.v2.ClusterInformation cluster_info = 2; + * + * @return Whether the clusterInfo field is set. + */ + boolean hasClusterInfo(); + + /** + * .google.bigtable.v2.ClusterInformation cluster_info = 2; + * + * @return The clusterInfo. + */ + com.google.bigtable.v2.ClusterInformation getClusterInfo(); + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + com.google.bigtable.v2.ClusterInformationOrBuilder getClusterInfoOrBuilder(); + + /** + * + * + *
+   * The error from the vRPC and any retry information to consider.
+   * 
+ * + * .google.rpc.Status status = 3; + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + + /** + * + * + *
+   * The error from the vRPC and any retry information to consider.
+   * 
+ * + * .google.rpc.Status status = 3; + * + * @return The status. + */ + com.google.rpc.Status getStatus(); + + /** + * + * + *
+   * The error from the vRPC and any retry information to consider.
+   * 
+ * + * .google.rpc.Status status = 3; + */ + com.google.rpc.StatusOrBuilder getStatusOrBuilder(); + + /** + * .google.rpc.RetryInfo retry_info = 4; + * + * @return Whether the retryInfo field is set. + */ + boolean hasRetryInfo(); + + /** + * .google.rpc.RetryInfo retry_info = 4; + * + * @return The retryInfo. + */ + com.google.rpc.RetryInfo getRetryInfo(); + + /** .google.rpc.RetryInfo retry_info = 4; */ + com.google.rpc.RetryInfoOrBuilder getRetryInfoOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ExecuteQueryRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ExecuteQueryRequest.java index 37dd639ce2..65808fb866 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ExecuteQueryRequest.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ExecuteQueryRequest.java @@ -268,7 +268,7 @@ public com.google.protobuf.ByteString getAppProfileIdBytes() { * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See - * google/bigtable/v2/bigtable.proto;l=1101 + * google/bigtable/v2/bigtable.proto;l=1132 * @return The query. */ @java.lang.Override @@ -298,7 +298,7 @@ public java.lang.String getQuery() { * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See - * google/bigtable/v2/bigtable.proto;l=1101 + * google/bigtable/v2/bigtable.proto;l=1132 * @return The bytes for query. */ @java.lang.Override @@ -355,7 +355,7 @@ public com.google.protobuf.ByteString getPreparedQuery() { * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; * * @deprecated google.bigtable.v2.ExecuteQueryRequest.proto_format is deprecated. See - * google/bigtable/v2/bigtable.proto;l=1122 + * google/bigtable/v2/bigtable.proto;l=1153 * @return Whether the protoFormat field is set. */ @java.lang.Override @@ -375,7 +375,7 @@ public boolean hasProtoFormat() { * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; * * @deprecated google.bigtable.v2.ExecuteQueryRequest.proto_format is deprecated. See - * google/bigtable/v2/bigtable.proto;l=1122 + * google/bigtable/v2/bigtable.proto;l=1153 * @return The protoFormat. */ @java.lang.Override @@ -1430,7 +1430,7 @@ public Builder setAppProfileIdBytes(com.google.protobuf.ByteString value) { * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See - * google/bigtable/v2/bigtable.proto;l=1101 + * google/bigtable/v2/bigtable.proto;l=1132 * @return The query. */ @java.lang.Deprecated @@ -1459,7 +1459,7 @@ public java.lang.String getQuery() { * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See - * google/bigtable/v2/bigtable.proto;l=1101 + * google/bigtable/v2/bigtable.proto;l=1132 * @return The bytes for query. */ @java.lang.Deprecated @@ -1488,7 +1488,7 @@ public com.google.protobuf.ByteString getQueryBytes() { * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See - * google/bigtable/v2/bigtable.proto;l=1101 + * google/bigtable/v2/bigtable.proto;l=1132 * @param value The query to set. * @return This builder for chaining. */ @@ -1516,7 +1516,7 @@ public Builder setQuery(java.lang.String value) { * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See - * google/bigtable/v2/bigtable.proto;l=1101 + * google/bigtable/v2/bigtable.proto;l=1132 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1540,7 +1540,7 @@ public Builder clearQuery() { * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See - * google/bigtable/v2/bigtable.proto;l=1101 + * google/bigtable/v2/bigtable.proto;l=1132 * @param value The bytes for query to set. * @return This builder for chaining. */ @@ -1655,7 +1655,7 @@ public Builder clearPreparedQuery() { * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; * * @deprecated google.bigtable.v2.ExecuteQueryRequest.proto_format is deprecated. See - * google/bigtable/v2/bigtable.proto;l=1122 + * google/bigtable/v2/bigtable.proto;l=1153 * @return Whether the protoFormat field is set. */ @java.lang.Override @@ -1675,7 +1675,7 @@ public boolean hasProtoFormat() { * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; * * @deprecated google.bigtable.v2.ExecuteQueryRequest.proto_format is deprecated. See - * google/bigtable/v2/bigtable.proto;l=1122 + * google/bigtable/v2/bigtable.proto;l=1153 * @return The protoFormat. */ @java.lang.Override diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ExecuteQueryRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ExecuteQueryRequestOrBuilder.java index f29ee2741f..262acc8a14 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ExecuteQueryRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ExecuteQueryRequestOrBuilder.java @@ -101,7 +101,7 @@ public interface ExecuteQueryRequestOrBuilder * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See - * google/bigtable/v2/bigtable.proto;l=1101 + * google/bigtable/v2/bigtable.proto;l=1132 * @return The query. */ @java.lang.Deprecated @@ -120,7 +120,7 @@ public interface ExecuteQueryRequestOrBuilder * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See - * google/bigtable/v2/bigtable.proto;l=1101 + * google/bigtable/v2/bigtable.proto;l=1132 * @return The bytes for query. */ @java.lang.Deprecated @@ -158,7 +158,7 @@ public interface ExecuteQueryRequestOrBuilder * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; * * @deprecated google.bigtable.v2.ExecuteQueryRequest.proto_format is deprecated. See - * google/bigtable/v2/bigtable.proto;l=1122 + * google/bigtable/v2/bigtable.proto;l=1153 * @return Whether the protoFormat field is set. */ @java.lang.Deprecated @@ -175,7 +175,7 @@ public interface ExecuteQueryRequestOrBuilder * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; * * @deprecated google.bigtable.v2.ExecuteQueryRequest.proto_format is deprecated. See - * google/bigtable/v2/bigtable.proto;l=1122 + * google/bigtable/v2/bigtable.proto;l=1153 * @return The protoFormat. */ @java.lang.Deprecated diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlags.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlags.java index 46c908818a..0f3f05cae2 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlags.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlags.java @@ -273,6 +273,44 @@ public boolean getPeerInfo() { return peerInfo_; } + public static final int SESSIONS_COMPATIBLE_FIELD_NUMBER = 12; + private boolean sessionsCompatible_ = false; + + /** + * + * + *
+   * Indicates whether the client supports the Bigtable Sessions API.
+   * 
+ * + * bool sessions_compatible = 12; + * + * @return The sessionsCompatible. + */ + @java.lang.Override + public boolean getSessionsCompatible() { + return sessionsCompatible_; + } + + public static final int SESSIONS_REQUIRED_FIELD_NUMBER = 13; + private boolean sessionsRequired_ = false; + + /** + * + * + *
+   * Internal flag to force sessions for internal projects.
+   * 
+ * + * bool sessions_required = 13; + * + * @return The sessionsRequired. + */ + @java.lang.Override + public boolean getSessionsRequired() { + return sessionsRequired_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -317,6 +355,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (peerInfo_ != false) { output.writeBool(11, peerInfo_); } + if (sessionsCompatible_ != false) { + output.writeBool(12, sessionsCompatible_); + } + if (sessionsRequired_ != false) { + output.writeBool(13, sessionsRequired_); + } getUnknownFields().writeTo(output); } @@ -356,6 +400,12 @@ public int getSerializedSize() { if (peerInfo_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, peerInfo_); } + if (sessionsCompatible_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, sessionsCompatible_); + } + if (sessionsRequired_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, sessionsRequired_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -381,6 +431,8 @@ public boolean equals(final java.lang.Object obj) { if (getTrafficDirectorEnabled() != other.getTrafficDirectorEnabled()) return false; if (getDirectAccessRequested() != other.getDirectAccessRequested()) return false; if (getPeerInfo() != other.getPeerInfo()) return false; + if (getSessionsCompatible() != other.getSessionsCompatible()) return false; + if (getSessionsRequired() != other.getSessionsRequired()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -412,6 +464,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDirectAccessRequested()); hash = (37 * hash) + PEER_INFO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPeerInfo()); + hash = (37 * hash) + SESSIONS_COMPATIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSessionsCompatible()); + hash = (37 * hash) + SESSIONS_REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSessionsRequired()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -568,6 +624,8 @@ public Builder clear() { trafficDirectorEnabled_ = false; directAccessRequested_ = false; peerInfo_ = false; + sessionsCompatible_ = false; + sessionsRequired_ = false; return this; } @@ -633,6 +691,12 @@ private void buildPartial0(com.google.bigtable.v2.FeatureFlags result) { if (((from_bitField0_ & 0x00000200) != 0)) { result.peerInfo_ = peerInfo_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.sessionsCompatible_ = sessionsCompatible_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.sessionsRequired_ = sessionsRequired_; + } } @java.lang.Override @@ -677,6 +741,12 @@ public Builder mergeFrom(com.google.bigtable.v2.FeatureFlags other) { if (other.getPeerInfo() != false) { setPeerInfo(other.getPeerInfo()); } + if (other.getSessionsCompatible() != false) { + setSessionsCompatible(other.getSessionsCompatible()); + } + if (other.getSessionsRequired() != false) { + setSessionsRequired(other.getSessionsRequired()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -763,6 +833,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 88 + case 96: + { + sessionsCompatible_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 96 + case 104: + { + sessionsRequired_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1366,6 +1448,118 @@ public Builder clearPeerInfo() { return this; } + private boolean sessionsCompatible_; + + /** + * + * + *
+     * Indicates whether the client supports the Bigtable Sessions API.
+     * 
+ * + * bool sessions_compatible = 12; + * + * @return The sessionsCompatible. + */ + @java.lang.Override + public boolean getSessionsCompatible() { + return sessionsCompatible_; + } + + /** + * + * + *
+     * Indicates whether the client supports the Bigtable Sessions API.
+     * 
+ * + * bool sessions_compatible = 12; + * + * @param value The sessionsCompatible to set. + * @return This builder for chaining. + */ + public Builder setSessionsCompatible(boolean value) { + + sessionsCompatible_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Indicates whether the client supports the Bigtable Sessions API.
+     * 
+ * + * bool sessions_compatible = 12; + * + * @return This builder for chaining. + */ + public Builder clearSessionsCompatible() { + bitField0_ = (bitField0_ & ~0x00000400); + sessionsCompatible_ = false; + onChanged(); + return this; + } + + private boolean sessionsRequired_; + + /** + * + * + *
+     * Internal flag to force sessions for internal projects.
+     * 
+ * + * bool sessions_required = 13; + * + * @return The sessionsRequired. + */ + @java.lang.Override + public boolean getSessionsRequired() { + return sessionsRequired_; + } + + /** + * + * + *
+     * Internal flag to force sessions for internal projects.
+     * 
+ * + * bool sessions_required = 13; + * + * @param value The sessionsRequired to set. + * @return This builder for chaining. + */ + public Builder setSessionsRequired(boolean value) { + + sessionsRequired_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Internal flag to force sessions for internal projects.
+     * 
+ * + * bool sessions_required = 13; + * + * @return This builder for chaining. + */ + public Builder clearSessionsRequired() { + bitField0_ = (bitField0_ & ~0x00000800); + sessionsRequired_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.FeatureFlags) } diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlagsOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlagsOrBuilder.java index 7f41ef5559..c6d5769116 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlagsOrBuilder.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlagsOrBuilder.java @@ -163,4 +163,30 @@ public interface FeatureFlagsOrBuilder * @return The peerInfo. */ boolean getPeerInfo(); + + /** + * + * + *
+   * Indicates whether the client supports the Bigtable Sessions API.
+   * 
+ * + * bool sessions_compatible = 12; + * + * @return The sessionsCompatible. + */ + boolean getSessionsCompatible(); + + /** + * + * + *
+   * Internal flag to force sessions for internal projects.
+   * 
+ * + * bool sessions_required = 13; + * + * @return The sessionsRequired. + */ + boolean getSessionsRequired(); } diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlagsProto.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlagsProto.java index 92e14798bb..b0bbffce2b 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlagsProto.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlagsProto.java @@ -54,7 +54,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n&google/bigtable/v2/feature_flags.proto" - + "\022\022google.bigtable.v2\"\261\002\n\014FeatureFlags\022\025\n" + + "\022\022google.bigtable.v2\"\351\002\n\014FeatureFlags\022\025\n" + "\rreverse_scans\030\001 \001(\010\022\036\n\026mutate_rows_rate" + "_limit\030\003 \001(\010\022\037\n\027mutate_rows_rate_limit2\030" + "\005 \001(\010\022\"\n\032last_scanned_row_responses\030\004 \001(" @@ -62,12 +62,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007 \001(\010\022#\n\033client_side_metrics_enabled\030\010 \001" + "(\010\022 \n\030traffic_director_enabled\030\t \001(\010\022\037\n\027" + "direct_access_requested\030\n \001(\010\022\021\n\tpeer_in" - + "fo\030\013 \001(\010B\273\001\n\026com.google.bigtable.v2B\021Fea" - + "tureFlagsProtoP\001Z8cloud.google.com/go/bi" - + "gtable/apiv2/bigtablepb;bigtablepb\252\002\030Goo" - + "gle.Cloud.Bigtable.V2\312\002\030Google\\Cloud\\Big" - + "table\\V2\352\002\033Google::Cloud::Bigtable::V2b\006" - + "proto3" + + "fo\030\013 \001(\010\022\033\n\023sessions_compatible\030\014 \001(\010\022\031\n" + + "\021sessions_required\030\r \001(\010B\273\001\n\026com.google." + + "bigtable.v2B\021FeatureFlagsProtoP\001Z8cloud." + + "google.com/go/bigtable/apiv2/bigtablepb;" + + "bigtablepb\252\002\030Google.Cloud.Bigtable.V2\312\002\030" + + "Google\\Cloud\\Bigtable\\V2\352\002\033Google::Cloud" + + "::Bigtable::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -87,6 +88,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TrafficDirectorEnabled", "DirectAccessRequested", "PeerInfo", + "SessionsCompatible", + "SessionsRequired", }); descriptor.resolveAllFeaturesImmutable(); } diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/GetClientConfigurationRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/GetClientConfigurationRequest.java new file mode 100644 index 0000000000..bece1ef443 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/GetClientConfigurationRequest.java @@ -0,0 +1,841 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * See GetClientConfiguration() RPC in bigtable.proto. Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.GetClientConfigurationRequest} + */ +@com.google.protobuf.Generated +public final class GetClientConfigurationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.GetClientConfigurationRequest) + GetClientConfigurationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetClientConfigurationRequest"); + } + + // Use GetClientConfigurationRequest.newBuilder() to construct. + private GetClientConfigurationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetClientConfigurationRequest() { + instanceName_ = ""; + appProfileId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_GetClientConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_GetClientConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.GetClientConfigurationRequest.class, + com.google.bigtable.v2.GetClientConfigurationRequest.Builder.class); + } + + public static final int INSTANCE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceName_ = ""; + + /** + * + * + *
+   * Required. The unique name of the instance for which the client will target
+   * with Data API requests.
+   *
+   * Values are of the form `projects/<project>/instances/<instance>`
+   * 
+ * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The instanceName. + */ + @java.lang.Override + public java.lang.String getInstanceName() { + java.lang.Object ref = instanceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceName_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The unique name of the instance for which the client will target
+   * with Data API requests.
+   *
+   * Values are of the form `projects/<project>/instances/<instance>`
+   * 
+ * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instanceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceNameBytes() { + java.lang.Object ref = instanceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_PROFILE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object appProfileId_ = ""; + + /** + * + * + *
+   * Optional. The name of the AppProfile which will be used by the client when
+   * sending requests in the Data API.
+   *
+   * If not specified, the `default` application profile will be used.
+   * 
+ * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appProfileId. + */ + @java.lang.Override + public java.lang.String getAppProfileId() { + java.lang.Object ref = appProfileId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appProfileId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The name of the AppProfile which will be used by the client when
+   * sending requests in the Data API.
+   *
+   * If not specified, the `default` application profile will be used.
+   * 
+ * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appProfileId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppProfileIdBytes() { + java.lang.Object ref = appProfileId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, instanceName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appProfileId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, appProfileId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instanceName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appProfileId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, appProfileId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.GetClientConfigurationRequest)) { + return super.equals(obj); + } + com.google.bigtable.v2.GetClientConfigurationRequest other = + (com.google.bigtable.v2.GetClientConfigurationRequest) obj; + + if (!getInstanceName().equals(other.getInstanceName())) return false; + if (!getAppProfileId().equals(other.getAppProfileId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INSTANCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getInstanceName().hashCode(); + hash = (37 * hash) + APP_PROFILE_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppProfileId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.GetClientConfigurationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.GetClientConfigurationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.GetClientConfigurationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.GetClientConfigurationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.GetClientConfigurationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.GetClientConfigurationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.GetClientConfigurationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.GetClientConfigurationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.GetClientConfigurationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.GetClientConfigurationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.GetClientConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.GetClientConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.GetClientConfigurationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * See GetClientConfiguration() RPC in bigtable.proto. Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.GetClientConfigurationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.GetClientConfigurationRequest) + com.google.bigtable.v2.GetClientConfigurationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_GetClientConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_GetClientConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.GetClientConfigurationRequest.class, + com.google.bigtable.v2.GetClientConfigurationRequest.Builder.class); + } + + // Construct using com.google.bigtable.v2.GetClientConfigurationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceName_ = ""; + appProfileId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_GetClientConfigurationRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.GetClientConfigurationRequest getDefaultInstanceForType() { + return com.google.bigtable.v2.GetClientConfigurationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.GetClientConfigurationRequest build() { + com.google.bigtable.v2.GetClientConfigurationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.GetClientConfigurationRequest buildPartial() { + com.google.bigtable.v2.GetClientConfigurationRequest result = + new com.google.bigtable.v2.GetClientConfigurationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.GetClientConfigurationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceName_ = instanceName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.appProfileId_ = appProfileId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.GetClientConfigurationRequest) { + return mergeFrom((com.google.bigtable.v2.GetClientConfigurationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.GetClientConfigurationRequest other) { + if (other == com.google.bigtable.v2.GetClientConfigurationRequest.getDefaultInstance()) + return this; + if (!other.getInstanceName().isEmpty()) { + instanceName_ = other.instanceName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAppProfileId().isEmpty()) { + appProfileId_ = other.appProfileId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + instanceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + appProfileId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object instanceName_ = ""; + + /** + * + * + *
+     * Required. The unique name of the instance for which the client will target
+     * with Data API requests.
+     *
+     * Values are of the form `projects/<project>/instances/<instance>`
+     * 
+ * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The instanceName. + */ + public java.lang.String getInstanceName() { + java.lang.Object ref = instanceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The unique name of the instance for which the client will target
+     * with Data API requests.
+     *
+     * Values are of the form `projects/<project>/instances/<instance>`
+     * 
+ * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instanceName. + */ + public com.google.protobuf.ByteString getInstanceNameBytes() { + java.lang.Object ref = instanceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The unique name of the instance for which the client will target
+     * with Data API requests.
+     *
+     * Values are of the form `projects/<project>/instances/<instance>`
+     * 
+ * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The instanceName to set. + * @return This builder for chaining. + */ + public Builder setInstanceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The unique name of the instance for which the client will target
+     * with Data API requests.
+     *
+     * Values are of the form `projects/<project>/instances/<instance>`
+     * 
+ * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearInstanceName() { + instanceName_ = getDefaultInstance().getInstanceName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The unique name of the instance for which the client will target
+     * with Data API requests.
+     *
+     * Values are of the form `projects/<project>/instances/<instance>`
+     * 
+ * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for instanceName to set. + * @return This builder for chaining. + */ + public Builder setInstanceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object appProfileId_ = ""; + + /** + * + * + *
+     * Optional. The name of the AppProfile which will be used by the client when
+     * sending requests in the Data API.
+     *
+     * If not specified, the `default` application profile will be used.
+     * 
+ * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appProfileId. + */ + public java.lang.String getAppProfileId() { + java.lang.Object ref = appProfileId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appProfileId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The name of the AppProfile which will be used by the client when
+     * sending requests in the Data API.
+     *
+     * If not specified, the `default` application profile will be used.
+     * 
+ * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appProfileId. + */ + public com.google.protobuf.ByteString getAppProfileIdBytes() { + java.lang.Object ref = appProfileId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The name of the AppProfile which will be used by the client when
+     * sending requests in the Data API.
+     *
+     * If not specified, the `default` application profile will be used.
+     * 
+ * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The appProfileId to set. + * @return This builder for chaining. + */ + public Builder setAppProfileId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appProfileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The name of the AppProfile which will be used by the client when
+     * sending requests in the Data API.
+     *
+     * If not specified, the `default` application profile will be used.
+     * 
+ * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAppProfileId() { + appProfileId_ = getDefaultInstance().getAppProfileId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The name of the AppProfile which will be used by the client when
+     * sending requests in the Data API.
+     *
+     * If not specified, the `default` application profile will be used.
+     * 
+ * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for appProfileId to set. + * @return This builder for chaining. + */ + public Builder setAppProfileIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appProfileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.GetClientConfigurationRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.GetClientConfigurationRequest) + private static final com.google.bigtable.v2.GetClientConfigurationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.GetClientConfigurationRequest(); + } + + public static com.google.bigtable.v2.GetClientConfigurationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetClientConfigurationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.GetClientConfigurationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/GetClientConfigurationRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/GetClientConfigurationRequestOrBuilder.java new file mode 100644 index 0000000000..1cb100829d --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/GetClientConfigurationRequestOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface GetClientConfigurationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.GetClientConfigurationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The unique name of the instance for which the client will target
+   * with Data API requests.
+   *
+   * Values are of the form `projects/<project>/instances/<instance>`
+   * 
+ * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The instanceName. + */ + java.lang.String getInstanceName(); + + /** + * + * + *
+   * Required. The unique name of the instance for which the client will target
+   * with Data API requests.
+   *
+   * Values are of the form `projects/<project>/instances/<instance>`
+   * 
+ * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instanceName. + */ + com.google.protobuf.ByteString getInstanceNameBytes(); + + /** + * + * + *
+   * Optional. The name of the AppProfile which will be used by the client when
+   * sending requests in the Data API.
+   *
+   * If not specified, the `default` application profile will be used.
+   * 
+ * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appProfileId. + */ + java.lang.String getAppProfileId(); + + /** + * + * + *
+   * Optional. The name of the AppProfile which will be used by the client when
+   * sending requests in the Data API.
+   *
+   * If not specified, the `default` application profile will be used.
+   * 
+ * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appProfileId. + */ + com.google.protobuf.ByteString getAppProfileIdBytes(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/GoAwayResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/GoAwayResponse.java new file mode 100644 index 0000000000..bc76b77715 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/GoAwayResponse.java @@ -0,0 +1,852 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.GoAwayResponse} + */ +@com.google.protobuf.Generated +public final class GoAwayResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.GoAwayResponse) + GoAwayResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GoAwayResponse"); + } + + // Use GoAwayResponse.newBuilder() to construct. + private GoAwayResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GoAwayResponse() { + reason_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_GoAwayResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_GoAwayResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.GoAwayResponse.class, + com.google.bigtable.v2.GoAwayResponse.Builder.class); + } + + public static final int REASON_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object reason_ = ""; + + /** + * + * + *
+   * Server-generated reason for GOAWAY, including a plain-text description of
+   * why. 'reason' may be used for CSM, while both may be logged.
+   * 
+ * + * string reason = 1; + * + * @return The reason. + */ + @java.lang.Override + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } + } + + /** + * + * + *
+   * Server-generated reason for GOAWAY, including a plain-text description of
+   * why. 'reason' may be used for CSM, while both may be logged.
+   * 
+ * + * string reason = 1; + * + * @return The bytes for reason. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * string description = 2; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * string description = 2; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAST_RPC_ID_ADMITTED_FIELD_NUMBER = 3; + private long lastRpcIdAdmitted_ = 0L; + + /** + * + * + *
+   * The last vRPC which was admitted by the AFE. The client may expect the
+   * result from the vRPC on the stream before disconnecting, and should
+   * retry vRPCs beyond this boundary.
+   * 
+ * + * int64 last_rpc_id_admitted = 3; + * + * @return The lastRpcIdAdmitted. + */ + @java.lang.Override + public long getLastRpcIdAdmitted() { + return lastRpcIdAdmitted_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reason_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, reason_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (lastRpcIdAdmitted_ != 0L) { + output.writeInt64(3, lastRpcIdAdmitted_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reason_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, reason_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (lastRpcIdAdmitted_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, lastRpcIdAdmitted_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.GoAwayResponse)) { + return super.equals(obj); + } + com.google.bigtable.v2.GoAwayResponse other = (com.google.bigtable.v2.GoAwayResponse) obj; + + if (!getReason().equals(other.getReason())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getLastRpcIdAdmitted() != other.getLastRpcIdAdmitted()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + LAST_RPC_ID_ADMITTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLastRpcIdAdmitted()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.GoAwayResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.GoAwayResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.GoAwayResponse parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.GoAwayResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.GoAwayResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.GoAwayResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.GoAwayResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.GoAwayResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.GoAwayResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.GoAwayResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.GoAwayResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.GoAwayResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.GoAwayResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.GoAwayResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.GoAwayResponse) + com.google.bigtable.v2.GoAwayResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_GoAwayResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_GoAwayResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.GoAwayResponse.class, + com.google.bigtable.v2.GoAwayResponse.Builder.class); + } + + // Construct using com.google.bigtable.v2.GoAwayResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reason_ = ""; + description_ = ""; + lastRpcIdAdmitted_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_GoAwayResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.GoAwayResponse getDefaultInstanceForType() { + return com.google.bigtable.v2.GoAwayResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.GoAwayResponse build() { + com.google.bigtable.v2.GoAwayResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.GoAwayResponse buildPartial() { + com.google.bigtable.v2.GoAwayResponse result = + new com.google.bigtable.v2.GoAwayResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.GoAwayResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reason_ = reason_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.lastRpcIdAdmitted_ = lastRpcIdAdmitted_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.GoAwayResponse) { + return mergeFrom((com.google.bigtable.v2.GoAwayResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.GoAwayResponse other) { + if (other == com.google.bigtable.v2.GoAwayResponse.getDefaultInstance()) return this; + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getLastRpcIdAdmitted() != 0L) { + setLastRpcIdAdmitted(other.getLastRpcIdAdmitted()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + lastRpcIdAdmitted_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object reason_ = ""; + + /** + * + * + *
+     * Server-generated reason for GOAWAY, including a plain-text description of
+     * why. 'reason' may be used for CSM, while both may be logged.
+     * 
+ * + * string reason = 1; + * + * @return The reason. + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Server-generated reason for GOAWAY, including a plain-text description of
+     * why. 'reason' may be used for CSM, while both may be logged.
+     * 
+ * + * string reason = 1; + * + * @return The bytes for reason. + */ + public com.google.protobuf.ByteString getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Server-generated reason for GOAWAY, including a plain-text description of
+     * why. 'reason' may be used for CSM, while both may be logged.
+     * 
+ * + * string reason = 1; + * + * @param value The reason to set. + * @return This builder for chaining. + */ + public Builder setReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Server-generated reason for GOAWAY, including a plain-text description of
+     * why. 'reason' may be used for CSM, while both may be logged.
+     * 
+ * + * string reason = 1; + * + * @return This builder for chaining. + */ + public Builder clearReason() { + reason_ = getDefaultInstance().getReason(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Server-generated reason for GOAWAY, including a plain-text description of
+     * why. 'reason' may be used for CSM, while both may be logged.
+     * 
+ * + * string reason = 1; + * + * @param value The bytes for reason to set. + * @return This builder for chaining. + */ + public Builder setReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * string description = 2; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string description = 2; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * string description = 2; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long lastRpcIdAdmitted_; + + /** + * + * + *
+     * The last vRPC which was admitted by the AFE. The client may expect the
+     * result from the vRPC on the stream before disconnecting, and should
+     * retry vRPCs beyond this boundary.
+     * 
+ * + * int64 last_rpc_id_admitted = 3; + * + * @return The lastRpcIdAdmitted. + */ + @java.lang.Override + public long getLastRpcIdAdmitted() { + return lastRpcIdAdmitted_; + } + + /** + * + * + *
+     * The last vRPC which was admitted by the AFE. The client may expect the
+     * result from the vRPC on the stream before disconnecting, and should
+     * retry vRPCs beyond this boundary.
+     * 
+ * + * int64 last_rpc_id_admitted = 3; + * + * @param value The lastRpcIdAdmitted to set. + * @return This builder for chaining. + */ + public Builder setLastRpcIdAdmitted(long value) { + + lastRpcIdAdmitted_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The last vRPC which was admitted by the AFE. The client may expect the
+     * result from the vRPC on the stream before disconnecting, and should
+     * retry vRPCs beyond this boundary.
+     * 
+ * + * int64 last_rpc_id_admitted = 3; + * + * @return This builder for chaining. + */ + public Builder clearLastRpcIdAdmitted() { + bitField0_ = (bitField0_ & ~0x00000004); + lastRpcIdAdmitted_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.GoAwayResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.GoAwayResponse) + private static final com.google.bigtable.v2.GoAwayResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.GoAwayResponse(); + } + + public static com.google.bigtable.v2.GoAwayResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoAwayResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.GoAwayResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/GoAwayResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/GoAwayResponseOrBuilder.java new file mode 100644 index 0000000000..3bddd8a3bd --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/GoAwayResponseOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface GoAwayResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.GoAwayResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Server-generated reason for GOAWAY, including a plain-text description of
+   * why. 'reason' may be used for CSM, while both may be logged.
+   * 
+ * + * string reason = 1; + * + * @return The reason. + */ + java.lang.String getReason(); + + /** + * + * + *
+   * Server-generated reason for GOAWAY, including a plain-text description of
+   * why. 'reason' may be used for CSM, while both may be logged.
+   * 
+ * + * string reason = 1; + * + * @return The bytes for reason. + */ + com.google.protobuf.ByteString getReasonBytes(); + + /** + * string description = 2; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * string description = 2; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * The last vRPC which was admitted by the AFE. The client may expect the
+   * result from the vRPC on the stream before disconnecting, and should
+   * retry vRPCs beyond this boundary.
+   * 
+ * + * int64 last_rpc_id_admitted = 3; + * + * @return The lastRpcIdAdmitted. + */ + long getLastRpcIdAdmitted(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/HeartbeatResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/HeartbeatResponse.java new file mode 100644 index 0000000000..3c10f838b8 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/HeartbeatResponse.java @@ -0,0 +1,394 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.HeartbeatResponse} + */ +@com.google.protobuf.Generated +public final class HeartbeatResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.HeartbeatResponse) + HeartbeatResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HeartbeatResponse"); + } + + // Use HeartbeatResponse.newBuilder() to construct. + private HeartbeatResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private HeartbeatResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_HeartbeatResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_HeartbeatResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.HeartbeatResponse.class, + com.google.bigtable.v2.HeartbeatResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.HeartbeatResponse)) { + return super.equals(obj); + } + com.google.bigtable.v2.HeartbeatResponse other = (com.google.bigtable.v2.HeartbeatResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.HeartbeatResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.HeartbeatResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.HeartbeatResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.HeartbeatResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.HeartbeatResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.HeartbeatResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.HeartbeatResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.HeartbeatResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.HeartbeatResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.HeartbeatResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.HeartbeatResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.HeartbeatResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.HeartbeatResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.HeartbeatResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.HeartbeatResponse) + com.google.bigtable.v2.HeartbeatResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_HeartbeatResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_HeartbeatResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.HeartbeatResponse.class, + com.google.bigtable.v2.HeartbeatResponse.Builder.class); + } + + // Construct using com.google.bigtable.v2.HeartbeatResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_HeartbeatResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.HeartbeatResponse getDefaultInstanceForType() { + return com.google.bigtable.v2.HeartbeatResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.HeartbeatResponse build() { + com.google.bigtable.v2.HeartbeatResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.HeartbeatResponse buildPartial() { + com.google.bigtable.v2.HeartbeatResponse result = + new com.google.bigtable.v2.HeartbeatResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.HeartbeatResponse) { + return mergeFrom((com.google.bigtable.v2.HeartbeatResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.HeartbeatResponse other) { + if (other == com.google.bigtable.v2.HeartbeatResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.HeartbeatResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.HeartbeatResponse) + private static final com.google.bigtable.v2.HeartbeatResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.HeartbeatResponse(); + } + + public static com.google.bigtable.v2.HeartbeatResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HeartbeatResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.HeartbeatResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/HeartbeatResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/HeartbeatResponseOrBuilder.java new file mode 100644 index 0000000000..7e29853099 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/HeartbeatResponseOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface HeartbeatResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.HeartbeatResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/LoadBalancingOptions.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/LoadBalancingOptions.java new file mode 100644 index 0000000000..e9443eecbe --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/LoadBalancingOptions.java @@ -0,0 +1,2567 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Configuration for how to balance vRPCs over sessions. Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.LoadBalancingOptions} + */ +@com.google.protobuf.Generated +public final class LoadBalancingOptions extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.LoadBalancingOptions) + LoadBalancingOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LoadBalancingOptions"); + } + + // Use LoadBalancingOptions.newBuilder() to construct. + private LoadBalancingOptions(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LoadBalancingOptions() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.LoadBalancingOptions.class, + com.google.bigtable.v2.LoadBalancingOptions.Builder.class); + } + + public interface LeastInFlightOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.LoadBalancingOptions.LeastInFlight) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Of all connected AFEs, the size of the random subset to run the algorithm
+     * on. Zero implies all connected AFEs.
+     * 
+ * + * int64 random_subset_size = 1; + * + * @return The randomSubsetSize. + */ + long getRandomSubsetSize(); + } + + /** + * + * + *
+   * Balances vRPCs over backends, preferring to send new vRPCs to AFEs with the
+   * least number of active vRPCs.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.LoadBalancingOptions.LeastInFlight} + */ + public static final class LeastInFlight extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.LoadBalancingOptions.LeastInFlight) + LeastInFlightOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LeastInFlight"); + } + + // Use LeastInFlight.newBuilder() to construct. + private LeastInFlight(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LeastInFlight() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_LeastInFlight_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_LeastInFlight_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.class, + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.Builder.class); + } + + public static final int RANDOM_SUBSET_SIZE_FIELD_NUMBER = 1; + private long randomSubsetSize_ = 0L; + + /** + * + * + *
+     * Of all connected AFEs, the size of the random subset to run the algorithm
+     * on. Zero implies all connected AFEs.
+     * 
+ * + * int64 random_subset_size = 1; + * + * @return The randomSubsetSize. + */ + @java.lang.Override + public long getRandomSubsetSize() { + return randomSubsetSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (randomSubsetSize_ != 0L) { + output.writeInt64(1, randomSubsetSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (randomSubsetSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, randomSubsetSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight)) { + return super.equals(obj); + } + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight other = + (com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight) obj; + + if (getRandomSubsetSize() != other.getRandomSubsetSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RANDOM_SUBSET_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRandomSubsetSize()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Balances vRPCs over backends, preferring to send new vRPCs to AFEs with the
+     * least number of active vRPCs.
+     * 
+ * + * Protobuf type {@code google.bigtable.v2.LoadBalancingOptions.LeastInFlight} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.LoadBalancingOptions.LeastInFlight) + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlightOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_LeastInFlight_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_LeastInFlight_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.class, + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.Builder.class); + } + + // Construct using com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + randomSubsetSize_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_LeastInFlight_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight getDefaultInstanceForType() { + return com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight build() { + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight buildPartial() { + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight result = + new com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.randomSubsetSize_ = randomSubsetSize_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight) { + return mergeFrom((com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight other) { + if (other == com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.getDefaultInstance()) + return this; + if (other.getRandomSubsetSize() != 0L) { + setRandomSubsetSize(other.getRandomSubsetSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + randomSubsetSize_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long randomSubsetSize_; + + /** + * + * + *
+       * Of all connected AFEs, the size of the random subset to run the algorithm
+       * on. Zero implies all connected AFEs.
+       * 
+ * + * int64 random_subset_size = 1; + * + * @return The randomSubsetSize. + */ + @java.lang.Override + public long getRandomSubsetSize() { + return randomSubsetSize_; + } + + /** + * + * + *
+       * Of all connected AFEs, the size of the random subset to run the algorithm
+       * on. Zero implies all connected AFEs.
+       * 
+ * + * int64 random_subset_size = 1; + * + * @param value The randomSubsetSize to set. + * @return This builder for chaining. + */ + public Builder setRandomSubsetSize(long value) { + + randomSubsetSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Of all connected AFEs, the size of the random subset to run the algorithm
+       * on. Zero implies all connected AFEs.
+       * 
+ * + * int64 random_subset_size = 1; + * + * @return This builder for chaining. + */ + public Builder clearRandomSubsetSize() { + bitField0_ = (bitField0_ & ~0x00000001); + randomSubsetSize_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.LoadBalancingOptions.LeastInFlight) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.LoadBalancingOptions.LeastInFlight) + private static final com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight(); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LeastInFlight parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PeakEwmaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.LoadBalancingOptions.PeakEwma) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Of all connected AFEs, the size of the random subset to compare costs
+     * over. Zero implies all connected AFEs.
+     * 
+ * + * int64 random_subset_size = 1; + * + * @return The randomSubsetSize. + */ + long getRandomSubsetSize(); + } + + /** + * + * + *
+   * Balances vRPCs over backends, by maintaining a moving average of each AFE's
+   * round-trip time, weighted by the number of outstanding vRPCs, and
+   * distribute traffic to AFEs where that cost function is smallest.
+   *
+   * See:
+   * https://linkerd.io/2016/03/16/beyond-round-robin-load-balancing-for-latency
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.LoadBalancingOptions.PeakEwma} + */ + public static final class PeakEwma extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.LoadBalancingOptions.PeakEwma) + PeakEwmaOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PeakEwma"); + } + + // Use PeakEwma.newBuilder() to construct. + private PeakEwma(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PeakEwma() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_PeakEwma_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_PeakEwma_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.class, + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.Builder.class); + } + + public static final int RANDOM_SUBSET_SIZE_FIELD_NUMBER = 1; + private long randomSubsetSize_ = 0L; + + /** + * + * + *
+     * Of all connected AFEs, the size of the random subset to compare costs
+     * over. Zero implies all connected AFEs.
+     * 
+ * + * int64 random_subset_size = 1; + * + * @return The randomSubsetSize. + */ + @java.lang.Override + public long getRandomSubsetSize() { + return randomSubsetSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (randomSubsetSize_ != 0L) { + output.writeInt64(1, randomSubsetSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (randomSubsetSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, randomSubsetSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.LoadBalancingOptions.PeakEwma)) { + return super.equals(obj); + } + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma other = + (com.google.bigtable.v2.LoadBalancingOptions.PeakEwma) obj; + + if (getRandomSubsetSize() != other.getRandomSubsetSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RANDOM_SUBSET_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRandomSubsetSize()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.LoadBalancingOptions.PeakEwma parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.PeakEwma parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.PeakEwma parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.PeakEwma parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.PeakEwma parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.PeakEwma parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.PeakEwma parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.PeakEwma parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.PeakEwma parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.PeakEwma parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.PeakEwma parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.PeakEwma parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Balances vRPCs over backends, by maintaining a moving average of each AFE's
+     * round-trip time, weighted by the number of outstanding vRPCs, and
+     * distribute traffic to AFEs where that cost function is smallest.
+     *
+     * See:
+     * https://linkerd.io/2016/03/16/beyond-round-robin-load-balancing-for-latency
+     * 
+ * + * Protobuf type {@code google.bigtable.v2.LoadBalancingOptions.PeakEwma} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.LoadBalancingOptions.PeakEwma) + com.google.bigtable.v2.LoadBalancingOptions.PeakEwmaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_PeakEwma_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_PeakEwma_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.class, + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.Builder.class); + } + + // Construct using com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + randomSubsetSize_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_PeakEwma_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.PeakEwma getDefaultInstanceForType() { + return com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.PeakEwma build() { + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.PeakEwma buildPartial() { + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma result = + new com.google.bigtable.v2.LoadBalancingOptions.PeakEwma(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.LoadBalancingOptions.PeakEwma result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.randomSubsetSize_ = randomSubsetSize_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.LoadBalancingOptions.PeakEwma) { + return mergeFrom((com.google.bigtable.v2.LoadBalancingOptions.PeakEwma) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.LoadBalancingOptions.PeakEwma other) { + if (other == com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.getDefaultInstance()) + return this; + if (other.getRandomSubsetSize() != 0L) { + setRandomSubsetSize(other.getRandomSubsetSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + randomSubsetSize_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long randomSubsetSize_; + + /** + * + * + *
+       * Of all connected AFEs, the size of the random subset to compare costs
+       * over. Zero implies all connected AFEs.
+       * 
+ * + * int64 random_subset_size = 1; + * + * @return The randomSubsetSize. + */ + @java.lang.Override + public long getRandomSubsetSize() { + return randomSubsetSize_; + } + + /** + * + * + *
+       * Of all connected AFEs, the size of the random subset to compare costs
+       * over. Zero implies all connected AFEs.
+       * 
+ * + * int64 random_subset_size = 1; + * + * @param value The randomSubsetSize to set. + * @return This builder for chaining. + */ + public Builder setRandomSubsetSize(long value) { + + randomSubsetSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Of all connected AFEs, the size of the random subset to compare costs
+       * over. Zero implies all connected AFEs.
+       * 
+ * + * int64 random_subset_size = 1; + * + * @return This builder for chaining. + */ + public Builder clearRandomSubsetSize() { + bitField0_ = (bitField0_ & ~0x00000001); + randomSubsetSize_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.LoadBalancingOptions.PeakEwma) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.LoadBalancingOptions.PeakEwma) + private static final com.google.bigtable.v2.LoadBalancingOptions.PeakEwma DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.LoadBalancingOptions.PeakEwma(); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.PeakEwma getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PeakEwma parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.PeakEwma getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RandomOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.LoadBalancingOptions.Random) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
+   * Balances vRPCs over backends, by randomly selecting a backend.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.LoadBalancingOptions.Random} + */ + public static final class Random extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.LoadBalancingOptions.Random) + RandomOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Random"); + } + + // Use Random.newBuilder() to construct. + private Random(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Random() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_Random_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_Random_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.LoadBalancingOptions.Random.class, + com.google.bigtable.v2.LoadBalancingOptions.Random.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.LoadBalancingOptions.Random)) { + return super.equals(obj); + } + com.google.bigtable.v2.LoadBalancingOptions.Random other = + (com.google.bigtable.v2.LoadBalancingOptions.Random) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.LoadBalancingOptions.Random parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.Random parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.Random parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.Random parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.Random parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.Random parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.Random parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.Random parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.Random parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.Random parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.Random parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.Random parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.LoadBalancingOptions.Random prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Balances vRPCs over backends, by randomly selecting a backend.
+     * 
+ * + * Protobuf type {@code google.bigtable.v2.LoadBalancingOptions.Random} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.LoadBalancingOptions.Random) + com.google.bigtable.v2.LoadBalancingOptions.RandomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_Random_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_Random_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.LoadBalancingOptions.Random.class, + com.google.bigtable.v2.LoadBalancingOptions.Random.Builder.class); + } + + // Construct using com.google.bigtable.v2.LoadBalancingOptions.Random.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_Random_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.Random getDefaultInstanceForType() { + return com.google.bigtable.v2.LoadBalancingOptions.Random.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.Random build() { + com.google.bigtable.v2.LoadBalancingOptions.Random result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.Random buildPartial() { + com.google.bigtable.v2.LoadBalancingOptions.Random result = + new com.google.bigtable.v2.LoadBalancingOptions.Random(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.LoadBalancingOptions.Random) { + return mergeFrom((com.google.bigtable.v2.LoadBalancingOptions.Random) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.LoadBalancingOptions.Random other) { + if (other == com.google.bigtable.v2.LoadBalancingOptions.Random.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.LoadBalancingOptions.Random) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.LoadBalancingOptions.Random) + private static final com.google.bigtable.v2.LoadBalancingOptions.Random DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.LoadBalancingOptions.Random(); + } + + public static com.google.bigtable.v2.LoadBalancingOptions.Random getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Random parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.Random getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int loadBalancingStrategyCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object loadBalancingStrategy_; + + public enum LoadBalancingStrategyCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + LEAST_IN_FLIGHT(1), + PEAK_EWMA(2), + RANDOM(4), + LOADBALANCINGSTRATEGY_NOT_SET(0); + private final int value; + + private LoadBalancingStrategyCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LoadBalancingStrategyCase valueOf(int value) { + return forNumber(value); + } + + public static LoadBalancingStrategyCase forNumber(int value) { + switch (value) { + case 1: + return LEAST_IN_FLIGHT; + case 2: + return PEAK_EWMA; + case 4: + return RANDOM; + case 0: + return LOADBALANCINGSTRATEGY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public LoadBalancingStrategyCase getLoadBalancingStrategyCase() { + return LoadBalancingStrategyCase.forNumber(loadBalancingStrategyCase_); + } + + public static final int LEAST_IN_FLIGHT_FIELD_NUMBER = 1; + + /** + * .google.bigtable.v2.LoadBalancingOptions.LeastInFlight least_in_flight = 1; + * + * @return Whether the leastInFlight field is set. + */ + @java.lang.Override + public boolean hasLeastInFlight() { + return loadBalancingStrategyCase_ == 1; + } + + /** + * .google.bigtable.v2.LoadBalancingOptions.LeastInFlight least_in_flight = 1; + * + * @return The leastInFlight. + */ + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight getLeastInFlight() { + if (loadBalancingStrategyCase_ == 1) { + return (com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight) loadBalancingStrategy_; + } + return com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.getDefaultInstance(); + } + + /** .google.bigtable.v2.LoadBalancingOptions.LeastInFlight least_in_flight = 1; */ + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.LeastInFlightOrBuilder + getLeastInFlightOrBuilder() { + if (loadBalancingStrategyCase_ == 1) { + return (com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight) loadBalancingStrategy_; + } + return com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.getDefaultInstance(); + } + + public static final int PEAK_EWMA_FIELD_NUMBER = 2; + + /** + * .google.bigtable.v2.LoadBalancingOptions.PeakEwma peak_ewma = 2; + * + * @return Whether the peakEwma field is set. + */ + @java.lang.Override + public boolean hasPeakEwma() { + return loadBalancingStrategyCase_ == 2; + } + + /** + * .google.bigtable.v2.LoadBalancingOptions.PeakEwma peak_ewma = 2; + * + * @return The peakEwma. + */ + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.PeakEwma getPeakEwma() { + if (loadBalancingStrategyCase_ == 2) { + return (com.google.bigtable.v2.LoadBalancingOptions.PeakEwma) loadBalancingStrategy_; + } + return com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.getDefaultInstance(); + } + + /** .google.bigtable.v2.LoadBalancingOptions.PeakEwma peak_ewma = 2; */ + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.PeakEwmaOrBuilder getPeakEwmaOrBuilder() { + if (loadBalancingStrategyCase_ == 2) { + return (com.google.bigtable.v2.LoadBalancingOptions.PeakEwma) loadBalancingStrategy_; + } + return com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.getDefaultInstance(); + } + + public static final int RANDOM_FIELD_NUMBER = 4; + + /** + * .google.bigtable.v2.LoadBalancingOptions.Random random = 4; + * + * @return Whether the random field is set. + */ + @java.lang.Override + public boolean hasRandom() { + return loadBalancingStrategyCase_ == 4; + } + + /** + * .google.bigtable.v2.LoadBalancingOptions.Random random = 4; + * + * @return The random. + */ + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.Random getRandom() { + if (loadBalancingStrategyCase_ == 4) { + return (com.google.bigtable.v2.LoadBalancingOptions.Random) loadBalancingStrategy_; + } + return com.google.bigtable.v2.LoadBalancingOptions.Random.getDefaultInstance(); + } + + /** .google.bigtable.v2.LoadBalancingOptions.Random random = 4; */ + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.RandomOrBuilder getRandomOrBuilder() { + if (loadBalancingStrategyCase_ == 4) { + return (com.google.bigtable.v2.LoadBalancingOptions.Random) loadBalancingStrategy_; + } + return com.google.bigtable.v2.LoadBalancingOptions.Random.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (loadBalancingStrategyCase_ == 1) { + output.writeMessage( + 1, (com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight) loadBalancingStrategy_); + } + if (loadBalancingStrategyCase_ == 2) { + output.writeMessage( + 2, (com.google.bigtable.v2.LoadBalancingOptions.PeakEwma) loadBalancingStrategy_); + } + if (loadBalancingStrategyCase_ == 4) { + output.writeMessage( + 4, (com.google.bigtable.v2.LoadBalancingOptions.Random) loadBalancingStrategy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (loadBalancingStrategyCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight) loadBalancingStrategy_); + } + if (loadBalancingStrategyCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.bigtable.v2.LoadBalancingOptions.PeakEwma) loadBalancingStrategy_); + } + if (loadBalancingStrategyCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.bigtable.v2.LoadBalancingOptions.Random) loadBalancingStrategy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.LoadBalancingOptions)) { + return super.equals(obj); + } + com.google.bigtable.v2.LoadBalancingOptions other = + (com.google.bigtable.v2.LoadBalancingOptions) obj; + + if (!getLoadBalancingStrategyCase().equals(other.getLoadBalancingStrategyCase())) return false; + switch (loadBalancingStrategyCase_) { + case 1: + if (!getLeastInFlight().equals(other.getLeastInFlight())) return false; + break; + case 2: + if (!getPeakEwma().equals(other.getPeakEwma())) return false; + break; + case 4: + if (!getRandom().equals(other.getRandom())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (loadBalancingStrategyCase_) { + case 1: + hash = (37 * hash) + LEAST_IN_FLIGHT_FIELD_NUMBER; + hash = (53 * hash) + getLeastInFlight().hashCode(); + break; + case 2: + hash = (37 * hash) + PEAK_EWMA_FIELD_NUMBER; + hash = (53 * hash) + getPeakEwma().hashCode(); + break; + case 4: + hash = (37 * hash) + RANDOM_FIELD_NUMBER; + hash = (53 * hash) + getRandom().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.LoadBalancingOptions parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.LoadBalancingOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.LoadBalancingOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.LoadBalancingOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.LoadBalancingOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.LoadBalancingOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.LoadBalancingOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.LoadBalancingOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.LoadBalancingOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for how to balance vRPCs over sessions. Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.LoadBalancingOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.LoadBalancingOptions) + com.google.bigtable.v2.LoadBalancingOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.LoadBalancingOptions.class, + com.google.bigtable.v2.LoadBalancingOptions.Builder.class); + } + + // Construct using com.google.bigtable.v2.LoadBalancingOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (leastInFlightBuilder_ != null) { + leastInFlightBuilder_.clear(); + } + if (peakEwmaBuilder_ != null) { + peakEwmaBuilder_.clear(); + } + if (randomBuilder_ != null) { + randomBuilder_.clear(); + } + loadBalancingStrategyCase_ = 0; + loadBalancingStrategy_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_LoadBalancingOptions_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions getDefaultInstanceForType() { + return com.google.bigtable.v2.LoadBalancingOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions build() { + com.google.bigtable.v2.LoadBalancingOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions buildPartial() { + com.google.bigtable.v2.LoadBalancingOptions result = + new com.google.bigtable.v2.LoadBalancingOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.LoadBalancingOptions result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.bigtable.v2.LoadBalancingOptions result) { + result.loadBalancingStrategyCase_ = loadBalancingStrategyCase_; + result.loadBalancingStrategy_ = this.loadBalancingStrategy_; + if (loadBalancingStrategyCase_ == 1 && leastInFlightBuilder_ != null) { + result.loadBalancingStrategy_ = leastInFlightBuilder_.build(); + } + if (loadBalancingStrategyCase_ == 2 && peakEwmaBuilder_ != null) { + result.loadBalancingStrategy_ = peakEwmaBuilder_.build(); + } + if (loadBalancingStrategyCase_ == 4 && randomBuilder_ != null) { + result.loadBalancingStrategy_ = randomBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.LoadBalancingOptions) { + return mergeFrom((com.google.bigtable.v2.LoadBalancingOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.LoadBalancingOptions other) { + if (other == com.google.bigtable.v2.LoadBalancingOptions.getDefaultInstance()) return this; + switch (other.getLoadBalancingStrategyCase()) { + case LEAST_IN_FLIGHT: + { + mergeLeastInFlight(other.getLeastInFlight()); + break; + } + case PEAK_EWMA: + { + mergePeakEwma(other.getPeakEwma()); + break; + } + case RANDOM: + { + mergeRandom(other.getRandom()); + break; + } + case LOADBALANCINGSTRATEGY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetLeastInFlightFieldBuilder().getBuilder(), extensionRegistry); + loadBalancingStrategyCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetPeakEwmaFieldBuilder().getBuilder(), extensionRegistry); + loadBalancingStrategyCase_ = 2; + break; + } // case 18 + case 34: + { + input.readMessage(internalGetRandomFieldBuilder().getBuilder(), extensionRegistry); + loadBalancingStrategyCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int loadBalancingStrategyCase_ = 0; + private java.lang.Object loadBalancingStrategy_; + + public LoadBalancingStrategyCase getLoadBalancingStrategyCase() { + return LoadBalancingStrategyCase.forNumber(loadBalancingStrategyCase_); + } + + public Builder clearLoadBalancingStrategy() { + loadBalancingStrategyCase_ = 0; + loadBalancingStrategy_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight, + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.Builder, + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlightOrBuilder> + leastInFlightBuilder_; + + /** + * .google.bigtable.v2.LoadBalancingOptions.LeastInFlight least_in_flight = 1; + * + * @return Whether the leastInFlight field is set. + */ + @java.lang.Override + public boolean hasLeastInFlight() { + return loadBalancingStrategyCase_ == 1; + } + + /** + * .google.bigtable.v2.LoadBalancingOptions.LeastInFlight least_in_flight = 1; + * + * @return The leastInFlight. + */ + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight getLeastInFlight() { + if (leastInFlightBuilder_ == null) { + if (loadBalancingStrategyCase_ == 1) { + return (com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight) loadBalancingStrategy_; + } + return com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.getDefaultInstance(); + } else { + if (loadBalancingStrategyCase_ == 1) { + return leastInFlightBuilder_.getMessage(); + } + return com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.LoadBalancingOptions.LeastInFlight least_in_flight = 1; */ + public Builder setLeastInFlight( + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight value) { + if (leastInFlightBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loadBalancingStrategy_ = value; + onChanged(); + } else { + leastInFlightBuilder_.setMessage(value); + } + loadBalancingStrategyCase_ = 1; + return this; + } + + /** .google.bigtable.v2.LoadBalancingOptions.LeastInFlight least_in_flight = 1; */ + public Builder setLeastInFlight( + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.Builder builderForValue) { + if (leastInFlightBuilder_ == null) { + loadBalancingStrategy_ = builderForValue.build(); + onChanged(); + } else { + leastInFlightBuilder_.setMessage(builderForValue.build()); + } + loadBalancingStrategyCase_ = 1; + return this; + } + + /** .google.bigtable.v2.LoadBalancingOptions.LeastInFlight least_in_flight = 1; */ + public Builder mergeLeastInFlight( + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight value) { + if (leastInFlightBuilder_ == null) { + if (loadBalancingStrategyCase_ == 1 + && loadBalancingStrategy_ + != com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.getDefaultInstance()) { + loadBalancingStrategy_ = + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.newBuilder( + (com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight) + loadBalancingStrategy_) + .mergeFrom(value) + .buildPartial(); + } else { + loadBalancingStrategy_ = value; + } + onChanged(); + } else { + if (loadBalancingStrategyCase_ == 1) { + leastInFlightBuilder_.mergeFrom(value); + } else { + leastInFlightBuilder_.setMessage(value); + } + } + loadBalancingStrategyCase_ = 1; + return this; + } + + /** .google.bigtable.v2.LoadBalancingOptions.LeastInFlight least_in_flight = 1; */ + public Builder clearLeastInFlight() { + if (leastInFlightBuilder_ == null) { + if (loadBalancingStrategyCase_ == 1) { + loadBalancingStrategyCase_ = 0; + loadBalancingStrategy_ = null; + onChanged(); + } + } else { + if (loadBalancingStrategyCase_ == 1) { + loadBalancingStrategyCase_ = 0; + loadBalancingStrategy_ = null; + } + leastInFlightBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.LoadBalancingOptions.LeastInFlight least_in_flight = 1; */ + public com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.Builder + getLeastInFlightBuilder() { + return internalGetLeastInFlightFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.LoadBalancingOptions.LeastInFlight least_in_flight = 1; */ + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.LeastInFlightOrBuilder + getLeastInFlightOrBuilder() { + if ((loadBalancingStrategyCase_ == 1) && (leastInFlightBuilder_ != null)) { + return leastInFlightBuilder_.getMessageOrBuilder(); + } else { + if (loadBalancingStrategyCase_ == 1) { + return (com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight) loadBalancingStrategy_; + } + return com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.LoadBalancingOptions.LeastInFlight least_in_flight = 1; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight, + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.Builder, + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlightOrBuilder> + internalGetLeastInFlightFieldBuilder() { + if (leastInFlightBuilder_ == null) { + if (!(loadBalancingStrategyCase_ == 1)) { + loadBalancingStrategy_ = + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.getDefaultInstance(); + } + leastInFlightBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight, + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight.Builder, + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlightOrBuilder>( + (com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight) loadBalancingStrategy_, + getParentForChildren(), + isClean()); + loadBalancingStrategy_ = null; + } + loadBalancingStrategyCase_ = 1; + onChanged(); + return leastInFlightBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma, + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.Builder, + com.google.bigtable.v2.LoadBalancingOptions.PeakEwmaOrBuilder> + peakEwmaBuilder_; + + /** + * .google.bigtable.v2.LoadBalancingOptions.PeakEwma peak_ewma = 2; + * + * @return Whether the peakEwma field is set. + */ + @java.lang.Override + public boolean hasPeakEwma() { + return loadBalancingStrategyCase_ == 2; + } + + /** + * .google.bigtable.v2.LoadBalancingOptions.PeakEwma peak_ewma = 2; + * + * @return The peakEwma. + */ + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.PeakEwma getPeakEwma() { + if (peakEwmaBuilder_ == null) { + if (loadBalancingStrategyCase_ == 2) { + return (com.google.bigtable.v2.LoadBalancingOptions.PeakEwma) loadBalancingStrategy_; + } + return com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.getDefaultInstance(); + } else { + if (loadBalancingStrategyCase_ == 2) { + return peakEwmaBuilder_.getMessage(); + } + return com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.LoadBalancingOptions.PeakEwma peak_ewma = 2; */ + public Builder setPeakEwma(com.google.bigtable.v2.LoadBalancingOptions.PeakEwma value) { + if (peakEwmaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loadBalancingStrategy_ = value; + onChanged(); + } else { + peakEwmaBuilder_.setMessage(value); + } + loadBalancingStrategyCase_ = 2; + return this; + } + + /** .google.bigtable.v2.LoadBalancingOptions.PeakEwma peak_ewma = 2; */ + public Builder setPeakEwma( + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.Builder builderForValue) { + if (peakEwmaBuilder_ == null) { + loadBalancingStrategy_ = builderForValue.build(); + onChanged(); + } else { + peakEwmaBuilder_.setMessage(builderForValue.build()); + } + loadBalancingStrategyCase_ = 2; + return this; + } + + /** .google.bigtable.v2.LoadBalancingOptions.PeakEwma peak_ewma = 2; */ + public Builder mergePeakEwma(com.google.bigtable.v2.LoadBalancingOptions.PeakEwma value) { + if (peakEwmaBuilder_ == null) { + if (loadBalancingStrategyCase_ == 2 + && loadBalancingStrategy_ + != com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.getDefaultInstance()) { + loadBalancingStrategy_ = + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.newBuilder( + (com.google.bigtable.v2.LoadBalancingOptions.PeakEwma) loadBalancingStrategy_) + .mergeFrom(value) + .buildPartial(); + } else { + loadBalancingStrategy_ = value; + } + onChanged(); + } else { + if (loadBalancingStrategyCase_ == 2) { + peakEwmaBuilder_.mergeFrom(value); + } else { + peakEwmaBuilder_.setMessage(value); + } + } + loadBalancingStrategyCase_ = 2; + return this; + } + + /** .google.bigtable.v2.LoadBalancingOptions.PeakEwma peak_ewma = 2; */ + public Builder clearPeakEwma() { + if (peakEwmaBuilder_ == null) { + if (loadBalancingStrategyCase_ == 2) { + loadBalancingStrategyCase_ = 0; + loadBalancingStrategy_ = null; + onChanged(); + } + } else { + if (loadBalancingStrategyCase_ == 2) { + loadBalancingStrategyCase_ = 0; + loadBalancingStrategy_ = null; + } + peakEwmaBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.LoadBalancingOptions.PeakEwma peak_ewma = 2; */ + public com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.Builder getPeakEwmaBuilder() { + return internalGetPeakEwmaFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.LoadBalancingOptions.PeakEwma peak_ewma = 2; */ + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.PeakEwmaOrBuilder getPeakEwmaOrBuilder() { + if ((loadBalancingStrategyCase_ == 2) && (peakEwmaBuilder_ != null)) { + return peakEwmaBuilder_.getMessageOrBuilder(); + } else { + if (loadBalancingStrategyCase_ == 2) { + return (com.google.bigtable.v2.LoadBalancingOptions.PeakEwma) loadBalancingStrategy_; + } + return com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.LoadBalancingOptions.PeakEwma peak_ewma = 2; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma, + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.Builder, + com.google.bigtable.v2.LoadBalancingOptions.PeakEwmaOrBuilder> + internalGetPeakEwmaFieldBuilder() { + if (peakEwmaBuilder_ == null) { + if (!(loadBalancingStrategyCase_ == 2)) { + loadBalancingStrategy_ = + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.getDefaultInstance(); + } + peakEwmaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma, + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma.Builder, + com.google.bigtable.v2.LoadBalancingOptions.PeakEwmaOrBuilder>( + (com.google.bigtable.v2.LoadBalancingOptions.PeakEwma) loadBalancingStrategy_, + getParentForChildren(), + isClean()); + loadBalancingStrategy_ = null; + } + loadBalancingStrategyCase_ = 2; + onChanged(); + return peakEwmaBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.LoadBalancingOptions.Random, + com.google.bigtable.v2.LoadBalancingOptions.Random.Builder, + com.google.bigtable.v2.LoadBalancingOptions.RandomOrBuilder> + randomBuilder_; + + /** + * .google.bigtable.v2.LoadBalancingOptions.Random random = 4; + * + * @return Whether the random field is set. + */ + @java.lang.Override + public boolean hasRandom() { + return loadBalancingStrategyCase_ == 4; + } + + /** + * .google.bigtable.v2.LoadBalancingOptions.Random random = 4; + * + * @return The random. + */ + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.Random getRandom() { + if (randomBuilder_ == null) { + if (loadBalancingStrategyCase_ == 4) { + return (com.google.bigtable.v2.LoadBalancingOptions.Random) loadBalancingStrategy_; + } + return com.google.bigtable.v2.LoadBalancingOptions.Random.getDefaultInstance(); + } else { + if (loadBalancingStrategyCase_ == 4) { + return randomBuilder_.getMessage(); + } + return com.google.bigtable.v2.LoadBalancingOptions.Random.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.LoadBalancingOptions.Random random = 4; */ + public Builder setRandom(com.google.bigtable.v2.LoadBalancingOptions.Random value) { + if (randomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loadBalancingStrategy_ = value; + onChanged(); + } else { + randomBuilder_.setMessage(value); + } + loadBalancingStrategyCase_ = 4; + return this; + } + + /** .google.bigtable.v2.LoadBalancingOptions.Random random = 4; */ + public Builder setRandom( + com.google.bigtable.v2.LoadBalancingOptions.Random.Builder builderForValue) { + if (randomBuilder_ == null) { + loadBalancingStrategy_ = builderForValue.build(); + onChanged(); + } else { + randomBuilder_.setMessage(builderForValue.build()); + } + loadBalancingStrategyCase_ = 4; + return this; + } + + /** .google.bigtable.v2.LoadBalancingOptions.Random random = 4; */ + public Builder mergeRandom(com.google.bigtable.v2.LoadBalancingOptions.Random value) { + if (randomBuilder_ == null) { + if (loadBalancingStrategyCase_ == 4 + && loadBalancingStrategy_ + != com.google.bigtable.v2.LoadBalancingOptions.Random.getDefaultInstance()) { + loadBalancingStrategy_ = + com.google.bigtable.v2.LoadBalancingOptions.Random.newBuilder( + (com.google.bigtable.v2.LoadBalancingOptions.Random) loadBalancingStrategy_) + .mergeFrom(value) + .buildPartial(); + } else { + loadBalancingStrategy_ = value; + } + onChanged(); + } else { + if (loadBalancingStrategyCase_ == 4) { + randomBuilder_.mergeFrom(value); + } else { + randomBuilder_.setMessage(value); + } + } + loadBalancingStrategyCase_ = 4; + return this; + } + + /** .google.bigtable.v2.LoadBalancingOptions.Random random = 4; */ + public Builder clearRandom() { + if (randomBuilder_ == null) { + if (loadBalancingStrategyCase_ == 4) { + loadBalancingStrategyCase_ = 0; + loadBalancingStrategy_ = null; + onChanged(); + } + } else { + if (loadBalancingStrategyCase_ == 4) { + loadBalancingStrategyCase_ = 0; + loadBalancingStrategy_ = null; + } + randomBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.LoadBalancingOptions.Random random = 4; */ + public com.google.bigtable.v2.LoadBalancingOptions.Random.Builder getRandomBuilder() { + return internalGetRandomFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.LoadBalancingOptions.Random random = 4; */ + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions.RandomOrBuilder getRandomOrBuilder() { + if ((loadBalancingStrategyCase_ == 4) && (randomBuilder_ != null)) { + return randomBuilder_.getMessageOrBuilder(); + } else { + if (loadBalancingStrategyCase_ == 4) { + return (com.google.bigtable.v2.LoadBalancingOptions.Random) loadBalancingStrategy_; + } + return com.google.bigtable.v2.LoadBalancingOptions.Random.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.LoadBalancingOptions.Random random = 4; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.LoadBalancingOptions.Random, + com.google.bigtable.v2.LoadBalancingOptions.Random.Builder, + com.google.bigtable.v2.LoadBalancingOptions.RandomOrBuilder> + internalGetRandomFieldBuilder() { + if (randomBuilder_ == null) { + if (!(loadBalancingStrategyCase_ == 4)) { + loadBalancingStrategy_ = + com.google.bigtable.v2.LoadBalancingOptions.Random.getDefaultInstance(); + } + randomBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.LoadBalancingOptions.Random, + com.google.bigtable.v2.LoadBalancingOptions.Random.Builder, + com.google.bigtable.v2.LoadBalancingOptions.RandomOrBuilder>( + (com.google.bigtable.v2.LoadBalancingOptions.Random) loadBalancingStrategy_, + getParentForChildren(), + isClean()); + loadBalancingStrategy_ = null; + } + loadBalancingStrategyCase_ = 4; + onChanged(); + return randomBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.LoadBalancingOptions) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.LoadBalancingOptions) + private static final com.google.bigtable.v2.LoadBalancingOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.LoadBalancingOptions(); + } + + public static com.google.bigtable.v2.LoadBalancingOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoadBalancingOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/LoadBalancingOptionsOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/LoadBalancingOptionsOrBuilder.java new file mode 100644 index 0000000000..5d2b6f2fa4 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/LoadBalancingOptionsOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface LoadBalancingOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.LoadBalancingOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.bigtable.v2.LoadBalancingOptions.LeastInFlight least_in_flight = 1; + * + * @return Whether the leastInFlight field is set. + */ + boolean hasLeastInFlight(); + + /** + * .google.bigtable.v2.LoadBalancingOptions.LeastInFlight least_in_flight = 1; + * + * @return The leastInFlight. + */ + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlight getLeastInFlight(); + + /** .google.bigtable.v2.LoadBalancingOptions.LeastInFlight least_in_flight = 1; */ + com.google.bigtable.v2.LoadBalancingOptions.LeastInFlightOrBuilder getLeastInFlightOrBuilder(); + + /** + * .google.bigtable.v2.LoadBalancingOptions.PeakEwma peak_ewma = 2; + * + * @return Whether the peakEwma field is set. + */ + boolean hasPeakEwma(); + + /** + * .google.bigtable.v2.LoadBalancingOptions.PeakEwma peak_ewma = 2; + * + * @return The peakEwma. + */ + com.google.bigtable.v2.LoadBalancingOptions.PeakEwma getPeakEwma(); + + /** .google.bigtable.v2.LoadBalancingOptions.PeakEwma peak_ewma = 2; */ + com.google.bigtable.v2.LoadBalancingOptions.PeakEwmaOrBuilder getPeakEwmaOrBuilder(); + + /** + * .google.bigtable.v2.LoadBalancingOptions.Random random = 4; + * + * @return Whether the random field is set. + */ + boolean hasRandom(); + + /** + * .google.bigtable.v2.LoadBalancingOptions.Random random = 4; + * + * @return The random. + */ + com.google.bigtable.v2.LoadBalancingOptions.Random getRandom(); + + /** .google.bigtable.v2.LoadBalancingOptions.Random random = 4; */ + com.google.bigtable.v2.LoadBalancingOptions.RandomOrBuilder getRandomOrBuilder(); + + com.google.bigtable.v2.LoadBalancingOptions.LoadBalancingStrategyCase + getLoadBalancingStrategyCase(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewRequest.java new file mode 100644 index 0000000000..af602741d4 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewRequest.java @@ -0,0 +1,705 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * A request wrapper for operations on a materialized view. Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.MaterializedViewRequest} + */ +@com.google.protobuf.Generated +public final class MaterializedViewRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.MaterializedViewRequest) + MaterializedViewRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MaterializedViewRequest"); + } + + // Use MaterializedViewRequest.newBuilder() to construct. + private MaterializedViewRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MaterializedViewRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_MaterializedViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_MaterializedViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.MaterializedViewRequest.class, + com.google.bigtable.v2.MaterializedViewRequest.Builder.class); + } + + private int payloadCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object payload_; + + public enum PayloadCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + READ_ROW(1), + PAYLOAD_NOT_SET(0); + private final int value; + + private PayloadCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PayloadCase valueOf(int value) { + return forNumber(value); + } + + public static PayloadCase forNumber(int value) { + switch (value) { + case 1: + return READ_ROW; + case 0: + return PAYLOAD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public static final int READ_ROW_FIELD_NUMBER = 1; + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return Whether the readRow field is set. + */ + @java.lang.Override + public boolean hasReadRow() { + return payloadCase_ == 1; + } + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return The readRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowRequest getReadRow() { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowRequest) payload_; + } + return com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowRequestOrBuilder getReadRowOrBuilder() { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowRequest) payload_; + } + return com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (payloadCase_ == 1) { + output.writeMessage(1, (com.google.bigtable.v2.SessionReadRowRequest) payload_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (payloadCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.bigtable.v2.SessionReadRowRequest) payload_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.MaterializedViewRequest)) { + return super.equals(obj); + } + com.google.bigtable.v2.MaterializedViewRequest other = + (com.google.bigtable.v2.MaterializedViewRequest) obj; + + if (!getPayloadCase().equals(other.getPayloadCase())) return false; + switch (payloadCase_) { + case 1: + if (!getReadRow().equals(other.getReadRow())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (payloadCase_) { + case 1: + hash = (37 * hash) + READ_ROW_FIELD_NUMBER; + hash = (53 * hash) + getReadRow().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.MaterializedViewRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.MaterializedViewRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.MaterializedViewRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.MaterializedViewRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.MaterializedViewRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.MaterializedViewRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.MaterializedViewRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.MaterializedViewRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.MaterializedViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.MaterializedViewRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.MaterializedViewRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.MaterializedViewRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.MaterializedViewRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request wrapper for operations on a materialized view. Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.MaterializedViewRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.MaterializedViewRequest) + com.google.bigtable.v2.MaterializedViewRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_MaterializedViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_MaterializedViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.MaterializedViewRequest.class, + com.google.bigtable.v2.MaterializedViewRequest.Builder.class); + } + + // Construct using com.google.bigtable.v2.MaterializedViewRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (readRowBuilder_ != null) { + readRowBuilder_.clear(); + } + payloadCase_ = 0; + payload_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_MaterializedViewRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.MaterializedViewRequest getDefaultInstanceForType() { + return com.google.bigtable.v2.MaterializedViewRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.MaterializedViewRequest build() { + com.google.bigtable.v2.MaterializedViewRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.MaterializedViewRequest buildPartial() { + com.google.bigtable.v2.MaterializedViewRequest result = + new com.google.bigtable.v2.MaterializedViewRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.MaterializedViewRequest result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.bigtable.v2.MaterializedViewRequest result) { + result.payloadCase_ = payloadCase_; + result.payload_ = this.payload_; + if (payloadCase_ == 1 && readRowBuilder_ != null) { + result.payload_ = readRowBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.MaterializedViewRequest) { + return mergeFrom((com.google.bigtable.v2.MaterializedViewRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.MaterializedViewRequest other) { + if (other == com.google.bigtable.v2.MaterializedViewRequest.getDefaultInstance()) return this; + switch (other.getPayloadCase()) { + case READ_ROW: + { + mergeReadRow(other.getReadRow()); + break; + } + case PAYLOAD_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetReadRowFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int payloadCase_ = 0; + private java.lang.Object payload_; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public Builder clearPayload() { + payloadCase_ = 0; + payload_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowRequest, + com.google.bigtable.v2.SessionReadRowRequest.Builder, + com.google.bigtable.v2.SessionReadRowRequestOrBuilder> + readRowBuilder_; + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return Whether the readRow field is set. + */ + @java.lang.Override + public boolean hasReadRow() { + return payloadCase_ == 1; + } + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return The readRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowRequest getReadRow() { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowRequest) payload_; + } + return com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } else { + if (payloadCase_ == 1) { + return readRowBuilder_.getMessage(); + } + return com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + public Builder setReadRow(com.google.bigtable.v2.SessionReadRowRequest value) { + if (readRowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + readRowBuilder_.setMessage(value); + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + public Builder setReadRow( + com.google.bigtable.v2.SessionReadRowRequest.Builder builderForValue) { + if (readRowBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + readRowBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + public Builder mergeReadRow(com.google.bigtable.v2.SessionReadRowRequest value) { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1 + && payload_ != com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.SessionReadRowRequest.newBuilder( + (com.google.bigtable.v2.SessionReadRowRequest) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 1) { + readRowBuilder_.mergeFrom(value); + } else { + readRowBuilder_.setMessage(value); + } + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + public Builder clearReadRow() { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + } + readRowBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + public com.google.bigtable.v2.SessionReadRowRequest.Builder getReadRowBuilder() { + return internalGetReadRowFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowRequestOrBuilder getReadRowOrBuilder() { + if ((payloadCase_ == 1) && (readRowBuilder_ != null)) { + return readRowBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowRequest) payload_; + } + return com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowRequest, + com.google.bigtable.v2.SessionReadRowRequest.Builder, + com.google.bigtable.v2.SessionReadRowRequestOrBuilder> + internalGetReadRowFieldBuilder() { + if (readRowBuilder_ == null) { + if (!(payloadCase_ == 1)) { + payload_ = com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } + readRowBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowRequest, + com.google.bigtable.v2.SessionReadRowRequest.Builder, + com.google.bigtable.v2.SessionReadRowRequestOrBuilder>( + (com.google.bigtable.v2.SessionReadRowRequest) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 1; + onChanged(); + return readRowBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.MaterializedViewRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.MaterializedViewRequest) + private static final com.google.bigtable.v2.MaterializedViewRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.MaterializedViewRequest(); + } + + public static com.google.bigtable.v2.MaterializedViewRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaterializedViewRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.MaterializedViewRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewRequestOrBuilder.java new file mode 100644 index 0000000000..09d0c7e81d --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewRequestOrBuilder.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface MaterializedViewRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.MaterializedViewRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return Whether the readRow field is set. + */ + boolean hasReadRow(); + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return The readRow. + */ + com.google.bigtable.v2.SessionReadRowRequest getReadRow(); + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + com.google.bigtable.v2.SessionReadRowRequestOrBuilder getReadRowOrBuilder(); + + com.google.bigtable.v2.MaterializedViewRequest.PayloadCase getPayloadCase(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewResponse.java new file mode 100644 index 0000000000..8bfc871eaf --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewResponse.java @@ -0,0 +1,708 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * A response wrapper for operations on a materialized view. Internal usage
+ * only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.MaterializedViewResponse} + */ +@com.google.protobuf.Generated +public final class MaterializedViewResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.MaterializedViewResponse) + MaterializedViewResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MaterializedViewResponse"); + } + + // Use MaterializedViewResponse.newBuilder() to construct. + private MaterializedViewResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MaterializedViewResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_MaterializedViewResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_MaterializedViewResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.MaterializedViewResponse.class, + com.google.bigtable.v2.MaterializedViewResponse.Builder.class); + } + + private int payloadCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object payload_; + + public enum PayloadCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + READ_ROW(1), + PAYLOAD_NOT_SET(0); + private final int value; + + private PayloadCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PayloadCase valueOf(int value) { + return forNumber(value); + } + + public static PayloadCase forNumber(int value) { + switch (value) { + case 1: + return READ_ROW; + case 0: + return PAYLOAD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public static final int READ_ROW_FIELD_NUMBER = 1; + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return Whether the readRow field is set. + */ + @java.lang.Override + public boolean hasReadRow() { + return payloadCase_ == 1; + } + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return The readRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowResponse getReadRow() { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowResponse) payload_; + } + return com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowResponseOrBuilder getReadRowOrBuilder() { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowResponse) payload_; + } + return com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (payloadCase_ == 1) { + output.writeMessage(1, (com.google.bigtable.v2.SessionReadRowResponse) payload_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (payloadCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.bigtable.v2.SessionReadRowResponse) payload_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.MaterializedViewResponse)) { + return super.equals(obj); + } + com.google.bigtable.v2.MaterializedViewResponse other = + (com.google.bigtable.v2.MaterializedViewResponse) obj; + + if (!getPayloadCase().equals(other.getPayloadCase())) return false; + switch (payloadCase_) { + case 1: + if (!getReadRow().equals(other.getReadRow())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (payloadCase_) { + case 1: + hash = (37 * hash) + READ_ROW_FIELD_NUMBER; + hash = (53 * hash) + getReadRow().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.MaterializedViewResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.MaterializedViewResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.MaterializedViewResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.MaterializedViewResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.MaterializedViewResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.MaterializedViewResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.MaterializedViewResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.MaterializedViewResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.MaterializedViewResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.MaterializedViewResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.MaterializedViewResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.MaterializedViewResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.MaterializedViewResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A response wrapper for operations on a materialized view. Internal usage
+   * only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.MaterializedViewResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.MaterializedViewResponse) + com.google.bigtable.v2.MaterializedViewResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_MaterializedViewResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_MaterializedViewResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.MaterializedViewResponse.class, + com.google.bigtable.v2.MaterializedViewResponse.Builder.class); + } + + // Construct using com.google.bigtable.v2.MaterializedViewResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (readRowBuilder_ != null) { + readRowBuilder_.clear(); + } + payloadCase_ = 0; + payload_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_MaterializedViewResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.MaterializedViewResponse getDefaultInstanceForType() { + return com.google.bigtable.v2.MaterializedViewResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.MaterializedViewResponse build() { + com.google.bigtable.v2.MaterializedViewResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.MaterializedViewResponse buildPartial() { + com.google.bigtable.v2.MaterializedViewResponse result = + new com.google.bigtable.v2.MaterializedViewResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.MaterializedViewResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.bigtable.v2.MaterializedViewResponse result) { + result.payloadCase_ = payloadCase_; + result.payload_ = this.payload_; + if (payloadCase_ == 1 && readRowBuilder_ != null) { + result.payload_ = readRowBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.MaterializedViewResponse) { + return mergeFrom((com.google.bigtable.v2.MaterializedViewResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.MaterializedViewResponse other) { + if (other == com.google.bigtable.v2.MaterializedViewResponse.getDefaultInstance()) + return this; + switch (other.getPayloadCase()) { + case READ_ROW: + { + mergeReadRow(other.getReadRow()); + break; + } + case PAYLOAD_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetReadRowFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int payloadCase_ = 0; + private java.lang.Object payload_; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public Builder clearPayload() { + payloadCase_ = 0; + payload_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowResponse, + com.google.bigtable.v2.SessionReadRowResponse.Builder, + com.google.bigtable.v2.SessionReadRowResponseOrBuilder> + readRowBuilder_; + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return Whether the readRow field is set. + */ + @java.lang.Override + public boolean hasReadRow() { + return payloadCase_ == 1; + } + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return The readRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowResponse getReadRow() { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowResponse) payload_; + } + return com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } else { + if (payloadCase_ == 1) { + return readRowBuilder_.getMessage(); + } + return com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + public Builder setReadRow(com.google.bigtable.v2.SessionReadRowResponse value) { + if (readRowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + readRowBuilder_.setMessage(value); + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + public Builder setReadRow( + com.google.bigtable.v2.SessionReadRowResponse.Builder builderForValue) { + if (readRowBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + readRowBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + public Builder mergeReadRow(com.google.bigtable.v2.SessionReadRowResponse value) { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1 + && payload_ != com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.SessionReadRowResponse.newBuilder( + (com.google.bigtable.v2.SessionReadRowResponse) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 1) { + readRowBuilder_.mergeFrom(value); + } else { + readRowBuilder_.setMessage(value); + } + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + public Builder clearReadRow() { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + } + readRowBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + public com.google.bigtable.v2.SessionReadRowResponse.Builder getReadRowBuilder() { + return internalGetReadRowFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowResponseOrBuilder getReadRowOrBuilder() { + if ((payloadCase_ == 1) && (readRowBuilder_ != null)) { + return readRowBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowResponse) payload_; + } + return com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowResponse, + com.google.bigtable.v2.SessionReadRowResponse.Builder, + com.google.bigtable.v2.SessionReadRowResponseOrBuilder> + internalGetReadRowFieldBuilder() { + if (readRowBuilder_ == null) { + if (!(payloadCase_ == 1)) { + payload_ = com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } + readRowBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowResponse, + com.google.bigtable.v2.SessionReadRowResponse.Builder, + com.google.bigtable.v2.SessionReadRowResponseOrBuilder>( + (com.google.bigtable.v2.SessionReadRowResponse) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 1; + onChanged(); + return readRowBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.MaterializedViewResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.MaterializedViewResponse) + private static final com.google.bigtable.v2.MaterializedViewResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.MaterializedViewResponse(); + } + + public static com.google.bigtable.v2.MaterializedViewResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaterializedViewResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.MaterializedViewResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewResponseOrBuilder.java new file mode 100644 index 0000000000..ab9241e6de --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewResponseOrBuilder.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface MaterializedViewResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.MaterializedViewResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return Whether the readRow field is set. + */ + boolean hasReadRow(); + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return The readRow. + */ + com.google.bigtable.v2.SessionReadRowResponse getReadRow(); + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + com.google.bigtable.v2.SessionReadRowResponseOrBuilder getReadRowOrBuilder(); + + com.google.bigtable.v2.MaterializedViewResponse.PayloadCase getPayloadCase(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenAuthorizedViewRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenAuthorizedViewRequest.java new file mode 100644 index 0000000000..57b67a81a5 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenAuthorizedViewRequest.java @@ -0,0 +1,1076 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Open sessions for an AuthorizedView. Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.OpenAuthorizedViewRequest} + */ +@com.google.protobuf.Generated +public final class OpenAuthorizedViewRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.OpenAuthorizedViewRequest) + OpenAuthorizedViewRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OpenAuthorizedViewRequest"); + } + + // Use OpenAuthorizedViewRequest.newBuilder() to construct. + private OpenAuthorizedViewRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OpenAuthorizedViewRequest() { + authorizedViewName_ = ""; + appProfileId_ = ""; + permission_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenAuthorizedViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenAuthorizedViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.OpenAuthorizedViewRequest.class, + com.google.bigtable.v2.OpenAuthorizedViewRequest.Builder.class); + } + + /** Protobuf enum {@code google.bigtable.v2.OpenAuthorizedViewRequest.Permission} */ + public enum Permission implements com.google.protobuf.ProtocolMessageEnum { + /** PERMISSION_UNSET = 0; */ + PERMISSION_UNSET(0), + /** PERMISSION_READ = 1; */ + PERMISSION_READ(1), + /** PERMISSION_WRITE = 2; */ + PERMISSION_WRITE(2), + /** PERMISSION_READ_WRITE = 3; */ + PERMISSION_READ_WRITE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Permission"); + } + + /** PERMISSION_UNSET = 0; */ + public static final int PERMISSION_UNSET_VALUE = 0; + + /** PERMISSION_READ = 1; */ + public static final int PERMISSION_READ_VALUE = 1; + + /** PERMISSION_WRITE = 2; */ + public static final int PERMISSION_WRITE_VALUE = 2; + + /** PERMISSION_READ_WRITE = 3; */ + public static final int PERMISSION_READ_WRITE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Permission valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Permission forNumber(int value) { + switch (value) { + case 0: + return PERMISSION_UNSET; + case 1: + return PERMISSION_READ; + case 2: + return PERMISSION_WRITE; + case 3: + return PERMISSION_READ_WRITE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Permission findValueByNumber(int number) { + return Permission.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.bigtable.v2.OpenAuthorizedViewRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final Permission[] VALUES = values(); + + public static Permission valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Permission(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.bigtable.v2.OpenAuthorizedViewRequest.Permission) + } + + public static final int AUTHORIZED_VIEW_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object authorizedViewName_ = ""; + + /** + * + * + *
+   * The Authorized view name to read and write from. Values are of the form
+   * `projects/<project>/instances/<instance>/tables/<table>/authorizedViews/<authorized_view>`.
+   * 
+ * + * string authorized_view_name = 1; + * + * @return The authorizedViewName. + */ + @java.lang.Override + public java.lang.String getAuthorizedViewName() { + java.lang.Object ref = authorizedViewName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorizedViewName_ = s; + return s; + } + } + + /** + * + * + *
+   * The Authorized view name to read and write from. Values are of the form
+   * `projects/<project>/instances/<instance>/tables/<table>/authorizedViews/<authorized_view>`.
+   * 
+ * + * string authorized_view_name = 1; + * + * @return The bytes for authorizedViewName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthorizedViewNameBytes() { + java.lang.Object ref = authorizedViewName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authorizedViewName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_PROFILE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object appProfileId_ = ""; + + /** + * + * + *
+   * The app profile id to use for the authorized view sessions.
+   * 
+ * + * string app_profile_id = 2; + * + * @return The appProfileId. + */ + @java.lang.Override + public java.lang.String getAppProfileId() { + java.lang.Object ref = appProfileId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appProfileId_ = s; + return s; + } + } + + /** + * + * + *
+   * The app profile id to use for the authorized view sessions.
+   * 
+ * + * string app_profile_id = 2; + * + * @return The bytes for appProfileId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppProfileIdBytes() { + java.lang.Object ref = appProfileId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PERMISSION_FIELD_NUMBER = 3; + private int permission_ = 0; + + /** + * + * + *
+   * Permission for the session.
+   * 
+ * + * .google.bigtable.v2.OpenAuthorizedViewRequest.Permission permission = 3; + * + * @return The enum numeric value on the wire for permission. + */ + @java.lang.Override + public int getPermissionValue() { + return permission_; + } + + /** + * + * + *
+   * Permission for the session.
+   * 
+ * + * .google.bigtable.v2.OpenAuthorizedViewRequest.Permission permission = 3; + * + * @return The permission. + */ + @java.lang.Override + public com.google.bigtable.v2.OpenAuthorizedViewRequest.Permission getPermission() { + com.google.bigtable.v2.OpenAuthorizedViewRequest.Permission result = + com.google.bigtable.v2.OpenAuthorizedViewRequest.Permission.forNumber(permission_); + return result == null + ? com.google.bigtable.v2.OpenAuthorizedViewRequest.Permission.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authorizedViewName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, authorizedViewName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appProfileId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, appProfileId_); + } + if (permission_ + != com.google.bigtable.v2.OpenAuthorizedViewRequest.Permission.PERMISSION_UNSET + .getNumber()) { + output.writeEnum(3, permission_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authorizedViewName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, authorizedViewName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appProfileId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, appProfileId_); + } + if (permission_ + != com.google.bigtable.v2.OpenAuthorizedViewRequest.Permission.PERMISSION_UNSET + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, permission_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.OpenAuthorizedViewRequest)) { + return super.equals(obj); + } + com.google.bigtable.v2.OpenAuthorizedViewRequest other = + (com.google.bigtable.v2.OpenAuthorizedViewRequest) obj; + + if (!getAuthorizedViewName().equals(other.getAuthorizedViewName())) return false; + if (!getAppProfileId().equals(other.getAppProfileId())) return false; + if (permission_ != other.permission_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AUTHORIZED_VIEW_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizedViewName().hashCode(); + hash = (37 * hash) + APP_PROFILE_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppProfileId().hashCode(); + hash = (37 * hash) + PERMISSION_FIELD_NUMBER; + hash = (53 * hash) + permission_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.OpenAuthorizedViewRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.OpenAuthorizedViewRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Open sessions for an AuthorizedView. Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.OpenAuthorizedViewRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.OpenAuthorizedViewRequest) + com.google.bigtable.v2.OpenAuthorizedViewRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenAuthorizedViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenAuthorizedViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.OpenAuthorizedViewRequest.class, + com.google.bigtable.v2.OpenAuthorizedViewRequest.Builder.class); + } + + // Construct using com.google.bigtable.v2.OpenAuthorizedViewRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authorizedViewName_ = ""; + appProfileId_ = ""; + permission_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenAuthorizedViewRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenAuthorizedViewRequest getDefaultInstanceForType() { + return com.google.bigtable.v2.OpenAuthorizedViewRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.OpenAuthorizedViewRequest build() { + com.google.bigtable.v2.OpenAuthorizedViewRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenAuthorizedViewRequest buildPartial() { + com.google.bigtable.v2.OpenAuthorizedViewRequest result = + new com.google.bigtable.v2.OpenAuthorizedViewRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.OpenAuthorizedViewRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.authorizedViewName_ = authorizedViewName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.appProfileId_ = appProfileId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.permission_ = permission_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.OpenAuthorizedViewRequest) { + return mergeFrom((com.google.bigtable.v2.OpenAuthorizedViewRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.OpenAuthorizedViewRequest other) { + if (other == com.google.bigtable.v2.OpenAuthorizedViewRequest.getDefaultInstance()) + return this; + if (!other.getAuthorizedViewName().isEmpty()) { + authorizedViewName_ = other.authorizedViewName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAppProfileId().isEmpty()) { + appProfileId_ = other.appProfileId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.permission_ != 0) { + setPermissionValue(other.getPermissionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + authorizedViewName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + appProfileId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + permission_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object authorizedViewName_ = ""; + + /** + * + * + *
+     * The Authorized view name to read and write from. Values are of the form
+     * `projects/<project>/instances/<instance>/tables/<table>/authorizedViews/<authorized_view>`.
+     * 
+ * + * string authorized_view_name = 1; + * + * @return The authorizedViewName. + */ + public java.lang.String getAuthorizedViewName() { + java.lang.Object ref = authorizedViewName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorizedViewName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The Authorized view name to read and write from. Values are of the form
+     * `projects/<project>/instances/<instance>/tables/<table>/authorizedViews/<authorized_view>`.
+     * 
+ * + * string authorized_view_name = 1; + * + * @return The bytes for authorizedViewName. + */ + public com.google.protobuf.ByteString getAuthorizedViewNameBytes() { + java.lang.Object ref = authorizedViewName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authorizedViewName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The Authorized view name to read and write from. Values are of the form
+     * `projects/<project>/instances/<instance>/tables/<table>/authorizedViews/<authorized_view>`.
+     * 
+ * + * string authorized_view_name = 1; + * + * @param value The authorizedViewName to set. + * @return This builder for chaining. + */ + public Builder setAuthorizedViewName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authorizedViewName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Authorized view name to read and write from. Values are of the form
+     * `projects/<project>/instances/<instance>/tables/<table>/authorizedViews/<authorized_view>`.
+     * 
+ * + * string authorized_view_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearAuthorizedViewName() { + authorizedViewName_ = getDefaultInstance().getAuthorizedViewName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The Authorized view name to read and write from. Values are of the form
+     * `projects/<project>/instances/<instance>/tables/<table>/authorizedViews/<authorized_view>`.
+     * 
+ * + * string authorized_view_name = 1; + * + * @param value The bytes for authorizedViewName to set. + * @return This builder for chaining. + */ + public Builder setAuthorizedViewNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authorizedViewName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object appProfileId_ = ""; + + /** + * + * + *
+     * The app profile id to use for the authorized view sessions.
+     * 
+ * + * string app_profile_id = 2; + * + * @return The appProfileId. + */ + public java.lang.String getAppProfileId() { + java.lang.Object ref = appProfileId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appProfileId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The app profile id to use for the authorized view sessions.
+     * 
+ * + * string app_profile_id = 2; + * + * @return The bytes for appProfileId. + */ + public com.google.protobuf.ByteString getAppProfileIdBytes() { + java.lang.Object ref = appProfileId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The app profile id to use for the authorized view sessions.
+     * 
+ * + * string app_profile_id = 2; + * + * @param value The appProfileId to set. + * @return This builder for chaining. + */ + public Builder setAppProfileId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appProfileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The app profile id to use for the authorized view sessions.
+     * 
+ * + * string app_profile_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearAppProfileId() { + appProfileId_ = getDefaultInstance().getAppProfileId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The app profile id to use for the authorized view sessions.
+     * 
+ * + * string app_profile_id = 2; + * + * @param value The bytes for appProfileId to set. + * @return This builder for chaining. + */ + public Builder setAppProfileIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appProfileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int permission_ = 0; + + /** + * + * + *
+     * Permission for the session.
+     * 
+ * + * .google.bigtable.v2.OpenAuthorizedViewRequest.Permission permission = 3; + * + * @return The enum numeric value on the wire for permission. + */ + @java.lang.Override + public int getPermissionValue() { + return permission_; + } + + /** + * + * + *
+     * Permission for the session.
+     * 
+ * + * .google.bigtable.v2.OpenAuthorizedViewRequest.Permission permission = 3; + * + * @param value The enum numeric value on the wire for permission to set. + * @return This builder for chaining. + */ + public Builder setPermissionValue(int value) { + permission_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Permission for the session.
+     * 
+ * + * .google.bigtable.v2.OpenAuthorizedViewRequest.Permission permission = 3; + * + * @return The permission. + */ + @java.lang.Override + public com.google.bigtable.v2.OpenAuthorizedViewRequest.Permission getPermission() { + com.google.bigtable.v2.OpenAuthorizedViewRequest.Permission result = + com.google.bigtable.v2.OpenAuthorizedViewRequest.Permission.forNumber(permission_); + return result == null + ? com.google.bigtable.v2.OpenAuthorizedViewRequest.Permission.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Permission for the session.
+     * 
+ * + * .google.bigtable.v2.OpenAuthorizedViewRequest.Permission permission = 3; + * + * @param value The permission to set. + * @return This builder for chaining. + */ + public Builder setPermission( + com.google.bigtable.v2.OpenAuthorizedViewRequest.Permission value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + permission_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Permission for the session.
+     * 
+ * + * .google.bigtable.v2.OpenAuthorizedViewRequest.Permission permission = 3; + * + * @return This builder for chaining. + */ + public Builder clearPermission() { + bitField0_ = (bitField0_ & ~0x00000004); + permission_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.OpenAuthorizedViewRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.OpenAuthorizedViewRequest) + private static final com.google.bigtable.v2.OpenAuthorizedViewRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.OpenAuthorizedViewRequest(); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenAuthorizedViewRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenAuthorizedViewRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenAuthorizedViewRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenAuthorizedViewRequestOrBuilder.java new file mode 100644 index 0000000000..1844ca34fb --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenAuthorizedViewRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface OpenAuthorizedViewRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.OpenAuthorizedViewRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Authorized view name to read and write from. Values are of the form
+   * `projects/<project>/instances/<instance>/tables/<table>/authorizedViews/<authorized_view>`.
+   * 
+ * + * string authorized_view_name = 1; + * + * @return The authorizedViewName. + */ + java.lang.String getAuthorizedViewName(); + + /** + * + * + *
+   * The Authorized view name to read and write from. Values are of the form
+   * `projects/<project>/instances/<instance>/tables/<table>/authorizedViews/<authorized_view>`.
+   * 
+ * + * string authorized_view_name = 1; + * + * @return The bytes for authorizedViewName. + */ + com.google.protobuf.ByteString getAuthorizedViewNameBytes(); + + /** + * + * + *
+   * The app profile id to use for the authorized view sessions.
+   * 
+ * + * string app_profile_id = 2; + * + * @return The appProfileId. + */ + java.lang.String getAppProfileId(); + + /** + * + * + *
+   * The app profile id to use for the authorized view sessions.
+   * 
+ * + * string app_profile_id = 2; + * + * @return The bytes for appProfileId. + */ + com.google.protobuf.ByteString getAppProfileIdBytes(); + + /** + * + * + *
+   * Permission for the session.
+   * 
+ * + * .google.bigtable.v2.OpenAuthorizedViewRequest.Permission permission = 3; + * + * @return The enum numeric value on the wire for permission. + */ + int getPermissionValue(); + + /** + * + * + *
+   * Permission for the session.
+   * 
+ * + * .google.bigtable.v2.OpenAuthorizedViewRequest.Permission permission = 3; + * + * @return The permission. + */ + com.google.bigtable.v2.OpenAuthorizedViewRequest.Permission getPermission(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenAuthorizedViewResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenAuthorizedViewResponse.java new file mode 100644 index 0000000000..a9aa9e1381 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenAuthorizedViewResponse.java @@ -0,0 +1,396 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.OpenAuthorizedViewResponse} + */ +@com.google.protobuf.Generated +public final class OpenAuthorizedViewResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.OpenAuthorizedViewResponse) + OpenAuthorizedViewResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OpenAuthorizedViewResponse"); + } + + // Use OpenAuthorizedViewResponse.newBuilder() to construct. + private OpenAuthorizedViewResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OpenAuthorizedViewResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenAuthorizedViewResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenAuthorizedViewResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.OpenAuthorizedViewResponse.class, + com.google.bigtable.v2.OpenAuthorizedViewResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.OpenAuthorizedViewResponse)) { + return super.equals(obj); + } + com.google.bigtable.v2.OpenAuthorizedViewResponse other = + (com.google.bigtable.v2.OpenAuthorizedViewResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.OpenAuthorizedViewResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.OpenAuthorizedViewResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.OpenAuthorizedViewResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.OpenAuthorizedViewResponse) + com.google.bigtable.v2.OpenAuthorizedViewResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenAuthorizedViewResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenAuthorizedViewResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.OpenAuthorizedViewResponse.class, + com.google.bigtable.v2.OpenAuthorizedViewResponse.Builder.class); + } + + // Construct using com.google.bigtable.v2.OpenAuthorizedViewResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenAuthorizedViewResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenAuthorizedViewResponse getDefaultInstanceForType() { + return com.google.bigtable.v2.OpenAuthorizedViewResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.OpenAuthorizedViewResponse build() { + com.google.bigtable.v2.OpenAuthorizedViewResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenAuthorizedViewResponse buildPartial() { + com.google.bigtable.v2.OpenAuthorizedViewResponse result = + new com.google.bigtable.v2.OpenAuthorizedViewResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.OpenAuthorizedViewResponse) { + return mergeFrom((com.google.bigtable.v2.OpenAuthorizedViewResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.OpenAuthorizedViewResponse other) { + if (other == com.google.bigtable.v2.OpenAuthorizedViewResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.OpenAuthorizedViewResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.OpenAuthorizedViewResponse) + private static final com.google.bigtable.v2.OpenAuthorizedViewResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.OpenAuthorizedViewResponse(); + } + + public static com.google.bigtable.v2.OpenAuthorizedViewResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenAuthorizedViewResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenAuthorizedViewResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenAuthorizedViewResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenAuthorizedViewResponseOrBuilder.java new file mode 100644 index 0000000000..41487837a9 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenAuthorizedViewResponseOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface OpenAuthorizedViewResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.OpenAuthorizedViewResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenMaterializedViewRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenMaterializedViewRequest.java new file mode 100644 index 0000000000..46af0c1227 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenMaterializedViewRequest.java @@ -0,0 +1,1064 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Open sessions for a MaterializedView. Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.OpenMaterializedViewRequest} + */ +@com.google.protobuf.Generated +public final class OpenMaterializedViewRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.OpenMaterializedViewRequest) + OpenMaterializedViewRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OpenMaterializedViewRequest"); + } + + // Use OpenMaterializedViewRequest.newBuilder() to construct. + private OpenMaterializedViewRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OpenMaterializedViewRequest() { + materializedViewName_ = ""; + appProfileId_ = ""; + permission_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenMaterializedViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenMaterializedViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.OpenMaterializedViewRequest.class, + com.google.bigtable.v2.OpenMaterializedViewRequest.Builder.class); + } + + /** Protobuf enum {@code google.bigtable.v2.OpenMaterializedViewRequest.Permission} */ + public enum Permission implements com.google.protobuf.ProtocolMessageEnum { + /** PERMISSION_UNSET = 0; */ + PERMISSION_UNSET(0), + /** PERMISSION_READ = 1; */ + PERMISSION_READ(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Permission"); + } + + /** PERMISSION_UNSET = 0; */ + public static final int PERMISSION_UNSET_VALUE = 0; + + /** PERMISSION_READ = 1; */ + public static final int PERMISSION_READ_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Permission valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Permission forNumber(int value) { + switch (value) { + case 0: + return PERMISSION_UNSET; + case 1: + return PERMISSION_READ; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Permission findValueByNumber(int number) { + return Permission.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.bigtable.v2.OpenMaterializedViewRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Permission[] VALUES = values(); + + public static Permission valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Permission(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.bigtable.v2.OpenMaterializedViewRequest.Permission) + } + + public static final int MATERIALIZED_VIEW_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object materializedViewName_ = ""; + + /** + * + * + *
+   * The Materialized view name to read and write from. Values are of the form
+   * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
+   * 
+ * + * string materialized_view_name = 1; + * + * @return The materializedViewName. + */ + @java.lang.Override + public java.lang.String getMaterializedViewName() { + java.lang.Object ref = materializedViewName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + materializedViewName_ = s; + return s; + } + } + + /** + * + * + *
+   * The Materialized view name to read and write from. Values are of the form
+   * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
+   * 
+ * + * string materialized_view_name = 1; + * + * @return The bytes for materializedViewName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMaterializedViewNameBytes() { + java.lang.Object ref = materializedViewName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + materializedViewName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_PROFILE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object appProfileId_ = ""; + + /** + * + * + *
+   * The app profile id to use for the materialized view sessions.
+   * 
+ * + * string app_profile_id = 2; + * + * @return The appProfileId. + */ + @java.lang.Override + public java.lang.String getAppProfileId() { + java.lang.Object ref = appProfileId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appProfileId_ = s; + return s; + } + } + + /** + * + * + *
+   * The app profile id to use for the materialized view sessions.
+   * 
+ * + * string app_profile_id = 2; + * + * @return The bytes for appProfileId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppProfileIdBytes() { + java.lang.Object ref = appProfileId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PERMISSION_FIELD_NUMBER = 3; + private int permission_ = 0; + + /** + * + * + *
+   * Permission for the session.
+   * 
+ * + * .google.bigtable.v2.OpenMaterializedViewRequest.Permission permission = 3; + * + * @return The enum numeric value on the wire for permission. + */ + @java.lang.Override + public int getPermissionValue() { + return permission_; + } + + /** + * + * + *
+   * Permission for the session.
+   * 
+ * + * .google.bigtable.v2.OpenMaterializedViewRequest.Permission permission = 3; + * + * @return The permission. + */ + @java.lang.Override + public com.google.bigtable.v2.OpenMaterializedViewRequest.Permission getPermission() { + com.google.bigtable.v2.OpenMaterializedViewRequest.Permission result = + com.google.bigtable.v2.OpenMaterializedViewRequest.Permission.forNumber(permission_); + return result == null + ? com.google.bigtable.v2.OpenMaterializedViewRequest.Permission.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(materializedViewName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, materializedViewName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appProfileId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, appProfileId_); + } + if (permission_ + != com.google.bigtable.v2.OpenMaterializedViewRequest.Permission.PERMISSION_UNSET + .getNumber()) { + output.writeEnum(3, permission_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(materializedViewName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, materializedViewName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appProfileId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, appProfileId_); + } + if (permission_ + != com.google.bigtable.v2.OpenMaterializedViewRequest.Permission.PERMISSION_UNSET + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, permission_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.OpenMaterializedViewRequest)) { + return super.equals(obj); + } + com.google.bigtable.v2.OpenMaterializedViewRequest other = + (com.google.bigtable.v2.OpenMaterializedViewRequest) obj; + + if (!getMaterializedViewName().equals(other.getMaterializedViewName())) return false; + if (!getAppProfileId().equals(other.getAppProfileId())) return false; + if (permission_ != other.permission_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MATERIALIZED_VIEW_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMaterializedViewName().hashCode(); + hash = (37 * hash) + APP_PROFILE_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppProfileId().hashCode(); + hash = (37 * hash) + PERMISSION_FIELD_NUMBER; + hash = (53 * hash) + permission_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.OpenMaterializedViewRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenMaterializedViewRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenMaterializedViewRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenMaterializedViewRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenMaterializedViewRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenMaterializedViewRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenMaterializedViewRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenMaterializedViewRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenMaterializedViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenMaterializedViewRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenMaterializedViewRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenMaterializedViewRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.OpenMaterializedViewRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Open sessions for a MaterializedView. Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.OpenMaterializedViewRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.OpenMaterializedViewRequest) + com.google.bigtable.v2.OpenMaterializedViewRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenMaterializedViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenMaterializedViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.OpenMaterializedViewRequest.class, + com.google.bigtable.v2.OpenMaterializedViewRequest.Builder.class); + } + + // Construct using com.google.bigtable.v2.OpenMaterializedViewRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + materializedViewName_ = ""; + appProfileId_ = ""; + permission_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenMaterializedViewRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenMaterializedViewRequest getDefaultInstanceForType() { + return com.google.bigtable.v2.OpenMaterializedViewRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.OpenMaterializedViewRequest build() { + com.google.bigtable.v2.OpenMaterializedViewRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenMaterializedViewRequest buildPartial() { + com.google.bigtable.v2.OpenMaterializedViewRequest result = + new com.google.bigtable.v2.OpenMaterializedViewRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.OpenMaterializedViewRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.materializedViewName_ = materializedViewName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.appProfileId_ = appProfileId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.permission_ = permission_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.OpenMaterializedViewRequest) { + return mergeFrom((com.google.bigtable.v2.OpenMaterializedViewRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.OpenMaterializedViewRequest other) { + if (other == com.google.bigtable.v2.OpenMaterializedViewRequest.getDefaultInstance()) + return this; + if (!other.getMaterializedViewName().isEmpty()) { + materializedViewName_ = other.materializedViewName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAppProfileId().isEmpty()) { + appProfileId_ = other.appProfileId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.permission_ != 0) { + setPermissionValue(other.getPermissionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + materializedViewName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + appProfileId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + permission_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object materializedViewName_ = ""; + + /** + * + * + *
+     * The Materialized view name to read and write from. Values are of the form
+     * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
+     * 
+ * + * string materialized_view_name = 1; + * + * @return The materializedViewName. + */ + public java.lang.String getMaterializedViewName() { + java.lang.Object ref = materializedViewName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + materializedViewName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The Materialized view name to read and write from. Values are of the form
+     * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
+     * 
+ * + * string materialized_view_name = 1; + * + * @return The bytes for materializedViewName. + */ + public com.google.protobuf.ByteString getMaterializedViewNameBytes() { + java.lang.Object ref = materializedViewName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + materializedViewName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The Materialized view name to read and write from. Values are of the form
+     * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
+     * 
+ * + * string materialized_view_name = 1; + * + * @param value The materializedViewName to set. + * @return This builder for chaining. + */ + public Builder setMaterializedViewName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + materializedViewName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Materialized view name to read and write from. Values are of the form
+     * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
+     * 
+ * + * string materialized_view_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearMaterializedViewName() { + materializedViewName_ = getDefaultInstance().getMaterializedViewName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The Materialized view name to read and write from. Values are of the form
+     * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
+     * 
+ * + * string materialized_view_name = 1; + * + * @param value The bytes for materializedViewName to set. + * @return This builder for chaining. + */ + public Builder setMaterializedViewNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + materializedViewName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object appProfileId_ = ""; + + /** + * + * + *
+     * The app profile id to use for the materialized view sessions.
+     * 
+ * + * string app_profile_id = 2; + * + * @return The appProfileId. + */ + public java.lang.String getAppProfileId() { + java.lang.Object ref = appProfileId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appProfileId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The app profile id to use for the materialized view sessions.
+     * 
+ * + * string app_profile_id = 2; + * + * @return The bytes for appProfileId. + */ + public com.google.protobuf.ByteString getAppProfileIdBytes() { + java.lang.Object ref = appProfileId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The app profile id to use for the materialized view sessions.
+     * 
+ * + * string app_profile_id = 2; + * + * @param value The appProfileId to set. + * @return This builder for chaining. + */ + public Builder setAppProfileId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appProfileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The app profile id to use for the materialized view sessions.
+     * 
+ * + * string app_profile_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearAppProfileId() { + appProfileId_ = getDefaultInstance().getAppProfileId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The app profile id to use for the materialized view sessions.
+     * 
+ * + * string app_profile_id = 2; + * + * @param value The bytes for appProfileId to set. + * @return This builder for chaining. + */ + public Builder setAppProfileIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appProfileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int permission_ = 0; + + /** + * + * + *
+     * Permission for the session.
+     * 
+ * + * .google.bigtable.v2.OpenMaterializedViewRequest.Permission permission = 3; + * + * @return The enum numeric value on the wire for permission. + */ + @java.lang.Override + public int getPermissionValue() { + return permission_; + } + + /** + * + * + *
+     * Permission for the session.
+     * 
+ * + * .google.bigtable.v2.OpenMaterializedViewRequest.Permission permission = 3; + * + * @param value The enum numeric value on the wire for permission to set. + * @return This builder for chaining. + */ + public Builder setPermissionValue(int value) { + permission_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Permission for the session.
+     * 
+ * + * .google.bigtable.v2.OpenMaterializedViewRequest.Permission permission = 3; + * + * @return The permission. + */ + @java.lang.Override + public com.google.bigtable.v2.OpenMaterializedViewRequest.Permission getPermission() { + com.google.bigtable.v2.OpenMaterializedViewRequest.Permission result = + com.google.bigtable.v2.OpenMaterializedViewRequest.Permission.forNumber(permission_); + return result == null + ? com.google.bigtable.v2.OpenMaterializedViewRequest.Permission.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Permission for the session.
+     * 
+ * + * .google.bigtable.v2.OpenMaterializedViewRequest.Permission permission = 3; + * + * @param value The permission to set. + * @return This builder for chaining. + */ + public Builder setPermission( + com.google.bigtable.v2.OpenMaterializedViewRequest.Permission value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + permission_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Permission for the session.
+     * 
+ * + * .google.bigtable.v2.OpenMaterializedViewRequest.Permission permission = 3; + * + * @return This builder for chaining. + */ + public Builder clearPermission() { + bitField0_ = (bitField0_ & ~0x00000004); + permission_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.OpenMaterializedViewRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.OpenMaterializedViewRequest) + private static final com.google.bigtable.v2.OpenMaterializedViewRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.OpenMaterializedViewRequest(); + } + + public static com.google.bigtable.v2.OpenMaterializedViewRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenMaterializedViewRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenMaterializedViewRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenMaterializedViewRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenMaterializedViewRequestOrBuilder.java new file mode 100644 index 0000000000..e020a78e46 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenMaterializedViewRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface OpenMaterializedViewRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.OpenMaterializedViewRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Materialized view name to read and write from. Values are of the form
+   * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
+   * 
+ * + * string materialized_view_name = 1; + * + * @return The materializedViewName. + */ + java.lang.String getMaterializedViewName(); + + /** + * + * + *
+   * The Materialized view name to read and write from. Values are of the form
+   * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
+   * 
+ * + * string materialized_view_name = 1; + * + * @return The bytes for materializedViewName. + */ + com.google.protobuf.ByteString getMaterializedViewNameBytes(); + + /** + * + * + *
+   * The app profile id to use for the materialized view sessions.
+   * 
+ * + * string app_profile_id = 2; + * + * @return The appProfileId. + */ + java.lang.String getAppProfileId(); + + /** + * + * + *
+   * The app profile id to use for the materialized view sessions.
+   * 
+ * + * string app_profile_id = 2; + * + * @return The bytes for appProfileId. + */ + com.google.protobuf.ByteString getAppProfileIdBytes(); + + /** + * + * + *
+   * Permission for the session.
+   * 
+ * + * .google.bigtable.v2.OpenMaterializedViewRequest.Permission permission = 3; + * + * @return The enum numeric value on the wire for permission. + */ + int getPermissionValue(); + + /** + * + * + *
+   * Permission for the session.
+   * 
+ * + * .google.bigtable.v2.OpenMaterializedViewRequest.Permission permission = 3; + * + * @return The permission. + */ + com.google.bigtable.v2.OpenMaterializedViewRequest.Permission getPermission(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenMaterializedViewResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenMaterializedViewResponse.java new file mode 100644 index 0000000000..37d6086066 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenMaterializedViewResponse.java @@ -0,0 +1,396 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.OpenMaterializedViewResponse} + */ +@com.google.protobuf.Generated +public final class OpenMaterializedViewResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.OpenMaterializedViewResponse) + OpenMaterializedViewResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OpenMaterializedViewResponse"); + } + + // Use OpenMaterializedViewResponse.newBuilder() to construct. + private OpenMaterializedViewResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OpenMaterializedViewResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenMaterializedViewResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenMaterializedViewResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.OpenMaterializedViewResponse.class, + com.google.bigtable.v2.OpenMaterializedViewResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.OpenMaterializedViewResponse)) { + return super.equals(obj); + } + com.google.bigtable.v2.OpenMaterializedViewResponse other = + (com.google.bigtable.v2.OpenMaterializedViewResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.OpenMaterializedViewResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenMaterializedViewResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenMaterializedViewResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenMaterializedViewResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenMaterializedViewResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenMaterializedViewResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenMaterializedViewResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenMaterializedViewResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenMaterializedViewResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenMaterializedViewResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenMaterializedViewResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenMaterializedViewResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.OpenMaterializedViewResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.OpenMaterializedViewResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.OpenMaterializedViewResponse) + com.google.bigtable.v2.OpenMaterializedViewResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenMaterializedViewResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenMaterializedViewResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.OpenMaterializedViewResponse.class, + com.google.bigtable.v2.OpenMaterializedViewResponse.Builder.class); + } + + // Construct using com.google.bigtable.v2.OpenMaterializedViewResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenMaterializedViewResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenMaterializedViewResponse getDefaultInstanceForType() { + return com.google.bigtable.v2.OpenMaterializedViewResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.OpenMaterializedViewResponse build() { + com.google.bigtable.v2.OpenMaterializedViewResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenMaterializedViewResponse buildPartial() { + com.google.bigtable.v2.OpenMaterializedViewResponse result = + new com.google.bigtable.v2.OpenMaterializedViewResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.OpenMaterializedViewResponse) { + return mergeFrom((com.google.bigtable.v2.OpenMaterializedViewResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.OpenMaterializedViewResponse other) { + if (other == com.google.bigtable.v2.OpenMaterializedViewResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.OpenMaterializedViewResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.OpenMaterializedViewResponse) + private static final com.google.bigtable.v2.OpenMaterializedViewResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.OpenMaterializedViewResponse(); + } + + public static com.google.bigtable.v2.OpenMaterializedViewResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenMaterializedViewResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenMaterializedViewResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenMaterializedViewResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenMaterializedViewResponseOrBuilder.java new file mode 100644 index 0000000000..f37e4cd2a8 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenMaterializedViewResponseOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface OpenMaterializedViewResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.OpenMaterializedViewResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenSessionRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenSessionRequest.java new file mode 100644 index 0000000000..1b7374f77b --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenSessionRequest.java @@ -0,0 +1,1108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.OpenSessionRequest} + */ +@com.google.protobuf.Generated +public final class OpenSessionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.OpenSessionRequest) + OpenSessionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OpenSessionRequest"); + } + + // Use OpenSessionRequest.newBuilder() to construct. + private OpenSessionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OpenSessionRequest() { + routingCookie_ = com.google.protobuf.ByteString.EMPTY; + payload_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.OpenSessionRequest.class, + com.google.bigtable.v2.OpenSessionRequest.Builder.class); + } + + private int bitField0_; + public static final int PROTOCOL_VERSION_FIELD_NUMBER = 1; + private long protocolVersion_ = 0L; + + /** + * + * + *
+   * A version indicator from the client stating its understanding of the
+   * protocol. This is to disambiguate client behavior amidst changes in
+   * semantic usage of the API, e.g. if the structure remains the same but
+   * behavior changes.
+   * 
+ * + * int64 protocol_version = 1; + * + * @return The protocolVersion. + */ + @java.lang.Override + public long getProtocolVersion() { + return protocolVersion_; + } + + public static final int FLAGS_FIELD_NUMBER = 2; + private com.google.bigtable.v2.FeatureFlags flags_; + + /** + * + * + *
+   * Client settings, including a record of
+   * 
+ * + * .google.bigtable.v2.FeatureFlags flags = 2; + * + * @return Whether the flags field is set. + */ + @java.lang.Override + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Client settings, including a record of
+   * 
+ * + * .google.bigtable.v2.FeatureFlags flags = 2; + * + * @return The flags. + */ + @java.lang.Override + public com.google.bigtable.v2.FeatureFlags getFlags() { + return flags_ == null ? com.google.bigtable.v2.FeatureFlags.getDefaultInstance() : flags_; + } + + /** + * + * + *
+   * Client settings, including a record of
+   * 
+ * + * .google.bigtable.v2.FeatureFlags flags = 2; + */ + @java.lang.Override + public com.google.bigtable.v2.FeatureFlagsOrBuilder getFlagsOrBuilder() { + return flags_ == null ? com.google.bigtable.v2.FeatureFlags.getDefaultInstance() : flags_; + } + + public static final int CONSECUTIVE_FAILED_CONNECTION_ATTEMPTS_FIELD_NUMBER = 3; + private long consecutiveFailedConnectionAttempts_ = 0L; + + /** + * + * + *
+   * Used for serverside observability.
+   * 
+ * + * int64 consecutive_failed_connection_attempts = 3; + * + * @return The consecutiveFailedConnectionAttempts. + */ + @java.lang.Override + public long getConsecutiveFailedConnectionAttempts() { + return consecutiveFailedConnectionAttempts_; + } + + public static final int ROUTING_COOKIE_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString routingCookie_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+   * How the request should be routed (if presented as part of a GOAWAY
+   * from a previous session). Post V1.
+   * 
+ * + * bytes routing_cookie = 4; + * + * @return The routingCookie. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRoutingCookie() { + return routingCookie_; + } + + public static final int PAYLOAD_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+   * Can be Open{Table,AuthorizedView,MaterializedView}Request,
+   * (or in post-V1, PrepareSqlQueryRequest)
+   * 
+ * + * bytes payload = 5; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (protocolVersion_ != 0L) { + output.writeInt64(1, protocolVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getFlags()); + } + if (consecutiveFailedConnectionAttempts_ != 0L) { + output.writeInt64(3, consecutiveFailedConnectionAttempts_); + } + if (!routingCookie_.isEmpty()) { + output.writeBytes(4, routingCookie_); + } + if (!payload_.isEmpty()) { + output.writeBytes(5, payload_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (protocolVersion_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, protocolVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFlags()); + } + if (consecutiveFailedConnectionAttempts_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 3, consecutiveFailedConnectionAttempts_); + } + if (!routingCookie_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, routingCookie_); + } + if (!payload_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, payload_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.OpenSessionRequest)) { + return super.equals(obj); + } + com.google.bigtable.v2.OpenSessionRequest other = + (com.google.bigtable.v2.OpenSessionRequest) obj; + + if (getProtocolVersion() != other.getProtocolVersion()) return false; + if (hasFlags() != other.hasFlags()) return false; + if (hasFlags()) { + if (!getFlags().equals(other.getFlags())) return false; + } + if (getConsecutiveFailedConnectionAttempts() != other.getConsecutiveFailedConnectionAttempts()) + return false; + if (!getRoutingCookie().equals(other.getRoutingCookie())) return false; + if (!getPayload().equals(other.getPayload())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROTOCOL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getProtocolVersion()); + if (hasFlags()) { + hash = (37 * hash) + FLAGS_FIELD_NUMBER; + hash = (53 * hash) + getFlags().hashCode(); + } + hash = (37 * hash) + CONSECUTIVE_FAILED_CONNECTION_ATTEMPTS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(getConsecutiveFailedConnectionAttempts()); + hash = (37 * hash) + ROUTING_COOKIE_FIELD_NUMBER; + hash = (53 * hash) + getRoutingCookie().hashCode(); + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.OpenSessionRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenSessionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenSessionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenSessionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenSessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenSessionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenSessionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenSessionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenSessionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenSessionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.OpenSessionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.OpenSessionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.OpenSessionRequest) + com.google.bigtable.v2.OpenSessionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.OpenSessionRequest.class, + com.google.bigtable.v2.OpenSessionRequest.Builder.class); + } + + // Construct using com.google.bigtable.v2.OpenSessionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFlagsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + protocolVersion_ = 0L; + flags_ = null; + if (flagsBuilder_ != null) { + flagsBuilder_.dispose(); + flagsBuilder_ = null; + } + consecutiveFailedConnectionAttempts_ = 0L; + routingCookie_ = com.google.protobuf.ByteString.EMPTY; + payload_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenSessionRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenSessionRequest getDefaultInstanceForType() { + return com.google.bigtable.v2.OpenSessionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.OpenSessionRequest build() { + com.google.bigtable.v2.OpenSessionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenSessionRequest buildPartial() { + com.google.bigtable.v2.OpenSessionRequest result = + new com.google.bigtable.v2.OpenSessionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.OpenSessionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.protocolVersion_ = protocolVersion_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.flags_ = flagsBuilder_ == null ? flags_ : flagsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.consecutiveFailedConnectionAttempts_ = consecutiveFailedConnectionAttempts_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.routingCookie_ = routingCookie_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.payload_ = payload_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.OpenSessionRequest) { + return mergeFrom((com.google.bigtable.v2.OpenSessionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.OpenSessionRequest other) { + if (other == com.google.bigtable.v2.OpenSessionRequest.getDefaultInstance()) return this; + if (other.getProtocolVersion() != 0L) { + setProtocolVersion(other.getProtocolVersion()); + } + if (other.hasFlags()) { + mergeFlags(other.getFlags()); + } + if (other.getConsecutiveFailedConnectionAttempts() != 0L) { + setConsecutiveFailedConnectionAttempts(other.getConsecutiveFailedConnectionAttempts()); + } + if (!other.getRoutingCookie().isEmpty()) { + setRoutingCookie(other.getRoutingCookie()); + } + if (!other.getPayload().isEmpty()) { + setPayload(other.getPayload()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + protocolVersion_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(internalGetFlagsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + consecutiveFailedConnectionAttempts_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + routingCookie_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + payload_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long protocolVersion_; + + /** + * + * + *
+     * A version indicator from the client stating its understanding of the
+     * protocol. This is to disambiguate client behavior amidst changes in
+     * semantic usage of the API, e.g. if the structure remains the same but
+     * behavior changes.
+     * 
+ * + * int64 protocol_version = 1; + * + * @return The protocolVersion. + */ + @java.lang.Override + public long getProtocolVersion() { + return protocolVersion_; + } + + /** + * + * + *
+     * A version indicator from the client stating its understanding of the
+     * protocol. This is to disambiguate client behavior amidst changes in
+     * semantic usage of the API, e.g. if the structure remains the same but
+     * behavior changes.
+     * 
+ * + * int64 protocol_version = 1; + * + * @param value The protocolVersion to set. + * @return This builder for chaining. + */ + public Builder setProtocolVersion(long value) { + + protocolVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * A version indicator from the client stating its understanding of the
+     * protocol. This is to disambiguate client behavior amidst changes in
+     * semantic usage of the API, e.g. if the structure remains the same but
+     * behavior changes.
+     * 
+ * + * int64 protocol_version = 1; + * + * @return This builder for chaining. + */ + public Builder clearProtocolVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + protocolVersion_ = 0L; + onChanged(); + return this; + } + + private com.google.bigtable.v2.FeatureFlags flags_; + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.FeatureFlags, + com.google.bigtable.v2.FeatureFlags.Builder, + com.google.bigtable.v2.FeatureFlagsOrBuilder> + flagsBuilder_; + + /** + * + * + *
+     * Client settings, including a record of
+     * 
+ * + * .google.bigtable.v2.FeatureFlags flags = 2; + * + * @return Whether the flags field is set. + */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Client settings, including a record of
+     * 
+ * + * .google.bigtable.v2.FeatureFlags flags = 2; + * + * @return The flags. + */ + public com.google.bigtable.v2.FeatureFlags getFlags() { + if (flagsBuilder_ == null) { + return flags_ == null ? com.google.bigtable.v2.FeatureFlags.getDefaultInstance() : flags_; + } else { + return flagsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Client settings, including a record of
+     * 
+ * + * .google.bigtable.v2.FeatureFlags flags = 2; + */ + public Builder setFlags(com.google.bigtable.v2.FeatureFlags value) { + if (flagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + flags_ = value; + } else { + flagsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Client settings, including a record of
+     * 
+ * + * .google.bigtable.v2.FeatureFlags flags = 2; + */ + public Builder setFlags(com.google.bigtable.v2.FeatureFlags.Builder builderForValue) { + if (flagsBuilder_ == null) { + flags_ = builderForValue.build(); + } else { + flagsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Client settings, including a record of
+     * 
+ * + * .google.bigtable.v2.FeatureFlags flags = 2; + */ + public Builder mergeFlags(com.google.bigtable.v2.FeatureFlags value) { + if (flagsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && flags_ != null + && flags_ != com.google.bigtable.v2.FeatureFlags.getDefaultInstance()) { + getFlagsBuilder().mergeFrom(value); + } else { + flags_ = value; + } + } else { + flagsBuilder_.mergeFrom(value); + } + if (flags_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Client settings, including a record of
+     * 
+ * + * .google.bigtable.v2.FeatureFlags flags = 2; + */ + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00000002); + flags_ = null; + if (flagsBuilder_ != null) { + flagsBuilder_.dispose(); + flagsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Client settings, including a record of
+     * 
+ * + * .google.bigtable.v2.FeatureFlags flags = 2; + */ + public com.google.bigtable.v2.FeatureFlags.Builder getFlagsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFlagsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Client settings, including a record of
+     * 
+ * + * .google.bigtable.v2.FeatureFlags flags = 2; + */ + public com.google.bigtable.v2.FeatureFlagsOrBuilder getFlagsOrBuilder() { + if (flagsBuilder_ != null) { + return flagsBuilder_.getMessageOrBuilder(); + } else { + return flags_ == null ? com.google.bigtable.v2.FeatureFlags.getDefaultInstance() : flags_; + } + } + + /** + * + * + *
+     * Client settings, including a record of
+     * 
+ * + * .google.bigtable.v2.FeatureFlags flags = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.FeatureFlags, + com.google.bigtable.v2.FeatureFlags.Builder, + com.google.bigtable.v2.FeatureFlagsOrBuilder> + internalGetFlagsFieldBuilder() { + if (flagsBuilder_ == null) { + flagsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.FeatureFlags, + com.google.bigtable.v2.FeatureFlags.Builder, + com.google.bigtable.v2.FeatureFlagsOrBuilder>( + getFlags(), getParentForChildren(), isClean()); + flags_ = null; + } + return flagsBuilder_; + } + + private long consecutiveFailedConnectionAttempts_; + + /** + * + * + *
+     * Used for serverside observability.
+     * 
+ * + * int64 consecutive_failed_connection_attempts = 3; + * + * @return The consecutiveFailedConnectionAttempts. + */ + @java.lang.Override + public long getConsecutiveFailedConnectionAttempts() { + return consecutiveFailedConnectionAttempts_; + } + + /** + * + * + *
+     * Used for serverside observability.
+     * 
+ * + * int64 consecutive_failed_connection_attempts = 3; + * + * @param value The consecutiveFailedConnectionAttempts to set. + * @return This builder for chaining. + */ + public Builder setConsecutiveFailedConnectionAttempts(long value) { + + consecutiveFailedConnectionAttempts_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Used for serverside observability.
+     * 
+ * + * int64 consecutive_failed_connection_attempts = 3; + * + * @return This builder for chaining. + */ + public Builder clearConsecutiveFailedConnectionAttempts() { + bitField0_ = (bitField0_ & ~0x00000004); + consecutiveFailedConnectionAttempts_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString routingCookie_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+     * How the request should be routed (if presented as part of a GOAWAY
+     * from a previous session). Post V1.
+     * 
+ * + * bytes routing_cookie = 4; + * + * @return The routingCookie. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRoutingCookie() { + return routingCookie_; + } + + /** + * + * + *
+     * How the request should be routed (if presented as part of a GOAWAY
+     * from a previous session). Post V1.
+     * 
+ * + * bytes routing_cookie = 4; + * + * @param value The routingCookie to set. + * @return This builder for chaining. + */ + public Builder setRoutingCookie(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + routingCookie_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * How the request should be routed (if presented as part of a GOAWAY
+     * from a previous session). Post V1.
+     * 
+ * + * bytes routing_cookie = 4; + * + * @return This builder for chaining. + */ + public Builder clearRoutingCookie() { + bitField0_ = (bitField0_ & ~0x00000008); + routingCookie_ = getDefaultInstance().getRoutingCookie(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+     * Can be Open{Table,AuthorizedView,MaterializedView}Request,
+     * (or in post-V1, PrepareSqlQueryRequest)
+     * 
+ * + * bytes payload = 5; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + /** + * + * + *
+     * Can be Open{Table,AuthorizedView,MaterializedView}Request,
+     * (or in post-V1, PrepareSqlQueryRequest)
+     * 
+ * + * bytes payload = 5; + * + * @param value The payload to set. + * @return This builder for chaining. + */ + public Builder setPayload(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Can be Open{Table,AuthorizedView,MaterializedView}Request,
+     * (or in post-V1, PrepareSqlQueryRequest)
+     * 
+ * + * bytes payload = 5; + * + * @return This builder for chaining. + */ + public Builder clearPayload() { + bitField0_ = (bitField0_ & ~0x00000010); + payload_ = getDefaultInstance().getPayload(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.OpenSessionRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.OpenSessionRequest) + private static final com.google.bigtable.v2.OpenSessionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.OpenSessionRequest(); + } + + public static com.google.bigtable.v2.OpenSessionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenSessionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenSessionRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenSessionRequestOrBuilder.java new file mode 100644 index 0000000000..0ec579f66c --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenSessionRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface OpenSessionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.OpenSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A version indicator from the client stating its understanding of the
+   * protocol. This is to disambiguate client behavior amidst changes in
+   * semantic usage of the API, e.g. if the structure remains the same but
+   * behavior changes.
+   * 
+ * + * int64 protocol_version = 1; + * + * @return The protocolVersion. + */ + long getProtocolVersion(); + + /** + * + * + *
+   * Client settings, including a record of
+   * 
+ * + * .google.bigtable.v2.FeatureFlags flags = 2; + * + * @return Whether the flags field is set. + */ + boolean hasFlags(); + + /** + * + * + *
+   * Client settings, including a record of
+   * 
+ * + * .google.bigtable.v2.FeatureFlags flags = 2; + * + * @return The flags. + */ + com.google.bigtable.v2.FeatureFlags getFlags(); + + /** + * + * + *
+   * Client settings, including a record of
+   * 
+ * + * .google.bigtable.v2.FeatureFlags flags = 2; + */ + com.google.bigtable.v2.FeatureFlagsOrBuilder getFlagsOrBuilder(); + + /** + * + * + *
+   * Used for serverside observability.
+   * 
+ * + * int64 consecutive_failed_connection_attempts = 3; + * + * @return The consecutiveFailedConnectionAttempts. + */ + long getConsecutiveFailedConnectionAttempts(); + + /** + * + * + *
+   * How the request should be routed (if presented as part of a GOAWAY
+   * from a previous session). Post V1.
+   * 
+ * + * bytes routing_cookie = 4; + * + * @return The routingCookie. + */ + com.google.protobuf.ByteString getRoutingCookie(); + + /** + * + * + *
+   * Can be Open{Table,AuthorizedView,MaterializedView}Request,
+   * (or in post-V1, PrepareSqlQueryRequest)
+   * 
+ * + * bytes payload = 5; + * + * @return The payload. + */ + com.google.protobuf.ByteString getPayload(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenSessionResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenSessionResponse.java new file mode 100644 index 0000000000..241c47f12a --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenSessionResponse.java @@ -0,0 +1,801 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.OpenSessionResponse} + */ +@com.google.protobuf.Generated +public final class OpenSessionResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.OpenSessionResponse) + OpenSessionResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OpenSessionResponse"); + } + + // Use OpenSessionResponse.newBuilder() to construct. + private OpenSessionResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OpenSessionResponse() { + payload_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenSessionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenSessionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.OpenSessionResponse.class, + com.google.bigtable.v2.OpenSessionResponse.Builder.class); + } + + private int bitField0_; + public static final int BACKEND_FIELD_NUMBER = 2; + private com.google.bigtable.v2.BackendIdentifier backend_; + + /** + * + * + *
+   * Information on the backend(s) that are hosting this session.
+   * 
+ * + * .google.bigtable.v2.BackendIdentifier backend = 2; + * + * @return Whether the backend field is set. + */ + @java.lang.Override + public boolean hasBackend() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Information on the backend(s) that are hosting this session.
+   * 
+ * + * .google.bigtable.v2.BackendIdentifier backend = 2; + * + * @return The backend. + */ + @java.lang.Override + public com.google.bigtable.v2.BackendIdentifier getBackend() { + return backend_ == null + ? com.google.bigtable.v2.BackendIdentifier.getDefaultInstance() + : backend_; + } + + /** + * + * + *
+   * Information on the backend(s) that are hosting this session.
+   * 
+ * + * .google.bigtable.v2.BackendIdentifier backend = 2; + */ + @java.lang.Override + public com.google.bigtable.v2.BackendIdentifierOrBuilder getBackendOrBuilder() { + return backend_ == null + ? com.google.bigtable.v2.BackendIdentifier.getDefaultInstance() + : backend_; + } + + public static final int PAYLOAD_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+   * Can be Open{Table,AuthorizedView,MaterializedView}Response,
+   * (or in post-V1, PrepareSqlQueryResponse)
+   * 
+ * + * bytes payload = 1; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!payload_.isEmpty()) { + output.writeBytes(1, payload_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getBackend()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!payload_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, payload_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBackend()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.OpenSessionResponse)) { + return super.equals(obj); + } + com.google.bigtable.v2.OpenSessionResponse other = + (com.google.bigtable.v2.OpenSessionResponse) obj; + + if (hasBackend() != other.hasBackend()) return false; + if (hasBackend()) { + if (!getBackend().equals(other.getBackend())) return false; + } + if (!getPayload().equals(other.getPayload())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBackend()) { + hash = (37 * hash) + BACKEND_FIELD_NUMBER; + hash = (53 * hash) + getBackend().hashCode(); + } + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.OpenSessionResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenSessionResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenSessionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenSessionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenSessionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenSessionResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenSessionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenSessionResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenSessionResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenSessionResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenSessionResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenSessionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.OpenSessionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.OpenSessionResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.OpenSessionResponse) + com.google.bigtable.v2.OpenSessionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenSessionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenSessionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.OpenSessionResponse.class, + com.google.bigtable.v2.OpenSessionResponse.Builder.class); + } + + // Construct using com.google.bigtable.v2.OpenSessionResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBackendFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + backend_ = null; + if (backendBuilder_ != null) { + backendBuilder_.dispose(); + backendBuilder_ = null; + } + payload_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenSessionResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenSessionResponse getDefaultInstanceForType() { + return com.google.bigtable.v2.OpenSessionResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.OpenSessionResponse build() { + com.google.bigtable.v2.OpenSessionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenSessionResponse buildPartial() { + com.google.bigtable.v2.OpenSessionResponse result = + new com.google.bigtable.v2.OpenSessionResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.OpenSessionResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.backend_ = backendBuilder_ == null ? backend_ : backendBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.payload_ = payload_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.OpenSessionResponse) { + return mergeFrom((com.google.bigtable.v2.OpenSessionResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.OpenSessionResponse other) { + if (other == com.google.bigtable.v2.OpenSessionResponse.getDefaultInstance()) return this; + if (other.hasBackend()) { + mergeBackend(other.getBackend()); + } + if (!other.getPayload().isEmpty()) { + setPayload(other.getPayload()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + payload_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetBackendFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.bigtable.v2.BackendIdentifier backend_; + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.BackendIdentifier, + com.google.bigtable.v2.BackendIdentifier.Builder, + com.google.bigtable.v2.BackendIdentifierOrBuilder> + backendBuilder_; + + /** + * + * + *
+     * Information on the backend(s) that are hosting this session.
+     * 
+ * + * .google.bigtable.v2.BackendIdentifier backend = 2; + * + * @return Whether the backend field is set. + */ + public boolean hasBackend() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Information on the backend(s) that are hosting this session.
+     * 
+ * + * .google.bigtable.v2.BackendIdentifier backend = 2; + * + * @return The backend. + */ + public com.google.bigtable.v2.BackendIdentifier getBackend() { + if (backendBuilder_ == null) { + return backend_ == null + ? com.google.bigtable.v2.BackendIdentifier.getDefaultInstance() + : backend_; + } else { + return backendBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Information on the backend(s) that are hosting this session.
+     * 
+ * + * .google.bigtable.v2.BackendIdentifier backend = 2; + */ + public Builder setBackend(com.google.bigtable.v2.BackendIdentifier value) { + if (backendBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backend_ = value; + } else { + backendBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Information on the backend(s) that are hosting this session.
+     * 
+ * + * .google.bigtable.v2.BackendIdentifier backend = 2; + */ + public Builder setBackend(com.google.bigtable.v2.BackendIdentifier.Builder builderForValue) { + if (backendBuilder_ == null) { + backend_ = builderForValue.build(); + } else { + backendBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Information on the backend(s) that are hosting this session.
+     * 
+ * + * .google.bigtable.v2.BackendIdentifier backend = 2; + */ + public Builder mergeBackend(com.google.bigtable.v2.BackendIdentifier value) { + if (backendBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && backend_ != null + && backend_ != com.google.bigtable.v2.BackendIdentifier.getDefaultInstance()) { + getBackendBuilder().mergeFrom(value); + } else { + backend_ = value; + } + } else { + backendBuilder_.mergeFrom(value); + } + if (backend_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Information on the backend(s) that are hosting this session.
+     * 
+ * + * .google.bigtable.v2.BackendIdentifier backend = 2; + */ + public Builder clearBackend() { + bitField0_ = (bitField0_ & ~0x00000001); + backend_ = null; + if (backendBuilder_ != null) { + backendBuilder_.dispose(); + backendBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Information on the backend(s) that are hosting this session.
+     * 
+ * + * .google.bigtable.v2.BackendIdentifier backend = 2; + */ + public com.google.bigtable.v2.BackendIdentifier.Builder getBackendBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetBackendFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Information on the backend(s) that are hosting this session.
+     * 
+ * + * .google.bigtable.v2.BackendIdentifier backend = 2; + */ + public com.google.bigtable.v2.BackendIdentifierOrBuilder getBackendOrBuilder() { + if (backendBuilder_ != null) { + return backendBuilder_.getMessageOrBuilder(); + } else { + return backend_ == null + ? com.google.bigtable.v2.BackendIdentifier.getDefaultInstance() + : backend_; + } + } + + /** + * + * + *
+     * Information on the backend(s) that are hosting this session.
+     * 
+ * + * .google.bigtable.v2.BackendIdentifier backend = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.BackendIdentifier, + com.google.bigtable.v2.BackendIdentifier.Builder, + com.google.bigtable.v2.BackendIdentifierOrBuilder> + internalGetBackendFieldBuilder() { + if (backendBuilder_ == null) { + backendBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.BackendIdentifier, + com.google.bigtable.v2.BackendIdentifier.Builder, + com.google.bigtable.v2.BackendIdentifierOrBuilder>( + getBackend(), getParentForChildren(), isClean()); + backend_ = null; + } + return backendBuilder_; + } + + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+     * Can be Open{Table,AuthorizedView,MaterializedView}Response,
+     * (or in post-V1, PrepareSqlQueryResponse)
+     * 
+ * + * bytes payload = 1; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + /** + * + * + *
+     * Can be Open{Table,AuthorizedView,MaterializedView}Response,
+     * (or in post-V1, PrepareSqlQueryResponse)
+     * 
+ * + * bytes payload = 1; + * + * @param value The payload to set. + * @return This builder for chaining. + */ + public Builder setPayload(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Can be Open{Table,AuthorizedView,MaterializedView}Response,
+     * (or in post-V1, PrepareSqlQueryResponse)
+     * 
+ * + * bytes payload = 1; + * + * @return This builder for chaining. + */ + public Builder clearPayload() { + bitField0_ = (bitField0_ & ~0x00000002); + payload_ = getDefaultInstance().getPayload(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.OpenSessionResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.OpenSessionResponse) + private static final com.google.bigtable.v2.OpenSessionResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.OpenSessionResponse(); + } + + public static com.google.bigtable.v2.OpenSessionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenSessionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenSessionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenSessionResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenSessionResponseOrBuilder.java new file mode 100644 index 0000000000..c27747a340 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenSessionResponseOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface OpenSessionResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.OpenSessionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Information on the backend(s) that are hosting this session.
+   * 
+ * + * .google.bigtable.v2.BackendIdentifier backend = 2; + * + * @return Whether the backend field is set. + */ + boolean hasBackend(); + + /** + * + * + *
+   * Information on the backend(s) that are hosting this session.
+   * 
+ * + * .google.bigtable.v2.BackendIdentifier backend = 2; + * + * @return The backend. + */ + com.google.bigtable.v2.BackendIdentifier getBackend(); + + /** + * + * + *
+   * Information on the backend(s) that are hosting this session.
+   * 
+ * + * .google.bigtable.v2.BackendIdentifier backend = 2; + */ + com.google.bigtable.v2.BackendIdentifierOrBuilder getBackendOrBuilder(); + + /** + * + * + *
+   * Can be Open{Table,AuthorizedView,MaterializedView}Response,
+   * (or in post-V1, PrepareSqlQueryResponse)
+   * 
+ * + * bytes payload = 1; + * + * @return The payload. + */ + com.google.protobuf.ByteString getPayload(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenTableRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenTableRequest.java new file mode 100644 index 0000000000..924a7926f4 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenTableRequest.java @@ -0,0 +1,938 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.OpenTableRequest} + */ +@com.google.protobuf.Generated +public final class OpenTableRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.OpenTableRequest) + OpenTableRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OpenTableRequest"); + } + + // Use OpenTableRequest.newBuilder() to construct. + private OpenTableRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OpenTableRequest() { + tableName_ = ""; + appProfileId_ = ""; + permission_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.OpenTableRequest.class, + com.google.bigtable.v2.OpenTableRequest.Builder.class); + } + + /** Protobuf enum {@code google.bigtable.v2.OpenTableRequest.Permission} */ + public enum Permission implements com.google.protobuf.ProtocolMessageEnum { + /** PERMISSION_UNSET = 0; */ + PERMISSION_UNSET(0), + /** PERMISSION_READ = 1; */ + PERMISSION_READ(1), + /** PERMISSION_WRITE = 2; */ + PERMISSION_WRITE(2), + /** PERMISSION_READ_WRITE = 3; */ + PERMISSION_READ_WRITE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Permission"); + } + + /** PERMISSION_UNSET = 0; */ + public static final int PERMISSION_UNSET_VALUE = 0; + + /** PERMISSION_READ = 1; */ + public static final int PERMISSION_READ_VALUE = 1; + + /** PERMISSION_WRITE = 2; */ + public static final int PERMISSION_WRITE_VALUE = 2; + + /** PERMISSION_READ_WRITE = 3; */ + public static final int PERMISSION_READ_WRITE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Permission valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Permission forNumber(int value) { + switch (value) { + case 0: + return PERMISSION_UNSET; + case 1: + return PERMISSION_READ; + case 2: + return PERMISSION_WRITE; + case 3: + return PERMISSION_READ_WRITE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Permission findValueByNumber(int number) { + return Permission.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.bigtable.v2.OpenTableRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final Permission[] VALUES = values(); + + public static Permission valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Permission(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.bigtable.v2.OpenTableRequest.Permission) + } + + public static final int TABLE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object tableName_ = ""; + + /** + * string table_name = 1; + * + * @return The tableName. + */ + @java.lang.Override + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableName_ = s; + return s; + } + } + + /** + * string table_name = 1; + * + * @return The bytes for tableName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_PROFILE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object appProfileId_ = ""; + + /** + * string app_profile_id = 2; + * + * @return The appProfileId. + */ + @java.lang.Override + public java.lang.String getAppProfileId() { + java.lang.Object ref = appProfileId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appProfileId_ = s; + return s; + } + } + + /** + * string app_profile_id = 2; + * + * @return The bytes for appProfileId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppProfileIdBytes() { + java.lang.Object ref = appProfileId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PERMISSION_FIELD_NUMBER = 3; + private int permission_ = 0; + + /** + * .google.bigtable.v2.OpenTableRequest.Permission permission = 3; + * + * @return The enum numeric value on the wire for permission. + */ + @java.lang.Override + public int getPermissionValue() { + return permission_; + } + + /** + * .google.bigtable.v2.OpenTableRequest.Permission permission = 3; + * + * @return The permission. + */ + @java.lang.Override + public com.google.bigtable.v2.OpenTableRequest.Permission getPermission() { + com.google.bigtable.v2.OpenTableRequest.Permission result = + com.google.bigtable.v2.OpenTableRequest.Permission.forNumber(permission_); + return result == null + ? com.google.bigtable.v2.OpenTableRequest.Permission.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tableName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, tableName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appProfileId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, appProfileId_); + } + if (permission_ + != com.google.bigtable.v2.OpenTableRequest.Permission.PERMISSION_UNSET.getNumber()) { + output.writeEnum(3, permission_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tableName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tableName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appProfileId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, appProfileId_); + } + if (permission_ + != com.google.bigtable.v2.OpenTableRequest.Permission.PERMISSION_UNSET.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, permission_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.OpenTableRequest)) { + return super.equals(obj); + } + com.google.bigtable.v2.OpenTableRequest other = (com.google.bigtable.v2.OpenTableRequest) obj; + + if (!getTableName().equals(other.getTableName())) return false; + if (!getAppProfileId().equals(other.getAppProfileId())) return false; + if (permission_ != other.permission_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTableName().hashCode(); + hash = (37 * hash) + APP_PROFILE_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppProfileId().hashCode(); + hash = (37 * hash) + PERMISSION_FIELD_NUMBER; + hash = (53 * hash) + permission_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.OpenTableRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenTableRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenTableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenTableRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenTableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenTableRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenTableRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenTableRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenTableRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenTableRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenTableRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenTableRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.OpenTableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.OpenTableRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.OpenTableRequest) + com.google.bigtable.v2.OpenTableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.OpenTableRequest.class, + com.google.bigtable.v2.OpenTableRequest.Builder.class); + } + + // Construct using com.google.bigtable.v2.OpenTableRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tableName_ = ""; + appProfileId_ = ""; + permission_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenTableRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenTableRequest getDefaultInstanceForType() { + return com.google.bigtable.v2.OpenTableRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.OpenTableRequest build() { + com.google.bigtable.v2.OpenTableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenTableRequest buildPartial() { + com.google.bigtable.v2.OpenTableRequest result = + new com.google.bigtable.v2.OpenTableRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.OpenTableRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tableName_ = tableName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.appProfileId_ = appProfileId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.permission_ = permission_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.OpenTableRequest) { + return mergeFrom((com.google.bigtable.v2.OpenTableRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.OpenTableRequest other) { + if (other == com.google.bigtable.v2.OpenTableRequest.getDefaultInstance()) return this; + if (!other.getTableName().isEmpty()) { + tableName_ = other.tableName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAppProfileId().isEmpty()) { + appProfileId_ = other.appProfileId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.permission_ != 0) { + setPermissionValue(other.getPermissionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + tableName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + appProfileId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + permission_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object tableName_ = ""; + + /** + * string table_name = 1; + * + * @return The tableName. + */ + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string table_name = 1; + * + * @return The bytes for tableName. + */ + public com.google.protobuf.ByteString getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string table_name = 1; + * + * @param value The tableName to set. + * @return This builder for chaining. + */ + public Builder setTableName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tableName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * string table_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearTableName() { + tableName_ = getDefaultInstance().getTableName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * string table_name = 1; + * + * @param value The bytes for tableName to set. + * @return This builder for chaining. + */ + public Builder setTableNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tableName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object appProfileId_ = ""; + + /** + * string app_profile_id = 2; + * + * @return The appProfileId. + */ + public java.lang.String getAppProfileId() { + java.lang.Object ref = appProfileId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appProfileId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string app_profile_id = 2; + * + * @return The bytes for appProfileId. + */ + public com.google.protobuf.ByteString getAppProfileIdBytes() { + java.lang.Object ref = appProfileId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string app_profile_id = 2; + * + * @param value The appProfileId to set. + * @return This builder for chaining. + */ + public Builder setAppProfileId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appProfileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * string app_profile_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearAppProfileId() { + appProfileId_ = getDefaultInstance().getAppProfileId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * string app_profile_id = 2; + * + * @param value The bytes for appProfileId to set. + * @return This builder for chaining. + */ + public Builder setAppProfileIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appProfileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int permission_ = 0; + + /** + * .google.bigtable.v2.OpenTableRequest.Permission permission = 3; + * + * @return The enum numeric value on the wire for permission. + */ + @java.lang.Override + public int getPermissionValue() { + return permission_; + } + + /** + * .google.bigtable.v2.OpenTableRequest.Permission permission = 3; + * + * @param value The enum numeric value on the wire for permission to set. + * @return This builder for chaining. + */ + public Builder setPermissionValue(int value) { + permission_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * .google.bigtable.v2.OpenTableRequest.Permission permission = 3; + * + * @return The permission. + */ + @java.lang.Override + public com.google.bigtable.v2.OpenTableRequest.Permission getPermission() { + com.google.bigtable.v2.OpenTableRequest.Permission result = + com.google.bigtable.v2.OpenTableRequest.Permission.forNumber(permission_); + return result == null + ? com.google.bigtable.v2.OpenTableRequest.Permission.UNRECOGNIZED + : result; + } + + /** + * .google.bigtable.v2.OpenTableRequest.Permission permission = 3; + * + * @param value The permission to set. + * @return This builder for chaining. + */ + public Builder setPermission(com.google.bigtable.v2.OpenTableRequest.Permission value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + permission_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * .google.bigtable.v2.OpenTableRequest.Permission permission = 3; + * + * @return This builder for chaining. + */ + public Builder clearPermission() { + bitField0_ = (bitField0_ & ~0x00000004); + permission_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.OpenTableRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.OpenTableRequest) + private static final com.google.bigtable.v2.OpenTableRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.OpenTableRequest(); + } + + public static com.google.bigtable.v2.OpenTableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenTableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenTableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenTableRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenTableRequestOrBuilder.java new file mode 100644 index 0000000000..968dc3a1db --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenTableRequestOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface OpenTableRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.OpenTableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string table_name = 1; + * + * @return The tableName. + */ + java.lang.String getTableName(); + + /** + * string table_name = 1; + * + * @return The bytes for tableName. + */ + com.google.protobuf.ByteString getTableNameBytes(); + + /** + * string app_profile_id = 2; + * + * @return The appProfileId. + */ + java.lang.String getAppProfileId(); + + /** + * string app_profile_id = 2; + * + * @return The bytes for appProfileId. + */ + com.google.protobuf.ByteString getAppProfileIdBytes(); + + /** + * .google.bigtable.v2.OpenTableRequest.Permission permission = 3; + * + * @return The enum numeric value on the wire for permission. + */ + int getPermissionValue(); + + /** + * .google.bigtable.v2.OpenTableRequest.Permission permission = 3; + * + * @return The permission. + */ + com.google.bigtable.v2.OpenTableRequest.Permission getPermission(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenTableResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenTableResponse.java new file mode 100644 index 0000000000..a738487aef --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenTableResponse.java @@ -0,0 +1,394 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.OpenTableResponse} + */ +@com.google.protobuf.Generated +public final class OpenTableResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.OpenTableResponse) + OpenTableResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OpenTableResponse"); + } + + // Use OpenTableResponse.newBuilder() to construct. + private OpenTableResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OpenTableResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenTableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenTableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.OpenTableResponse.class, + com.google.bigtable.v2.OpenTableResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.OpenTableResponse)) { + return super.equals(obj); + } + com.google.bigtable.v2.OpenTableResponse other = (com.google.bigtable.v2.OpenTableResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.OpenTableResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenTableResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenTableResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenTableResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenTableResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.OpenTableResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenTableResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenTableResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenTableResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenTableResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.OpenTableResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.OpenTableResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.OpenTableResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.OpenTableResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.OpenTableResponse) + com.google.bigtable.v2.OpenTableResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenTableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenTableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.OpenTableResponse.class, + com.google.bigtable.v2.OpenTableResponse.Builder.class); + } + + // Construct using com.google.bigtable.v2.OpenTableResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_OpenTableResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenTableResponse getDefaultInstanceForType() { + return com.google.bigtable.v2.OpenTableResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.OpenTableResponse build() { + com.google.bigtable.v2.OpenTableResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenTableResponse buildPartial() { + com.google.bigtable.v2.OpenTableResponse result = + new com.google.bigtable.v2.OpenTableResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.OpenTableResponse) { + return mergeFrom((com.google.bigtable.v2.OpenTableResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.OpenTableResponse other) { + if (other == com.google.bigtable.v2.OpenTableResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.OpenTableResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.OpenTableResponse) + private static final com.google.bigtable.v2.OpenTableResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.OpenTableResponse(); + } + + public static com.google.bigtable.v2.OpenTableResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenTableResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.OpenTableResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenTableResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenTableResponseOrBuilder.java new file mode 100644 index 0000000000..2f872a59f9 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/OpenTableResponseOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface OpenTableResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.OpenTableResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PeerInfo.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PeerInfo.java index 55fdd628c2..60d7fd2655 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PeerInfo.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PeerInfo.java @@ -53,6 +53,7 @@ private PeerInfo(com.google.protobuf.GeneratedMessage.Builder builder) { } private PeerInfo() { + applicationFrontendRegion_ = ""; applicationFrontendZone_ = ""; applicationFrontendSubzone_ = ""; transportType_ = 0; @@ -404,6 +405,59 @@ public long getApplicationFrontendId() { return applicationFrontendId_; } + public static final int APPLICATION_FRONTEND_REGION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object applicationFrontendRegion_ = ""; + + /** + * + * + *
+   * The Cloud region of the application frontend that served this request.
+   * 
+ * + * string application_frontend_region = 6; + * + * @return The applicationFrontendRegion. + */ + @java.lang.Override + public java.lang.String getApplicationFrontendRegion() { + java.lang.Object ref = applicationFrontendRegion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationFrontendRegion_ = s; + return s; + } + } + + /** + * + * + *
+   * The Cloud region of the application frontend that served this request.
+   * 
+ * + * string application_frontend_region = 6; + * + * @return The bytes for applicationFrontendRegion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationFrontendRegionBytes() { + java.lang.Object ref = applicationFrontendRegion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationFrontendRegion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int APPLICATION_FRONTEND_ZONE_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -416,11 +470,14 @@ public long getApplicationFrontendId() { * The Cloud zone of the application frontend that served this request. * * - * string application_frontend_zone = 3; + * string application_frontend_zone = 3 [deprecated = true]; * + * @deprecated google.bigtable.v2.PeerInfo.application_frontend_zone is deprecated. See + * google/bigtable/v2/peer_info.proto;l=72 * @return The applicationFrontendZone. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getApplicationFrontendZone() { java.lang.Object ref = applicationFrontendZone_; if (ref instanceof java.lang.String) { @@ -440,11 +497,14 @@ public java.lang.String getApplicationFrontendZone() { * The Cloud zone of the application frontend that served this request. * * - * string application_frontend_zone = 3; + * string application_frontend_zone = 3 [deprecated = true]; * + * @deprecated google.bigtable.v2.PeerInfo.application_frontend_zone is deprecated. See + * google/bigtable/v2/peer_info.proto;l=72 * @return The bytes for applicationFrontendZone. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getApplicationFrontendZoneBytes() { java.lang.Object ref = applicationFrontendZone_; if (ref instanceof java.lang.String) { @@ -467,7 +527,8 @@ public com.google.protobuf.ByteString getApplicationFrontendZoneBytes() { * *
    * The subzone of the application frontend that served this request, e.g. an
-   * identifier for where within the zone the application frontend is.
+   * identifier for where within a zone (within the reported region) the
+   * application frontend is.
    * 
* * string application_frontend_subzone = 4; @@ -492,7 +553,8 @@ public java.lang.String getApplicationFrontendSubzone() { * *
    * The subzone of the application frontend that served this request, e.g. an
-   * identifier for where within the zone the application frontend is.
+   * identifier for where within a zone (within the reported region) the
+   * application frontend is.
    * 
* * string application_frontend_subzone = 4; @@ -567,6 +629,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.bigtable.v2.PeerInfo.TransportType.TRANSPORT_TYPE_UNKNOWN.getNumber()) { output.writeEnum(5, transportType_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationFrontendRegion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, applicationFrontendRegion_); + } getUnknownFields().writeTo(output); } @@ -593,6 +658,9 @@ public int getSerializedSize() { != com.google.bigtable.v2.PeerInfo.TransportType.TRANSPORT_TYPE_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, transportType_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationFrontendRegion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, applicationFrontendRegion_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -610,6 +678,7 @@ public boolean equals(final java.lang.Object obj) { if (getGoogleFrontendId() != other.getGoogleFrontendId()) return false; if (getApplicationFrontendId() != other.getApplicationFrontendId()) return false; + if (!getApplicationFrontendRegion().equals(other.getApplicationFrontendRegion())) return false; if (!getApplicationFrontendZone().equals(other.getApplicationFrontendZone())) return false; if (!getApplicationFrontendSubzone().equals(other.getApplicationFrontendSubzone())) return false; @@ -629,6 +698,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGoogleFrontendId()); hash = (37 * hash) + APPLICATION_FRONTEND_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getApplicationFrontendId()); + hash = (37 * hash) + APPLICATION_FRONTEND_REGION_FIELD_NUMBER; + hash = (53 * hash) + getApplicationFrontendRegion().hashCode(); hash = (37 * hash) + APPLICATION_FRONTEND_ZONE_FIELD_NUMBER; hash = (53 * hash) + getApplicationFrontendZone().hashCode(); hash = (37 * hash) + APPLICATION_FRONTEND_SUBZONE_FIELD_NUMBER; @@ -776,6 +847,7 @@ public Builder clear() { bitField0_ = 0; googleFrontendId_ = 0L; applicationFrontendId_ = 0L; + applicationFrontendRegion_ = ""; applicationFrontendZone_ = ""; applicationFrontendSubzone_ = ""; transportType_ = 0; @@ -821,12 +893,15 @@ private void buildPartial0(com.google.bigtable.v2.PeerInfo result) { result.applicationFrontendId_ = applicationFrontendId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.applicationFrontendZone_ = applicationFrontendZone_; + result.applicationFrontendRegion_ = applicationFrontendRegion_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.applicationFrontendSubzone_ = applicationFrontendSubzone_; + result.applicationFrontendZone_ = applicationFrontendZone_; } if (((from_bitField0_ & 0x00000010) != 0)) { + result.applicationFrontendSubzone_ = applicationFrontendSubzone_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.transportType_ = transportType_; } } @@ -849,14 +924,19 @@ public Builder mergeFrom(com.google.bigtable.v2.PeerInfo other) { if (other.getApplicationFrontendId() != 0L) { setApplicationFrontendId(other.getApplicationFrontendId()); } + if (!other.getApplicationFrontendRegion().isEmpty()) { + applicationFrontendRegion_ = other.applicationFrontendRegion_; + bitField0_ |= 0x00000004; + onChanged(); + } if (!other.getApplicationFrontendZone().isEmpty()) { applicationFrontendZone_ = other.applicationFrontendZone_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getApplicationFrontendSubzone().isEmpty()) { applicationFrontendSubzone_ = other.applicationFrontendSubzone_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (other.transportType_ != 0) { @@ -903,21 +983,27 @@ public Builder mergeFrom( case 26: { applicationFrontendZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: { applicationFrontendSubzone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 case 40: { transportType_ = input.readEnum(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 40 + case 50: + { + applicationFrontendRegion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1055,6 +1141,117 @@ public Builder clearApplicationFrontendId() { return this; } + private java.lang.Object applicationFrontendRegion_ = ""; + + /** + * + * + *
+     * The Cloud region of the application frontend that served this request.
+     * 
+ * + * string application_frontend_region = 6; + * + * @return The applicationFrontendRegion. + */ + public java.lang.String getApplicationFrontendRegion() { + java.lang.Object ref = applicationFrontendRegion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationFrontendRegion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The Cloud region of the application frontend that served this request.
+     * 
+ * + * string application_frontend_region = 6; + * + * @return The bytes for applicationFrontendRegion. + */ + public com.google.protobuf.ByteString getApplicationFrontendRegionBytes() { + java.lang.Object ref = applicationFrontendRegion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationFrontendRegion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The Cloud region of the application frontend that served this request.
+     * 
+ * + * string application_frontend_region = 6; + * + * @param value The applicationFrontendRegion to set. + * @return This builder for chaining. + */ + public Builder setApplicationFrontendRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + applicationFrontendRegion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Cloud region of the application frontend that served this request.
+     * 
+ * + * string application_frontend_region = 6; + * + * @return This builder for chaining. + */ + public Builder clearApplicationFrontendRegion() { + applicationFrontendRegion_ = getDefaultInstance().getApplicationFrontendRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The Cloud region of the application frontend that served this request.
+     * 
+ * + * string application_frontend_region = 6; + * + * @param value The bytes for applicationFrontendRegion to set. + * @return This builder for chaining. + */ + public Builder setApplicationFrontendRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + applicationFrontendRegion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private java.lang.Object applicationFrontendZone_ = ""; /** @@ -1064,10 +1261,13 @@ public Builder clearApplicationFrontendId() { * The Cloud zone of the application frontend that served this request. * * - * string application_frontend_zone = 3; + * string application_frontend_zone = 3 [deprecated = true]; * + * @deprecated google.bigtable.v2.PeerInfo.application_frontend_zone is deprecated. See + * google/bigtable/v2/peer_info.proto;l=72 * @return The applicationFrontendZone. */ + @java.lang.Deprecated public java.lang.String getApplicationFrontendZone() { java.lang.Object ref = applicationFrontendZone_; if (!(ref instanceof java.lang.String)) { @@ -1087,10 +1287,13 @@ public java.lang.String getApplicationFrontendZone() { * The Cloud zone of the application frontend that served this request. * * - * string application_frontend_zone = 3; + * string application_frontend_zone = 3 [deprecated = true]; * + * @deprecated google.bigtable.v2.PeerInfo.application_frontend_zone is deprecated. See + * google/bigtable/v2/peer_info.proto;l=72 * @return The bytes for applicationFrontendZone. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getApplicationFrontendZoneBytes() { java.lang.Object ref = applicationFrontendZone_; if (ref instanceof String) { @@ -1110,17 +1313,20 @@ public com.google.protobuf.ByteString getApplicationFrontendZoneBytes() { * The Cloud zone of the application frontend that served this request. * * - * string application_frontend_zone = 3; + * string application_frontend_zone = 3 [deprecated = true]; * + * @deprecated google.bigtable.v2.PeerInfo.application_frontend_zone is deprecated. See + * google/bigtable/v2/peer_info.proto;l=72 * @param value The applicationFrontendZone to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setApplicationFrontendZone(java.lang.String value) { if (value == null) { throw new NullPointerException(); } applicationFrontendZone_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1132,13 +1338,16 @@ public Builder setApplicationFrontendZone(java.lang.String value) { * The Cloud zone of the application frontend that served this request. * * - * string application_frontend_zone = 3; + * string application_frontend_zone = 3 [deprecated = true]; * + * @deprecated google.bigtable.v2.PeerInfo.application_frontend_zone is deprecated. See + * google/bigtable/v2/peer_info.proto;l=72 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearApplicationFrontendZone() { applicationFrontendZone_ = getDefaultInstance().getApplicationFrontendZone(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1150,18 +1359,21 @@ public Builder clearApplicationFrontendZone() { * The Cloud zone of the application frontend that served this request. * * - * string application_frontend_zone = 3; + * string application_frontend_zone = 3 [deprecated = true]; * + * @deprecated google.bigtable.v2.PeerInfo.application_frontend_zone is deprecated. See + * google/bigtable/v2/peer_info.proto;l=72 * @param value The bytes for applicationFrontendZone to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setApplicationFrontendZoneBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); applicationFrontendZone_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1173,7 +1385,8 @@ public Builder setApplicationFrontendZoneBytes(com.google.protobuf.ByteString va * *
      * The subzone of the application frontend that served this request, e.g. an
-     * identifier for where within the zone the application frontend is.
+     * identifier for where within a zone (within the reported region) the
+     * application frontend is.
      * 
* * string application_frontend_subzone = 4; @@ -1197,7 +1410,8 @@ public java.lang.String getApplicationFrontendSubzone() { * *
      * The subzone of the application frontend that served this request, e.g. an
-     * identifier for where within the zone the application frontend is.
+     * identifier for where within a zone (within the reported region) the
+     * application frontend is.
      * 
* * string application_frontend_subzone = 4; @@ -1221,7 +1435,8 @@ public com.google.protobuf.ByteString getApplicationFrontendSubzoneBytes() { * *
      * The subzone of the application frontend that served this request, e.g. an
-     * identifier for where within the zone the application frontend is.
+     * identifier for where within a zone (within the reported region) the
+     * application frontend is.
      * 
* * string application_frontend_subzone = 4; @@ -1234,7 +1449,7 @@ public Builder setApplicationFrontendSubzone(java.lang.String value) { throw new NullPointerException(); } applicationFrontendSubzone_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1244,7 +1459,8 @@ public Builder setApplicationFrontendSubzone(java.lang.String value) { * *
      * The subzone of the application frontend that served this request, e.g. an
-     * identifier for where within the zone the application frontend is.
+     * identifier for where within a zone (within the reported region) the
+     * application frontend is.
      * 
* * string application_frontend_subzone = 4; @@ -1253,7 +1469,7 @@ public Builder setApplicationFrontendSubzone(java.lang.String value) { */ public Builder clearApplicationFrontendSubzone() { applicationFrontendSubzone_ = getDefaultInstance().getApplicationFrontendSubzone(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1263,7 +1479,8 @@ public Builder clearApplicationFrontendSubzone() { * *
      * The subzone of the application frontend that served this request, e.g. an
-     * identifier for where within the zone the application frontend is.
+     * identifier for where within a zone (within the reported region) the
+     * application frontend is.
      * 
* * string application_frontend_subzone = 4; @@ -1277,7 +1494,7 @@ public Builder setApplicationFrontendSubzoneBytes(com.google.protobuf.ByteString } checkByteStringIsUtf8(value); applicationFrontendSubzone_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1302,7 +1519,7 @@ public int getTransportTypeValue() { */ public Builder setTransportTypeValue(int value) { transportType_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1329,7 +1546,7 @@ public Builder setTransportType(com.google.bigtable.v2.PeerInfo.TransportType va if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; transportType_ = value.getNumber(); onChanged(); return this; @@ -1341,7 +1558,7 @@ public Builder setTransportType(com.google.bigtable.v2.PeerInfo.TransportType va * @return This builder for chaining. */ public Builder clearTransportType() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); transportType_ = 0; onChanged(); return this; diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PeerInfoOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PeerInfoOrBuilder.java index b5d5121c68..3819533d0a 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PeerInfoOrBuilder.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PeerInfoOrBuilder.java @@ -54,6 +54,32 @@ public interface PeerInfoOrBuilder */ long getApplicationFrontendId(); + /** + * + * + *
+   * The Cloud region of the application frontend that served this request.
+   * 
+ * + * string application_frontend_region = 6; + * + * @return The applicationFrontendRegion. + */ + java.lang.String getApplicationFrontendRegion(); + + /** + * + * + *
+   * The Cloud region of the application frontend that served this request.
+   * 
+ * + * string application_frontend_region = 6; + * + * @return The bytes for applicationFrontendRegion. + */ + com.google.protobuf.ByteString getApplicationFrontendRegionBytes(); + /** * * @@ -61,10 +87,13 @@ public interface PeerInfoOrBuilder * The Cloud zone of the application frontend that served this request. * * - * string application_frontend_zone = 3; + * string application_frontend_zone = 3 [deprecated = true]; * + * @deprecated google.bigtable.v2.PeerInfo.application_frontend_zone is deprecated. See + * google/bigtable/v2/peer_info.proto;l=72 * @return The applicationFrontendZone. */ + @java.lang.Deprecated java.lang.String getApplicationFrontendZone(); /** @@ -74,10 +103,13 @@ public interface PeerInfoOrBuilder * The Cloud zone of the application frontend that served this request. * * - * string application_frontend_zone = 3; + * string application_frontend_zone = 3 [deprecated = true]; * + * @deprecated google.bigtable.v2.PeerInfo.application_frontend_zone is deprecated. See + * google/bigtable/v2/peer_info.proto;l=72 * @return The bytes for applicationFrontendZone. */ + @java.lang.Deprecated com.google.protobuf.ByteString getApplicationFrontendZoneBytes(); /** @@ -85,7 +117,8 @@ public interface PeerInfoOrBuilder * *
    * The subzone of the application frontend that served this request, e.g. an
-   * identifier for where within the zone the application frontend is.
+   * identifier for where within a zone (within the reported region) the
+   * application frontend is.
    * 
* * string application_frontend_subzone = 4; @@ -99,7 +132,8 @@ public interface PeerInfoOrBuilder * *
    * The subzone of the application frontend that served this request, e.g. an
-   * identifier for where within the zone the application frontend is.
+   * identifier for where within a zone (within the reported region) the
+   * application frontend is.
    * 
* * string application_frontend_subzone = 4; diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PeerInfoProto.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PeerInfoProto.java index 79838d76c8..70745c4ef9 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PeerInfoProto.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PeerInfoProto.java @@ -54,24 +54,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\"google/bigtable/v2/peer_info.proto\022\022go" - + "ogle.bigtable.v2\"\372\003\n\010PeerInfo\022\032\n\022google_" + + "ogle.bigtable.v2\"\243\004\n\010PeerInfo\022\032\n\022google_" + "frontend_id\030\001 \001(\003\022\037\n\027application_fronten" - + "d_id\030\002 \001(\003\022!\n\031application_frontend_zone\030" - + "\003 \001(\t\022$\n\034application_frontend_subzone\030\004 " - + "\001(\t\022B\n\016transport_type\030\005 \001(\0162*.google.big" - + "table.v2.PeerInfo.TransportType\"\243\002\n\rTran" - + "sportType\022\032\n\026TRANSPORT_TYPE_UNKNOWN\020\000\022\033\n" - + "\027TRANSPORT_TYPE_EXTERNAL\020\001\022\035\n\031TRANSPORT_" - + "TYPE_CLOUD_PATH\020\002\022 \n\034TRANSPORT_TYPE_DIRE" - + "CT_ACCESS\020\003\022\"\n\036TRANSPORT_TYPE_SESSION_UN" - + "KNOWN\020\004\022#\n\037TRANSPORT_TYPE_SESSION_EXTERN" - + "AL\020\005\022%\n!TRANSPORT_TYPE_SESSION_CLOUD_PAT" - + "H\020\006\022(\n$TRANSPORT_TYPE_SESSION_DIRECT_ACC" - + "ESS\020\007B\267\001\n\026com.google.bigtable.v2B\rPeerIn" - + "foProtoP\001Z8cloud.google.com/go/bigtable/" - + "apiv2/bigtablepb;bigtablepb\252\002\030Google.Clo" - + "ud.Bigtable.V2\312\002\030Google\\Cloud\\Bigtable\\V" - + "2\352\002\033Google::Cloud::Bigtable::V2b\006proto3" + + "d_id\030\002 \001(\003\022#\n\033application_frontend_regio" + + "n\030\006 \001(\t\022%\n\031application_frontend_zone\030\003 \001" + + "(\tB\002\030\001\022$\n\034application_frontend_subzone\030\004" + + " \001(\t\022B\n\016transport_type\030\005 \001(\0162*.google.bi" + + "gtable.v2.PeerInfo.TransportType\"\243\002\n\rTra" + + "nsportType\022\032\n\026TRANSPORT_TYPE_UNKNOWN\020\000\022\033" + + "\n\027TRANSPORT_TYPE_EXTERNAL\020\001\022\035\n\031TRANSPORT" + + "_TYPE_CLOUD_PATH\020\002\022 \n\034TRANSPORT_TYPE_DIR" + + "ECT_ACCESS\020\003\022\"\n\036TRANSPORT_TYPE_SESSION_U" + + "NKNOWN\020\004\022#\n\037TRANSPORT_TYPE_SESSION_EXTER" + + "NAL\020\005\022%\n!TRANSPORT_TYPE_SESSION_CLOUD_PA" + + "TH\020\006\022(\n$TRANSPORT_TYPE_SESSION_DIRECT_AC" + + "CESS\020\007B\267\001\n\026com.google.bigtable.v2B\rPeerI" + + "nfoProtoP\001Z8cloud.google.com/go/bigtable" + + "/apiv2/bigtablepb;bigtablepb\252\002\030Google.Cl" + + "oud.Bigtable.V2\312\002\030Google\\Cloud\\Bigtable\\" + + "V2\352\002\033Google::Cloud::Bigtable::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -83,6 +84,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "GoogleFrontendId", "ApplicationFrontendId", + "ApplicationFrontendRegion", "ApplicationFrontendZone", "ApplicationFrontendSubzone", "TransportType", diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionClientConfiguration.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionClientConfiguration.java new file mode 100644 index 0000000000..36d01b61f5 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionClientConfiguration.java @@ -0,0 +1,7243 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Configuration for the Session API. Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionClientConfiguration} + */ +@com.google.protobuf.Generated +public final class SessionClientConfiguration extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.SessionClientConfiguration) + SessionClientConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionClientConfiguration"); + } + + // Use SessionClientConfiguration.newBuilder() to construct. + private SessionClientConfiguration(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionClientConfiguration() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionClientConfiguration.class, + com.google.bigtable.v2.SessionClientConfiguration.Builder.class); + } + + public interface ChannelPoolConfigurationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The minimum number of distcint servers to connect to in the channel pool.
+     * The client will ensure that the channel pool will have at least this many
+     * distinct servers, but may have multiple channels connected to the same
+     * server (e.g. the client may have M channels on N machines, where M > N).
+     * 
+ * + * int32 min_server_count = 1; + * + * @return The minServerCount. + */ + int getMinServerCount(); + + /** + * + * + *
+     * The maximum number of distinct servers to connect to in the channel pool.
+     * The client will ensure that the channel pool will have at most this many
+     * distinct servers.
+     * 
+ * + * int32 max_server_count = 2; + * + * @return The maxServerCount. + */ + int getMaxServerCount(); + + /** + * + * + *
+     * Soft maximum for how many sessions are allowed per server. Normally, the
+     * client will ensure that it does not host more than this count of sessions
+     * per server, unless there are other limits encountered (e.g. the connected
+     * servers is already at max_servers).
+     * 
+ * + * int32 per_server_session_count = 3; + * + * @return The perServerSessionCount. + */ + int getPerServerSessionCount(); + + /** + * + * + *
+     * DirectAccess with a fallback to CloudPath.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback direct_access_with_fallback = 4; + * + * + * @return Whether the directAccessWithFallback field is set. + */ + boolean hasDirectAccessWithFallback(); + + /** + * + * + *
+     * DirectAccess with a fallback to CloudPath.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback direct_access_with_fallback = 4; + * + * + * @return The directAccessWithFallback. + */ + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + getDirectAccessWithFallback(); + + /** + * + * + *
+     * DirectAccess with a fallback to CloudPath.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback direct_access_with_fallback = 4; + * + */ + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallbackOrBuilder + getDirectAccessWithFallbackOrBuilder(); + + /** + * + * + *
+     * DirectAccess only.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly direct_access_only = 5; + * + * + * @return Whether the directAccessOnly field is set. + */ + boolean hasDirectAccessOnly(); + + /** + * + * + *
+     * DirectAccess only.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly direct_access_only = 5; + * + * + * @return The directAccessOnly. + */ + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly + getDirectAccessOnly(); + + /** + * + * + *
+     * DirectAccess only.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly direct_access_only = 5; + * + */ + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnlyOrBuilder + getDirectAccessOnlyOrBuilder(); + + /** + * + * + *
+     * CloudPath only.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly cloud_path_only = 6; + * + * + * @return Whether the cloudPathOnly field is set. + */ + boolean hasCloudPathOnly(); + + /** + * + * + *
+     * CloudPath only.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly cloud_path_only = 6; + * + * + * @return The cloudPathOnly. + */ + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly + getCloudPathOnly(); + + /** + * + * + *
+     * CloudPath only.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly cloud_path_only = 6; + * + */ + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnlyOrBuilder + getCloudPathOnlyOrBuilder(); + + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.ModeCase + getModeCase(); + } + + /** + * + * + *
+   * Configuration for the channel pool.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration} + */ + public static final class ChannelPoolConfiguration extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration) + ChannelPoolConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ChannelPoolConfiguration"); + } + + // Use ChannelPoolConfiguration.newBuilder() to construct. + private ChannelPoolConfiguration(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ChannelPoolConfiguration() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.class, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.Builder + .class); + } + + public interface DirectAccessWithFallbackOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The threshold for errors on DirectAccess to trigger CloudPath fallback.
+       * The error rate is calculated based on a count of vRPCs with errors
+       * divided by a total count of vRPCs, over a rolling window of the past
+       * check_interval. If this ratio exceeds this threshold, the fallback to
+       * CloudPath is triggered. [0, 1].
+       * 
+ * + * float error_rate_threshold = 1; + * + * @return The errorRateThreshold. + */ + float getErrorRateThreshold(); + + /** + * + * + *
+       * The interval to check the error rate over.
+       * 
+ * + * .google.protobuf.Duration check_interval = 2; + * + * @return Whether the checkInterval field is set. + */ + boolean hasCheckInterval(); + + /** + * + * + *
+       * The interval to check the error rate over.
+       * 
+ * + * .google.protobuf.Duration check_interval = 2; + * + * @return The checkInterval. + */ + com.google.protobuf.Duration getCheckInterval(); + + /** + * + * + *
+       * The interval to check the error rate over.
+       * 
+ * + * .google.protobuf.Duration check_interval = 2; + */ + com.google.protobuf.DurationOrBuilder getCheckIntervalOrBuilder(); + } + + /** + * + * + *
+     * A channel mode which allows DirectAccess with a fallback to CloudPath if
+     * DirectAccess is unavailable.
+     * 
+ * + * Protobuf type {@code + * google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback} + */ + public static final class DirectAccessWithFallback extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback) + DirectAccessWithFallbackOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DirectAccessWithFallback"); + } + + // Use DirectAccessWithFallback.newBuilder() to construct. + private DirectAccessWithFallback(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DirectAccessWithFallback() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessWithFallback_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessWithFallback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.class, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.Builder.class); + } + + private int bitField0_; + public static final int ERROR_RATE_THRESHOLD_FIELD_NUMBER = 1; + private float errorRateThreshold_ = 0F; + + /** + * + * + *
+       * The threshold for errors on DirectAccess to trigger CloudPath fallback.
+       * The error rate is calculated based on a count of vRPCs with errors
+       * divided by a total count of vRPCs, over a rolling window of the past
+       * check_interval. If this ratio exceeds this threshold, the fallback to
+       * CloudPath is triggered. [0, 1].
+       * 
+ * + * float error_rate_threshold = 1; + * + * @return The errorRateThreshold. + */ + @java.lang.Override + public float getErrorRateThreshold() { + return errorRateThreshold_; + } + + public static final int CHECK_INTERVAL_FIELD_NUMBER = 2; + private com.google.protobuf.Duration checkInterval_; + + /** + * + * + *
+       * The interval to check the error rate over.
+       * 
+ * + * .google.protobuf.Duration check_interval = 2; + * + * @return Whether the checkInterval field is set. + */ + @java.lang.Override + public boolean hasCheckInterval() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * The interval to check the error rate over.
+       * 
+ * + * .google.protobuf.Duration check_interval = 2; + * + * @return The checkInterval. + */ + @java.lang.Override + public com.google.protobuf.Duration getCheckInterval() { + return checkInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : checkInterval_; + } + + /** + * + * + *
+       * The interval to check the error rate over.
+       * 
+ * + * .google.protobuf.Duration check_interval = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getCheckIntervalOrBuilder() { + return checkInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : checkInterval_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (java.lang.Float.floatToRawIntBits(errorRateThreshold_) != 0) { + output.writeFloat(1, errorRateThreshold_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCheckInterval()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Float.floatToRawIntBits(errorRateThreshold_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, errorRateThreshold_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCheckInterval()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback)) { + return super.equals(obj); + } + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + other = + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback) + obj; + + if (java.lang.Float.floatToIntBits(getErrorRateThreshold()) + != java.lang.Float.floatToIntBits(other.getErrorRateThreshold())) return false; + if (hasCheckInterval() != other.hasCheckInterval()) return false; + if (hasCheckInterval()) { + if (!getCheckInterval().equals(other.getCheckInterval())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ERROR_RATE_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getErrorRateThreshold()); + if (hasCheckInterval()) { + hash = (37 * hash) + CHECK_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getCheckInterval().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * A channel mode which allows DirectAccess with a fallback to CloudPath if
+       * DirectAccess is unavailable.
+       * 
+ * + * Protobuf type {@code + * google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback) + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallbackOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessWithFallback_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessWithFallback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.class, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.Builder.class); + } + + // Construct using + // com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCheckIntervalFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + errorRateThreshold_ = 0F; + checkInterval_ = null; + if (checkIntervalBuilder_ != null) { + checkIntervalBuilder_.dispose(); + checkIntervalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessWithFallback_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + getDefaultInstanceForType() { + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + build() { + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + buildPartial() { + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + result = + new com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.errorRateThreshold_ = errorRateThreshold_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.checkInterval_ = + checkIntervalBuilder_ == null ? checkInterval_ : checkIntervalBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback) { + return mergeFrom( + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + other) { + if (other + == com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.getDefaultInstance()) return this; + if (java.lang.Float.floatToRawIntBits(other.getErrorRateThreshold()) != 0) { + setErrorRateThreshold(other.getErrorRateThreshold()); + } + if (other.hasCheckInterval()) { + mergeCheckInterval(other.getCheckInterval()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + errorRateThreshold_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 18: + { + input.readMessage( + internalGetCheckIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private float errorRateThreshold_; + + /** + * + * + *
+         * The threshold for errors on DirectAccess to trigger CloudPath fallback.
+         * The error rate is calculated based on a count of vRPCs with errors
+         * divided by a total count of vRPCs, over a rolling window of the past
+         * check_interval. If this ratio exceeds this threshold, the fallback to
+         * CloudPath is triggered. [0, 1].
+         * 
+ * + * float error_rate_threshold = 1; + * + * @return The errorRateThreshold. + */ + @java.lang.Override + public float getErrorRateThreshold() { + return errorRateThreshold_; + } + + /** + * + * + *
+         * The threshold for errors on DirectAccess to trigger CloudPath fallback.
+         * The error rate is calculated based on a count of vRPCs with errors
+         * divided by a total count of vRPCs, over a rolling window of the past
+         * check_interval. If this ratio exceeds this threshold, the fallback to
+         * CloudPath is triggered. [0, 1].
+         * 
+ * + * float error_rate_threshold = 1; + * + * @param value The errorRateThreshold to set. + * @return This builder for chaining. + */ + public Builder setErrorRateThreshold(float value) { + + errorRateThreshold_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * The threshold for errors on DirectAccess to trigger CloudPath fallback.
+         * The error rate is calculated based on a count of vRPCs with errors
+         * divided by a total count of vRPCs, over a rolling window of the past
+         * check_interval. If this ratio exceeds this threshold, the fallback to
+         * CloudPath is triggered. [0, 1].
+         * 
+ * + * float error_rate_threshold = 1; + * + * @return This builder for chaining. + */ + public Builder clearErrorRateThreshold() { + bitField0_ = (bitField0_ & ~0x00000001); + errorRateThreshold_ = 0F; + onChanged(); + return this; + } + + private com.google.protobuf.Duration checkInterval_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + checkIntervalBuilder_; + + /** + * + * + *
+         * The interval to check the error rate over.
+         * 
+ * + * .google.protobuf.Duration check_interval = 2; + * + * @return Whether the checkInterval field is set. + */ + public boolean hasCheckInterval() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+         * The interval to check the error rate over.
+         * 
+ * + * .google.protobuf.Duration check_interval = 2; + * + * @return The checkInterval. + */ + public com.google.protobuf.Duration getCheckInterval() { + if (checkIntervalBuilder_ == null) { + return checkInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : checkInterval_; + } else { + return checkIntervalBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * The interval to check the error rate over.
+         * 
+ * + * .google.protobuf.Duration check_interval = 2; + */ + public Builder setCheckInterval(com.google.protobuf.Duration value) { + if (checkIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + checkInterval_ = value; + } else { + checkIntervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * The interval to check the error rate over.
+         * 
+ * + * .google.protobuf.Duration check_interval = 2; + */ + public Builder setCheckInterval(com.google.protobuf.Duration.Builder builderForValue) { + if (checkIntervalBuilder_ == null) { + checkInterval_ = builderForValue.build(); + } else { + checkIntervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * The interval to check the error rate over.
+         * 
+ * + * .google.protobuf.Duration check_interval = 2; + */ + public Builder mergeCheckInterval(com.google.protobuf.Duration value) { + if (checkIntervalBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && checkInterval_ != null + && checkInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + getCheckIntervalBuilder().mergeFrom(value); + } else { + checkInterval_ = value; + } + } else { + checkIntervalBuilder_.mergeFrom(value); + } + if (checkInterval_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * The interval to check the error rate over.
+         * 
+ * + * .google.protobuf.Duration check_interval = 2; + */ + public Builder clearCheckInterval() { + bitField0_ = (bitField0_ & ~0x00000002); + checkInterval_ = null; + if (checkIntervalBuilder_ != null) { + checkIntervalBuilder_.dispose(); + checkIntervalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * The interval to check the error rate over.
+         * 
+ * + * .google.protobuf.Duration check_interval = 2; + */ + public com.google.protobuf.Duration.Builder getCheckIntervalBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCheckIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * The interval to check the error rate over.
+         * 
+ * + * .google.protobuf.Duration check_interval = 2; + */ + public com.google.protobuf.DurationOrBuilder getCheckIntervalOrBuilder() { + if (checkIntervalBuilder_ != null) { + return checkIntervalBuilder_.getMessageOrBuilder(); + } else { + return checkInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : checkInterval_; + } + } + + /** + * + * + *
+         * The interval to check the error rate over.
+         * 
+ * + * .google.protobuf.Duration check_interval = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetCheckIntervalFieldBuilder() { + if (checkIntervalBuilder_ == null) { + checkIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getCheckInterval(), getParentForChildren(), isClean()); + checkInterval_ = null; + } + return checkIntervalBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback) + private static final com.google.bigtable.v2.SessionClientConfiguration + .ChannelPoolConfiguration.DirectAccessWithFallback + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback(); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DirectAccessWithFallback parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DirectAccessOnlyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
+     * A channel mode which only allows DirectAccess.
+     * 
+ * + * Protobuf type {@code + * google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly} + */ + public static final class DirectAccessOnly extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly) + DirectAccessOnlyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DirectAccessOnly"); + } + + // Use DirectAccessOnly.newBuilder() to construct. + private DirectAccessOnly(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DirectAccessOnly() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessOnly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessOnly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.class, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly)) { + return super.equals(obj); + } + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly + other = + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly) + obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * A channel mode which only allows DirectAccess.
+       * 
+ * + * Protobuf type {@code + * google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly) + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnlyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessOnly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessOnly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.class, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.Builder.class); + } + + // Construct using + // com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessOnly_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + getDefaultInstanceForType() { + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + build() { + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + buildPartial() { + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + result = + new com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly) { + return mergeFrom( + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + other) { + if (other + == com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly) + private static final com.google.bigtable.v2.SessionClientConfiguration + .ChannelPoolConfiguration.DirectAccessOnly + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly(); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DirectAccessOnly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CloudPathOnlyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
+     * A channel mode which only allows CloudPath.
+     * 
+ * + * Protobuf type {@code + * google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly} + */ + public static final class CloudPathOnly extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly) + CloudPathOnlyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CloudPathOnly"); + } + + // Use CloudPathOnly.newBuilder() to construct. + private CloudPathOnly(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CloudPathOnly() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_CloudPathOnly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_CloudPathOnly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.class, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly)) { + return super.equals(obj); + } + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly + other = + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly) + obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * A channel mode which only allows CloudPath.
+       * 
+ * + * Protobuf type {@code + * google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly) + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnlyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_CloudPathOnly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_CloudPathOnly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.class, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.Builder.class); + } + + // Construct using + // com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_CloudPathOnly_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + getDefaultInstanceForType() { + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + build() { + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + buildPartial() { + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly + result = + new com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly) { + return mergeFrom( + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly + other) { + if (other + == com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly) + private static final com.google.bigtable.v2.SessionClientConfiguration + .ChannelPoolConfiguration.CloudPathOnly + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly(); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudPathOnly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int modeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object mode_; + + public enum ModeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DIRECT_ACCESS_WITH_FALLBACK(4), + DIRECT_ACCESS_ONLY(5), + CLOUD_PATH_ONLY(6), + MODE_NOT_SET(0); + private final int value; + + private ModeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ModeCase valueOf(int value) { + return forNumber(value); + } + + public static ModeCase forNumber(int value) { + switch (value) { + case 4: + return DIRECT_ACCESS_WITH_FALLBACK; + case 5: + return DIRECT_ACCESS_ONLY; + case 6: + return CLOUD_PATH_ONLY; + case 0: + return MODE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ModeCase getModeCase() { + return ModeCase.forNumber(modeCase_); + } + + public static final int MIN_SERVER_COUNT_FIELD_NUMBER = 1; + private int minServerCount_ = 0; + + /** + * + * + *
+     * The minimum number of distcint servers to connect to in the channel pool.
+     * The client will ensure that the channel pool will have at least this many
+     * distinct servers, but may have multiple channels connected to the same
+     * server (e.g. the client may have M channels on N machines, where M > N).
+     * 
+ * + * int32 min_server_count = 1; + * + * @return The minServerCount. + */ + @java.lang.Override + public int getMinServerCount() { + return minServerCount_; + } + + public static final int MAX_SERVER_COUNT_FIELD_NUMBER = 2; + private int maxServerCount_ = 0; + + /** + * + * + *
+     * The maximum number of distinct servers to connect to in the channel pool.
+     * The client will ensure that the channel pool will have at most this many
+     * distinct servers.
+     * 
+ * + * int32 max_server_count = 2; + * + * @return The maxServerCount. + */ + @java.lang.Override + public int getMaxServerCount() { + return maxServerCount_; + } + + public static final int PER_SERVER_SESSION_COUNT_FIELD_NUMBER = 3; + private int perServerSessionCount_ = 0; + + /** + * + * + *
+     * Soft maximum for how many sessions are allowed per server. Normally, the
+     * client will ensure that it does not host more than this count of sessions
+     * per server, unless there are other limits encountered (e.g. the connected
+     * servers is already at max_servers).
+     * 
+ * + * int32 per_server_session_count = 3; + * + * @return The perServerSessionCount. + */ + @java.lang.Override + public int getPerServerSessionCount() { + return perServerSessionCount_; + } + + public static final int DIRECT_ACCESS_WITH_FALLBACK_FIELD_NUMBER = 4; + + /** + * + * + *
+     * DirectAccess with a fallback to CloudPath.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback direct_access_with_fallback = 4; + * + * + * @return Whether the directAccessWithFallback field is set. + */ + @java.lang.Override + public boolean hasDirectAccessWithFallback() { + return modeCase_ == 4; + } + + /** + * + * + *
+     * DirectAccess with a fallback to CloudPath.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback direct_access_with_fallback = 4; + * + * + * @return The directAccessWithFallback. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + getDirectAccessWithFallback() { + if (modeCase_ == 4) { + return (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback) + mode_; + } + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.getDefaultInstance(); + } + + /** + * + * + *
+     * DirectAccess with a fallback to CloudPath.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback direct_access_with_fallback = 4; + * + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallbackOrBuilder + getDirectAccessWithFallbackOrBuilder() { + if (modeCase_ == 4) { + return (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback) + mode_; + } + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.getDefaultInstance(); + } + + public static final int DIRECT_ACCESS_ONLY_FIELD_NUMBER = 5; + + /** + * + * + *
+     * DirectAccess only.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly direct_access_only = 5; + * + * + * @return Whether the directAccessOnly field is set. + */ + @java.lang.Override + public boolean hasDirectAccessOnly() { + return modeCase_ == 5; + } + + /** + * + * + *
+     * DirectAccess only.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly direct_access_only = 5; + * + * + * @return The directAccessOnly. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + getDirectAccessOnly() { + if (modeCase_ == 5) { + return (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly) + mode_; + } + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.getDefaultInstance(); + } + + /** + * + * + *
+     * DirectAccess only.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly direct_access_only = 5; + * + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnlyOrBuilder + getDirectAccessOnlyOrBuilder() { + if (modeCase_ == 5) { + return (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly) + mode_; + } + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.getDefaultInstance(); + } + + public static final int CLOUD_PATH_ONLY_FIELD_NUMBER = 6; + + /** + * + * + *
+     * CloudPath only.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly cloud_path_only = 6; + * + * + * @return Whether the cloudPathOnly field is set. + */ + @java.lang.Override + public boolean hasCloudPathOnly() { + return modeCase_ == 6; + } + + /** + * + * + *
+     * CloudPath only.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly cloud_path_only = 6; + * + * + * @return The cloudPathOnly. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly + getCloudPathOnly() { + if (modeCase_ == 6) { + return (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly) + mode_; + } + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.getDefaultInstance(); + } + + /** + * + * + *
+     * CloudPath only.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly cloud_path_only = 6; + * + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnlyOrBuilder + getCloudPathOnlyOrBuilder() { + if (modeCase_ == 6) { + return (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly) + mode_; + } + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (minServerCount_ != 0) { + output.writeInt32(1, minServerCount_); + } + if (maxServerCount_ != 0) { + output.writeInt32(2, maxServerCount_); + } + if (perServerSessionCount_ != 0) { + output.writeInt32(3, perServerSessionCount_); + } + if (modeCase_ == 4) { + output.writeMessage( + 4, + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback) + mode_); + } + if (modeCase_ == 5) { + output.writeMessage( + 5, + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly) + mode_); + } + if (modeCase_ == 6) { + output.writeMessage( + 6, + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly) + mode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (minServerCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, minServerCount_); + } + if (maxServerCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxServerCount_); + } + if (perServerSessionCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, perServerSessionCount_); + } + if (modeCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback) + mode_); + } + if (modeCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly) + mode_); + } + if (modeCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly) + mode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration)) { + return super.equals(obj); + } + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration other = + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration) obj; + + if (getMinServerCount() != other.getMinServerCount()) return false; + if (getMaxServerCount() != other.getMaxServerCount()) return false; + if (getPerServerSessionCount() != other.getPerServerSessionCount()) return false; + if (!getModeCase().equals(other.getModeCase())) return false; + switch (modeCase_) { + case 4: + if (!getDirectAccessWithFallback().equals(other.getDirectAccessWithFallback())) + return false; + break; + case 5: + if (!getDirectAccessOnly().equals(other.getDirectAccessOnly())) return false; + break; + case 6: + if (!getCloudPathOnly().equals(other.getCloudPathOnly())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MIN_SERVER_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMinServerCount(); + hash = (37 * hash) + MAX_SERVER_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxServerCount(); + hash = (37 * hash) + PER_SERVER_SESSION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getPerServerSessionCount(); + switch (modeCase_) { + case 4: + hash = (37 * hash) + DIRECT_ACCESS_WITH_FALLBACK_FIELD_NUMBER; + hash = (53 * hash) + getDirectAccessWithFallback().hashCode(); + break; + case 5: + hash = (37 * hash) + DIRECT_ACCESS_ONLY_FIELD_NUMBER; + hash = (53 * hash) + getDirectAccessOnly().hashCode(); + break; + case 6: + hash = (37 * hash) + CLOUD_PATH_ONLY_FIELD_NUMBER; + hash = (53 * hash) + getCloudPathOnly().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Configuration for the channel pool.
+     * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration) + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.class, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.Builder + .class); + } + + // Construct using + // com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + minServerCount_ = 0; + maxServerCount_ = 0; + perServerSessionCount_ = 0; + if (directAccessWithFallbackBuilder_ != null) { + directAccessWithFallbackBuilder_.clear(); + } + if (directAccessOnlyBuilder_ != null) { + directAccessOnlyBuilder_.clear(); + } + if (cloudPathOnlyBuilder_ != null) { + cloudPathOnlyBuilder_.clear(); + } + modeCase_ = 0; + mode_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + getDefaultInstanceForType() { + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration build() { + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + buildPartial() { + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration result = + new com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.minServerCount_ = minServerCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxServerCount_ = maxServerCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.perServerSessionCount_ = perServerSessionCount_; + } + } + + private void buildPartialOneofs( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration result) { + result.modeCase_ = modeCase_; + result.mode_ = this.mode_; + if (modeCase_ == 4 && directAccessWithFallbackBuilder_ != null) { + result.mode_ = directAccessWithFallbackBuilder_.build(); + } + if (modeCase_ == 5 && directAccessOnlyBuilder_ != null) { + result.mode_ = directAccessOnlyBuilder_.build(); + } + if (modeCase_ == 6 && cloudPathOnlyBuilder_ != null) { + result.mode_ = cloudPathOnlyBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration) { + return mergeFrom( + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration other) { + if (other + == com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .getDefaultInstance()) return this; + if (other.getMinServerCount() != 0) { + setMinServerCount(other.getMinServerCount()); + } + if (other.getMaxServerCount() != 0) { + setMaxServerCount(other.getMaxServerCount()); + } + if (other.getPerServerSessionCount() != 0) { + setPerServerSessionCount(other.getPerServerSessionCount()); + } + switch (other.getModeCase()) { + case DIRECT_ACCESS_WITH_FALLBACK: + { + mergeDirectAccessWithFallback(other.getDirectAccessWithFallback()); + break; + } + case DIRECT_ACCESS_ONLY: + { + mergeDirectAccessOnly(other.getDirectAccessOnly()); + break; + } + case CLOUD_PATH_ONLY: + { + mergeCloudPathOnly(other.getCloudPathOnly()); + break; + } + case MODE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + minServerCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + maxServerCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + perServerSessionCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetDirectAccessWithFallbackFieldBuilder().getBuilder(), + extensionRegistry); + modeCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetDirectAccessOnlyFieldBuilder().getBuilder(), extensionRegistry); + modeCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetCloudPathOnlyFieldBuilder().getBuilder(), extensionRegistry); + modeCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int modeCase_ = 0; + private java.lang.Object mode_; + + public ModeCase getModeCase() { + return ModeCase.forNumber(modeCase_); + } + + public Builder clearMode() { + modeCase_ = 0; + mode_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private int minServerCount_; + + /** + * + * + *
+       * The minimum number of distcint servers to connect to in the channel pool.
+       * The client will ensure that the channel pool will have at least this many
+       * distinct servers, but may have multiple channels connected to the same
+       * server (e.g. the client may have M channels on N machines, where M > N).
+       * 
+ * + * int32 min_server_count = 1; + * + * @return The minServerCount. + */ + @java.lang.Override + public int getMinServerCount() { + return minServerCount_; + } + + /** + * + * + *
+       * The minimum number of distcint servers to connect to in the channel pool.
+       * The client will ensure that the channel pool will have at least this many
+       * distinct servers, but may have multiple channels connected to the same
+       * server (e.g. the client may have M channels on N machines, where M > N).
+       * 
+ * + * int32 min_server_count = 1; + * + * @param value The minServerCount to set. + * @return This builder for chaining. + */ + public Builder setMinServerCount(int value) { + + minServerCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The minimum number of distcint servers to connect to in the channel pool.
+       * The client will ensure that the channel pool will have at least this many
+       * distinct servers, but may have multiple channels connected to the same
+       * server (e.g. the client may have M channels on N machines, where M > N).
+       * 
+ * + * int32 min_server_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearMinServerCount() { + bitField0_ = (bitField0_ & ~0x00000001); + minServerCount_ = 0; + onChanged(); + return this; + } + + private int maxServerCount_; + + /** + * + * + *
+       * The maximum number of distinct servers to connect to in the channel pool.
+       * The client will ensure that the channel pool will have at most this many
+       * distinct servers.
+       * 
+ * + * int32 max_server_count = 2; + * + * @return The maxServerCount. + */ + @java.lang.Override + public int getMaxServerCount() { + return maxServerCount_; + } + + /** + * + * + *
+       * The maximum number of distinct servers to connect to in the channel pool.
+       * The client will ensure that the channel pool will have at most this many
+       * distinct servers.
+       * 
+ * + * int32 max_server_count = 2; + * + * @param value The maxServerCount to set. + * @return This builder for chaining. + */ + public Builder setMaxServerCount(int value) { + + maxServerCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The maximum number of distinct servers to connect to in the channel pool.
+       * The client will ensure that the channel pool will have at most this many
+       * distinct servers.
+       * 
+ * + * int32 max_server_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxServerCount() { + bitField0_ = (bitField0_ & ~0x00000002); + maxServerCount_ = 0; + onChanged(); + return this; + } + + private int perServerSessionCount_; + + /** + * + * + *
+       * Soft maximum for how many sessions are allowed per server. Normally, the
+       * client will ensure that it does not host more than this count of sessions
+       * per server, unless there are other limits encountered (e.g. the connected
+       * servers is already at max_servers).
+       * 
+ * + * int32 per_server_session_count = 3; + * + * @return The perServerSessionCount. + */ + @java.lang.Override + public int getPerServerSessionCount() { + return perServerSessionCount_; + } + + /** + * + * + *
+       * Soft maximum for how many sessions are allowed per server. Normally, the
+       * client will ensure that it does not host more than this count of sessions
+       * per server, unless there are other limits encountered (e.g. the connected
+       * servers is already at max_servers).
+       * 
+ * + * int32 per_server_session_count = 3; + * + * @param value The perServerSessionCount to set. + * @return This builder for chaining. + */ + public Builder setPerServerSessionCount(int value) { + + perServerSessionCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Soft maximum for how many sessions are allowed per server. Normally, the
+       * client will ensure that it does not host more than this count of sessions
+       * per server, unless there are other limits encountered (e.g. the connected
+       * servers is already at max_servers).
+       * 
+ * + * int32 per_server_session_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearPerServerSessionCount() { + bitField0_ = (bitField0_ & ~0x00000004); + perServerSessionCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.Builder, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallbackOrBuilder> + directAccessWithFallbackBuilder_; + + /** + * + * + *
+       * DirectAccess with a fallback to CloudPath.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback direct_access_with_fallback = 4; + * + * + * @return Whether the directAccessWithFallback field is set. + */ + @java.lang.Override + public boolean hasDirectAccessWithFallback() { + return modeCase_ == 4; + } + + /** + * + * + *
+       * DirectAccess with a fallback to CloudPath.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback direct_access_with_fallback = 4; + * + * + * @return The directAccessWithFallback. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + getDirectAccessWithFallback() { + if (directAccessWithFallbackBuilder_ == null) { + if (modeCase_ == 4) { + return (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback) + mode_; + } + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.getDefaultInstance(); + } else { + if (modeCase_ == 4) { + return directAccessWithFallbackBuilder_.getMessage(); + } + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.getDefaultInstance(); + } + } + + /** + * + * + *
+       * DirectAccess with a fallback to CloudPath.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback direct_access_with_fallback = 4; + * + */ + public Builder setDirectAccessWithFallback( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + value) { + if (directAccessWithFallbackBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mode_ = value; + onChanged(); + } else { + directAccessWithFallbackBuilder_.setMessage(value); + } + modeCase_ = 4; + return this; + } + + /** + * + * + *
+       * DirectAccess with a fallback to CloudPath.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback direct_access_with_fallback = 4; + * + */ + public Builder setDirectAccessWithFallback( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.Builder + builderForValue) { + if (directAccessWithFallbackBuilder_ == null) { + mode_ = builderForValue.build(); + onChanged(); + } else { + directAccessWithFallbackBuilder_.setMessage(builderForValue.build()); + } + modeCase_ = 4; + return this; + } + + /** + * + * + *
+       * DirectAccess with a fallback to CloudPath.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback direct_access_with_fallback = 4; + * + */ + public Builder mergeDirectAccessWithFallback( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback + value) { + if (directAccessWithFallbackBuilder_ == null) { + if (modeCase_ == 4 + && mode_ + != com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.getDefaultInstance()) { + mode_ = + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.newBuilder( + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback) + mode_) + .mergeFrom(value) + .buildPartial(); + } else { + mode_ = value; + } + onChanged(); + } else { + if (modeCase_ == 4) { + directAccessWithFallbackBuilder_.mergeFrom(value); + } else { + directAccessWithFallbackBuilder_.setMessage(value); + } + } + modeCase_ = 4; + return this; + } + + /** + * + * + *
+       * DirectAccess with a fallback to CloudPath.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback direct_access_with_fallback = 4; + * + */ + public Builder clearDirectAccessWithFallback() { + if (directAccessWithFallbackBuilder_ == null) { + if (modeCase_ == 4) { + modeCase_ = 0; + mode_ = null; + onChanged(); + } + } else { + if (modeCase_ == 4) { + modeCase_ = 0; + mode_ = null; + } + directAccessWithFallbackBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * DirectAccess with a fallback to CloudPath.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback direct_access_with_fallback = 4; + * + */ + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.Builder + getDirectAccessWithFallbackBuilder() { + return internalGetDirectAccessWithFallbackFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * DirectAccess with a fallback to CloudPath.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback direct_access_with_fallback = 4; + * + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallbackOrBuilder + getDirectAccessWithFallbackOrBuilder() { + if ((modeCase_ == 4) && (directAccessWithFallbackBuilder_ != null)) { + return directAccessWithFallbackBuilder_.getMessageOrBuilder(); + } else { + if (modeCase_ == 4) { + return (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback) + mode_; + } + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.getDefaultInstance(); + } + } + + /** + * + * + *
+       * DirectAccess with a fallback to CloudPath.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback direct_access_with_fallback = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.Builder, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallbackOrBuilder> + internalGetDirectAccessWithFallbackFieldBuilder() { + if (directAccessWithFallbackBuilder_ == null) { + if (!(modeCase_ == 4)) { + mode_ = + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.getDefaultInstance(); + } + directAccessWithFallbackBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback.Builder, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallbackOrBuilder>( + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessWithFallback) + mode_, + getParentForChildren(), + isClean()); + mode_ = null; + } + modeCase_ = 4; + onChanged(); + return directAccessWithFallbackBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.Builder, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnlyOrBuilder> + directAccessOnlyBuilder_; + + /** + * + * + *
+       * DirectAccess only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly direct_access_only = 5; + * + * + * @return Whether the directAccessOnly field is set. + */ + @java.lang.Override + public boolean hasDirectAccessOnly() { + return modeCase_ == 5; + } + + /** + * + * + *
+       * DirectAccess only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly direct_access_only = 5; + * + * + * @return The directAccessOnly. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + getDirectAccessOnly() { + if (directAccessOnlyBuilder_ == null) { + if (modeCase_ == 5) { + return (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly) + mode_; + } + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.getDefaultInstance(); + } else { + if (modeCase_ == 5) { + return directAccessOnlyBuilder_.getMessage(); + } + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.getDefaultInstance(); + } + } + + /** + * + * + *
+       * DirectAccess only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly direct_access_only = 5; + * + */ + public Builder setDirectAccessOnly( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + value) { + if (directAccessOnlyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mode_ = value; + onChanged(); + } else { + directAccessOnlyBuilder_.setMessage(value); + } + modeCase_ = 5; + return this; + } + + /** + * + * + *
+       * DirectAccess only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly direct_access_only = 5; + * + */ + public Builder setDirectAccessOnly( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.Builder + builderForValue) { + if (directAccessOnlyBuilder_ == null) { + mode_ = builderForValue.build(); + onChanged(); + } else { + directAccessOnlyBuilder_.setMessage(builderForValue.build()); + } + modeCase_ = 5; + return this; + } + + /** + * + * + *
+       * DirectAccess only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly direct_access_only = 5; + * + */ + public Builder mergeDirectAccessOnly( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly + value) { + if (directAccessOnlyBuilder_ == null) { + if (modeCase_ == 5 + && mode_ + != com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.getDefaultInstance()) { + mode_ = + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.newBuilder( + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly) + mode_) + .mergeFrom(value) + .buildPartial(); + } else { + mode_ = value; + } + onChanged(); + } else { + if (modeCase_ == 5) { + directAccessOnlyBuilder_.mergeFrom(value); + } else { + directAccessOnlyBuilder_.setMessage(value); + } + } + modeCase_ = 5; + return this; + } + + /** + * + * + *
+       * DirectAccess only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly direct_access_only = 5; + * + */ + public Builder clearDirectAccessOnly() { + if (directAccessOnlyBuilder_ == null) { + if (modeCase_ == 5) { + modeCase_ = 0; + mode_ = null; + onChanged(); + } + } else { + if (modeCase_ == 5) { + modeCase_ = 0; + mode_ = null; + } + directAccessOnlyBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * DirectAccess only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly direct_access_only = 5; + * + */ + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.Builder + getDirectAccessOnlyBuilder() { + return internalGetDirectAccessOnlyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * DirectAccess only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly direct_access_only = 5; + * + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnlyOrBuilder + getDirectAccessOnlyOrBuilder() { + if ((modeCase_ == 5) && (directAccessOnlyBuilder_ != null)) { + return directAccessOnlyBuilder_.getMessageOrBuilder(); + } else { + if (modeCase_ == 5) { + return (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly) + mode_; + } + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.getDefaultInstance(); + } + } + + /** + * + * + *
+       * DirectAccess only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessOnly direct_access_only = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.Builder, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnlyOrBuilder> + internalGetDirectAccessOnlyFieldBuilder() { + if (directAccessOnlyBuilder_ == null) { + if (!(modeCase_ == 5)) { + mode_ = + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.getDefaultInstance(); + } + directAccessOnlyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly.Builder, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnlyOrBuilder>( + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .DirectAccessOnly) + mode_, + getParentForChildren(), + isClean()); + mode_ = null; + } + modeCase_ = 5; + onChanged(); + return directAccessOnlyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.Builder, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnlyOrBuilder> + cloudPathOnlyBuilder_; + + /** + * + * + *
+       * CloudPath only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly cloud_path_only = 6; + * + * + * @return Whether the cloudPathOnly field is set. + */ + @java.lang.Override + public boolean hasCloudPathOnly() { + return modeCase_ == 6; + } + + /** + * + * + *
+       * CloudPath only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly cloud_path_only = 6; + * + * + * @return The cloudPathOnly. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly + getCloudPathOnly() { + if (cloudPathOnlyBuilder_ == null) { + if (modeCase_ == 6) { + return (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly) + mode_; + } + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.getDefaultInstance(); + } else { + if (modeCase_ == 6) { + return cloudPathOnlyBuilder_.getMessage(); + } + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.getDefaultInstance(); + } + } + + /** + * + * + *
+       * CloudPath only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly cloud_path_only = 6; + * + */ + public Builder setCloudPathOnly( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly + value) { + if (cloudPathOnlyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mode_ = value; + onChanged(); + } else { + cloudPathOnlyBuilder_.setMessage(value); + } + modeCase_ = 6; + return this; + } + + /** + * + * + *
+       * CloudPath only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly cloud_path_only = 6; + * + */ + public Builder setCloudPathOnly( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly + .Builder + builderForValue) { + if (cloudPathOnlyBuilder_ == null) { + mode_ = builderForValue.build(); + onChanged(); + } else { + cloudPathOnlyBuilder_.setMessage(builderForValue.build()); + } + modeCase_ = 6; + return this; + } + + /** + * + * + *
+       * CloudPath only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly cloud_path_only = 6; + * + */ + public Builder mergeCloudPathOnly( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly + value) { + if (cloudPathOnlyBuilder_ == null) { + if (modeCase_ == 6 + && mode_ + != com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.getDefaultInstance()) { + mode_ = + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.newBuilder( + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly) + mode_) + .mergeFrom(value) + .buildPartial(); + } else { + mode_ = value; + } + onChanged(); + } else { + if (modeCase_ == 6) { + cloudPathOnlyBuilder_.mergeFrom(value); + } else { + cloudPathOnlyBuilder_.setMessage(value); + } + } + modeCase_ = 6; + return this; + } + + /** + * + * + *
+       * CloudPath only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly cloud_path_only = 6; + * + */ + public Builder clearCloudPathOnly() { + if (cloudPathOnlyBuilder_ == null) { + if (modeCase_ == 6) { + modeCase_ = 0; + mode_ = null; + onChanged(); + } + } else { + if (modeCase_ == 6) { + modeCase_ = 0; + mode_ = null; + } + cloudPathOnlyBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * CloudPath only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly cloud_path_only = 6; + * + */ + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.Builder + getCloudPathOnlyBuilder() { + return internalGetCloudPathOnlyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * CloudPath only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly cloud_path_only = 6; + * + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnlyOrBuilder + getCloudPathOnlyOrBuilder() { + if ((modeCase_ == 6) && (cloudPathOnlyBuilder_ != null)) { + return cloudPathOnlyBuilder_.getMessageOrBuilder(); + } else { + if (modeCase_ == 6) { + return (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly) + mode_; + } + return com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.getDefaultInstance(); + } + } + + /** + * + * + *
+       * CloudPath only.
+       * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnly cloud_path_only = 6; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.Builder, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnlyOrBuilder> + internalGetCloudPathOnlyFieldBuilder() { + if (cloudPathOnlyBuilder_ == null) { + if (!(modeCase_ == 6)) { + mode_ = + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.getDefaultInstance(); + } + cloudPathOnlyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly.Builder, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnlyOrBuilder>( + (com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .CloudPathOnly) + mode_, + getParentForChildren(), + isClean()); + mode_ = null; + } + modeCase_ = 6; + onChanged(); + return cloudPathOnlyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration) + private static final com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration(); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelPoolConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SessionPoolConfigurationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Fraction of idle sessions to keep in order to manage an increase in
+     * requests-in-flight. For example, a headroom of 0.5 will keep enough
+     * sessions to deal with a 50% increase in QPS.
+     * 
+ * + * float headroom = 1; + * + * @return The headroom. + */ + float getHeadroom(); + + /** + * + * + *
+     * The minimum number of sessions for a given scope.
+     * 
+ * + * int32 min_session_count = 2; + * + * @return The minSessionCount. + */ + int getMinSessionCount(); + + /** + * + * + *
+     * The maximum number of sessions for a given scope.
+     * 
+ * + * int32 max_session_count = 3; + * + * @return The maxSessionCount. + */ + int getMaxSessionCount(); + + /** + * + * + *
+     * Number of vRPCs that can be queued per starting session.
+     * 
+ * + * int32 new_session_queue_length = 4; + * + * @return The newSessionQueueLength. + */ + int getNewSessionQueueLength(); + + /** + * + * + *
+     * How many concurrent session establishments are allowed. The client will
+     * hold onto a count against this budget whenever it is establishing a new
+     * session, and release that count once the session is successfully
+     * established or failed to establish.
+     * 
+ * + * int32 new_session_creation_budget = 5; + * + * @return The newSessionCreationBudget. + */ + int getNewSessionCreationBudget(); + + /** + * + * + *
+     * How long to penalize the creation budget for a failed session creation
+     * attempt.
+     * 
+ * + * .google.protobuf.Duration new_session_creation_penalty = 6; + * + * @return Whether the newSessionCreationPenalty field is set. + */ + boolean hasNewSessionCreationPenalty(); + + /** + * + * + *
+     * How long to penalize the creation budget for a failed session creation
+     * attempt.
+     * 
+ * + * .google.protobuf.Duration new_session_creation_penalty = 6; + * + * @return The newSessionCreationPenalty. + */ + com.google.protobuf.Duration getNewSessionCreationPenalty(); + + /** + * + * + *
+     * How long to penalize the creation budget for a failed session creation
+     * attempt.
+     * 
+ * + * .google.protobuf.Duration new_session_creation_penalty = 6; + */ + com.google.protobuf.DurationOrBuilder getNewSessionCreationPenaltyOrBuilder(); + + /** + * + * + *
+     * A threshold for cancelling all pending vRPCs based on how many
+     * consecutive session establishment errors have been observed. The client
+     * will eagerly cancel queued vRPCs after this threshold is met to avoid
+     * them waiting their entire deadlines before terminating (while waiting for
+     * any session to establish to actually send the vRPC).
+     * 
+ * + * int32 consecutive_session_failure_threshold = 8; + * + * @return The consecutiveSessionFailureThreshold. + */ + int getConsecutiveSessionFailureThreshold(); + + /** + * + * + *
+     * How to balance vRPC load over connections to AFEs.
+     * Set only if session_load > 0.
+     * 
+ * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 9; + * + * @return Whether the loadBalancingOptions field is set. + */ + boolean hasLoadBalancingOptions(); + + /** + * + * + *
+     * How to balance vRPC load over connections to AFEs.
+     * Set only if session_load > 0.
+     * 
+ * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 9; + * + * @return The loadBalancingOptions. + */ + com.google.bigtable.v2.LoadBalancingOptions getLoadBalancingOptions(); + + /** + * + * + *
+     * How to balance vRPC load over connections to AFEs.
+     * Set only if session_load > 0.
+     * 
+ * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 9; + */ + com.google.bigtable.v2.LoadBalancingOptionsOrBuilder getLoadBalancingOptionsOrBuilder(); + } + + /** + * + * + *
+   * Configuration for the session pools. Session pools are tied to a scope
+   * like a table, an app profile, and a permission.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration} + */ + public static final class SessionPoolConfiguration extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration) + SessionPoolConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionPoolConfiguration"); + } + + // Use SessionPoolConfiguration.newBuilder() to construct. + private SessionPoolConfiguration(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionPoolConfiguration() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_SessionPoolConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_SessionPoolConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration.class, + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration.Builder + .class); + } + + private int bitField0_; + public static final int HEADROOM_FIELD_NUMBER = 1; + private float headroom_ = 0F; + + /** + * + * + *
+     * Fraction of idle sessions to keep in order to manage an increase in
+     * requests-in-flight. For example, a headroom of 0.5 will keep enough
+     * sessions to deal with a 50% increase in QPS.
+     * 
+ * + * float headroom = 1; + * + * @return The headroom. + */ + @java.lang.Override + public float getHeadroom() { + return headroom_; + } + + public static final int MIN_SESSION_COUNT_FIELD_NUMBER = 2; + private int minSessionCount_ = 0; + + /** + * + * + *
+     * The minimum number of sessions for a given scope.
+     * 
+ * + * int32 min_session_count = 2; + * + * @return The minSessionCount. + */ + @java.lang.Override + public int getMinSessionCount() { + return minSessionCount_; + } + + public static final int MAX_SESSION_COUNT_FIELD_NUMBER = 3; + private int maxSessionCount_ = 0; + + /** + * + * + *
+     * The maximum number of sessions for a given scope.
+     * 
+ * + * int32 max_session_count = 3; + * + * @return The maxSessionCount. + */ + @java.lang.Override + public int getMaxSessionCount() { + return maxSessionCount_; + } + + public static final int NEW_SESSION_QUEUE_LENGTH_FIELD_NUMBER = 4; + private int newSessionQueueLength_ = 0; + + /** + * + * + *
+     * Number of vRPCs that can be queued per starting session.
+     * 
+ * + * int32 new_session_queue_length = 4; + * + * @return The newSessionQueueLength. + */ + @java.lang.Override + public int getNewSessionQueueLength() { + return newSessionQueueLength_; + } + + public static final int NEW_SESSION_CREATION_BUDGET_FIELD_NUMBER = 5; + private int newSessionCreationBudget_ = 0; + + /** + * + * + *
+     * How many concurrent session establishments are allowed. The client will
+     * hold onto a count against this budget whenever it is establishing a new
+     * session, and release that count once the session is successfully
+     * established or failed to establish.
+     * 
+ * + * int32 new_session_creation_budget = 5; + * + * @return The newSessionCreationBudget. + */ + @java.lang.Override + public int getNewSessionCreationBudget() { + return newSessionCreationBudget_; + } + + public static final int NEW_SESSION_CREATION_PENALTY_FIELD_NUMBER = 6; + private com.google.protobuf.Duration newSessionCreationPenalty_; + + /** + * + * + *
+     * How long to penalize the creation budget for a failed session creation
+     * attempt.
+     * 
+ * + * .google.protobuf.Duration new_session_creation_penalty = 6; + * + * @return Whether the newSessionCreationPenalty field is set. + */ + @java.lang.Override + public boolean hasNewSessionCreationPenalty() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * How long to penalize the creation budget for a failed session creation
+     * attempt.
+     * 
+ * + * .google.protobuf.Duration new_session_creation_penalty = 6; + * + * @return The newSessionCreationPenalty. + */ + @java.lang.Override + public com.google.protobuf.Duration getNewSessionCreationPenalty() { + return newSessionCreationPenalty_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : newSessionCreationPenalty_; + } + + /** + * + * + *
+     * How long to penalize the creation budget for a failed session creation
+     * attempt.
+     * 
+ * + * .google.protobuf.Duration new_session_creation_penalty = 6; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getNewSessionCreationPenaltyOrBuilder() { + return newSessionCreationPenalty_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : newSessionCreationPenalty_; + } + + public static final int CONSECUTIVE_SESSION_FAILURE_THRESHOLD_FIELD_NUMBER = 8; + private int consecutiveSessionFailureThreshold_ = 0; + + /** + * + * + *
+     * A threshold for cancelling all pending vRPCs based on how many
+     * consecutive session establishment errors have been observed. The client
+     * will eagerly cancel queued vRPCs after this threshold is met to avoid
+     * them waiting their entire deadlines before terminating (while waiting for
+     * any session to establish to actually send the vRPC).
+     * 
+ * + * int32 consecutive_session_failure_threshold = 8; + * + * @return The consecutiveSessionFailureThreshold. + */ + @java.lang.Override + public int getConsecutiveSessionFailureThreshold() { + return consecutiveSessionFailureThreshold_; + } + + public static final int LOAD_BALANCING_OPTIONS_FIELD_NUMBER = 9; + private com.google.bigtable.v2.LoadBalancingOptions loadBalancingOptions_; + + /** + * + * + *
+     * How to balance vRPC load over connections to AFEs.
+     * Set only if session_load > 0.
+     * 
+ * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 9; + * + * @return Whether the loadBalancingOptions field is set. + */ + @java.lang.Override + public boolean hasLoadBalancingOptions() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * How to balance vRPC load over connections to AFEs.
+     * Set only if session_load > 0.
+     * 
+ * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 9; + * + * @return The loadBalancingOptions. + */ + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptions getLoadBalancingOptions() { + return loadBalancingOptions_ == null + ? com.google.bigtable.v2.LoadBalancingOptions.getDefaultInstance() + : loadBalancingOptions_; + } + + /** + * + * + *
+     * How to balance vRPC load over connections to AFEs.
+     * Set only if session_load > 0.
+     * 
+ * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 9; + */ + @java.lang.Override + public com.google.bigtable.v2.LoadBalancingOptionsOrBuilder getLoadBalancingOptionsOrBuilder() { + return loadBalancingOptions_ == null + ? com.google.bigtable.v2.LoadBalancingOptions.getDefaultInstance() + : loadBalancingOptions_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (java.lang.Float.floatToRawIntBits(headroom_) != 0) { + output.writeFloat(1, headroom_); + } + if (minSessionCount_ != 0) { + output.writeInt32(2, minSessionCount_); + } + if (maxSessionCount_ != 0) { + output.writeInt32(3, maxSessionCount_); + } + if (newSessionQueueLength_ != 0) { + output.writeInt32(4, newSessionQueueLength_); + } + if (newSessionCreationBudget_ != 0) { + output.writeInt32(5, newSessionCreationBudget_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getNewSessionCreationPenalty()); + } + if (consecutiveSessionFailureThreshold_ != 0) { + output.writeInt32(8, consecutiveSessionFailureThreshold_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getLoadBalancingOptions()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Float.floatToRawIntBits(headroom_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, headroom_); + } + if (minSessionCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minSessionCount_); + } + if (maxSessionCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxSessionCount_); + } + if (newSessionQueueLength_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, newSessionQueueLength_); + } + if (newSessionCreationBudget_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(5, newSessionCreationBudget_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getNewSessionCreationPenalty()); + } + if (consecutiveSessionFailureThreshold_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 8, consecutiveSessionFailureThreshold_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, getLoadBalancingOptions()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration)) { + return super.equals(obj); + } + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration other = + (com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration) obj; + + if (java.lang.Float.floatToIntBits(getHeadroom()) + != java.lang.Float.floatToIntBits(other.getHeadroom())) return false; + if (getMinSessionCount() != other.getMinSessionCount()) return false; + if (getMaxSessionCount() != other.getMaxSessionCount()) return false; + if (getNewSessionQueueLength() != other.getNewSessionQueueLength()) return false; + if (getNewSessionCreationBudget() != other.getNewSessionCreationBudget()) return false; + if (hasNewSessionCreationPenalty() != other.hasNewSessionCreationPenalty()) return false; + if (hasNewSessionCreationPenalty()) { + if (!getNewSessionCreationPenalty().equals(other.getNewSessionCreationPenalty())) + return false; + } + if (getConsecutiveSessionFailureThreshold() != other.getConsecutiveSessionFailureThreshold()) + return false; + if (hasLoadBalancingOptions() != other.hasLoadBalancingOptions()) return false; + if (hasLoadBalancingOptions()) { + if (!getLoadBalancingOptions().equals(other.getLoadBalancingOptions())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HEADROOM_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getHeadroom()); + hash = (37 * hash) + MIN_SESSION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMinSessionCount(); + hash = (37 * hash) + MAX_SESSION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxSessionCount(); + hash = (37 * hash) + NEW_SESSION_QUEUE_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getNewSessionQueueLength(); + hash = (37 * hash) + NEW_SESSION_CREATION_BUDGET_FIELD_NUMBER; + hash = (53 * hash) + getNewSessionCreationBudget(); + if (hasNewSessionCreationPenalty()) { + hash = (37 * hash) + NEW_SESSION_CREATION_PENALTY_FIELD_NUMBER; + hash = (53 * hash) + getNewSessionCreationPenalty().hashCode(); + } + hash = (37 * hash) + CONSECUTIVE_SESSION_FAILURE_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + getConsecutiveSessionFailureThreshold(); + if (hasLoadBalancingOptions()) { + hash = (37 * hash) + LOAD_BALANCING_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getLoadBalancingOptions().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Configuration for the session pools. Session pools are tied to a scope
+     * like a table, an app profile, and a permission.
+     * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration) + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_SessionPoolConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_SessionPoolConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration.class, + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration.Builder + .class); + } + + // Construct using + // com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetNewSessionCreationPenaltyFieldBuilder(); + internalGetLoadBalancingOptionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + headroom_ = 0F; + minSessionCount_ = 0; + maxSessionCount_ = 0; + newSessionQueueLength_ = 0; + newSessionCreationBudget_ = 0; + newSessionCreationPenalty_ = null; + if (newSessionCreationPenaltyBuilder_ != null) { + newSessionCreationPenaltyBuilder_.dispose(); + newSessionCreationPenaltyBuilder_ = null; + } + consecutiveSessionFailureThreshold_ = 0; + loadBalancingOptions_ = null; + if (loadBalancingOptionsBuilder_ != null) { + loadBalancingOptionsBuilder_.dispose(); + loadBalancingOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_SessionPoolConfiguration_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + getDefaultInstanceForType() { + return com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration build() { + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + buildPartial() { + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration result = + new com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.headroom_ = headroom_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.minSessionCount_ = minSessionCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxSessionCount_ = maxSessionCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.newSessionQueueLength_ = newSessionQueueLength_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.newSessionCreationBudget_ = newSessionCreationBudget_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.newSessionCreationPenalty_ = + newSessionCreationPenaltyBuilder_ == null + ? newSessionCreationPenalty_ + : newSessionCreationPenaltyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.consecutiveSessionFailureThreshold_ = consecutiveSessionFailureThreshold_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.loadBalancingOptions_ = + loadBalancingOptionsBuilder_ == null + ? loadBalancingOptions_ + : loadBalancingOptionsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration) { + return mergeFrom( + (com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration other) { + if (other + == com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + .getDefaultInstance()) return this; + if (java.lang.Float.floatToRawIntBits(other.getHeadroom()) != 0) { + setHeadroom(other.getHeadroom()); + } + if (other.getMinSessionCount() != 0) { + setMinSessionCount(other.getMinSessionCount()); + } + if (other.getMaxSessionCount() != 0) { + setMaxSessionCount(other.getMaxSessionCount()); + } + if (other.getNewSessionQueueLength() != 0) { + setNewSessionQueueLength(other.getNewSessionQueueLength()); + } + if (other.getNewSessionCreationBudget() != 0) { + setNewSessionCreationBudget(other.getNewSessionCreationBudget()); + } + if (other.hasNewSessionCreationPenalty()) { + mergeNewSessionCreationPenalty(other.getNewSessionCreationPenalty()); + } + if (other.getConsecutiveSessionFailureThreshold() != 0) { + setConsecutiveSessionFailureThreshold(other.getConsecutiveSessionFailureThreshold()); + } + if (other.hasLoadBalancingOptions()) { + mergeLoadBalancingOptions(other.getLoadBalancingOptions()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + headroom_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 16: + { + minSessionCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + maxSessionCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + newSessionQueueLength_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + newSessionCreationBudget_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetNewSessionCreationPenaltyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 64: + { + consecutiveSessionFailureThreshold_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 74: + { + input.readMessage( + internalGetLoadBalancingOptionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private float headroom_; + + /** + * + * + *
+       * Fraction of idle sessions to keep in order to manage an increase in
+       * requests-in-flight. For example, a headroom of 0.5 will keep enough
+       * sessions to deal with a 50% increase in QPS.
+       * 
+ * + * float headroom = 1; + * + * @return The headroom. + */ + @java.lang.Override + public float getHeadroom() { + return headroom_; + } + + /** + * + * + *
+       * Fraction of idle sessions to keep in order to manage an increase in
+       * requests-in-flight. For example, a headroom of 0.5 will keep enough
+       * sessions to deal with a 50% increase in QPS.
+       * 
+ * + * float headroom = 1; + * + * @param value The headroom to set. + * @return This builder for chaining. + */ + public Builder setHeadroom(float value) { + + headroom_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Fraction of idle sessions to keep in order to manage an increase in
+       * requests-in-flight. For example, a headroom of 0.5 will keep enough
+       * sessions to deal with a 50% increase in QPS.
+       * 
+ * + * float headroom = 1; + * + * @return This builder for chaining. + */ + public Builder clearHeadroom() { + bitField0_ = (bitField0_ & ~0x00000001); + headroom_ = 0F; + onChanged(); + return this; + } + + private int minSessionCount_; + + /** + * + * + *
+       * The minimum number of sessions for a given scope.
+       * 
+ * + * int32 min_session_count = 2; + * + * @return The minSessionCount. + */ + @java.lang.Override + public int getMinSessionCount() { + return minSessionCount_; + } + + /** + * + * + *
+       * The minimum number of sessions for a given scope.
+       * 
+ * + * int32 min_session_count = 2; + * + * @param value The minSessionCount to set. + * @return This builder for chaining. + */ + public Builder setMinSessionCount(int value) { + + minSessionCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The minimum number of sessions for a given scope.
+       * 
+ * + * int32 min_session_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearMinSessionCount() { + bitField0_ = (bitField0_ & ~0x00000002); + minSessionCount_ = 0; + onChanged(); + return this; + } + + private int maxSessionCount_; + + /** + * + * + *
+       * The maximum number of sessions for a given scope.
+       * 
+ * + * int32 max_session_count = 3; + * + * @return The maxSessionCount. + */ + @java.lang.Override + public int getMaxSessionCount() { + return maxSessionCount_; + } + + /** + * + * + *
+       * The maximum number of sessions for a given scope.
+       * 
+ * + * int32 max_session_count = 3; + * + * @param value The maxSessionCount to set. + * @return This builder for chaining. + */ + public Builder setMaxSessionCount(int value) { + + maxSessionCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The maximum number of sessions for a given scope.
+       * 
+ * + * int32 max_session_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearMaxSessionCount() { + bitField0_ = (bitField0_ & ~0x00000004); + maxSessionCount_ = 0; + onChanged(); + return this; + } + + private int newSessionQueueLength_; + + /** + * + * + *
+       * Number of vRPCs that can be queued per starting session.
+       * 
+ * + * int32 new_session_queue_length = 4; + * + * @return The newSessionQueueLength. + */ + @java.lang.Override + public int getNewSessionQueueLength() { + return newSessionQueueLength_; + } + + /** + * + * + *
+       * Number of vRPCs that can be queued per starting session.
+       * 
+ * + * int32 new_session_queue_length = 4; + * + * @param value The newSessionQueueLength to set. + * @return This builder for chaining. + */ + public Builder setNewSessionQueueLength(int value) { + + newSessionQueueLength_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Number of vRPCs that can be queued per starting session.
+       * 
+ * + * int32 new_session_queue_length = 4; + * + * @return This builder for chaining. + */ + public Builder clearNewSessionQueueLength() { + bitField0_ = (bitField0_ & ~0x00000008); + newSessionQueueLength_ = 0; + onChanged(); + return this; + } + + private int newSessionCreationBudget_; + + /** + * + * + *
+       * How many concurrent session establishments are allowed. The client will
+       * hold onto a count against this budget whenever it is establishing a new
+       * session, and release that count once the session is successfully
+       * established or failed to establish.
+       * 
+ * + * int32 new_session_creation_budget = 5; + * + * @return The newSessionCreationBudget. + */ + @java.lang.Override + public int getNewSessionCreationBudget() { + return newSessionCreationBudget_; + } + + /** + * + * + *
+       * How many concurrent session establishments are allowed. The client will
+       * hold onto a count against this budget whenever it is establishing a new
+       * session, and release that count once the session is successfully
+       * established or failed to establish.
+       * 
+ * + * int32 new_session_creation_budget = 5; + * + * @param value The newSessionCreationBudget to set. + * @return This builder for chaining. + */ + public Builder setNewSessionCreationBudget(int value) { + + newSessionCreationBudget_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * How many concurrent session establishments are allowed. The client will
+       * hold onto a count against this budget whenever it is establishing a new
+       * session, and release that count once the session is successfully
+       * established or failed to establish.
+       * 
+ * + * int32 new_session_creation_budget = 5; + * + * @return This builder for chaining. + */ + public Builder clearNewSessionCreationBudget() { + bitField0_ = (bitField0_ & ~0x00000010); + newSessionCreationBudget_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration newSessionCreationPenalty_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + newSessionCreationPenaltyBuilder_; + + /** + * + * + *
+       * How long to penalize the creation budget for a failed session creation
+       * attempt.
+       * 
+ * + * .google.protobuf.Duration new_session_creation_penalty = 6; + * + * @return Whether the newSessionCreationPenalty field is set. + */ + public boolean hasNewSessionCreationPenalty() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+       * How long to penalize the creation budget for a failed session creation
+       * attempt.
+       * 
+ * + * .google.protobuf.Duration new_session_creation_penalty = 6; + * + * @return The newSessionCreationPenalty. + */ + public com.google.protobuf.Duration getNewSessionCreationPenalty() { + if (newSessionCreationPenaltyBuilder_ == null) { + return newSessionCreationPenalty_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : newSessionCreationPenalty_; + } else { + return newSessionCreationPenaltyBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * How long to penalize the creation budget for a failed session creation
+       * attempt.
+       * 
+ * + * .google.protobuf.Duration new_session_creation_penalty = 6; + */ + public Builder setNewSessionCreationPenalty(com.google.protobuf.Duration value) { + if (newSessionCreationPenaltyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + newSessionCreationPenalty_ = value; + } else { + newSessionCreationPenaltyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * How long to penalize the creation budget for a failed session creation
+       * attempt.
+       * 
+ * + * .google.protobuf.Duration new_session_creation_penalty = 6; + */ + public Builder setNewSessionCreationPenalty( + com.google.protobuf.Duration.Builder builderForValue) { + if (newSessionCreationPenaltyBuilder_ == null) { + newSessionCreationPenalty_ = builderForValue.build(); + } else { + newSessionCreationPenaltyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * How long to penalize the creation budget for a failed session creation
+       * attempt.
+       * 
+ * + * .google.protobuf.Duration new_session_creation_penalty = 6; + */ + public Builder mergeNewSessionCreationPenalty(com.google.protobuf.Duration value) { + if (newSessionCreationPenaltyBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && newSessionCreationPenalty_ != null + && newSessionCreationPenalty_ != com.google.protobuf.Duration.getDefaultInstance()) { + getNewSessionCreationPenaltyBuilder().mergeFrom(value); + } else { + newSessionCreationPenalty_ = value; + } + } else { + newSessionCreationPenaltyBuilder_.mergeFrom(value); + } + if (newSessionCreationPenalty_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * How long to penalize the creation budget for a failed session creation
+       * attempt.
+       * 
+ * + * .google.protobuf.Duration new_session_creation_penalty = 6; + */ + public Builder clearNewSessionCreationPenalty() { + bitField0_ = (bitField0_ & ~0x00000020); + newSessionCreationPenalty_ = null; + if (newSessionCreationPenaltyBuilder_ != null) { + newSessionCreationPenaltyBuilder_.dispose(); + newSessionCreationPenaltyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * How long to penalize the creation budget for a failed session creation
+       * attempt.
+       * 
+ * + * .google.protobuf.Duration new_session_creation_penalty = 6; + */ + public com.google.protobuf.Duration.Builder getNewSessionCreationPenaltyBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetNewSessionCreationPenaltyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * How long to penalize the creation budget for a failed session creation
+       * attempt.
+       * 
+ * + * .google.protobuf.Duration new_session_creation_penalty = 6; + */ + public com.google.protobuf.DurationOrBuilder getNewSessionCreationPenaltyOrBuilder() { + if (newSessionCreationPenaltyBuilder_ != null) { + return newSessionCreationPenaltyBuilder_.getMessageOrBuilder(); + } else { + return newSessionCreationPenalty_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : newSessionCreationPenalty_; + } + } + + /** + * + * + *
+       * How long to penalize the creation budget for a failed session creation
+       * attempt.
+       * 
+ * + * .google.protobuf.Duration new_session_creation_penalty = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetNewSessionCreationPenaltyFieldBuilder() { + if (newSessionCreationPenaltyBuilder_ == null) { + newSessionCreationPenaltyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getNewSessionCreationPenalty(), getParentForChildren(), isClean()); + newSessionCreationPenalty_ = null; + } + return newSessionCreationPenaltyBuilder_; + } + + private int consecutiveSessionFailureThreshold_; + + /** + * + * + *
+       * A threshold for cancelling all pending vRPCs based on how many
+       * consecutive session establishment errors have been observed. The client
+       * will eagerly cancel queued vRPCs after this threshold is met to avoid
+       * them waiting their entire deadlines before terminating (while waiting for
+       * any session to establish to actually send the vRPC).
+       * 
+ * + * int32 consecutive_session_failure_threshold = 8; + * + * @return The consecutiveSessionFailureThreshold. + */ + @java.lang.Override + public int getConsecutiveSessionFailureThreshold() { + return consecutiveSessionFailureThreshold_; + } + + /** + * + * + *
+       * A threshold for cancelling all pending vRPCs based on how many
+       * consecutive session establishment errors have been observed. The client
+       * will eagerly cancel queued vRPCs after this threshold is met to avoid
+       * them waiting their entire deadlines before terminating (while waiting for
+       * any session to establish to actually send the vRPC).
+       * 
+ * + * int32 consecutive_session_failure_threshold = 8; + * + * @param value The consecutiveSessionFailureThreshold to set. + * @return This builder for chaining. + */ + public Builder setConsecutiveSessionFailureThreshold(int value) { + + consecutiveSessionFailureThreshold_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * A threshold for cancelling all pending vRPCs based on how many
+       * consecutive session establishment errors have been observed. The client
+       * will eagerly cancel queued vRPCs after this threshold is met to avoid
+       * them waiting their entire deadlines before terminating (while waiting for
+       * any session to establish to actually send the vRPC).
+       * 
+ * + * int32 consecutive_session_failure_threshold = 8; + * + * @return This builder for chaining. + */ + public Builder clearConsecutiveSessionFailureThreshold() { + bitField0_ = (bitField0_ & ~0x00000040); + consecutiveSessionFailureThreshold_ = 0; + onChanged(); + return this; + } + + private com.google.bigtable.v2.LoadBalancingOptions loadBalancingOptions_; + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.LoadBalancingOptions, + com.google.bigtable.v2.LoadBalancingOptions.Builder, + com.google.bigtable.v2.LoadBalancingOptionsOrBuilder> + loadBalancingOptionsBuilder_; + + /** + * + * + *
+       * How to balance vRPC load over connections to AFEs.
+       * Set only if session_load > 0.
+       * 
+ * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 9; + * + * @return Whether the loadBalancingOptions field is set. + */ + public boolean hasLoadBalancingOptions() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+       * How to balance vRPC load over connections to AFEs.
+       * Set only if session_load > 0.
+       * 
+ * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 9; + * + * @return The loadBalancingOptions. + */ + public com.google.bigtable.v2.LoadBalancingOptions getLoadBalancingOptions() { + if (loadBalancingOptionsBuilder_ == null) { + return loadBalancingOptions_ == null + ? com.google.bigtable.v2.LoadBalancingOptions.getDefaultInstance() + : loadBalancingOptions_; + } else { + return loadBalancingOptionsBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * How to balance vRPC load over connections to AFEs.
+       * Set only if session_load > 0.
+       * 
+ * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 9; + */ + public Builder setLoadBalancingOptions(com.google.bigtable.v2.LoadBalancingOptions value) { + if (loadBalancingOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loadBalancingOptions_ = value; + } else { + loadBalancingOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * How to balance vRPC load over connections to AFEs.
+       * Set only if session_load > 0.
+       * 
+ * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 9; + */ + public Builder setLoadBalancingOptions( + com.google.bigtable.v2.LoadBalancingOptions.Builder builderForValue) { + if (loadBalancingOptionsBuilder_ == null) { + loadBalancingOptions_ = builderForValue.build(); + } else { + loadBalancingOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * How to balance vRPC load over connections to AFEs.
+       * Set only if session_load > 0.
+       * 
+ * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 9; + */ + public Builder mergeLoadBalancingOptions(com.google.bigtable.v2.LoadBalancingOptions value) { + if (loadBalancingOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && loadBalancingOptions_ != null + && loadBalancingOptions_ + != com.google.bigtable.v2.LoadBalancingOptions.getDefaultInstance()) { + getLoadBalancingOptionsBuilder().mergeFrom(value); + } else { + loadBalancingOptions_ = value; + } + } else { + loadBalancingOptionsBuilder_.mergeFrom(value); + } + if (loadBalancingOptions_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * How to balance vRPC load over connections to AFEs.
+       * Set only if session_load > 0.
+       * 
+ * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 9; + */ + public Builder clearLoadBalancingOptions() { + bitField0_ = (bitField0_ & ~0x00000080); + loadBalancingOptions_ = null; + if (loadBalancingOptionsBuilder_ != null) { + loadBalancingOptionsBuilder_.dispose(); + loadBalancingOptionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * How to balance vRPC load over connections to AFEs.
+       * Set only if session_load > 0.
+       * 
+ * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 9; + */ + public com.google.bigtable.v2.LoadBalancingOptions.Builder getLoadBalancingOptionsBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetLoadBalancingOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * How to balance vRPC load over connections to AFEs.
+       * Set only if session_load > 0.
+       * 
+ * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 9; + */ + public com.google.bigtable.v2.LoadBalancingOptionsOrBuilder + getLoadBalancingOptionsOrBuilder() { + if (loadBalancingOptionsBuilder_ != null) { + return loadBalancingOptionsBuilder_.getMessageOrBuilder(); + } else { + return loadBalancingOptions_ == null + ? com.google.bigtable.v2.LoadBalancingOptions.getDefaultInstance() + : loadBalancingOptions_; + } + } + + /** + * + * + *
+       * How to balance vRPC load over connections to AFEs.
+       * Set only if session_load > 0.
+       * 
+ * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 9; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.LoadBalancingOptions, + com.google.bigtable.v2.LoadBalancingOptions.Builder, + com.google.bigtable.v2.LoadBalancingOptionsOrBuilder> + internalGetLoadBalancingOptionsFieldBuilder() { + if (loadBalancingOptionsBuilder_ == null) { + loadBalancingOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.LoadBalancingOptions, + com.google.bigtable.v2.LoadBalancingOptions.Builder, + com.google.bigtable.v2.LoadBalancingOptionsOrBuilder>( + getLoadBalancingOptions(), getParentForChildren(), isClean()); + loadBalancingOptions_ = null; + } + return loadBalancingOptionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration) + private static final com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration(); + } + + public static com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionPoolConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int SESSION_LOAD_FIELD_NUMBER = 1; + private float sessionLoad_ = 0F; + + /** + * + * + *
+   * What share of requests should operate on a session, [0, 1]. The rest
+   * should operate on the old-style API.
+   * 
+ * + * float session_load = 1; + * + * @return The sessionLoad. + */ + @java.lang.Override + public float getSessionLoad() { + return sessionLoad_; + } + + public static final int LOAD_BALANCING_OPTIONS_FIELD_NUMBER = 2; + private com.google.bigtable.v2.LoadBalancingOptions loadBalancingOptions_; + + /** + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 2 [deprecated = true]; + * + * + * @deprecated google.bigtable.v2.SessionClientConfiguration.load_balancing_options is deprecated. + * See google/bigtable/v2/session.proto;l=220 + * @return Whether the loadBalancingOptions field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasLoadBalancingOptions() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 2 [deprecated = true]; + * + * + * @deprecated google.bigtable.v2.SessionClientConfiguration.load_balancing_options is deprecated. + * See google/bigtable/v2/session.proto;l=220 + * @return The loadBalancingOptions. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.bigtable.v2.LoadBalancingOptions getLoadBalancingOptions() { + return loadBalancingOptions_ == null + ? com.google.bigtable.v2.LoadBalancingOptions.getDefaultInstance() + : loadBalancingOptions_; + } + + /** + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 2 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.bigtable.v2.LoadBalancingOptionsOrBuilder getLoadBalancingOptionsOrBuilder() { + return loadBalancingOptions_ == null + ? com.google.bigtable.v2.LoadBalancingOptions.getDefaultInstance() + : loadBalancingOptions_; + } + + public static final int CHANNEL_CONFIGURATION_FIELD_NUMBER = 3; + private com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + channelConfiguration_; + + /** + * + * + *
+   * Configuration for the channel pool.
+   * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration channel_configuration = 3; + * + * + * @return Whether the channelConfiguration field is set. + */ + @java.lang.Override + public boolean hasChannelConfiguration() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Configuration for the channel pool.
+   * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration channel_configuration = 3; + * + * + * @return The channelConfiguration. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + getChannelConfiguration() { + return channelConfiguration_ == null + ? com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .getDefaultInstance() + : channelConfiguration_; + } + + /** + * + * + *
+   * Configuration for the channel pool.
+   * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration channel_configuration = 3; + * + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfigurationOrBuilder + getChannelConfigurationOrBuilder() { + return channelConfiguration_ == null + ? com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .getDefaultInstance() + : channelConfiguration_; + } + + public static final int SESSION_POOL_CONFIGURATION_FIELD_NUMBER = 4; + private com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + sessionPoolConfiguration_; + + /** + * + * + *
+   * Configuration for the session pools.
+   * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration session_pool_configuration = 4; + * + * + * @return Whether the sessionPoolConfiguration field is set. + */ + @java.lang.Override + public boolean hasSessionPoolConfiguration() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Configuration for the session pools.
+   * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration session_pool_configuration = 4; + * + * + * @return The sessionPoolConfiguration. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + getSessionPoolConfiguration() { + return sessionPoolConfiguration_ == null + ? com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + .getDefaultInstance() + : sessionPoolConfiguration_; + } + + /** + * + * + *
+   * Configuration for the session pools.
+   * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration session_pool_configuration = 4; + * + */ + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfigurationOrBuilder + getSessionPoolConfigurationOrBuilder() { + return sessionPoolConfiguration_ == null + ? com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + .getDefaultInstance() + : sessionPoolConfiguration_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (java.lang.Float.floatToRawIntBits(sessionLoad_) != 0) { + output.writeFloat(1, sessionLoad_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getLoadBalancingOptions()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getChannelConfiguration()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getSessionPoolConfiguration()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Float.floatToRawIntBits(sessionLoad_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, sessionLoad_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLoadBalancingOptions()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getChannelConfiguration()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getSessionPoolConfiguration()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.SessionClientConfiguration)) { + return super.equals(obj); + } + com.google.bigtable.v2.SessionClientConfiguration other = + (com.google.bigtable.v2.SessionClientConfiguration) obj; + + if (java.lang.Float.floatToIntBits(getSessionLoad()) + != java.lang.Float.floatToIntBits(other.getSessionLoad())) return false; + if (hasLoadBalancingOptions() != other.hasLoadBalancingOptions()) return false; + if (hasLoadBalancingOptions()) { + if (!getLoadBalancingOptions().equals(other.getLoadBalancingOptions())) return false; + } + if (hasChannelConfiguration() != other.hasChannelConfiguration()) return false; + if (hasChannelConfiguration()) { + if (!getChannelConfiguration().equals(other.getChannelConfiguration())) return false; + } + if (hasSessionPoolConfiguration() != other.hasSessionPoolConfiguration()) return false; + if (hasSessionPoolConfiguration()) { + if (!getSessionPoolConfiguration().equals(other.getSessionPoolConfiguration())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SESSION_LOAD_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getSessionLoad()); + if (hasLoadBalancingOptions()) { + hash = (37 * hash) + LOAD_BALANCING_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getLoadBalancingOptions().hashCode(); + } + if (hasChannelConfiguration()) { + hash = (37 * hash) + CHANNEL_CONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getChannelConfiguration().hashCode(); + } + if (hasSessionPoolConfiguration()) { + hash = (37 * hash) + SESSION_POOL_CONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getSessionPoolConfiguration().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.SessionClientConfiguration parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionClientConfiguration parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionClientConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionClientConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.SessionClientConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for the Session API. Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionClientConfiguration} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.SessionClientConfiguration) + com.google.bigtable.v2.SessionClientConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionClientConfiguration.class, + com.google.bigtable.v2.SessionClientConfiguration.Builder.class); + } + + // Construct using com.google.bigtable.v2.SessionClientConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetLoadBalancingOptionsFieldBuilder(); + internalGetChannelConfigurationFieldBuilder(); + internalGetSessionPoolConfigurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sessionLoad_ = 0F; + loadBalancingOptions_ = null; + if (loadBalancingOptionsBuilder_ != null) { + loadBalancingOptionsBuilder_.dispose(); + loadBalancingOptionsBuilder_ = null; + } + channelConfiguration_ = null; + if (channelConfigurationBuilder_ != null) { + channelConfigurationBuilder_.dispose(); + channelConfigurationBuilder_ = null; + } + sessionPoolConfiguration_ = null; + if (sessionPoolConfigurationBuilder_ != null) { + sessionPoolConfigurationBuilder_.dispose(); + sessionPoolConfigurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionClientConfiguration_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration getDefaultInstanceForType() { + return com.google.bigtable.v2.SessionClientConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration build() { + com.google.bigtable.v2.SessionClientConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration buildPartial() { + com.google.bigtable.v2.SessionClientConfiguration result = + new com.google.bigtable.v2.SessionClientConfiguration(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.SessionClientConfiguration result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sessionLoad_ = sessionLoad_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.loadBalancingOptions_ = + loadBalancingOptionsBuilder_ == null + ? loadBalancingOptions_ + : loadBalancingOptionsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.channelConfiguration_ = + channelConfigurationBuilder_ == null + ? channelConfiguration_ + : channelConfigurationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.sessionPoolConfiguration_ = + sessionPoolConfigurationBuilder_ == null + ? sessionPoolConfiguration_ + : sessionPoolConfigurationBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.SessionClientConfiguration) { + return mergeFrom((com.google.bigtable.v2.SessionClientConfiguration) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.SessionClientConfiguration other) { + if (other == com.google.bigtable.v2.SessionClientConfiguration.getDefaultInstance()) + return this; + if (java.lang.Float.floatToRawIntBits(other.getSessionLoad()) != 0) { + setSessionLoad(other.getSessionLoad()); + } + if (other.hasLoadBalancingOptions()) { + mergeLoadBalancingOptions(other.getLoadBalancingOptions()); + } + if (other.hasChannelConfiguration()) { + mergeChannelConfiguration(other.getChannelConfiguration()); + } + if (other.hasSessionPoolConfiguration()) { + mergeSessionPoolConfiguration(other.getSessionPoolConfiguration()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + sessionLoad_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 18: + { + input.readMessage( + internalGetLoadBalancingOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetChannelConfigurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetSessionPoolConfigurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private float sessionLoad_; + + /** + * + * + *
+     * What share of requests should operate on a session, [0, 1]. The rest
+     * should operate on the old-style API.
+     * 
+ * + * float session_load = 1; + * + * @return The sessionLoad. + */ + @java.lang.Override + public float getSessionLoad() { + return sessionLoad_; + } + + /** + * + * + *
+     * What share of requests should operate on a session, [0, 1]. The rest
+     * should operate on the old-style API.
+     * 
+ * + * float session_load = 1; + * + * @param value The sessionLoad to set. + * @return This builder for chaining. + */ + public Builder setSessionLoad(float value) { + + sessionLoad_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * What share of requests should operate on a session, [0, 1]. The rest
+     * should operate on the old-style API.
+     * 
+ * + * float session_load = 1; + * + * @return This builder for chaining. + */ + public Builder clearSessionLoad() { + bitField0_ = (bitField0_ & ~0x00000001); + sessionLoad_ = 0F; + onChanged(); + return this; + } + + private com.google.bigtable.v2.LoadBalancingOptions loadBalancingOptions_; + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.LoadBalancingOptions, + com.google.bigtable.v2.LoadBalancingOptions.Builder, + com.google.bigtable.v2.LoadBalancingOptionsOrBuilder> + loadBalancingOptionsBuilder_; + + /** + * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 2 [deprecated = true]; + * + * + * @deprecated google.bigtable.v2.SessionClientConfiguration.load_balancing_options is + * deprecated. See google/bigtable/v2/session.proto;l=220 + * @return Whether the loadBalancingOptions field is set. + */ + @java.lang.Deprecated + public boolean hasLoadBalancingOptions() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 2 [deprecated = true]; + * + * + * @deprecated google.bigtable.v2.SessionClientConfiguration.load_balancing_options is + * deprecated. See google/bigtable/v2/session.proto;l=220 + * @return The loadBalancingOptions. + */ + @java.lang.Deprecated + public com.google.bigtable.v2.LoadBalancingOptions getLoadBalancingOptions() { + if (loadBalancingOptionsBuilder_ == null) { + return loadBalancingOptions_ == null + ? com.google.bigtable.v2.LoadBalancingOptions.getDefaultInstance() + : loadBalancingOptions_; + } else { + return loadBalancingOptionsBuilder_.getMessage(); + } + } + + /** + * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setLoadBalancingOptions(com.google.bigtable.v2.LoadBalancingOptions value) { + if (loadBalancingOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loadBalancingOptions_ = value; + } else { + loadBalancingOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setLoadBalancingOptions( + com.google.bigtable.v2.LoadBalancingOptions.Builder builderForValue) { + if (loadBalancingOptionsBuilder_ == null) { + loadBalancingOptions_ = builderForValue.build(); + } else { + loadBalancingOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder mergeLoadBalancingOptions(com.google.bigtable.v2.LoadBalancingOptions value) { + if (loadBalancingOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && loadBalancingOptions_ != null + && loadBalancingOptions_ + != com.google.bigtable.v2.LoadBalancingOptions.getDefaultInstance()) { + getLoadBalancingOptionsBuilder().mergeFrom(value); + } else { + loadBalancingOptions_ = value; + } + } else { + loadBalancingOptionsBuilder_.mergeFrom(value); + } + if (loadBalancingOptions_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearLoadBalancingOptions() { + bitField0_ = (bitField0_ & ~0x00000002); + loadBalancingOptions_ = null; + if (loadBalancingOptionsBuilder_ != null) { + loadBalancingOptionsBuilder_.dispose(); + loadBalancingOptionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.bigtable.v2.LoadBalancingOptions.Builder getLoadBalancingOptionsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetLoadBalancingOptionsFieldBuilder().getBuilder(); + } + + /** + * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.bigtable.v2.LoadBalancingOptionsOrBuilder getLoadBalancingOptionsOrBuilder() { + if (loadBalancingOptionsBuilder_ != null) { + return loadBalancingOptionsBuilder_.getMessageOrBuilder(); + } else { + return loadBalancingOptions_ == null + ? com.google.bigtable.v2.LoadBalancingOptions.getDefaultInstance() + : loadBalancingOptions_; + } + } + + /** + * + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 2 [deprecated = true]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.LoadBalancingOptions, + com.google.bigtable.v2.LoadBalancingOptions.Builder, + com.google.bigtable.v2.LoadBalancingOptionsOrBuilder> + internalGetLoadBalancingOptionsFieldBuilder() { + if (loadBalancingOptionsBuilder_ == null) { + loadBalancingOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.LoadBalancingOptions, + com.google.bigtable.v2.LoadBalancingOptions.Builder, + com.google.bigtable.v2.LoadBalancingOptionsOrBuilder>( + getLoadBalancingOptions(), getParentForChildren(), isClean()); + loadBalancingOptions_ = null; + } + return loadBalancingOptionsBuilder_; + } + + private com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + channelConfiguration_; + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.Builder, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfigurationOrBuilder> + channelConfigurationBuilder_; + + /** + * + * + *
+     * Configuration for the channel pool.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration channel_configuration = 3; + * + * + * @return Whether the channelConfiguration field is set. + */ + public boolean hasChannelConfiguration() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Configuration for the channel pool.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration channel_configuration = 3; + * + * + * @return The channelConfiguration. + */ + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + getChannelConfiguration() { + if (channelConfigurationBuilder_ == null) { + return channelConfiguration_ == null + ? com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .getDefaultInstance() + : channelConfiguration_; + } else { + return channelConfigurationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Configuration for the channel pool.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration channel_configuration = 3; + * + */ + public Builder setChannelConfiguration( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration value) { + if (channelConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + channelConfiguration_ = value; + } else { + channelConfigurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for the channel pool.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration channel_configuration = 3; + * + */ + public Builder setChannelConfiguration( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.Builder + builderForValue) { + if (channelConfigurationBuilder_ == null) { + channelConfiguration_ = builderForValue.build(); + } else { + channelConfigurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for the channel pool.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration channel_configuration = 3; + * + */ + public Builder mergeChannelConfiguration( + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration value) { + if (channelConfigurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && channelConfiguration_ != null + && channelConfiguration_ + != com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .getDefaultInstance()) { + getChannelConfigurationBuilder().mergeFrom(value); + } else { + channelConfiguration_ = value; + } + } else { + channelConfigurationBuilder_.mergeFrom(value); + } + if (channelConfiguration_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Configuration for the channel pool.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration channel_configuration = 3; + * + */ + public Builder clearChannelConfiguration() { + bitField0_ = (bitField0_ & ~0x00000004); + channelConfiguration_ = null; + if (channelConfigurationBuilder_ != null) { + channelConfigurationBuilder_.dispose(); + channelConfigurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for the channel pool.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration channel_configuration = 3; + * + */ + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.Builder + getChannelConfigurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetChannelConfigurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Configuration for the channel pool.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration channel_configuration = 3; + * + */ + public com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfigurationOrBuilder + getChannelConfigurationOrBuilder() { + if (channelConfigurationBuilder_ != null) { + return channelConfigurationBuilder_.getMessageOrBuilder(); + } else { + return channelConfiguration_ == null + ? com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + .getDefaultInstance() + : channelConfiguration_; + } + } + + /** + * + * + *
+     * Configuration for the channel pool.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration channel_configuration = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.Builder, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfigurationOrBuilder> + internalGetChannelConfigurationFieldBuilder() { + if (channelConfigurationBuilder_ == null) { + channelConfigurationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration, + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.Builder, + com.google.bigtable.v2.SessionClientConfiguration + .ChannelPoolConfigurationOrBuilder>( + getChannelConfiguration(), getParentForChildren(), isClean()); + channelConfiguration_ = null; + } + return channelConfigurationBuilder_; + } + + private com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + sessionPoolConfiguration_; + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration, + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration.Builder, + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfigurationOrBuilder> + sessionPoolConfigurationBuilder_; + + /** + * + * + *
+     * Configuration for the session pools.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration session_pool_configuration = 4; + * + * + * @return Whether the sessionPoolConfiguration field is set. + */ + public boolean hasSessionPoolConfiguration() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Configuration for the session pools.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration session_pool_configuration = 4; + * + * + * @return The sessionPoolConfiguration. + */ + public com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + getSessionPoolConfiguration() { + if (sessionPoolConfigurationBuilder_ == null) { + return sessionPoolConfiguration_ == null + ? com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + .getDefaultInstance() + : sessionPoolConfiguration_; + } else { + return sessionPoolConfigurationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Configuration for the session pools.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration session_pool_configuration = 4; + * + */ + public Builder setSessionPoolConfiguration( + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration value) { + if (sessionPoolConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sessionPoolConfiguration_ = value; + } else { + sessionPoolConfigurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for the session pools.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration session_pool_configuration = 4; + * + */ + public Builder setSessionPoolConfiguration( + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration.Builder + builderForValue) { + if (sessionPoolConfigurationBuilder_ == null) { + sessionPoolConfiguration_ = builderForValue.build(); + } else { + sessionPoolConfigurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for the session pools.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration session_pool_configuration = 4; + * + */ + public Builder mergeSessionPoolConfiguration( + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration value) { + if (sessionPoolConfigurationBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && sessionPoolConfiguration_ != null + && sessionPoolConfiguration_ + != com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + .getDefaultInstance()) { + getSessionPoolConfigurationBuilder().mergeFrom(value); + } else { + sessionPoolConfiguration_ = value; + } + } else { + sessionPoolConfigurationBuilder_.mergeFrom(value); + } + if (sessionPoolConfiguration_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Configuration for the session pools.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration session_pool_configuration = 4; + * + */ + public Builder clearSessionPoolConfiguration() { + bitField0_ = (bitField0_ & ~0x00000008); + sessionPoolConfiguration_ = null; + if (sessionPoolConfigurationBuilder_ != null) { + sessionPoolConfigurationBuilder_.dispose(); + sessionPoolConfigurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for the session pools.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration session_pool_configuration = 4; + * + */ + public com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration.Builder + getSessionPoolConfigurationBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetSessionPoolConfigurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Configuration for the session pools.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration session_pool_configuration = 4; + * + */ + public com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfigurationOrBuilder + getSessionPoolConfigurationOrBuilder() { + if (sessionPoolConfigurationBuilder_ != null) { + return sessionPoolConfigurationBuilder_.getMessageOrBuilder(); + } else { + return sessionPoolConfiguration_ == null + ? com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + .getDefaultInstance() + : sessionPoolConfiguration_; + } + } + + /** + * + * + *
+     * Configuration for the session pools.
+     * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration session_pool_configuration = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration, + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration.Builder, + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfigurationOrBuilder> + internalGetSessionPoolConfigurationFieldBuilder() { + if (sessionPoolConfigurationBuilder_ == null) { + sessionPoolConfigurationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration, + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration.Builder, + com.google.bigtable.v2.SessionClientConfiguration + .SessionPoolConfigurationOrBuilder>( + getSessionPoolConfiguration(), getParentForChildren(), isClean()); + sessionPoolConfiguration_ = null; + } + return sessionPoolConfigurationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.SessionClientConfiguration) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.SessionClientConfiguration) + private static final com.google.bigtable.v2.SessionClientConfiguration DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.SessionClientConfiguration(); + } + + public static com.google.bigtable.v2.SessionClientConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionClientConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionClientConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionClientConfigurationOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionClientConfigurationOrBuilder.java new file mode 100644 index 0000000000..aca5739fdf --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionClientConfigurationOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface SessionClientConfigurationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.SessionClientConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * What share of requests should operate on a session, [0, 1]. The rest
+   * should operate on the old-style API.
+   * 
+ * + * float session_load = 1; + * + * @return The sessionLoad. + */ + float getSessionLoad(); + + /** + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 2 [deprecated = true]; + * + * + * @deprecated google.bigtable.v2.SessionClientConfiguration.load_balancing_options is deprecated. + * See google/bigtable/v2/session.proto;l=220 + * @return Whether the loadBalancingOptions field is set. + */ + @java.lang.Deprecated + boolean hasLoadBalancingOptions(); + + /** + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 2 [deprecated = true]; + * + * + * @deprecated google.bigtable.v2.SessionClientConfiguration.load_balancing_options is deprecated. + * See google/bigtable/v2/session.proto;l=220 + * @return The loadBalancingOptions. + */ + @java.lang.Deprecated + com.google.bigtable.v2.LoadBalancingOptions getLoadBalancingOptions(); + + /** + * .google.bigtable.v2.LoadBalancingOptions load_balancing_options = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.bigtable.v2.LoadBalancingOptionsOrBuilder getLoadBalancingOptionsOrBuilder(); + + /** + * + * + *
+   * Configuration for the channel pool.
+   * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration channel_configuration = 3; + * + * + * @return Whether the channelConfiguration field is set. + */ + boolean hasChannelConfiguration(); + + /** + * + * + *
+   * Configuration for the channel pool.
+   * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration channel_configuration = 3; + * + * + * @return The channelConfiguration. + */ + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration + getChannelConfiguration(); + + /** + * + * + *
+   * Configuration for the channel pool.
+   * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration channel_configuration = 3; + * + */ + com.google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfigurationOrBuilder + getChannelConfigurationOrBuilder(); + + /** + * + * + *
+   * Configuration for the session pools.
+   * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration session_pool_configuration = 4; + * + * + * @return Whether the sessionPoolConfiguration field is set. + */ + boolean hasSessionPoolConfiguration(); + + /** + * + * + *
+   * Configuration for the session pools.
+   * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration session_pool_configuration = 4; + * + * + * @return The sessionPoolConfiguration. + */ + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration + getSessionPoolConfiguration(); + + /** + * + * + *
+   * Configuration for the session pools.
+   * 
+ * + * + * .google.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration session_pool_configuration = 4; + * + */ + com.google.bigtable.v2.SessionClientConfiguration.SessionPoolConfigurationOrBuilder + getSessionPoolConfigurationOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionMutateRowRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionMutateRowRequest.java new file mode 100644 index 0000000000..5dffbcbfa9 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionMutateRowRequest.java @@ -0,0 +1,810 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionMutateRowRequest} + */ +@com.google.protobuf.Generated +public final class SessionMutateRowRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.SessionMutateRowRequest) + SessionMutateRowRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionMutateRowRequest"); + } + + // Use SessionMutateRowRequest.newBuilder() to construct. + private SessionMutateRowRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionMutateRowRequest() { + key_ = com.google.protobuf.ByteString.EMPTY; + mutations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionMutateRowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionMutateRowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionMutateRowRequest.class, + com.google.bigtable.v2.SessionMutateRowRequest.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes key = 1; + * + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + public static final int MUTATIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List mutations_; + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + @java.lang.Override + public java.util.List getMutationsList() { + return mutations_; + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + @java.lang.Override + public java.util.List + getMutationsOrBuilderList() { + return mutations_; + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + @java.lang.Override + public int getMutationsCount() { + return mutations_.size(); + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + @java.lang.Override + public com.google.bigtable.v2.Mutation getMutations(int index) { + return mutations_.get(index); + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + @java.lang.Override + public com.google.bigtable.v2.MutationOrBuilder getMutationsOrBuilder(int index) { + return mutations_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!key_.isEmpty()) { + output.writeBytes(1, key_); + } + for (int i = 0; i < mutations_.size(); i++) { + output.writeMessage(2, mutations_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!key_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, key_); + } + for (int i = 0; i < mutations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, mutations_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.SessionMutateRowRequest)) { + return super.equals(obj); + } + com.google.bigtable.v2.SessionMutateRowRequest other = + (com.google.bigtable.v2.SessionMutateRowRequest) obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getMutationsList().equals(other.getMutationsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + if (getMutationsCount() > 0) { + hash = (37 * hash) + MUTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getMutationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.SessionMutateRowRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionMutateRowRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionMutateRowRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionMutateRowRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionMutateRowRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionMutateRowRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionMutateRowRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionMutateRowRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionMutateRowRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionMutateRowRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionMutateRowRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionMutateRowRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.SessionMutateRowRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionMutateRowRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.SessionMutateRowRequest) + com.google.bigtable.v2.SessionMutateRowRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionMutateRowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionMutateRowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionMutateRowRequest.class, + com.google.bigtable.v2.SessionMutateRowRequest.Builder.class); + } + + // Construct using com.google.bigtable.v2.SessionMutateRowRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = com.google.protobuf.ByteString.EMPTY; + if (mutationsBuilder_ == null) { + mutations_ = java.util.Collections.emptyList(); + } else { + mutations_ = null; + mutationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionMutateRowRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowRequest getDefaultInstanceForType() { + return com.google.bigtable.v2.SessionMutateRowRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowRequest build() { + com.google.bigtable.v2.SessionMutateRowRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowRequest buildPartial() { + com.google.bigtable.v2.SessionMutateRowRequest result = + new com.google.bigtable.v2.SessionMutateRowRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.bigtable.v2.SessionMutateRowRequest result) { + if (mutationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + mutations_ = java.util.Collections.unmodifiableList(mutations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.mutations_ = mutations_; + } else { + result.mutations_ = mutationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.bigtable.v2.SessionMutateRowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.SessionMutateRowRequest) { + return mergeFrom((com.google.bigtable.v2.SessionMutateRowRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.SessionMutateRowRequest other) { + if (other == com.google.bigtable.v2.SessionMutateRowRequest.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + setKey(other.getKey()); + } + if (mutationsBuilder_ == null) { + if (!other.mutations_.isEmpty()) { + if (mutations_.isEmpty()) { + mutations_ = other.mutations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMutationsIsMutable(); + mutations_.addAll(other.mutations_); + } + onChanged(); + } + } else { + if (!other.mutations_.isEmpty()) { + if (mutationsBuilder_.isEmpty()) { + mutationsBuilder_.dispose(); + mutationsBuilder_ = null; + mutations_ = other.mutations_; + bitField0_ = (bitField0_ & ~0x00000002); + mutationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMutationsFieldBuilder() + : null; + } else { + mutationsBuilder_.addAllMessages(other.mutations_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + key_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.bigtable.v2.Mutation m = + input.readMessage(com.google.bigtable.v2.Mutation.parser(), extensionRegistry); + if (mutationsBuilder_ == null) { + ensureMutationsIsMutable(); + mutations_.add(m); + } else { + mutationsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes key = 1; + * + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + /** + * bytes key = 1; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * bytes key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000001); + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + private java.util.List mutations_ = + java.util.Collections.emptyList(); + + private void ensureMutationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + mutations_ = new java.util.ArrayList(mutations_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.bigtable.v2.Mutation, + com.google.bigtable.v2.Mutation.Builder, + com.google.bigtable.v2.MutationOrBuilder> + mutationsBuilder_; + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public java.util.List getMutationsList() { + if (mutationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mutations_); + } else { + return mutationsBuilder_.getMessageList(); + } + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public int getMutationsCount() { + if (mutationsBuilder_ == null) { + return mutations_.size(); + } else { + return mutationsBuilder_.getCount(); + } + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public com.google.bigtable.v2.Mutation getMutations(int index) { + if (mutationsBuilder_ == null) { + return mutations_.get(index); + } else { + return mutationsBuilder_.getMessage(index); + } + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public Builder setMutations(int index, com.google.bigtable.v2.Mutation value) { + if (mutationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMutationsIsMutable(); + mutations_.set(index, value); + onChanged(); + } else { + mutationsBuilder_.setMessage(index, value); + } + return this; + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public Builder setMutations( + int index, com.google.bigtable.v2.Mutation.Builder builderForValue) { + if (mutationsBuilder_ == null) { + ensureMutationsIsMutable(); + mutations_.set(index, builderForValue.build()); + onChanged(); + } else { + mutationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public Builder addMutations(com.google.bigtable.v2.Mutation value) { + if (mutationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMutationsIsMutable(); + mutations_.add(value); + onChanged(); + } else { + mutationsBuilder_.addMessage(value); + } + return this; + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public Builder addMutations(int index, com.google.bigtable.v2.Mutation value) { + if (mutationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMutationsIsMutable(); + mutations_.add(index, value); + onChanged(); + } else { + mutationsBuilder_.addMessage(index, value); + } + return this; + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public Builder addMutations(com.google.bigtable.v2.Mutation.Builder builderForValue) { + if (mutationsBuilder_ == null) { + ensureMutationsIsMutable(); + mutations_.add(builderForValue.build()); + onChanged(); + } else { + mutationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public Builder addMutations( + int index, com.google.bigtable.v2.Mutation.Builder builderForValue) { + if (mutationsBuilder_ == null) { + ensureMutationsIsMutable(); + mutations_.add(index, builderForValue.build()); + onChanged(); + } else { + mutationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public Builder addAllMutations( + java.lang.Iterable values) { + if (mutationsBuilder_ == null) { + ensureMutationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mutations_); + onChanged(); + } else { + mutationsBuilder_.addAllMessages(values); + } + return this; + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public Builder clearMutations() { + if (mutationsBuilder_ == null) { + mutations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + mutationsBuilder_.clear(); + } + return this; + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public Builder removeMutations(int index) { + if (mutationsBuilder_ == null) { + ensureMutationsIsMutable(); + mutations_.remove(index); + onChanged(); + } else { + mutationsBuilder_.remove(index); + } + return this; + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public com.google.bigtable.v2.Mutation.Builder getMutationsBuilder(int index) { + return internalGetMutationsFieldBuilder().getBuilder(index); + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public com.google.bigtable.v2.MutationOrBuilder getMutationsOrBuilder(int index) { + if (mutationsBuilder_ == null) { + return mutations_.get(index); + } else { + return mutationsBuilder_.getMessageOrBuilder(index); + } + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public java.util.List + getMutationsOrBuilderList() { + if (mutationsBuilder_ != null) { + return mutationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mutations_); + } + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public com.google.bigtable.v2.Mutation.Builder addMutationsBuilder() { + return internalGetMutationsFieldBuilder() + .addBuilder(com.google.bigtable.v2.Mutation.getDefaultInstance()); + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public com.google.bigtable.v2.Mutation.Builder addMutationsBuilder(int index) { + return internalGetMutationsFieldBuilder() + .addBuilder(index, com.google.bigtable.v2.Mutation.getDefaultInstance()); + } + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + public java.util.List getMutationsBuilderList() { + return internalGetMutationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.bigtable.v2.Mutation, + com.google.bigtable.v2.Mutation.Builder, + com.google.bigtable.v2.MutationOrBuilder> + internalGetMutationsFieldBuilder() { + if (mutationsBuilder_ == null) { + mutationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.bigtable.v2.Mutation, + com.google.bigtable.v2.Mutation.Builder, + com.google.bigtable.v2.MutationOrBuilder>( + mutations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + mutations_ = null; + } + return mutationsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.SessionMutateRowRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.SessionMutateRowRequest) + private static final com.google.bigtable.v2.SessionMutateRowRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.SessionMutateRowRequest(); + } + + public static com.google.bigtable.v2.SessionMutateRowRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionMutateRowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionMutateRowRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionMutateRowRequestOrBuilder.java new file mode 100644 index 0000000000..c7f81edb47 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionMutateRowRequestOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface SessionMutateRowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.SessionMutateRowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes key = 1; + * + * @return The key. + */ + com.google.protobuf.ByteString getKey(); + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + java.util.List getMutationsList(); + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + com.google.bigtable.v2.Mutation getMutations(int index); + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + int getMutationsCount(); + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + java.util.List getMutationsOrBuilderList(); + + /** repeated .google.bigtable.v2.Mutation mutations = 2; */ + com.google.bigtable.v2.MutationOrBuilder getMutationsOrBuilder(int index); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionMutateRowResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionMutateRowResponse.java new file mode 100644 index 0000000000..24953a9d98 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionMutateRowResponse.java @@ -0,0 +1,396 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionMutateRowResponse} + */ +@com.google.protobuf.Generated +public final class SessionMutateRowResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.SessionMutateRowResponse) + SessionMutateRowResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionMutateRowResponse"); + } + + // Use SessionMutateRowResponse.newBuilder() to construct. + private SessionMutateRowResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionMutateRowResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionMutateRowResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionMutateRowResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionMutateRowResponse.class, + com.google.bigtable.v2.SessionMutateRowResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.SessionMutateRowResponse)) { + return super.equals(obj); + } + com.google.bigtable.v2.SessionMutateRowResponse other = + (com.google.bigtable.v2.SessionMutateRowResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.SessionMutateRowResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionMutateRowResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionMutateRowResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionMutateRowResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionMutateRowResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionMutateRowResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionMutateRowResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionMutateRowResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionMutateRowResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionMutateRowResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionMutateRowResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionMutateRowResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.SessionMutateRowResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionMutateRowResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.SessionMutateRowResponse) + com.google.bigtable.v2.SessionMutateRowResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionMutateRowResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionMutateRowResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionMutateRowResponse.class, + com.google.bigtable.v2.SessionMutateRowResponse.Builder.class); + } + + // Construct using com.google.bigtable.v2.SessionMutateRowResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionMutateRowResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowResponse getDefaultInstanceForType() { + return com.google.bigtable.v2.SessionMutateRowResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowResponse build() { + com.google.bigtable.v2.SessionMutateRowResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowResponse buildPartial() { + com.google.bigtable.v2.SessionMutateRowResponse result = + new com.google.bigtable.v2.SessionMutateRowResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.SessionMutateRowResponse) { + return mergeFrom((com.google.bigtable.v2.SessionMutateRowResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.SessionMutateRowResponse other) { + if (other == com.google.bigtable.v2.SessionMutateRowResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.SessionMutateRowResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.SessionMutateRowResponse) + private static final com.google.bigtable.v2.SessionMutateRowResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.SessionMutateRowResponse(); + } + + public static com.google.bigtable.v2.SessionMutateRowResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionMutateRowResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionMutateRowResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionMutateRowResponseOrBuilder.java new file mode 100644 index 0000000000..398282c8fa --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionMutateRowResponseOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface SessionMutateRowResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.SessionMutateRowResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionParametersResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionParametersResponse.java new file mode 100644 index 0000000000..885a9c69bd --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionParametersResponse.java @@ -0,0 +1,750 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionParametersResponse} + */ +@com.google.protobuf.Generated +public final class SessionParametersResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.SessionParametersResponse) + SessionParametersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionParametersResponse"); + } + + // Use SessionParametersResponse.newBuilder() to construct. + private SessionParametersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionParametersResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionParametersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionParametersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionParametersResponse.class, + com.google.bigtable.v2.SessionParametersResponse.Builder.class); + } + + private int bitField0_; + public static final int KEEP_ALIVE_FIELD_NUMBER = 1; + private com.google.protobuf.Duration keepAlive_; + + /** + * + * + *
+   * Maximum time between messages that the AFE will send to the client. The
+   * client may use this information to determine its control-flow in relation
+   * to pruning black-holed or otherwise non-responsive sessions. Must be set
+   * and positive.
+   *
+   * See also Heartbeats.
+   * 
+ * + * .google.protobuf.Duration keep_alive = 1; + * + * @return Whether the keepAlive field is set. + */ + @java.lang.Override + public boolean hasKeepAlive() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Maximum time between messages that the AFE will send to the client. The
+   * client may use this information to determine its control-flow in relation
+   * to pruning black-holed or otherwise non-responsive sessions. Must be set
+   * and positive.
+   *
+   * See also Heartbeats.
+   * 
+ * + * .google.protobuf.Duration keep_alive = 1; + * + * @return The keepAlive. + */ + @java.lang.Override + public com.google.protobuf.Duration getKeepAlive() { + return keepAlive_ == null ? com.google.protobuf.Duration.getDefaultInstance() : keepAlive_; + } + + /** + * + * + *
+   * Maximum time between messages that the AFE will send to the client. The
+   * client may use this information to determine its control-flow in relation
+   * to pruning black-holed or otherwise non-responsive sessions. Must be set
+   * and positive.
+   *
+   * See also Heartbeats.
+   * 
+ * + * .google.protobuf.Duration keep_alive = 1; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getKeepAliveOrBuilder() { + return keepAlive_ == null ? com.google.protobuf.Duration.getDefaultInstance() : keepAlive_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getKeepAlive()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKeepAlive()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.SessionParametersResponse)) { + return super.equals(obj); + } + com.google.bigtable.v2.SessionParametersResponse other = + (com.google.bigtable.v2.SessionParametersResponse) obj; + + if (hasKeepAlive() != other.hasKeepAlive()) return false; + if (hasKeepAlive()) { + if (!getKeepAlive().equals(other.getKeepAlive())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasKeepAlive()) { + hash = (37 * hash) + KEEP_ALIVE_FIELD_NUMBER; + hash = (53 * hash) + getKeepAlive().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.SessionParametersResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionParametersResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionParametersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionParametersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionParametersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionParametersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionParametersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionParametersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionParametersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionParametersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionParametersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionParametersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.SessionParametersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionParametersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.SessionParametersResponse) + com.google.bigtable.v2.SessionParametersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionParametersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionParametersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionParametersResponse.class, + com.google.bigtable.v2.SessionParametersResponse.Builder.class); + } + + // Construct using com.google.bigtable.v2.SessionParametersResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetKeepAliveFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keepAlive_ = null; + if (keepAliveBuilder_ != null) { + keepAliveBuilder_.dispose(); + keepAliveBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionParametersResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionParametersResponse getDefaultInstanceForType() { + return com.google.bigtable.v2.SessionParametersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.SessionParametersResponse build() { + com.google.bigtable.v2.SessionParametersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionParametersResponse buildPartial() { + com.google.bigtable.v2.SessionParametersResponse result = + new com.google.bigtable.v2.SessionParametersResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.SessionParametersResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.keepAlive_ = keepAliveBuilder_ == null ? keepAlive_ : keepAliveBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.SessionParametersResponse) { + return mergeFrom((com.google.bigtable.v2.SessionParametersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.SessionParametersResponse other) { + if (other == com.google.bigtable.v2.SessionParametersResponse.getDefaultInstance()) + return this; + if (other.hasKeepAlive()) { + mergeKeepAlive(other.getKeepAlive()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetKeepAliveFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Duration keepAlive_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + keepAliveBuilder_; + + /** + * + * + *
+     * Maximum time between messages that the AFE will send to the client. The
+     * client may use this information to determine its control-flow in relation
+     * to pruning black-holed or otherwise non-responsive sessions. Must be set
+     * and positive.
+     *
+     * See also Heartbeats.
+     * 
+ * + * .google.protobuf.Duration keep_alive = 1; + * + * @return Whether the keepAlive field is set. + */ + public boolean hasKeepAlive() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Maximum time between messages that the AFE will send to the client. The
+     * client may use this information to determine its control-flow in relation
+     * to pruning black-holed or otherwise non-responsive sessions. Must be set
+     * and positive.
+     *
+     * See also Heartbeats.
+     * 
+ * + * .google.protobuf.Duration keep_alive = 1; + * + * @return The keepAlive. + */ + public com.google.protobuf.Duration getKeepAlive() { + if (keepAliveBuilder_ == null) { + return keepAlive_ == null ? com.google.protobuf.Duration.getDefaultInstance() : keepAlive_; + } else { + return keepAliveBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Maximum time between messages that the AFE will send to the client. The
+     * client may use this information to determine its control-flow in relation
+     * to pruning black-holed or otherwise non-responsive sessions. Must be set
+     * and positive.
+     *
+     * See also Heartbeats.
+     * 
+ * + * .google.protobuf.Duration keep_alive = 1; + */ + public Builder setKeepAlive(com.google.protobuf.Duration value) { + if (keepAliveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + keepAlive_ = value; + } else { + keepAliveBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Maximum time between messages that the AFE will send to the client. The
+     * client may use this information to determine its control-flow in relation
+     * to pruning black-holed or otherwise non-responsive sessions. Must be set
+     * and positive.
+     *
+     * See also Heartbeats.
+     * 
+ * + * .google.protobuf.Duration keep_alive = 1; + */ + public Builder setKeepAlive(com.google.protobuf.Duration.Builder builderForValue) { + if (keepAliveBuilder_ == null) { + keepAlive_ = builderForValue.build(); + } else { + keepAliveBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Maximum time between messages that the AFE will send to the client. The
+     * client may use this information to determine its control-flow in relation
+     * to pruning black-holed or otherwise non-responsive sessions. Must be set
+     * and positive.
+     *
+     * See also Heartbeats.
+     * 
+ * + * .google.protobuf.Duration keep_alive = 1; + */ + public Builder mergeKeepAlive(com.google.protobuf.Duration value) { + if (keepAliveBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && keepAlive_ != null + && keepAlive_ != com.google.protobuf.Duration.getDefaultInstance()) { + getKeepAliveBuilder().mergeFrom(value); + } else { + keepAlive_ = value; + } + } else { + keepAliveBuilder_.mergeFrom(value); + } + if (keepAlive_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Maximum time between messages that the AFE will send to the client. The
+     * client may use this information to determine its control-flow in relation
+     * to pruning black-holed or otherwise non-responsive sessions. Must be set
+     * and positive.
+     *
+     * See also Heartbeats.
+     * 
+ * + * .google.protobuf.Duration keep_alive = 1; + */ + public Builder clearKeepAlive() { + bitField0_ = (bitField0_ & ~0x00000001); + keepAlive_ = null; + if (keepAliveBuilder_ != null) { + keepAliveBuilder_.dispose(); + keepAliveBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Maximum time between messages that the AFE will send to the client. The
+     * client may use this information to determine its control-flow in relation
+     * to pruning black-holed or otherwise non-responsive sessions. Must be set
+     * and positive.
+     *
+     * See also Heartbeats.
+     * 
+ * + * .google.protobuf.Duration keep_alive = 1; + */ + public com.google.protobuf.Duration.Builder getKeepAliveBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetKeepAliveFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Maximum time between messages that the AFE will send to the client. The
+     * client may use this information to determine its control-flow in relation
+     * to pruning black-holed or otherwise non-responsive sessions. Must be set
+     * and positive.
+     *
+     * See also Heartbeats.
+     * 
+ * + * .google.protobuf.Duration keep_alive = 1; + */ + public com.google.protobuf.DurationOrBuilder getKeepAliveOrBuilder() { + if (keepAliveBuilder_ != null) { + return keepAliveBuilder_.getMessageOrBuilder(); + } else { + return keepAlive_ == null ? com.google.protobuf.Duration.getDefaultInstance() : keepAlive_; + } + } + + /** + * + * + *
+     * Maximum time between messages that the AFE will send to the client. The
+     * client may use this information to determine its control-flow in relation
+     * to pruning black-holed or otherwise non-responsive sessions. Must be set
+     * and positive.
+     *
+     * See also Heartbeats.
+     * 
+ * + * .google.protobuf.Duration keep_alive = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetKeepAliveFieldBuilder() { + if (keepAliveBuilder_ == null) { + keepAliveBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getKeepAlive(), getParentForChildren(), isClean()); + keepAlive_ = null; + } + return keepAliveBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.SessionParametersResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.SessionParametersResponse) + private static final com.google.bigtable.v2.SessionParametersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.SessionParametersResponse(); + } + + public static com.google.bigtable.v2.SessionParametersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionParametersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionParametersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionParametersResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionParametersResponseOrBuilder.java new file mode 100644 index 0000000000..9dae3f5fd2 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionParametersResponseOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface SessionParametersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.SessionParametersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Maximum time between messages that the AFE will send to the client. The
+   * client may use this information to determine its control-flow in relation
+   * to pruning black-holed or otherwise non-responsive sessions. Must be set
+   * and positive.
+   *
+   * See also Heartbeats.
+   * 
+ * + * .google.protobuf.Duration keep_alive = 1; + * + * @return Whether the keepAlive field is set. + */ + boolean hasKeepAlive(); + + /** + * + * + *
+   * Maximum time between messages that the AFE will send to the client. The
+   * client may use this information to determine its control-flow in relation
+   * to pruning black-holed or otherwise non-responsive sessions. Must be set
+   * and positive.
+   *
+   * See also Heartbeats.
+   * 
+ * + * .google.protobuf.Duration keep_alive = 1; + * + * @return The keepAlive. + */ + com.google.protobuf.Duration getKeepAlive(); + + /** + * + * + *
+   * Maximum time between messages that the AFE will send to the client. The
+   * client may use this information to determine its control-flow in relation
+   * to pruning black-holed or otherwise non-responsive sessions. Must be set
+   * and positive.
+   *
+   * See also Heartbeats.
+   * 
+ * + * .google.protobuf.Duration keep_alive = 1; + */ + com.google.protobuf.DurationOrBuilder getKeepAliveOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionProto.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionProto.java new file mode 100644 index 0000000000..c059d690e5 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionProto.java @@ -0,0 +1,997 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public final class SessionProto extends com.google.protobuf.GeneratedFile { + private SessionProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + registry.add(com.google.bigtable.v2.SessionProto.openSessionType); + registry.add(com.google.bigtable.v2.SessionProto.vrpcSessionType); + registry.add(com.google.bigtable.v2.SessionProto.rpcSessionType); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static final int OPEN_SESSION_TYPE_FIELD_NUMBER = 138898474; + + /** + * + * + *
+   * Only OpenSessionRequest.payload's with a type matching rpc_session_type are
+   * accepted by the server, and only OpenSessionResponse.payload's with a type
+   * matching rpc_session_type are accepted by the client.
+   * 
+ * + * extend .google.protobuf.MessageOptions { ... } + */ + public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< + com.google.protobuf.DescriptorProtos.MessageOptions, com.google.bigtable.v2.SessionType> + openSessionType = + com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension( + com.google.bigtable.v2.SessionType.class, null); + + public static final int VRPC_SESSION_TYPE_FIELD_NUMBER = 138899157; + + /** + * + * + *
+   * Only VirtualRpcRequest.payload's with a type matching rpc_session_type are
+   * accepted by the server, and only VirtualRpcResponse.payload's with a type
+   * matching rpc_session_type are accepted by the client.
+   * 
+ * + * extend .google.protobuf.MessageOptions { ... } + */ + public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< + com.google.protobuf.DescriptorProtos.MessageOptions, + java.util.List> + vrpcSessionType = + com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension( + com.google.bigtable.v2.SessionType.class, null); + + public static final int RPC_SESSION_TYPE_FIELD_NUMBER = 137964804; + + /** + * + * + *
+   * All session service methods must set this option to indicate which
+   * messages are permissible within the generic envelope.
+   * 
+ * + * extend .google.protobuf.MethodOptions { ... } + */ + public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< + com.google.protobuf.DescriptorProtos.MethodOptions, com.google.bigtable.v2.SessionType> + rpcSessionType = + com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension( + com.google.bigtable.v2.SessionType.class, null); + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_GetClientConfigurationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_GetClientConfigurationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_LoadBalancingOptions_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_LoadBalancingOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_LoadBalancingOptions_LeastInFlight_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_LoadBalancingOptions_LeastInFlight_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_LoadBalancingOptions_PeakEwma_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_LoadBalancingOptions_PeakEwma_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_LoadBalancingOptions_Random_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_LoadBalancingOptions_Random_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_SessionClientConfiguration_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_SessionClientConfiguration_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessWithFallback_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessWithFallback_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessOnly_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessOnly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_CloudPathOnly_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_CloudPathOnly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_SessionClientConfiguration_SessionPoolConfiguration_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_SessionClientConfiguration_SessionPoolConfiguration_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_TelemetryConfiguration_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_TelemetryConfiguration_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_ClientConfiguration_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_ClientConfiguration_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_ClientConfiguration_PollingConfiguration_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_ClientConfiguration_PollingConfiguration_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_SessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_SessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_SessionResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_SessionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_OpenSessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_OpenSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_BackendIdentifier_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_BackendIdentifier_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_OpenSessionResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_OpenSessionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_CloseSessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_CloseSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_OpenTableRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_OpenTableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_OpenTableResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_OpenTableResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_OpenAuthorizedViewRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_OpenAuthorizedViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_OpenAuthorizedViewResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_OpenAuthorizedViewResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_OpenMaterializedViewRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_OpenMaterializedViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_OpenMaterializedViewResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_OpenMaterializedViewResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_VirtualRpcRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_VirtualRpcRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_VirtualRpcRequest_Metadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_VirtualRpcRequest_Metadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_ClusterInformation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_ClusterInformation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_SessionRequestStats_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_SessionRequestStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_VirtualRpcResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_VirtualRpcResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_ErrorResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_ErrorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_TableRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_TableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_TableResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_TableResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_AuthorizedViewRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_AuthorizedViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_AuthorizedViewResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_AuthorizedViewResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_MaterializedViewRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_MaterializedViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_MaterializedViewResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_MaterializedViewResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_SessionReadRowRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_SessionReadRowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_SessionReadRowResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_SessionReadRowResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_SessionMutateRowRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_SessionMutateRowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_SessionMutateRowResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_SessionMutateRowResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_SessionParametersResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_SessionParametersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_HeartbeatResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_HeartbeatResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_GoAwayResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_GoAwayResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_SessionRefreshConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_SessionRefreshConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_SessionRefreshConfig_Metadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_bigtable_v2_SessionRefreshConfig_Metadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + " google/bigtable/v2/session.proto\022\022goog" + + "le.bigtable.v2\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\032\035goog" + + "le/bigtable/v2/data.proto\032&google/bigtab" + + "le/v2/feature_flags.proto\032&google/bigtable/v2/request_stats.proto\032 google/protob" + + "uf/descriptor.proto\032\036google/protobuf/dur" + + "ation.proto\032\037google/protobuf/timestamp.p" + + "roto\032\036google/rpc/error_details.proto\032\027google/rpc/status.proto\"\202\001\n" + + "\035GetClientConfigurationRequest\022D\n\r" + + "instance_name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%bigtableadmin.googleapis.com/Instance\022\033\n" + + "\016app_profile_id\030\002 \001(\tB\003\340A\001\"\356\002\n" + + "\024LoadBalancingOptions\022Q\n" + + "\017least_in_flight\030\001" + + " \001(\01326.google.bigtable.v2.LoadBalancingOptions.LeastInFlightH\000\022F\n" + + "\tpeak_ewma\030\002 \001(" + + "\01321.google.bigtable.v2.LoadBalancingOptions.PeakEwmaH\000\022A\n" + + "\006random\030\004 \001(\0132/.google." + + "bigtable.v2.LoadBalancingOptions.RandomH\000\032+\n\r" + + "LeastInFlight\022\032\n" + + "\022random_subset_size\030\001 \001(\003\032&\n" + + "\010PeakEwma\022\032\n" + + "\022random_subset_size\030\001 \001(\003\032\010\n" + + "\006RandomB\031\n" + + "\027load_balancing_strategy\"\274\n\n" + + "\032SessionClientConfiguration\022\024\n" + + "\014session_load\030\001 \001(\002\022L\n" + + "\026load_balancing_options\030\002" + + " \001(\0132(.google.bigtable.v2.LoadBalancingOptionsB\002\030\001\022f\n" + + "\025channel_configuration\030\003 \001(\0132G.google.bigtable.v2.SessionClient" + + "Configuration.ChannelPoolConfiguration\022k\n" + + "\032session_pool_configuration\030\004 \001(\0132G.goo" + + "gle.bigtable.v2.SessionClientConfiguration.SessionPoolConfiguration\032\376\004\n" + + "\030ChannelPoolConfiguration\022\030\n" + + "\020min_server_count\030\001 \001(\005\022\030\n" + + "\020max_server_count\030\002 \001(\005\022 \n" + + "\030per_server_session_count\030\003 \001(\005\022\207\001\n" + + "\033direct_access_with_fallback\030\004 \001(\0132`.google.bigtable.v" + + "2.SessionClientConfiguration.ChannelPool" + + "Configuration.DirectAccessWithFallbackH\000\022v\n" + + "\022direct_access_only\030\005 \001(\0132X.google.bi" + + "gtable.v2.SessionClientConfiguration.Cha" + + "nnelPoolConfiguration.DirectAccessOnlyH\000\022p\n" + + "\017cloud_path_only\030\006 \001(\0132U.google.bigta" + + "ble.v2.SessionClientConfiguration.ChannelPoolConfiguration.CloudPathOnlyH\000\032k\n" + + "\030DirectAccessWithFallback\022\034\n" + + "\024error_rate_threshold\030\001 \001(\002\0221\n" + + "\016check_interval\030\002 \001(\0132\031.google.protobuf.Duration\032\022\n" + + "\020DirectAccessOnly\032\017\n\r" + + "CloudPathOnlyB\006\n" + + "\004mode\032\343\002\n" + + "\030SessionPoolConfiguration\022\020\n" + + "\010headroom\030\001 \001(\002\022\031\n" + + "\021min_session_count\030\002 \001(\005\022\031\n" + + "\021max_session_count\030\003 \001(\005\022 \n" + + "\030new_session_queue_length\030\004 \001(\005\022#\n" + + "\033new_session_creation_budget\030\005 \001(\005\022?\n" + + "\034new_session_creation_penalty\030\006" + + " \001(\0132\031.google.protobuf.Duration\022-\n" + + "%consecutive_session_failure_threshold\030\010 \001(\005\022H\n" + + "\026load_balancing_options\030\t" + + " \001(\0132(.google.bigtable.v2.LoadBalancingOptions\"\255\001\n" + + "\026TelemetryConfiguration\022I\n" + + "\017debug_tag_level\030\001 \001(\01620" + + ".google.bigtable.v2.TelemetryConfiguration.Level\"H\n" + + "\005Level\022\025\n" + + "\021LEVEL_UNSPECIFIED\020\000\022\t\n" + + "\005DEBUG\020\001\022\010\n" + + "\004INFO\020\002\022\010\n" + + "\004WARN\020\003\022\t\n" + + "\005ERROR\020\004\"\217\004\n" + + "\023ClientConfiguration\022M\n" + + "\025session_configuration\030\002" + + " \001(\0132..google.bigtable.v2.SessionClientConfiguration\022\026\n" + + "\014stop_polling\030\003 \001(\010H\000\0229\n" + + "\020polling_interval\030\004" + + " \001(\0132\031.google.protobuf.DurationB\002\030\001H\000\022]\n" + + "\025polling_configuration\030\005 \001(\0132<.google.bigtable.v2" + + ".ClientConfiguration.PollingConfigurationH\000\022K\n" + + "\027telemetry_configuration\030\006 \001(\0132*.g" + + "oogle.bigtable.v2.TelemetryConfiguration\032\236\001\n" + + "\024PollingConfiguration\0223\n" + + "\020polling_interval\030\001 \001(\0132\031.google.protobuf.Duration\0224\n" + + "\021validity_duration\030\002 \001(\0132\031.google.protobuf.Duration\022\033\n" + + "\023max_rpc_retry_count\030\006 \001(\005B\t\n" + + "\007polling\"\333\001\n" + + "\016SessionRequest\022>\n" + + "\014open_session\030\001" + + " \001(\0132&.google.bigtable.v2.OpenSessionRequestH\000\022@\n\r" + + "close_session\030\002 \001(\0132\'.google.bigtable.v2.CloseSessionRequestH\000\022<\n" + + "\013virtual_rpc\030\003 \001(\0132%.google.bigtable.v2.VirtualRpcRequestH\000B\t\n" + + "\007payload\"\334\003\n" + + "\017SessionResponse\022?\n" + + "\014open_session\030\001 \001(\0132\'.g" + + "oogle.bigtable.v2.OpenSessionResponseH\000\022=\n" + + "\013virtual_rpc\030\002 \001(\0132&.google.bigtable.v2.VirtualRpcResponseH\000\0222\n" + + "\005error\030\003 \001(\0132!.google.bigtable.v2.ErrorResponseH\000\022K\n" + + "\022session_parameters\030\004" + + " \001(\0132-.google.bigtable.v2.SessionParametersResponseH\000\022:\n" + + "\theartbeat\030\005 \001(\0132%.google.bigtable.v2.HeartbeatResponseH\000\0225\n" + + "\007go_away\030\006 \001(\0132\".google.bigtable.v2.GoAwayResponseH\000\022J\n" + + "\026session_refresh_config\030\007" + + " \001(\0132(.google.bigtable.v2.SessionRefreshConfigH\000B\t\n" + + "\007payload\"\270\001\n" + + "\022OpenSessionRequest\022\030\n" + + "\020protocol_version\030\001 \001(\003\022/\n" + + "\005flags\030\002 \001(\0132 .google.bigtable.v2.FeatureFlags\022.\n" + + "&consecutive_failed_connection_attempts\030\003 \001(\003\022\026\n" + + "\016routing_cookie\030\004 \001(\014\022\017\n" + + "\007payload\030\005 \001(\014\"s\n" + + "\021BackendIdentifier\022\032\n" + + "\022google_frontend_id\030\001 \001(\003\022\037\n" + + "\027application_frontend_id\030\002 \001(\003\022!\n" + + "\031application_frontend_zone\030\003 \001(\t\"^\n" + + "\023OpenSessionResponse\0226\n" + + "\007backend\030\002 \001(\0132%.google.bigtable.v2.BackendIdentifier\022\017\n" + + "\007payload\030\001 \001(\014\"\333\002\n" + + "\023CloseSessionRequest\022J\n" + + "\006reason\030\001 \001(\0162:.goog" + + "le.bigtable.v2.CloseSessionRequest.CloseSessionReason\022\023\n" + + "\013description\030\002 \001(\t\"\342\001\n" + + "\022CloseSessionReason\022\036\n" + + "\032CLOSE_SESSION_REASON_UNSET\020\000\022\037\n" + + "\033CLOSE_SESSION_REASON_GOAWAY\020\001\022\036\n" + + "\032CLOSE_SESSION_REASON_ERROR\020\002\022\035\n" + + "\031CLOSE_SESSION_REASON_USER\020\003\022!\n" + + "\035CLOSE_SESSION_REASON_DOWNSIZE\020\004\022)\n" + + "%CLOSE_SESSION_REASON_MISSED_HEARTBEAT\020\005\"\365\001\n" + + "\020OpenTableRequest\022\022\n\n" + + "table_name\030\001 \001(\t\022\026\n" + + "\016app_profile_id\030\002 \001(\t\022C\n\n" + + "permission\030\003 \001(\0162/.google.bigtable.v2.OpenTableRequest.Permission\"h\n" + + "\n" + + "Permission\022\024\n" + + "\020PERMISSION_UNSET\020\000\022\023\n" + + "\017PERMISSION_READ\020\001\022\024\n" + + "\020PERMISSION_WRITE\020\002\022\031\n" + + "\025PERMISSION_READ_WRITE\020\003:\006\320\302\355\221\004\001\"\033\n" + + "\021OpenTableResponse:\006\320\302\355\221\004\001\"\221\002\n" + + "\031OpenAuthorizedViewRequest\022\034\n" + + "\024authorized_view_name\030\001 \001(\t\022\026\n" + + "\016app_profile_id\030\002 \001(\t\022L\n\n" + + "permission\030\003" + + " \001(\01628.google.bigtable.v2.OpenAuthorizedViewRequest.Permission\"h\n\n" + + "Permission\022\024\n" + + "\020PERMISSION_UNSET\020\000\022\023\n" + + "\017PERMISSION_READ\020\001\022\024\n" + + "\020PERMISSION_WRITE\020\002\022\031\n" + + "\025PERMISSION_READ_WRITE\020\003:\006\320\302\355\221\004\002\"$\n" + + "\032OpenAuthorizedViewResponse:\006\320\302\355\221\004\002\"\346\001\n" + + "\033OpenMaterializedViewRequest\022\036\n" + + "\026materialized_view_name\030\001 \001(\t\022\026\n" + + "\016app_profile_id\030\002 \001(\t\022N\n\n" + + "permission\030\003 \001" + + "(\0162:.google.bigtable.v2.OpenMaterializedViewRequest.Permission\"7\n\n" + + "Permission\022\024\n" + + "\020PERMISSION_UNSET\020\000\022\023\n" + + "\017PERMISSION_READ\020\001:\006\320\302\355\221\004\003\"&\n" + + "\034OpenMaterializedViewResponse:\006\320\302\355\221\004\003\"\217\002\n" + + "\021VirtualRpcRequest\022\016\n" + + "\006rpc_id\030\001 \001(\003\022+\n" + + "\010deadline\030\002 \001(\0132\031.google.protobuf.Duration\022@\n" + + "\010metadata\030\003" + + " \001(\0132..google.bigtable.v2.VirtualRpcRequest.Metadata\022\017\n" + + "\007payload\030\004 \001(\014\032j\n" + + "\010Metadata\022\026\n" + + "\016attempt_number\030\001 \001(\003\0221\n\r" + + "attempt_start\030\002 \001(\0132\032.google.protobuf.Timestamp\022\023\n" + + "\013traceparent\030\003 \001(\t\"9\n" + + "\022ClusterInformation\022\022\n\n" + + "cluster_id\030\001 \001(\t\022\017\n" + + "\007zone_id\030\002 \001(\t\"I\n" + + "\023SessionRequestStats\0222\n" + + "\017backend_latency\030\001 \001(\0132\031.google.protobuf.Duration\"\253\001\n" + + "\022VirtualRpcResponse\022\016\n" + + "\006rpc_id\030\001 \001(\003\022<\n" + + "\014cluster_info\030\002 \001(\0132&.google.bigtable.v2.ClusterInformation\0226\n" + + "\005stats\030\004 \001(\0132\'.google.bigtable.v2.SessionRequestStats\022\017\n" + + "\007payload\030\003 \001(\014\"\254\001\n\r" + + "ErrorResponse\022\016\n" + + "\006rpc_id\030\001 \001(\003\022<\n" + + "\014cluster_info\030\002 \001(\0132&.google.bigtable.v2.ClusterInformation\022\"\n" + + "\006status\030\003 \001(\0132\022.google.rpc.Status\022)\n\n" + + "retry_info\030\004 \001(\0132\025.google.rpc.RetryInfo\"\244\001\n" + + "\014TableRequest\022=\n" + + "\010read_row\030\001 \001(\0132" + + ").google.bigtable.v2.SessionReadRowRequestH\000\022A\n\n" + + "mutate_row\030\002 \001(\0132+.google.bigtab" + + "le.v2.SessionMutateRowRequestH\000:\007\252\355\355\221\004\001\001B\t\n" + + "\007payload\"\247\001\n\r" + + "TableResponse\022>\n" + + "\010read_row\030\001" + + " \001(\0132*.google.bigtable.v2.SessionReadRowResponseH\000\022B\n\n" + + "mutate_row\030\002 \001(\0132,.goog" + + "le.bigtable.v2.SessionMutateRowResponseH\000:\007\252\355\355\221\004\001\001B\t\n" + + "\007payload\"\255\001\n" + + "\025AuthorizedViewRequest\022=\n" + + "\010read_row\030\001" + + " \001(\0132).google.bigtable.v2.SessionReadRowRequestH\000\022A\n\n" + + "mutate_row\030\002" + + " \001(\0132+.google.bigtable.v2.SessionMutateRowRequestH\000:\007\252\355\355\221\004\001\002B" + + "\t\n" + + "\007payload\"\260\001\n" + + "\026AuthorizedViewResponse\022>\n" + + "\010read_row\030\001 \001" + + "(\0132*.google.bigtable.v2.SessionReadRowResponseH\000\022B\n\n" + + "mutate_row\030\002 \001(\0132,.google.bi" + + "gtable.v2.SessionMutateRowResponseH\000:\007\252\355\355\221\004\001\002B\t\n" + + "\007payload\"l\n" + + "\027MaterializedViewRequest\022=\n" + + "\010read_row\030\001" + + " \001(\0132).google.bigtable.v2.SessionReadRowRequestH\000:\007\252\355\355\221\004\001\003B" + + "\t\n" + + "\007payload\"n\n" + + "\030MaterializedViewResponse\022>\n" + + "\010read_row\030\001" + + " \001(\0132*.google.bigtable.v2.SessionReadRowResponseH\000:\007\252\355\355\221\004\001\003B" + + "\t\n" + + "\007payload\"S\n" + + "\025SessionReadRowRequest\022\013\n" + + "\003key\030\001 \001(\014\022-\n" + + "\006filter\030\002 \001(\0132\035.google.bigtable.v2.RowFilter\"o\n" + + "\026SessionReadRowResponse\022$\n" + + "\003row\030\001 \001(\0132\027.google.bigtable.v2.Row\022/\n" + + "\005stats\030\002 \001(\0132 .google.bigtable.v2.RequestStats\"W\n" + + "\027SessionMutateRowRequest\022\013\n" + + "\003key\030\001 \001(\014\022/\n" + + "\tmutations\030\002 \003(\0132\034.google.bigtable.v2.Mutation\"\032\n" + + "\030SessionMutateRowResponse\"J\n" + + "\031SessionParametersResponse\022-\n\n" + + "keep_alive\030\001 \001(\0132\031.google.protobuf.Duration\"\023\n" + + "\021HeartbeatResponse\"S\n" + + "\016GoAwayResponse\022\016\n" + + "\006reason\030\001 \001(\t\022\023\n" + + "\013description\030\002 \001(\t\022\034\n" + + "\024last_rpc_id_admitted\030\003 \001(\003\"\332\001\n" + + "\024SessionRefreshConfig\022F\n" + + "\026optimized_open_request\030\001" + + " \001(\0132&.google.bigtable.v2.OpenSessionRequest\022H\n" + + "\010metadata\030\002" + + " \003(\01321.google.bigtable.v2.SessionRefreshConfig.MetadataB\003\340A\003\0320\n" + + "\010Metadata\022\020\n" + + "\003key\030\001 \001(\tB\003\340A\003\022\022\n" + + "\005value\030\002 \001(\014B\003\340A\003*\243\001\n" + + "\013SessionType\022\026\n" + + "\022SESSION_TYPE_UNSET\020\000\022\026\n" + + "\022SESSION_TYPE_TABLE\020\001\022 \n" + + "\034SESSION_TYPE_AUTHORIZED_VIEW\020\002\022\"\n" + + "\036SESSION_TYPE_MATERIALIZED_VIEW\020\003\022\036\n" + + "\021SESSION_TYPE_TEST\020\377\377\377\377\377\377\377\377\377\001:^\n" + + "\021open_session_type\022\037.google.protobuf.MessageOptions\030\252\330\235B" + + " \001(\0162\037.google.bigtable.v2.SessionType:^\n" + + "\021vrpc_session_type\022\037.google.protobuf.MessageOptions\030\325\335\235B" + + " \003(\0162\037.google.bigtable.v2.SessionType:\\\n" + + "\020rpc_session_type\022\036.google.protobuf.MethodOptions\030\204\332\344A" + + " \001(\0162\037.google.bigtable.v2.SessionTypeB\266\001\n" + + "\026com.google.bigtable.v2B\014SessionProtoP\001Z8cloud.google.com/go/bigtabl" + + "e/apiv2/bigtablepb;bigtablepb\252\002\030Google.C" + + "loud.Bigtable.V2\312\002\030Google\\Cloud\\Bigtable" + + "\\V2\352\002\033Google::Cloud::Bigtable::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.bigtable.v2.DataProto.getDescriptor(), + com.google.bigtable.v2.FeatureFlagsProto.getDescriptor(), + com.google.bigtable.v2.RequestStatsProto.getDescriptor(), + com.google.protobuf.DescriptorProtos.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.ErrorDetailsProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_bigtable_v2_GetClientConfigurationRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_bigtable_v2_GetClientConfigurationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_GetClientConfigurationRequest_descriptor, + new java.lang.String[] { + "InstanceName", "AppProfileId", + }); + internal_static_google_bigtable_v2_LoadBalancingOptions_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_bigtable_v2_LoadBalancingOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_LoadBalancingOptions_descriptor, + new java.lang.String[] { + "LeastInFlight", "PeakEwma", "Random", "LoadBalancingStrategy", + }); + internal_static_google_bigtable_v2_LoadBalancingOptions_LeastInFlight_descriptor = + internal_static_google_bigtable_v2_LoadBalancingOptions_descriptor.getNestedType(0); + internal_static_google_bigtable_v2_LoadBalancingOptions_LeastInFlight_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_LoadBalancingOptions_LeastInFlight_descriptor, + new java.lang.String[] { + "RandomSubsetSize", + }); + internal_static_google_bigtable_v2_LoadBalancingOptions_PeakEwma_descriptor = + internal_static_google_bigtable_v2_LoadBalancingOptions_descriptor.getNestedType(1); + internal_static_google_bigtable_v2_LoadBalancingOptions_PeakEwma_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_LoadBalancingOptions_PeakEwma_descriptor, + new java.lang.String[] { + "RandomSubsetSize", + }); + internal_static_google_bigtable_v2_LoadBalancingOptions_Random_descriptor = + internal_static_google_bigtable_v2_LoadBalancingOptions_descriptor.getNestedType(2); + internal_static_google_bigtable_v2_LoadBalancingOptions_Random_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_LoadBalancingOptions_Random_descriptor, + new java.lang.String[] {}); + internal_static_google_bigtable_v2_SessionClientConfiguration_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_bigtable_v2_SessionClientConfiguration_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_SessionClientConfiguration_descriptor, + new java.lang.String[] { + "SessionLoad", + "LoadBalancingOptions", + "ChannelConfiguration", + "SessionPoolConfiguration", + }); + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_descriptor = + internal_static_google_bigtable_v2_SessionClientConfiguration_descriptor.getNestedType(0); + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_descriptor, + new java.lang.String[] { + "MinServerCount", + "MaxServerCount", + "PerServerSessionCount", + "DirectAccessWithFallback", + "DirectAccessOnly", + "CloudPathOnly", + "Mode", + }); + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessWithFallback_descriptor = + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_descriptor + .getNestedType(0); + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessWithFallback_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessWithFallback_descriptor, + new java.lang.String[] { + "ErrorRateThreshold", "CheckInterval", + }); + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessOnly_descriptor = + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_descriptor + .getNestedType(1); + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessOnly_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_DirectAccessOnly_descriptor, + new java.lang.String[] {}); + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_CloudPathOnly_descriptor = + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_descriptor + .getNestedType(2); + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_CloudPathOnly_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_SessionClientConfiguration_ChannelPoolConfiguration_CloudPathOnly_descriptor, + new java.lang.String[] {}); + internal_static_google_bigtable_v2_SessionClientConfiguration_SessionPoolConfiguration_descriptor = + internal_static_google_bigtable_v2_SessionClientConfiguration_descriptor.getNestedType(1); + internal_static_google_bigtable_v2_SessionClientConfiguration_SessionPoolConfiguration_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_SessionClientConfiguration_SessionPoolConfiguration_descriptor, + new java.lang.String[] { + "Headroom", + "MinSessionCount", + "MaxSessionCount", + "NewSessionQueueLength", + "NewSessionCreationBudget", + "NewSessionCreationPenalty", + "ConsecutiveSessionFailureThreshold", + "LoadBalancingOptions", + }); + internal_static_google_bigtable_v2_TelemetryConfiguration_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_bigtable_v2_TelemetryConfiguration_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_TelemetryConfiguration_descriptor, + new java.lang.String[] { + "DebugTagLevel", + }); + internal_static_google_bigtable_v2_ClientConfiguration_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_bigtable_v2_ClientConfiguration_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_ClientConfiguration_descriptor, + new java.lang.String[] { + "SessionConfiguration", + "StopPolling", + "PollingInterval", + "PollingConfiguration", + "TelemetryConfiguration", + "Polling", + }); + internal_static_google_bigtable_v2_ClientConfiguration_PollingConfiguration_descriptor = + internal_static_google_bigtable_v2_ClientConfiguration_descriptor.getNestedType(0); + internal_static_google_bigtable_v2_ClientConfiguration_PollingConfiguration_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_ClientConfiguration_PollingConfiguration_descriptor, + new java.lang.String[] { + "PollingInterval", "ValidityDuration", "MaxRpcRetryCount", + }); + internal_static_google_bigtable_v2_SessionRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_bigtable_v2_SessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_SessionRequest_descriptor, + new java.lang.String[] { + "OpenSession", "CloseSession", "VirtualRpc", "Payload", + }); + internal_static_google_bigtable_v2_SessionResponse_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_bigtable_v2_SessionResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_SessionResponse_descriptor, + new java.lang.String[] { + "OpenSession", + "VirtualRpc", + "Error", + "SessionParameters", + "Heartbeat", + "GoAway", + "SessionRefreshConfig", + "Payload", + }); + internal_static_google_bigtable_v2_OpenSessionRequest_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_bigtable_v2_OpenSessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_OpenSessionRequest_descriptor, + new java.lang.String[] { + "ProtocolVersion", + "Flags", + "ConsecutiveFailedConnectionAttempts", + "RoutingCookie", + "Payload", + }); + internal_static_google_bigtable_v2_BackendIdentifier_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_bigtable_v2_BackendIdentifier_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_BackendIdentifier_descriptor, + new java.lang.String[] { + "GoogleFrontendId", "ApplicationFrontendId", "ApplicationFrontendZone", + }); + internal_static_google_bigtable_v2_OpenSessionResponse_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_bigtable_v2_OpenSessionResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_OpenSessionResponse_descriptor, + new java.lang.String[] { + "Backend", "Payload", + }); + internal_static_google_bigtable_v2_CloseSessionRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_bigtable_v2_CloseSessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_CloseSessionRequest_descriptor, + new java.lang.String[] { + "Reason", "Description", + }); + internal_static_google_bigtable_v2_OpenTableRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_bigtable_v2_OpenTableRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_OpenTableRequest_descriptor, + new java.lang.String[] { + "TableName", "AppProfileId", "Permission", + }); + internal_static_google_bigtable_v2_OpenTableResponse_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_bigtable_v2_OpenTableResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_OpenTableResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_bigtable_v2_OpenAuthorizedViewRequest_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_bigtable_v2_OpenAuthorizedViewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_OpenAuthorizedViewRequest_descriptor, + new java.lang.String[] { + "AuthorizedViewName", "AppProfileId", "Permission", + }); + internal_static_google_bigtable_v2_OpenAuthorizedViewResponse_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_bigtable_v2_OpenAuthorizedViewResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_OpenAuthorizedViewResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_bigtable_v2_OpenMaterializedViewRequest_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_bigtable_v2_OpenMaterializedViewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_OpenMaterializedViewRequest_descriptor, + new java.lang.String[] { + "MaterializedViewName", "AppProfileId", "Permission", + }); + internal_static_google_bigtable_v2_OpenMaterializedViewResponse_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_bigtable_v2_OpenMaterializedViewResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_OpenMaterializedViewResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_bigtable_v2_VirtualRpcRequest_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_bigtable_v2_VirtualRpcRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_VirtualRpcRequest_descriptor, + new java.lang.String[] { + "RpcId", "Deadline", "Metadata", "Payload", + }); + internal_static_google_bigtable_v2_VirtualRpcRequest_Metadata_descriptor = + internal_static_google_bigtable_v2_VirtualRpcRequest_descriptor.getNestedType(0); + internal_static_google_bigtable_v2_VirtualRpcRequest_Metadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_VirtualRpcRequest_Metadata_descriptor, + new java.lang.String[] { + "AttemptNumber", "AttemptStart", "Traceparent", + }); + internal_static_google_bigtable_v2_ClusterInformation_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_bigtable_v2_ClusterInformation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_ClusterInformation_descriptor, + new java.lang.String[] { + "ClusterId", "ZoneId", + }); + internal_static_google_bigtable_v2_SessionRequestStats_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_bigtable_v2_SessionRequestStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_SessionRequestStats_descriptor, + new java.lang.String[] { + "BackendLatency", + }); + internal_static_google_bigtable_v2_VirtualRpcResponse_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_bigtable_v2_VirtualRpcResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_VirtualRpcResponse_descriptor, + new java.lang.String[] { + "RpcId", "ClusterInfo", "Stats", "Payload", + }); + internal_static_google_bigtable_v2_ErrorResponse_descriptor = + getDescriptor().getMessageType(21); + internal_static_google_bigtable_v2_ErrorResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_ErrorResponse_descriptor, + new java.lang.String[] { + "RpcId", "ClusterInfo", "Status", "RetryInfo", + }); + internal_static_google_bigtable_v2_TableRequest_descriptor = getDescriptor().getMessageType(22); + internal_static_google_bigtable_v2_TableRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_TableRequest_descriptor, + new java.lang.String[] { + "ReadRow", "MutateRow", "Payload", + }); + internal_static_google_bigtable_v2_TableResponse_descriptor = + getDescriptor().getMessageType(23); + internal_static_google_bigtable_v2_TableResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_TableResponse_descriptor, + new java.lang.String[] { + "ReadRow", "MutateRow", "Payload", + }); + internal_static_google_bigtable_v2_AuthorizedViewRequest_descriptor = + getDescriptor().getMessageType(24); + internal_static_google_bigtable_v2_AuthorizedViewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_AuthorizedViewRequest_descriptor, + new java.lang.String[] { + "ReadRow", "MutateRow", "Payload", + }); + internal_static_google_bigtable_v2_AuthorizedViewResponse_descriptor = + getDescriptor().getMessageType(25); + internal_static_google_bigtable_v2_AuthorizedViewResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_AuthorizedViewResponse_descriptor, + new java.lang.String[] { + "ReadRow", "MutateRow", "Payload", + }); + internal_static_google_bigtable_v2_MaterializedViewRequest_descriptor = + getDescriptor().getMessageType(26); + internal_static_google_bigtable_v2_MaterializedViewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_MaterializedViewRequest_descriptor, + new java.lang.String[] { + "ReadRow", "Payload", + }); + internal_static_google_bigtable_v2_MaterializedViewResponse_descriptor = + getDescriptor().getMessageType(27); + internal_static_google_bigtable_v2_MaterializedViewResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_MaterializedViewResponse_descriptor, + new java.lang.String[] { + "ReadRow", "Payload", + }); + internal_static_google_bigtable_v2_SessionReadRowRequest_descriptor = + getDescriptor().getMessageType(28); + internal_static_google_bigtable_v2_SessionReadRowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_SessionReadRowRequest_descriptor, + new java.lang.String[] { + "Key", "Filter", + }); + internal_static_google_bigtable_v2_SessionReadRowResponse_descriptor = + getDescriptor().getMessageType(29); + internal_static_google_bigtable_v2_SessionReadRowResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_SessionReadRowResponse_descriptor, + new java.lang.String[] { + "Row", "Stats", + }); + internal_static_google_bigtable_v2_SessionMutateRowRequest_descriptor = + getDescriptor().getMessageType(30); + internal_static_google_bigtable_v2_SessionMutateRowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_SessionMutateRowRequest_descriptor, + new java.lang.String[] { + "Key", "Mutations", + }); + internal_static_google_bigtable_v2_SessionMutateRowResponse_descriptor = + getDescriptor().getMessageType(31); + internal_static_google_bigtable_v2_SessionMutateRowResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_SessionMutateRowResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_bigtable_v2_SessionParametersResponse_descriptor = + getDescriptor().getMessageType(32); + internal_static_google_bigtable_v2_SessionParametersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_SessionParametersResponse_descriptor, + new java.lang.String[] { + "KeepAlive", + }); + internal_static_google_bigtable_v2_HeartbeatResponse_descriptor = + getDescriptor().getMessageType(33); + internal_static_google_bigtable_v2_HeartbeatResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_HeartbeatResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_bigtable_v2_GoAwayResponse_descriptor = + getDescriptor().getMessageType(34); + internal_static_google_bigtable_v2_GoAwayResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_GoAwayResponse_descriptor, + new java.lang.String[] { + "Reason", "Description", "LastRpcIdAdmitted", + }); + internal_static_google_bigtable_v2_SessionRefreshConfig_descriptor = + getDescriptor().getMessageType(35); + internal_static_google_bigtable_v2_SessionRefreshConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_SessionRefreshConfig_descriptor, + new java.lang.String[] { + "OptimizedOpenRequest", "Metadata", + }); + internal_static_google_bigtable_v2_SessionRefreshConfig_Metadata_descriptor = + internal_static_google_bigtable_v2_SessionRefreshConfig_descriptor.getNestedType(0); + internal_static_google_bigtable_v2_SessionRefreshConfig_Metadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_bigtable_v2_SessionRefreshConfig_Metadata_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + openSessionType.internalInit(descriptor.getExtension(0)); + vrpcSessionType.internalInit(descriptor.getExtension(1)); + rpcSessionType.internalInit(descriptor.getExtension(2)); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.bigtable.v2.DataProto.getDescriptor(); + com.google.bigtable.v2.FeatureFlagsProto.getDescriptor(); + com.google.bigtable.v2.RequestStatsProto.getDescriptor(); + com.google.protobuf.DescriptorProtos.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.ErrorDetailsProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.bigtable.v2.SessionProto.openSessionType); + registry.add(com.google.bigtable.v2.SessionProto.vrpcSessionType); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionReadRowRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionReadRowRequest.java new file mode 100644 index 0000000000..1d9d877fc8 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionReadRowRequest.java @@ -0,0 +1,677 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionReadRowRequest} + */ +@com.google.protobuf.Generated +public final class SessionReadRowRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.SessionReadRowRequest) + SessionReadRowRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionReadRowRequest"); + } + + // Use SessionReadRowRequest.newBuilder() to construct. + private SessionReadRowRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionReadRowRequest() { + key_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionReadRowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionReadRowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionReadRowRequest.class, + com.google.bigtable.v2.SessionReadRowRequest.Builder.class); + } + + private int bitField0_; + public static final int KEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes key = 1; + * + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + public static final int FILTER_FIELD_NUMBER = 2; + private com.google.bigtable.v2.RowFilter filter_; + + /** + * .google.bigtable.v2.RowFilter filter = 2; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * .google.bigtable.v2.RowFilter filter = 2; + * + * @return The filter. + */ + @java.lang.Override + public com.google.bigtable.v2.RowFilter getFilter() { + return filter_ == null ? com.google.bigtable.v2.RowFilter.getDefaultInstance() : filter_; + } + + /** .google.bigtable.v2.RowFilter filter = 2; */ + @java.lang.Override + public com.google.bigtable.v2.RowFilterOrBuilder getFilterOrBuilder() { + return filter_ == null ? com.google.bigtable.v2.RowFilter.getDefaultInstance() : filter_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!key_.isEmpty()) { + output.writeBytes(1, key_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getFilter()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!key_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, key_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFilter()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.SessionReadRowRequest)) { + return super.equals(obj); + } + com.google.bigtable.v2.SessionReadRowRequest other = + (com.google.bigtable.v2.SessionReadRowRequest) obj; + + if (!getKey().equals(other.getKey())) return false; + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.SessionReadRowRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionReadRowRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionReadRowRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionReadRowRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionReadRowRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionReadRowRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionReadRowRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionReadRowRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionReadRowRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionReadRowRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionReadRowRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionReadRowRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.SessionReadRowRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionReadRowRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.SessionReadRowRequest) + com.google.bigtable.v2.SessionReadRowRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionReadRowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionReadRowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionReadRowRequest.class, + com.google.bigtable.v2.SessionReadRowRequest.Builder.class); + } + + // Construct using com.google.bigtable.v2.SessionReadRowRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFilterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = com.google.protobuf.ByteString.EMPTY; + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionReadRowRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowRequest getDefaultInstanceForType() { + return com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowRequest build() { + com.google.bigtable.v2.SessionReadRowRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowRequest buildPartial() { + com.google.bigtable.v2.SessionReadRowRequest result = + new com.google.bigtable.v2.SessionReadRowRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.SessionReadRowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.SessionReadRowRequest) { + return mergeFrom((com.google.bigtable.v2.SessionReadRowRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.SessionReadRowRequest other) { + if (other == com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + setKey(other.getKey()); + } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + key_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes key = 1; + * + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + /** + * bytes key = 1; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * bytes key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000001); + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + private com.google.bigtable.v2.RowFilter filter_; + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.RowFilter, + com.google.bigtable.v2.RowFilter.Builder, + com.google.bigtable.v2.RowFilterOrBuilder> + filterBuilder_; + + /** + * .google.bigtable.v2.RowFilter filter = 2; + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * .google.bigtable.v2.RowFilter filter = 2; + * + * @return The filter. + */ + public com.google.bigtable.v2.RowFilter getFilter() { + if (filterBuilder_ == null) { + return filter_ == null ? com.google.bigtable.v2.RowFilter.getDefaultInstance() : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + + /** .google.bigtable.v2.RowFilter filter = 2; */ + public Builder setFilter(com.google.bigtable.v2.RowFilter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + } else { + filterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** .google.bigtable.v2.RowFilter filter = 2; */ + public Builder setFilter(com.google.bigtable.v2.RowFilter.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** .google.bigtable.v2.RowFilter filter = 2; */ + public Builder mergeFilter(com.google.bigtable.v2.RowFilter value) { + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && filter_ != null + && filter_ != com.google.bigtable.v2.RowFilter.getDefaultInstance()) { + getFilterBuilder().mergeFrom(value); + } else { + filter_ = value; + } + } else { + filterBuilder_.mergeFrom(value); + } + if (filter_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** .google.bigtable.v2.RowFilter filter = 2; */ + public Builder clearFilter() { + bitField0_ = (bitField0_ & ~0x00000002); + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + onChanged(); + return this; + } + + /** .google.bigtable.v2.RowFilter filter = 2; */ + public com.google.bigtable.v2.RowFilter.Builder getFilterBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFilterFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.RowFilter filter = 2; */ + public com.google.bigtable.v2.RowFilterOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null ? com.google.bigtable.v2.RowFilter.getDefaultInstance() : filter_; + } + } + + /** .google.bigtable.v2.RowFilter filter = 2; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.RowFilter, + com.google.bigtable.v2.RowFilter.Builder, + com.google.bigtable.v2.RowFilterOrBuilder> + internalGetFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.RowFilter, + com.google.bigtable.v2.RowFilter.Builder, + com.google.bigtable.v2.RowFilterOrBuilder>( + getFilter(), getParentForChildren(), isClean()); + filter_ = null; + } + return filterBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.SessionReadRowRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.SessionReadRowRequest) + private static final com.google.bigtable.v2.SessionReadRowRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.SessionReadRowRequest(); + } + + public static com.google.bigtable.v2.SessionReadRowRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionReadRowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionReadRowRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionReadRowRequestOrBuilder.java new file mode 100644 index 0000000000..a540f77d71 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionReadRowRequestOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface SessionReadRowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.SessionReadRowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes key = 1; + * + * @return The key. + */ + com.google.protobuf.ByteString getKey(); + + /** + * .google.bigtable.v2.RowFilter filter = 2; + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + + /** + * .google.bigtable.v2.RowFilter filter = 2; + * + * @return The filter. + */ + com.google.bigtable.v2.RowFilter getFilter(); + + /** .google.bigtable.v2.RowFilter filter = 2; */ + com.google.bigtable.v2.RowFilterOrBuilder getFilterOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionReadRowResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionReadRowResponse.java new file mode 100644 index 0000000000..3c2570fec4 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionReadRowResponse.java @@ -0,0 +1,783 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionReadRowResponse} + */ +@com.google.protobuf.Generated +public final class SessionReadRowResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.SessionReadRowResponse) + SessionReadRowResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionReadRowResponse"); + } + + // Use SessionReadRowResponse.newBuilder() to construct. + private SessionReadRowResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionReadRowResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionReadRowResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionReadRowResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionReadRowResponse.class, + com.google.bigtable.v2.SessionReadRowResponse.Builder.class); + } + + private int bitField0_; + public static final int ROW_FIELD_NUMBER = 1; + private com.google.bigtable.v2.Row row_; + + /** + * .google.bigtable.v2.Row row = 1; + * + * @return Whether the row field is set. + */ + @java.lang.Override + public boolean hasRow() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * .google.bigtable.v2.Row row = 1; + * + * @return The row. + */ + @java.lang.Override + public com.google.bigtable.v2.Row getRow() { + return row_ == null ? com.google.bigtable.v2.Row.getDefaultInstance() : row_; + } + + /** .google.bigtable.v2.Row row = 1; */ + @java.lang.Override + public com.google.bigtable.v2.RowOrBuilder getRowOrBuilder() { + return row_ == null ? com.google.bigtable.v2.Row.getDefaultInstance() : row_; + } + + public static final int STATS_FIELD_NUMBER = 2; + private com.google.bigtable.v2.RequestStats stats_; + + /** + * .google.bigtable.v2.RequestStats stats = 2; + * + * @return Whether the stats field is set. + */ + @java.lang.Override + public boolean hasStats() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * .google.bigtable.v2.RequestStats stats = 2; + * + * @return The stats. + */ + @java.lang.Override + public com.google.bigtable.v2.RequestStats getStats() { + return stats_ == null ? com.google.bigtable.v2.RequestStats.getDefaultInstance() : stats_; + } + + /** .google.bigtable.v2.RequestStats stats = 2; */ + @java.lang.Override + public com.google.bigtable.v2.RequestStatsOrBuilder getStatsOrBuilder() { + return stats_ == null ? com.google.bigtable.v2.RequestStats.getDefaultInstance() : stats_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getRow()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getStats()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRow()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStats()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.SessionReadRowResponse)) { + return super.equals(obj); + } + com.google.bigtable.v2.SessionReadRowResponse other = + (com.google.bigtable.v2.SessionReadRowResponse) obj; + + if (hasRow() != other.hasRow()) return false; + if (hasRow()) { + if (!getRow().equals(other.getRow())) return false; + } + if (hasStats() != other.hasStats()) return false; + if (hasStats()) { + if (!getStats().equals(other.getStats())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRow()) { + hash = (37 * hash) + ROW_FIELD_NUMBER; + hash = (53 * hash) + getRow().hashCode(); + } + if (hasStats()) { + hash = (37 * hash) + STATS_FIELD_NUMBER; + hash = (53 * hash) + getStats().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.SessionReadRowResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionReadRowResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionReadRowResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionReadRowResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionReadRowResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionReadRowResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionReadRowResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionReadRowResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionReadRowResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionReadRowResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionReadRowResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionReadRowResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.SessionReadRowResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionReadRowResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.SessionReadRowResponse) + com.google.bigtable.v2.SessionReadRowResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionReadRowResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionReadRowResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionReadRowResponse.class, + com.google.bigtable.v2.SessionReadRowResponse.Builder.class); + } + + // Construct using com.google.bigtable.v2.SessionReadRowResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRowFieldBuilder(); + internalGetStatsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + row_ = null; + if (rowBuilder_ != null) { + rowBuilder_.dispose(); + rowBuilder_ = null; + } + stats_ = null; + if (statsBuilder_ != null) { + statsBuilder_.dispose(); + statsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionReadRowResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowResponse getDefaultInstanceForType() { + return com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowResponse build() { + com.google.bigtable.v2.SessionReadRowResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowResponse buildPartial() { + com.google.bigtable.v2.SessionReadRowResponse result = + new com.google.bigtable.v2.SessionReadRowResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.SessionReadRowResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.row_ = rowBuilder_ == null ? row_ : rowBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.stats_ = statsBuilder_ == null ? stats_ : statsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.SessionReadRowResponse) { + return mergeFrom((com.google.bigtable.v2.SessionReadRowResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.SessionReadRowResponse other) { + if (other == com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance()) return this; + if (other.hasRow()) { + mergeRow(other.getRow()); + } + if (other.hasStats()) { + mergeStats(other.getStats()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetRowFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetStatsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.bigtable.v2.Row row_; + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.Row, + com.google.bigtable.v2.Row.Builder, + com.google.bigtable.v2.RowOrBuilder> + rowBuilder_; + + /** + * .google.bigtable.v2.Row row = 1; + * + * @return Whether the row field is set. + */ + public boolean hasRow() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * .google.bigtable.v2.Row row = 1; + * + * @return The row. + */ + public com.google.bigtable.v2.Row getRow() { + if (rowBuilder_ == null) { + return row_ == null ? com.google.bigtable.v2.Row.getDefaultInstance() : row_; + } else { + return rowBuilder_.getMessage(); + } + } + + /** .google.bigtable.v2.Row row = 1; */ + public Builder setRow(com.google.bigtable.v2.Row value) { + if (rowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + row_ = value; + } else { + rowBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** .google.bigtable.v2.Row row = 1; */ + public Builder setRow(com.google.bigtable.v2.Row.Builder builderForValue) { + if (rowBuilder_ == null) { + row_ = builderForValue.build(); + } else { + rowBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** .google.bigtable.v2.Row row = 1; */ + public Builder mergeRow(com.google.bigtable.v2.Row value) { + if (rowBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && row_ != null + && row_ != com.google.bigtable.v2.Row.getDefaultInstance()) { + getRowBuilder().mergeFrom(value); + } else { + row_ = value; + } + } else { + rowBuilder_.mergeFrom(value); + } + if (row_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** .google.bigtable.v2.Row row = 1; */ + public Builder clearRow() { + bitField0_ = (bitField0_ & ~0x00000001); + row_ = null; + if (rowBuilder_ != null) { + rowBuilder_.dispose(); + rowBuilder_ = null; + } + onChanged(); + return this; + } + + /** .google.bigtable.v2.Row row = 1; */ + public com.google.bigtable.v2.Row.Builder getRowBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetRowFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.Row row = 1; */ + public com.google.bigtable.v2.RowOrBuilder getRowOrBuilder() { + if (rowBuilder_ != null) { + return rowBuilder_.getMessageOrBuilder(); + } else { + return row_ == null ? com.google.bigtable.v2.Row.getDefaultInstance() : row_; + } + } + + /** .google.bigtable.v2.Row row = 1; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.Row, + com.google.bigtable.v2.Row.Builder, + com.google.bigtable.v2.RowOrBuilder> + internalGetRowFieldBuilder() { + if (rowBuilder_ == null) { + rowBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.Row, + com.google.bigtable.v2.Row.Builder, + com.google.bigtable.v2.RowOrBuilder>(getRow(), getParentForChildren(), isClean()); + row_ = null; + } + return rowBuilder_; + } + + private com.google.bigtable.v2.RequestStats stats_; + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.RequestStats, + com.google.bigtable.v2.RequestStats.Builder, + com.google.bigtable.v2.RequestStatsOrBuilder> + statsBuilder_; + + /** + * .google.bigtable.v2.RequestStats stats = 2; + * + * @return Whether the stats field is set. + */ + public boolean hasStats() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * .google.bigtable.v2.RequestStats stats = 2; + * + * @return The stats. + */ + public com.google.bigtable.v2.RequestStats getStats() { + if (statsBuilder_ == null) { + return stats_ == null ? com.google.bigtable.v2.RequestStats.getDefaultInstance() : stats_; + } else { + return statsBuilder_.getMessage(); + } + } + + /** .google.bigtable.v2.RequestStats stats = 2; */ + public Builder setStats(com.google.bigtable.v2.RequestStats value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stats_ = value; + } else { + statsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** .google.bigtable.v2.RequestStats stats = 2; */ + public Builder setStats(com.google.bigtable.v2.RequestStats.Builder builderForValue) { + if (statsBuilder_ == null) { + stats_ = builderForValue.build(); + } else { + statsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** .google.bigtable.v2.RequestStats stats = 2; */ + public Builder mergeStats(com.google.bigtable.v2.RequestStats value) { + if (statsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && stats_ != null + && stats_ != com.google.bigtable.v2.RequestStats.getDefaultInstance()) { + getStatsBuilder().mergeFrom(value); + } else { + stats_ = value; + } + } else { + statsBuilder_.mergeFrom(value); + } + if (stats_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** .google.bigtable.v2.RequestStats stats = 2; */ + public Builder clearStats() { + bitField0_ = (bitField0_ & ~0x00000002); + stats_ = null; + if (statsBuilder_ != null) { + statsBuilder_.dispose(); + statsBuilder_ = null; + } + onChanged(); + return this; + } + + /** .google.bigtable.v2.RequestStats stats = 2; */ + public com.google.bigtable.v2.RequestStats.Builder getStatsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetStatsFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.RequestStats stats = 2; */ + public com.google.bigtable.v2.RequestStatsOrBuilder getStatsOrBuilder() { + if (statsBuilder_ != null) { + return statsBuilder_.getMessageOrBuilder(); + } else { + return stats_ == null ? com.google.bigtable.v2.RequestStats.getDefaultInstance() : stats_; + } + } + + /** .google.bigtable.v2.RequestStats stats = 2; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.RequestStats, + com.google.bigtable.v2.RequestStats.Builder, + com.google.bigtable.v2.RequestStatsOrBuilder> + internalGetStatsFieldBuilder() { + if (statsBuilder_ == null) { + statsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.RequestStats, + com.google.bigtable.v2.RequestStats.Builder, + com.google.bigtable.v2.RequestStatsOrBuilder>( + getStats(), getParentForChildren(), isClean()); + stats_ = null; + } + return statsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.SessionReadRowResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.SessionReadRowResponse) + private static final com.google.bigtable.v2.SessionReadRowResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.SessionReadRowResponse(); + } + + public static com.google.bigtable.v2.SessionReadRowResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionReadRowResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionReadRowResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionReadRowResponseOrBuilder.java new file mode 100644 index 0000000000..b0ca2bf894 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionReadRowResponseOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface SessionReadRowResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.SessionReadRowResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.bigtable.v2.Row row = 1; + * + * @return Whether the row field is set. + */ + boolean hasRow(); + + /** + * .google.bigtable.v2.Row row = 1; + * + * @return The row. + */ + com.google.bigtable.v2.Row getRow(); + + /** .google.bigtable.v2.Row row = 1; */ + com.google.bigtable.v2.RowOrBuilder getRowOrBuilder(); + + /** + * .google.bigtable.v2.RequestStats stats = 2; + * + * @return Whether the stats field is set. + */ + boolean hasStats(); + + /** + * .google.bigtable.v2.RequestStats stats = 2; + * + * @return The stats. + */ + com.google.bigtable.v2.RequestStats getStats(); + + /** .google.bigtable.v2.RequestStats stats = 2; */ + com.google.bigtable.v2.RequestStatsOrBuilder getStatsOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRefreshConfig.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRefreshConfig.java new file mode 100644 index 0000000000..1cf129d259 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRefreshConfig.java @@ -0,0 +1,2023 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionRefreshConfig} + */ +@com.google.protobuf.Generated +public final class SessionRefreshConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.SessionRefreshConfig) + SessionRefreshConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionRefreshConfig"); + } + + // Use SessionRefreshConfig.newBuilder() to construct. + private SessionRefreshConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionRefreshConfig() { + metadata_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRefreshConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRefreshConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionRefreshConfig.class, + com.google.bigtable.v2.SessionRefreshConfig.Builder.class); + } + + public interface MetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.SessionRefreshConfig.Metadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The key for the metadata entry.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + * + * + *
+     * Output only. The key for the metadata entry.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+     * Output only. The value for the metadata entry.
+     * 
+ * + * bytes value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The value. + */ + com.google.protobuf.ByteString getValue(); + } + + /** + * + * + *
+   * Any additional metadata to include when reconnecting. Not a `map<>` type as
+   * this can be a multimap.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionRefreshConfig.Metadata} + */ + public static final class Metadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.SessionRefreshConfig.Metadata) + MetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Metadata"); + } + + // Use Metadata.newBuilder() to construct. + private Metadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Metadata() { + key_ = ""; + value_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRefreshConfig_Metadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRefreshConfig_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionRefreshConfig.Metadata.class, + com.google.bigtable.v2.SessionRefreshConfig.Metadata.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + + /** + * + * + *
+     * Output only. The key for the metadata entry.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The key for the metadata entry.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+     * Output only. The value for the metadata entry.
+     * 
+ * + * bytes value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); + } + if (!value_.isEmpty()) { + output.writeBytes(2, value_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, value_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.SessionRefreshConfig.Metadata)) { + return super.equals(obj); + } + com.google.bigtable.v2.SessionRefreshConfig.Metadata other = + (com.google.bigtable.v2.SessionRefreshConfig.Metadata) obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getValue().equals(other.getValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.SessionRefreshConfig.Metadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionRefreshConfig.Metadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRefreshConfig.Metadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionRefreshConfig.Metadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRefreshConfig.Metadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionRefreshConfig.Metadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRefreshConfig.Metadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionRefreshConfig.Metadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRefreshConfig.Metadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionRefreshConfig.Metadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRefreshConfig.Metadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionRefreshConfig.Metadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.bigtable.v2.SessionRefreshConfig.Metadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Any additional metadata to include when reconnecting. Not a `map<>` type as
+     * this can be a multimap.
+     * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionRefreshConfig.Metadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.SessionRefreshConfig.Metadata) + com.google.bigtable.v2.SessionRefreshConfig.MetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRefreshConfig_Metadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRefreshConfig_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionRefreshConfig.Metadata.class, + com.google.bigtable.v2.SessionRefreshConfig.Metadata.Builder.class); + } + + // Construct using com.google.bigtable.v2.SessionRefreshConfig.Metadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + value_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRefreshConfig_Metadata_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionRefreshConfig.Metadata getDefaultInstanceForType() { + return com.google.bigtable.v2.SessionRefreshConfig.Metadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.SessionRefreshConfig.Metadata build() { + com.google.bigtable.v2.SessionRefreshConfig.Metadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionRefreshConfig.Metadata buildPartial() { + com.google.bigtable.v2.SessionRefreshConfig.Metadata result = + new com.google.bigtable.v2.SessionRefreshConfig.Metadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.SessionRefreshConfig.Metadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.SessionRefreshConfig.Metadata) { + return mergeFrom((com.google.bigtable.v2.SessionRefreshConfig.Metadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.SessionRefreshConfig.Metadata other) { + if (other == com.google.bigtable.v2.SessionRefreshConfig.Metadata.getDefaultInstance()) + return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getValue().isEmpty()) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + value_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object key_ = ""; + + /** + * + * + *
+       * Output only. The key for the metadata entry.
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The key for the metadata entry.
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The key for the metadata entry.
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The key for the metadata entry.
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The key for the metadata entry.
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+       * Output only. The value for the metadata entry.
+       * 
+ * + * bytes value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } + + /** + * + * + *
+       * Output only. The value for the metadata entry.
+       * 
+ * + * bytes value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The value for the metadata entry.
+       * 
+ * + * bytes value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.SessionRefreshConfig.Metadata) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.SessionRefreshConfig.Metadata) + private static final com.google.bigtable.v2.SessionRefreshConfig.Metadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.SessionRefreshConfig.Metadata(); + } + + public static com.google.bigtable.v2.SessionRefreshConfig.Metadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionRefreshConfig.Metadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int OPTIMIZED_OPEN_REQUEST_FIELD_NUMBER = 1; + private com.google.bigtable.v2.OpenSessionRequest optimizedOpenRequest_; + + /** + * + * + *
+   * An optimized Open request that the session may use on a retry when
+   * establishing this session again. This can be sent from the AFE to
+   * avoid certain work e.g. encoding a query plan for BTQL.
+   * 
+ * + * .google.bigtable.v2.OpenSessionRequest optimized_open_request = 1; + * + * @return Whether the optimizedOpenRequest field is set. + */ + @java.lang.Override + public boolean hasOptimizedOpenRequest() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * An optimized Open request that the session may use on a retry when
+   * establishing this session again. This can be sent from the AFE to
+   * avoid certain work e.g. encoding a query plan for BTQL.
+   * 
+ * + * .google.bigtable.v2.OpenSessionRequest optimized_open_request = 1; + * + * @return The optimizedOpenRequest. + */ + @java.lang.Override + public com.google.bigtable.v2.OpenSessionRequest getOptimizedOpenRequest() { + return optimizedOpenRequest_ == null + ? com.google.bigtable.v2.OpenSessionRequest.getDefaultInstance() + : optimizedOpenRequest_; + } + + /** + * + * + *
+   * An optimized Open request that the session may use on a retry when
+   * establishing this session again. This can be sent from the AFE to
+   * avoid certain work e.g. encoding a query plan for BTQL.
+   * 
+ * + * .google.bigtable.v2.OpenSessionRequest optimized_open_request = 1; + */ + @java.lang.Override + public com.google.bigtable.v2.OpenSessionRequestOrBuilder getOptimizedOpenRequestOrBuilder() { + return optimizedOpenRequest_ == null + ? com.google.bigtable.v2.OpenSessionRequest.getDefaultInstance() + : optimizedOpenRequest_; + } + + public static final int METADATA_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List metadata_; + + /** + * + * + *
+   * Output only. Any additional metadata to include when reconnecting.
+   * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getMetadataList() { + return metadata_; + } + + /** + * + * + *
+   * Output only. Any additional metadata to include when reconnecting.
+   * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getMetadataOrBuilderList() { + return metadata_; + } + + /** + * + * + *
+   * Output only. Any additional metadata to include when reconnecting.
+   * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getMetadataCount() { + return metadata_.size(); + } + + /** + * + * + *
+   * Output only. Any additional metadata to include when reconnecting.
+   * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.bigtable.v2.SessionRefreshConfig.Metadata getMetadata(int index) { + return metadata_.get(index); + } + + /** + * + * + *
+   * Output only. Any additional metadata to include when reconnecting.
+   * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.bigtable.v2.SessionRefreshConfig.MetadataOrBuilder getMetadataOrBuilder( + int index) { + return metadata_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getOptimizedOpenRequest()); + } + for (int i = 0; i < metadata_.size(); i++) { + output.writeMessage(2, metadata_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOptimizedOpenRequest()); + } + for (int i = 0; i < metadata_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metadata_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.SessionRefreshConfig)) { + return super.equals(obj); + } + com.google.bigtable.v2.SessionRefreshConfig other = + (com.google.bigtable.v2.SessionRefreshConfig) obj; + + if (hasOptimizedOpenRequest() != other.hasOptimizedOpenRequest()) return false; + if (hasOptimizedOpenRequest()) { + if (!getOptimizedOpenRequest().equals(other.getOptimizedOpenRequest())) return false; + } + if (!getMetadataList().equals(other.getMetadataList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOptimizedOpenRequest()) { + hash = (37 * hash) + OPTIMIZED_OPEN_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getOptimizedOpenRequest().hashCode(); + } + if (getMetadataCount() > 0) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadataList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.SessionRefreshConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionRefreshConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRefreshConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionRefreshConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRefreshConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionRefreshConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRefreshConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionRefreshConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRefreshConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionRefreshConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRefreshConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionRefreshConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.SessionRefreshConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionRefreshConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.SessionRefreshConfig) + com.google.bigtable.v2.SessionRefreshConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRefreshConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRefreshConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionRefreshConfig.class, + com.google.bigtable.v2.SessionRefreshConfig.Builder.class); + } + + // Construct using com.google.bigtable.v2.SessionRefreshConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetOptimizedOpenRequestFieldBuilder(); + internalGetMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + optimizedOpenRequest_ = null; + if (optimizedOpenRequestBuilder_ != null) { + optimizedOpenRequestBuilder_.dispose(); + optimizedOpenRequestBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = java.util.Collections.emptyList(); + } else { + metadata_ = null; + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRefreshConfig_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionRefreshConfig getDefaultInstanceForType() { + return com.google.bigtable.v2.SessionRefreshConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.SessionRefreshConfig build() { + com.google.bigtable.v2.SessionRefreshConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionRefreshConfig buildPartial() { + com.google.bigtable.v2.SessionRefreshConfig result = + new com.google.bigtable.v2.SessionRefreshConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.bigtable.v2.SessionRefreshConfig result) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + metadata_ = java.util.Collections.unmodifiableList(metadata_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + } + + private void buildPartial0(com.google.bigtable.v2.SessionRefreshConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.optimizedOpenRequest_ = + optimizedOpenRequestBuilder_ == null + ? optimizedOpenRequest_ + : optimizedOpenRequestBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.SessionRefreshConfig) { + return mergeFrom((com.google.bigtable.v2.SessionRefreshConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.SessionRefreshConfig other) { + if (other == com.google.bigtable.v2.SessionRefreshConfig.getDefaultInstance()) return this; + if (other.hasOptimizedOpenRequest()) { + mergeOptimizedOpenRequest(other.getOptimizedOpenRequest()); + } + if (metadataBuilder_ == null) { + if (!other.metadata_.isEmpty()) { + if (metadata_.isEmpty()) { + metadata_ = other.metadata_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMetadataIsMutable(); + metadata_.addAll(other.metadata_); + } + onChanged(); + } + } else { + if (!other.metadata_.isEmpty()) { + if (metadataBuilder_.isEmpty()) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + metadata_ = other.metadata_; + bitField0_ = (bitField0_ & ~0x00000002); + metadataBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMetadataFieldBuilder() + : null; + } else { + metadataBuilder_.addAllMessages(other.metadata_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetOptimizedOpenRequestFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.bigtable.v2.SessionRefreshConfig.Metadata m = + input.readMessage( + com.google.bigtable.v2.SessionRefreshConfig.Metadata.parser(), + extensionRegistry); + if (metadataBuilder_ == null) { + ensureMetadataIsMutable(); + metadata_.add(m); + } else { + metadataBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.bigtable.v2.OpenSessionRequest optimizedOpenRequest_; + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.OpenSessionRequest, + com.google.bigtable.v2.OpenSessionRequest.Builder, + com.google.bigtable.v2.OpenSessionRequestOrBuilder> + optimizedOpenRequestBuilder_; + + /** + * + * + *
+     * An optimized Open request that the session may use on a retry when
+     * establishing this session again. This can be sent from the AFE to
+     * avoid certain work e.g. encoding a query plan for BTQL.
+     * 
+ * + * .google.bigtable.v2.OpenSessionRequest optimized_open_request = 1; + * + * @return Whether the optimizedOpenRequest field is set. + */ + public boolean hasOptimizedOpenRequest() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * An optimized Open request that the session may use on a retry when
+     * establishing this session again. This can be sent from the AFE to
+     * avoid certain work e.g. encoding a query plan for BTQL.
+     * 
+ * + * .google.bigtable.v2.OpenSessionRequest optimized_open_request = 1; + * + * @return The optimizedOpenRequest. + */ + public com.google.bigtable.v2.OpenSessionRequest getOptimizedOpenRequest() { + if (optimizedOpenRequestBuilder_ == null) { + return optimizedOpenRequest_ == null + ? com.google.bigtable.v2.OpenSessionRequest.getDefaultInstance() + : optimizedOpenRequest_; + } else { + return optimizedOpenRequestBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * An optimized Open request that the session may use on a retry when
+     * establishing this session again. This can be sent from the AFE to
+     * avoid certain work e.g. encoding a query plan for BTQL.
+     * 
+ * + * .google.bigtable.v2.OpenSessionRequest optimized_open_request = 1; + */ + public Builder setOptimizedOpenRequest(com.google.bigtable.v2.OpenSessionRequest value) { + if (optimizedOpenRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + optimizedOpenRequest_ = value; + } else { + optimizedOpenRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optimized Open request that the session may use on a retry when
+     * establishing this session again. This can be sent from the AFE to
+     * avoid certain work e.g. encoding a query plan for BTQL.
+     * 
+ * + * .google.bigtable.v2.OpenSessionRequest optimized_open_request = 1; + */ + public Builder setOptimizedOpenRequest( + com.google.bigtable.v2.OpenSessionRequest.Builder builderForValue) { + if (optimizedOpenRequestBuilder_ == null) { + optimizedOpenRequest_ = builderForValue.build(); + } else { + optimizedOpenRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optimized Open request that the session may use on a retry when
+     * establishing this session again. This can be sent from the AFE to
+     * avoid certain work e.g. encoding a query plan for BTQL.
+     * 
+ * + * .google.bigtable.v2.OpenSessionRequest optimized_open_request = 1; + */ + public Builder mergeOptimizedOpenRequest(com.google.bigtable.v2.OpenSessionRequest value) { + if (optimizedOpenRequestBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && optimizedOpenRequest_ != null + && optimizedOpenRequest_ + != com.google.bigtable.v2.OpenSessionRequest.getDefaultInstance()) { + getOptimizedOpenRequestBuilder().mergeFrom(value); + } else { + optimizedOpenRequest_ = value; + } + } else { + optimizedOpenRequestBuilder_.mergeFrom(value); + } + if (optimizedOpenRequest_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * An optimized Open request that the session may use on a retry when
+     * establishing this session again. This can be sent from the AFE to
+     * avoid certain work e.g. encoding a query plan for BTQL.
+     * 
+ * + * .google.bigtable.v2.OpenSessionRequest optimized_open_request = 1; + */ + public Builder clearOptimizedOpenRequest() { + bitField0_ = (bitField0_ & ~0x00000001); + optimizedOpenRequest_ = null; + if (optimizedOpenRequestBuilder_ != null) { + optimizedOpenRequestBuilder_.dispose(); + optimizedOpenRequestBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * An optimized Open request that the session may use on a retry when
+     * establishing this session again. This can be sent from the AFE to
+     * avoid certain work e.g. encoding a query plan for BTQL.
+     * 
+ * + * .google.bigtable.v2.OpenSessionRequest optimized_open_request = 1; + */ + public com.google.bigtable.v2.OpenSessionRequest.Builder getOptimizedOpenRequestBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetOptimizedOpenRequestFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * An optimized Open request that the session may use on a retry when
+     * establishing this session again. This can be sent from the AFE to
+     * avoid certain work e.g. encoding a query plan for BTQL.
+     * 
+ * + * .google.bigtable.v2.OpenSessionRequest optimized_open_request = 1; + */ + public com.google.bigtable.v2.OpenSessionRequestOrBuilder getOptimizedOpenRequestOrBuilder() { + if (optimizedOpenRequestBuilder_ != null) { + return optimizedOpenRequestBuilder_.getMessageOrBuilder(); + } else { + return optimizedOpenRequest_ == null + ? com.google.bigtable.v2.OpenSessionRequest.getDefaultInstance() + : optimizedOpenRequest_; + } + } + + /** + * + * + *
+     * An optimized Open request that the session may use on a retry when
+     * establishing this session again. This can be sent from the AFE to
+     * avoid certain work e.g. encoding a query plan for BTQL.
+     * 
+ * + * .google.bigtable.v2.OpenSessionRequest optimized_open_request = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.OpenSessionRequest, + com.google.bigtable.v2.OpenSessionRequest.Builder, + com.google.bigtable.v2.OpenSessionRequestOrBuilder> + internalGetOptimizedOpenRequestFieldBuilder() { + if (optimizedOpenRequestBuilder_ == null) { + optimizedOpenRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.OpenSessionRequest, + com.google.bigtable.v2.OpenSessionRequest.Builder, + com.google.bigtable.v2.OpenSessionRequestOrBuilder>( + getOptimizedOpenRequest(), getParentForChildren(), isClean()); + optimizedOpenRequest_ = null; + } + return optimizedOpenRequestBuilder_; + } + + private java.util.List metadata_ = + java.util.Collections.emptyList(); + + private void ensureMetadataIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + metadata_ = + new java.util.ArrayList( + metadata_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.bigtable.v2.SessionRefreshConfig.Metadata, + com.google.bigtable.v2.SessionRefreshConfig.Metadata.Builder, + com.google.bigtable.v2.SessionRefreshConfig.MetadataOrBuilder> + metadataBuilder_; + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getMetadataList() { + if (metadataBuilder_ == null) { + return java.util.Collections.unmodifiableList(metadata_); + } else { + return metadataBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getMetadataCount() { + if (metadataBuilder_ == null) { + return metadata_.size(); + } else { + return metadataBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.bigtable.v2.SessionRefreshConfig.Metadata getMetadata(int index) { + if (metadataBuilder_ == null) { + return metadata_.get(index); + } else { + return metadataBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMetadata( + int index, com.google.bigtable.v2.SessionRefreshConfig.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataIsMutable(); + metadata_.set(index, value); + onChanged(); + } else { + metadataBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMetadata( + int index, com.google.bigtable.v2.SessionRefreshConfig.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + ensureMetadataIsMutable(); + metadata_.set(index, builderForValue.build()); + onChanged(); + } else { + metadataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMetadata(com.google.bigtable.v2.SessionRefreshConfig.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataIsMutable(); + metadata_.add(value); + onChanged(); + } else { + metadataBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMetadata( + int index, com.google.bigtable.v2.SessionRefreshConfig.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataIsMutable(); + metadata_.add(index, value); + onChanged(); + } else { + metadataBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMetadata( + com.google.bigtable.v2.SessionRefreshConfig.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + ensureMetadataIsMutable(); + metadata_.add(builderForValue.build()); + onChanged(); + } else { + metadataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMetadata( + int index, com.google.bigtable.v2.SessionRefreshConfig.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + ensureMetadataIsMutable(); + metadata_.add(index, builderForValue.build()); + onChanged(); + } else { + metadataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllMetadata( + java.lang.Iterable values) { + if (metadataBuilder_ == null) { + ensureMetadataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metadata_); + onChanged(); + } else { + metadataBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + metadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeMetadata(int index) { + if (metadataBuilder_ == null) { + ensureMetadataIsMutable(); + metadata_.remove(index); + onChanged(); + } else { + metadataBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.bigtable.v2.SessionRefreshConfig.Metadata.Builder getMetadataBuilder( + int index) { + return internalGetMetadataFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.bigtable.v2.SessionRefreshConfig.MetadataOrBuilder getMetadataOrBuilder( + int index) { + if (metadataBuilder_ == null) { + return metadata_.get(index); + } else { + return metadataBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getMetadataOrBuilderList() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metadata_); + } + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.bigtable.v2.SessionRefreshConfig.Metadata.Builder addMetadataBuilder() { + return internalGetMetadataFieldBuilder() + .addBuilder(com.google.bigtable.v2.SessionRefreshConfig.Metadata.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.bigtable.v2.SessionRefreshConfig.Metadata.Builder addMetadataBuilder( + int index) { + return internalGetMetadataFieldBuilder() + .addBuilder( + index, com.google.bigtable.v2.SessionRefreshConfig.Metadata.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Any additional metadata to include when reconnecting.
+     * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getMetadataBuilderList() { + return internalGetMetadataFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.bigtable.v2.SessionRefreshConfig.Metadata, + com.google.bigtable.v2.SessionRefreshConfig.Metadata.Builder, + com.google.bigtable.v2.SessionRefreshConfig.MetadataOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.bigtable.v2.SessionRefreshConfig.Metadata, + com.google.bigtable.v2.SessionRefreshConfig.Metadata.Builder, + com.google.bigtable.v2.SessionRefreshConfig.MetadataOrBuilder>( + metadata_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.SessionRefreshConfig) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.SessionRefreshConfig) + private static final com.google.bigtable.v2.SessionRefreshConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.SessionRefreshConfig(); + } + + public static com.google.bigtable.v2.SessionRefreshConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionRefreshConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionRefreshConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRefreshConfigOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRefreshConfigOrBuilder.java new file mode 100644 index 0000000000..52d3a5f803 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRefreshConfigOrBuilder.java @@ -0,0 +1,137 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface SessionRefreshConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.SessionRefreshConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * An optimized Open request that the session may use on a retry when
+   * establishing this session again. This can be sent from the AFE to
+   * avoid certain work e.g. encoding a query plan for BTQL.
+   * 
+ * + * .google.bigtable.v2.OpenSessionRequest optimized_open_request = 1; + * + * @return Whether the optimizedOpenRequest field is set. + */ + boolean hasOptimizedOpenRequest(); + + /** + * + * + *
+   * An optimized Open request that the session may use on a retry when
+   * establishing this session again. This can be sent from the AFE to
+   * avoid certain work e.g. encoding a query plan for BTQL.
+   * 
+ * + * .google.bigtable.v2.OpenSessionRequest optimized_open_request = 1; + * + * @return The optimizedOpenRequest. + */ + com.google.bigtable.v2.OpenSessionRequest getOptimizedOpenRequest(); + + /** + * + * + *
+   * An optimized Open request that the session may use on a retry when
+   * establishing this session again. This can be sent from the AFE to
+   * avoid certain work e.g. encoding a query plan for BTQL.
+   * 
+ * + * .google.bigtable.v2.OpenSessionRequest optimized_open_request = 1; + */ + com.google.bigtable.v2.OpenSessionRequestOrBuilder getOptimizedOpenRequestOrBuilder(); + + /** + * + * + *
+   * Output only. Any additional metadata to include when reconnecting.
+   * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getMetadataList(); + + /** + * + * + *
+   * Output only. Any additional metadata to include when reconnecting.
+   * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.bigtable.v2.SessionRefreshConfig.Metadata getMetadata(int index); + + /** + * + * + *
+   * Output only. Any additional metadata to include when reconnecting.
+   * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getMetadataCount(); + + /** + * + * + *
+   * Output only. Any additional metadata to include when reconnecting.
+   * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getMetadataOrBuilderList(); + + /** + * + * + *
+   * Output only. Any additional metadata to include when reconnecting.
+   * 
+ * + * + * repeated .google.bigtable.v2.SessionRefreshConfig.Metadata metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.bigtable.v2.SessionRefreshConfig.MetadataOrBuilder getMetadataOrBuilder(int index); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRequest.java new file mode 100644 index 0000000000..1c625a325c --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRequest.java @@ -0,0 +1,1143 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionRequest} + */ +@com.google.protobuf.Generated +public final class SessionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.SessionRequest) + SessionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionRequest"); + } + + // Use SessionRequest.newBuilder() to construct. + private SessionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionRequest.class, + com.google.bigtable.v2.SessionRequest.Builder.class); + } + + private int payloadCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object payload_; + + public enum PayloadCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + OPEN_SESSION(1), + CLOSE_SESSION(2), + VIRTUAL_RPC(3), + PAYLOAD_NOT_SET(0); + private final int value; + + private PayloadCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PayloadCase valueOf(int value) { + return forNumber(value); + } + + public static PayloadCase forNumber(int value) { + switch (value) { + case 1: + return OPEN_SESSION; + case 2: + return CLOSE_SESSION; + case 3: + return VIRTUAL_RPC; + case 0: + return PAYLOAD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public static final int OPEN_SESSION_FIELD_NUMBER = 1; + + /** + * .google.bigtable.v2.OpenSessionRequest open_session = 1; + * + * @return Whether the openSession field is set. + */ + @java.lang.Override + public boolean hasOpenSession() { + return payloadCase_ == 1; + } + + /** + * .google.bigtable.v2.OpenSessionRequest open_session = 1; + * + * @return The openSession. + */ + @java.lang.Override + public com.google.bigtable.v2.OpenSessionRequest getOpenSession() { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.OpenSessionRequest) payload_; + } + return com.google.bigtable.v2.OpenSessionRequest.getDefaultInstance(); + } + + /** .google.bigtable.v2.OpenSessionRequest open_session = 1; */ + @java.lang.Override + public com.google.bigtable.v2.OpenSessionRequestOrBuilder getOpenSessionOrBuilder() { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.OpenSessionRequest) payload_; + } + return com.google.bigtable.v2.OpenSessionRequest.getDefaultInstance(); + } + + public static final int CLOSE_SESSION_FIELD_NUMBER = 2; + + /** + * .google.bigtable.v2.CloseSessionRequest close_session = 2; + * + * @return Whether the closeSession field is set. + */ + @java.lang.Override + public boolean hasCloseSession() { + return payloadCase_ == 2; + } + + /** + * .google.bigtable.v2.CloseSessionRequest close_session = 2; + * + * @return The closeSession. + */ + @java.lang.Override + public com.google.bigtable.v2.CloseSessionRequest getCloseSession() { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.CloseSessionRequest) payload_; + } + return com.google.bigtable.v2.CloseSessionRequest.getDefaultInstance(); + } + + /** .google.bigtable.v2.CloseSessionRequest close_session = 2; */ + @java.lang.Override + public com.google.bigtable.v2.CloseSessionRequestOrBuilder getCloseSessionOrBuilder() { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.CloseSessionRequest) payload_; + } + return com.google.bigtable.v2.CloseSessionRequest.getDefaultInstance(); + } + + public static final int VIRTUAL_RPC_FIELD_NUMBER = 3; + + /** + * .google.bigtable.v2.VirtualRpcRequest virtual_rpc = 3; + * + * @return Whether the virtualRpc field is set. + */ + @java.lang.Override + public boolean hasVirtualRpc() { + return payloadCase_ == 3; + } + + /** + * .google.bigtable.v2.VirtualRpcRequest virtual_rpc = 3; + * + * @return The virtualRpc. + */ + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcRequest getVirtualRpc() { + if (payloadCase_ == 3) { + return (com.google.bigtable.v2.VirtualRpcRequest) payload_; + } + return com.google.bigtable.v2.VirtualRpcRequest.getDefaultInstance(); + } + + /** .google.bigtable.v2.VirtualRpcRequest virtual_rpc = 3; */ + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcRequestOrBuilder getVirtualRpcOrBuilder() { + if (payloadCase_ == 3) { + return (com.google.bigtable.v2.VirtualRpcRequest) payload_; + } + return com.google.bigtable.v2.VirtualRpcRequest.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (payloadCase_ == 1) { + output.writeMessage(1, (com.google.bigtable.v2.OpenSessionRequest) payload_); + } + if (payloadCase_ == 2) { + output.writeMessage(2, (com.google.bigtable.v2.CloseSessionRequest) payload_); + } + if (payloadCase_ == 3) { + output.writeMessage(3, (com.google.bigtable.v2.VirtualRpcRequest) payload_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (payloadCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.bigtable.v2.OpenSessionRequest) payload_); + } + if (payloadCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.bigtable.v2.CloseSessionRequest) payload_); + } + if (payloadCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.bigtable.v2.VirtualRpcRequest) payload_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.SessionRequest)) { + return super.equals(obj); + } + com.google.bigtable.v2.SessionRequest other = (com.google.bigtable.v2.SessionRequest) obj; + + if (!getPayloadCase().equals(other.getPayloadCase())) return false; + switch (payloadCase_) { + case 1: + if (!getOpenSession().equals(other.getOpenSession())) return false; + break; + case 2: + if (!getCloseSession().equals(other.getCloseSession())) return false; + break; + case 3: + if (!getVirtualRpc().equals(other.getVirtualRpc())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (payloadCase_) { + case 1: + hash = (37 * hash) + OPEN_SESSION_FIELD_NUMBER; + hash = (53 * hash) + getOpenSession().hashCode(); + break; + case 2: + hash = (37 * hash) + CLOSE_SESSION_FIELD_NUMBER; + hash = (53 * hash) + getCloseSession().hashCode(); + break; + case 3: + hash = (37 * hash) + VIRTUAL_RPC_FIELD_NUMBER; + hash = (53 * hash) + getVirtualRpc().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.SessionRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRequest parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.SessionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.SessionRequest) + com.google.bigtable.v2.SessionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionRequest.class, + com.google.bigtable.v2.SessionRequest.Builder.class); + } + + // Construct using com.google.bigtable.v2.SessionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (openSessionBuilder_ != null) { + openSessionBuilder_.clear(); + } + if (closeSessionBuilder_ != null) { + closeSessionBuilder_.clear(); + } + if (virtualRpcBuilder_ != null) { + virtualRpcBuilder_.clear(); + } + payloadCase_ = 0; + payload_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionRequest getDefaultInstanceForType() { + return com.google.bigtable.v2.SessionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.SessionRequest build() { + com.google.bigtable.v2.SessionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionRequest buildPartial() { + com.google.bigtable.v2.SessionRequest result = + new com.google.bigtable.v2.SessionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.SessionRequest result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.bigtable.v2.SessionRequest result) { + result.payloadCase_ = payloadCase_; + result.payload_ = this.payload_; + if (payloadCase_ == 1 && openSessionBuilder_ != null) { + result.payload_ = openSessionBuilder_.build(); + } + if (payloadCase_ == 2 && closeSessionBuilder_ != null) { + result.payload_ = closeSessionBuilder_.build(); + } + if (payloadCase_ == 3 && virtualRpcBuilder_ != null) { + result.payload_ = virtualRpcBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.SessionRequest) { + return mergeFrom((com.google.bigtable.v2.SessionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.SessionRequest other) { + if (other == com.google.bigtable.v2.SessionRequest.getDefaultInstance()) return this; + switch (other.getPayloadCase()) { + case OPEN_SESSION: + { + mergeOpenSession(other.getOpenSession()); + break; + } + case CLOSE_SESSION: + { + mergeCloseSession(other.getCloseSession()); + break; + } + case VIRTUAL_RPC: + { + mergeVirtualRpc(other.getVirtualRpc()); + break; + } + case PAYLOAD_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetOpenSessionFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCloseSessionFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetVirtualRpcFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int payloadCase_ = 0; + private java.lang.Object payload_; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public Builder clearPayload() { + payloadCase_ = 0; + payload_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.OpenSessionRequest, + com.google.bigtable.v2.OpenSessionRequest.Builder, + com.google.bigtable.v2.OpenSessionRequestOrBuilder> + openSessionBuilder_; + + /** + * .google.bigtable.v2.OpenSessionRequest open_session = 1; + * + * @return Whether the openSession field is set. + */ + @java.lang.Override + public boolean hasOpenSession() { + return payloadCase_ == 1; + } + + /** + * .google.bigtable.v2.OpenSessionRequest open_session = 1; + * + * @return The openSession. + */ + @java.lang.Override + public com.google.bigtable.v2.OpenSessionRequest getOpenSession() { + if (openSessionBuilder_ == null) { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.OpenSessionRequest) payload_; + } + return com.google.bigtable.v2.OpenSessionRequest.getDefaultInstance(); + } else { + if (payloadCase_ == 1) { + return openSessionBuilder_.getMessage(); + } + return com.google.bigtable.v2.OpenSessionRequest.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.OpenSessionRequest open_session = 1; */ + public Builder setOpenSession(com.google.bigtable.v2.OpenSessionRequest value) { + if (openSessionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + openSessionBuilder_.setMessage(value); + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.OpenSessionRequest open_session = 1; */ + public Builder setOpenSession( + com.google.bigtable.v2.OpenSessionRequest.Builder builderForValue) { + if (openSessionBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + openSessionBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.OpenSessionRequest open_session = 1; */ + public Builder mergeOpenSession(com.google.bigtable.v2.OpenSessionRequest value) { + if (openSessionBuilder_ == null) { + if (payloadCase_ == 1 + && payload_ != com.google.bigtable.v2.OpenSessionRequest.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.OpenSessionRequest.newBuilder( + (com.google.bigtable.v2.OpenSessionRequest) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 1) { + openSessionBuilder_.mergeFrom(value); + } else { + openSessionBuilder_.setMessage(value); + } + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.OpenSessionRequest open_session = 1; */ + public Builder clearOpenSession() { + if (openSessionBuilder_ == null) { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + } + openSessionBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.OpenSessionRequest open_session = 1; */ + public com.google.bigtable.v2.OpenSessionRequest.Builder getOpenSessionBuilder() { + return internalGetOpenSessionFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.OpenSessionRequest open_session = 1; */ + @java.lang.Override + public com.google.bigtable.v2.OpenSessionRequestOrBuilder getOpenSessionOrBuilder() { + if ((payloadCase_ == 1) && (openSessionBuilder_ != null)) { + return openSessionBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.OpenSessionRequest) payload_; + } + return com.google.bigtable.v2.OpenSessionRequest.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.OpenSessionRequest open_session = 1; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.OpenSessionRequest, + com.google.bigtable.v2.OpenSessionRequest.Builder, + com.google.bigtable.v2.OpenSessionRequestOrBuilder> + internalGetOpenSessionFieldBuilder() { + if (openSessionBuilder_ == null) { + if (!(payloadCase_ == 1)) { + payload_ = com.google.bigtable.v2.OpenSessionRequest.getDefaultInstance(); + } + openSessionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.OpenSessionRequest, + com.google.bigtable.v2.OpenSessionRequest.Builder, + com.google.bigtable.v2.OpenSessionRequestOrBuilder>( + (com.google.bigtable.v2.OpenSessionRequest) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 1; + onChanged(); + return openSessionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.CloseSessionRequest, + com.google.bigtable.v2.CloseSessionRequest.Builder, + com.google.bigtable.v2.CloseSessionRequestOrBuilder> + closeSessionBuilder_; + + /** + * .google.bigtable.v2.CloseSessionRequest close_session = 2; + * + * @return Whether the closeSession field is set. + */ + @java.lang.Override + public boolean hasCloseSession() { + return payloadCase_ == 2; + } + + /** + * .google.bigtable.v2.CloseSessionRequest close_session = 2; + * + * @return The closeSession. + */ + @java.lang.Override + public com.google.bigtable.v2.CloseSessionRequest getCloseSession() { + if (closeSessionBuilder_ == null) { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.CloseSessionRequest) payload_; + } + return com.google.bigtable.v2.CloseSessionRequest.getDefaultInstance(); + } else { + if (payloadCase_ == 2) { + return closeSessionBuilder_.getMessage(); + } + return com.google.bigtable.v2.CloseSessionRequest.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.CloseSessionRequest close_session = 2; */ + public Builder setCloseSession(com.google.bigtable.v2.CloseSessionRequest value) { + if (closeSessionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + closeSessionBuilder_.setMessage(value); + } + payloadCase_ = 2; + return this; + } + + /** .google.bigtable.v2.CloseSessionRequest close_session = 2; */ + public Builder setCloseSession( + com.google.bigtable.v2.CloseSessionRequest.Builder builderForValue) { + if (closeSessionBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + closeSessionBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 2; + return this; + } + + /** .google.bigtable.v2.CloseSessionRequest close_session = 2; */ + public Builder mergeCloseSession(com.google.bigtable.v2.CloseSessionRequest value) { + if (closeSessionBuilder_ == null) { + if (payloadCase_ == 2 + && payload_ != com.google.bigtable.v2.CloseSessionRequest.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.CloseSessionRequest.newBuilder( + (com.google.bigtable.v2.CloseSessionRequest) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 2) { + closeSessionBuilder_.mergeFrom(value); + } else { + closeSessionBuilder_.setMessage(value); + } + } + payloadCase_ = 2; + return this; + } + + /** .google.bigtable.v2.CloseSessionRequest close_session = 2; */ + public Builder clearCloseSession() { + if (closeSessionBuilder_ == null) { + if (payloadCase_ == 2) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 2) { + payloadCase_ = 0; + payload_ = null; + } + closeSessionBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.CloseSessionRequest close_session = 2; */ + public com.google.bigtable.v2.CloseSessionRequest.Builder getCloseSessionBuilder() { + return internalGetCloseSessionFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.CloseSessionRequest close_session = 2; */ + @java.lang.Override + public com.google.bigtable.v2.CloseSessionRequestOrBuilder getCloseSessionOrBuilder() { + if ((payloadCase_ == 2) && (closeSessionBuilder_ != null)) { + return closeSessionBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.CloseSessionRequest) payload_; + } + return com.google.bigtable.v2.CloseSessionRequest.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.CloseSessionRequest close_session = 2; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.CloseSessionRequest, + com.google.bigtable.v2.CloseSessionRequest.Builder, + com.google.bigtable.v2.CloseSessionRequestOrBuilder> + internalGetCloseSessionFieldBuilder() { + if (closeSessionBuilder_ == null) { + if (!(payloadCase_ == 2)) { + payload_ = com.google.bigtable.v2.CloseSessionRequest.getDefaultInstance(); + } + closeSessionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.CloseSessionRequest, + com.google.bigtable.v2.CloseSessionRequest.Builder, + com.google.bigtable.v2.CloseSessionRequestOrBuilder>( + (com.google.bigtable.v2.CloseSessionRequest) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 2; + onChanged(); + return closeSessionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.VirtualRpcRequest, + com.google.bigtable.v2.VirtualRpcRequest.Builder, + com.google.bigtable.v2.VirtualRpcRequestOrBuilder> + virtualRpcBuilder_; + + /** + * .google.bigtable.v2.VirtualRpcRequest virtual_rpc = 3; + * + * @return Whether the virtualRpc field is set. + */ + @java.lang.Override + public boolean hasVirtualRpc() { + return payloadCase_ == 3; + } + + /** + * .google.bigtable.v2.VirtualRpcRequest virtual_rpc = 3; + * + * @return The virtualRpc. + */ + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcRequest getVirtualRpc() { + if (virtualRpcBuilder_ == null) { + if (payloadCase_ == 3) { + return (com.google.bigtable.v2.VirtualRpcRequest) payload_; + } + return com.google.bigtable.v2.VirtualRpcRequest.getDefaultInstance(); + } else { + if (payloadCase_ == 3) { + return virtualRpcBuilder_.getMessage(); + } + return com.google.bigtable.v2.VirtualRpcRequest.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.VirtualRpcRequest virtual_rpc = 3; */ + public Builder setVirtualRpc(com.google.bigtable.v2.VirtualRpcRequest value) { + if (virtualRpcBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + virtualRpcBuilder_.setMessage(value); + } + payloadCase_ = 3; + return this; + } + + /** .google.bigtable.v2.VirtualRpcRequest virtual_rpc = 3; */ + public Builder setVirtualRpc(com.google.bigtable.v2.VirtualRpcRequest.Builder builderForValue) { + if (virtualRpcBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + virtualRpcBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 3; + return this; + } + + /** .google.bigtable.v2.VirtualRpcRequest virtual_rpc = 3; */ + public Builder mergeVirtualRpc(com.google.bigtable.v2.VirtualRpcRequest value) { + if (virtualRpcBuilder_ == null) { + if (payloadCase_ == 3 + && payload_ != com.google.bigtable.v2.VirtualRpcRequest.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.VirtualRpcRequest.newBuilder( + (com.google.bigtable.v2.VirtualRpcRequest) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 3) { + virtualRpcBuilder_.mergeFrom(value); + } else { + virtualRpcBuilder_.setMessage(value); + } + } + payloadCase_ = 3; + return this; + } + + /** .google.bigtable.v2.VirtualRpcRequest virtual_rpc = 3; */ + public Builder clearVirtualRpc() { + if (virtualRpcBuilder_ == null) { + if (payloadCase_ == 3) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 3) { + payloadCase_ = 0; + payload_ = null; + } + virtualRpcBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.VirtualRpcRequest virtual_rpc = 3; */ + public com.google.bigtable.v2.VirtualRpcRequest.Builder getVirtualRpcBuilder() { + return internalGetVirtualRpcFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.VirtualRpcRequest virtual_rpc = 3; */ + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcRequestOrBuilder getVirtualRpcOrBuilder() { + if ((payloadCase_ == 3) && (virtualRpcBuilder_ != null)) { + return virtualRpcBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 3) { + return (com.google.bigtable.v2.VirtualRpcRequest) payload_; + } + return com.google.bigtable.v2.VirtualRpcRequest.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.VirtualRpcRequest virtual_rpc = 3; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.VirtualRpcRequest, + com.google.bigtable.v2.VirtualRpcRequest.Builder, + com.google.bigtable.v2.VirtualRpcRequestOrBuilder> + internalGetVirtualRpcFieldBuilder() { + if (virtualRpcBuilder_ == null) { + if (!(payloadCase_ == 3)) { + payload_ = com.google.bigtable.v2.VirtualRpcRequest.getDefaultInstance(); + } + virtualRpcBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.VirtualRpcRequest, + com.google.bigtable.v2.VirtualRpcRequest.Builder, + com.google.bigtable.v2.VirtualRpcRequestOrBuilder>( + (com.google.bigtable.v2.VirtualRpcRequest) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 3; + onChanged(); + return virtualRpcBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.SessionRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.SessionRequest) + private static final com.google.bigtable.v2.SessionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.SessionRequest(); + } + + public static com.google.bigtable.v2.SessionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRequestOrBuilder.java new file mode 100644 index 0000000000..ed05d333fb --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRequestOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface SessionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.SessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.bigtable.v2.OpenSessionRequest open_session = 1; + * + * @return Whether the openSession field is set. + */ + boolean hasOpenSession(); + + /** + * .google.bigtable.v2.OpenSessionRequest open_session = 1; + * + * @return The openSession. + */ + com.google.bigtable.v2.OpenSessionRequest getOpenSession(); + + /** .google.bigtable.v2.OpenSessionRequest open_session = 1; */ + com.google.bigtable.v2.OpenSessionRequestOrBuilder getOpenSessionOrBuilder(); + + /** + * .google.bigtable.v2.CloseSessionRequest close_session = 2; + * + * @return Whether the closeSession field is set. + */ + boolean hasCloseSession(); + + /** + * .google.bigtable.v2.CloseSessionRequest close_session = 2; + * + * @return The closeSession. + */ + com.google.bigtable.v2.CloseSessionRequest getCloseSession(); + + /** .google.bigtable.v2.CloseSessionRequest close_session = 2; */ + com.google.bigtable.v2.CloseSessionRequestOrBuilder getCloseSessionOrBuilder(); + + /** + * .google.bigtable.v2.VirtualRpcRequest virtual_rpc = 3; + * + * @return Whether the virtualRpc field is set. + */ + boolean hasVirtualRpc(); + + /** + * .google.bigtable.v2.VirtualRpcRequest virtual_rpc = 3; + * + * @return The virtualRpc. + */ + com.google.bigtable.v2.VirtualRpcRequest getVirtualRpc(); + + /** .google.bigtable.v2.VirtualRpcRequest virtual_rpc = 3; */ + com.google.bigtable.v2.VirtualRpcRequestOrBuilder getVirtualRpcOrBuilder(); + + com.google.bigtable.v2.SessionRequest.PayloadCase getPayloadCase(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRequestStats.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRequestStats.java new file mode 100644 index 0000000000..7c0c962d5e --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRequestStats.java @@ -0,0 +1,698 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionRequestStats} + */ +@com.google.protobuf.Generated +public final class SessionRequestStats extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.SessionRequestStats) + SessionRequestStatsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionRequestStats"); + } + + // Use SessionRequestStats.newBuilder() to construct. + private SessionRequestStats(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionRequestStats() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRequestStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRequestStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionRequestStats.class, + com.google.bigtable.v2.SessionRequestStats.Builder.class); + } + + private int bitField0_; + public static final int BACKEND_LATENCY_FIELD_NUMBER = 1; + private com.google.protobuf.Duration backendLatency_; + + /** + * + * + *
+   * Backend (critical section) latency for the request.
+   * 
+ * + * .google.protobuf.Duration backend_latency = 1; + * + * @return Whether the backendLatency field is set. + */ + @java.lang.Override + public boolean hasBackendLatency() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Backend (critical section) latency for the request.
+   * 
+ * + * .google.protobuf.Duration backend_latency = 1; + * + * @return The backendLatency. + */ + @java.lang.Override + public com.google.protobuf.Duration getBackendLatency() { + return backendLatency_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : backendLatency_; + } + + /** + * + * + *
+   * Backend (critical section) latency for the request.
+   * 
+ * + * .google.protobuf.Duration backend_latency = 1; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getBackendLatencyOrBuilder() { + return backendLatency_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : backendLatency_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getBackendLatency()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBackendLatency()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.SessionRequestStats)) { + return super.equals(obj); + } + com.google.bigtable.v2.SessionRequestStats other = + (com.google.bigtable.v2.SessionRequestStats) obj; + + if (hasBackendLatency() != other.hasBackendLatency()) return false; + if (hasBackendLatency()) { + if (!getBackendLatency().equals(other.getBackendLatency())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBackendLatency()) { + hash = (37 * hash) + BACKEND_LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getBackendLatency().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.SessionRequestStats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionRequestStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRequestStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionRequestStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRequestStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionRequestStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRequestStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionRequestStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRequestStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionRequestStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionRequestStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionRequestStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.SessionRequestStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionRequestStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.SessionRequestStats) + com.google.bigtable.v2.SessionRequestStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRequestStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRequestStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionRequestStats.class, + com.google.bigtable.v2.SessionRequestStats.Builder.class); + } + + // Construct using com.google.bigtable.v2.SessionRequestStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBackendLatencyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + backendLatency_ = null; + if (backendLatencyBuilder_ != null) { + backendLatencyBuilder_.dispose(); + backendLatencyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionRequestStats_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionRequestStats getDefaultInstanceForType() { + return com.google.bigtable.v2.SessionRequestStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.SessionRequestStats build() { + com.google.bigtable.v2.SessionRequestStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionRequestStats buildPartial() { + com.google.bigtable.v2.SessionRequestStats result = + new com.google.bigtable.v2.SessionRequestStats(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.SessionRequestStats result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.backendLatency_ = + backendLatencyBuilder_ == null ? backendLatency_ : backendLatencyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.SessionRequestStats) { + return mergeFrom((com.google.bigtable.v2.SessionRequestStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.SessionRequestStats other) { + if (other == com.google.bigtable.v2.SessionRequestStats.getDefaultInstance()) return this; + if (other.hasBackendLatency()) { + mergeBackendLatency(other.getBackendLatency()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetBackendLatencyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Duration backendLatency_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + backendLatencyBuilder_; + + /** + * + * + *
+     * Backend (critical section) latency for the request.
+     * 
+ * + * .google.protobuf.Duration backend_latency = 1; + * + * @return Whether the backendLatency field is set. + */ + public boolean hasBackendLatency() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Backend (critical section) latency for the request.
+     * 
+ * + * .google.protobuf.Duration backend_latency = 1; + * + * @return The backendLatency. + */ + public com.google.protobuf.Duration getBackendLatency() { + if (backendLatencyBuilder_ == null) { + return backendLatency_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : backendLatency_; + } else { + return backendLatencyBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Backend (critical section) latency for the request.
+     * 
+ * + * .google.protobuf.Duration backend_latency = 1; + */ + public Builder setBackendLatency(com.google.protobuf.Duration value) { + if (backendLatencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backendLatency_ = value; + } else { + backendLatencyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Backend (critical section) latency for the request.
+     * 
+ * + * .google.protobuf.Duration backend_latency = 1; + */ + public Builder setBackendLatency(com.google.protobuf.Duration.Builder builderForValue) { + if (backendLatencyBuilder_ == null) { + backendLatency_ = builderForValue.build(); + } else { + backendLatencyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Backend (critical section) latency for the request.
+     * 
+ * + * .google.protobuf.Duration backend_latency = 1; + */ + public Builder mergeBackendLatency(com.google.protobuf.Duration value) { + if (backendLatencyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && backendLatency_ != null + && backendLatency_ != com.google.protobuf.Duration.getDefaultInstance()) { + getBackendLatencyBuilder().mergeFrom(value); + } else { + backendLatency_ = value; + } + } else { + backendLatencyBuilder_.mergeFrom(value); + } + if (backendLatency_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Backend (critical section) latency for the request.
+     * 
+ * + * .google.protobuf.Duration backend_latency = 1; + */ + public Builder clearBackendLatency() { + bitField0_ = (bitField0_ & ~0x00000001); + backendLatency_ = null; + if (backendLatencyBuilder_ != null) { + backendLatencyBuilder_.dispose(); + backendLatencyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Backend (critical section) latency for the request.
+     * 
+ * + * .google.protobuf.Duration backend_latency = 1; + */ + public com.google.protobuf.Duration.Builder getBackendLatencyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetBackendLatencyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Backend (critical section) latency for the request.
+     * 
+ * + * .google.protobuf.Duration backend_latency = 1; + */ + public com.google.protobuf.DurationOrBuilder getBackendLatencyOrBuilder() { + if (backendLatencyBuilder_ != null) { + return backendLatencyBuilder_.getMessageOrBuilder(); + } else { + return backendLatency_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : backendLatency_; + } + } + + /** + * + * + *
+     * Backend (critical section) latency for the request.
+     * 
+ * + * .google.protobuf.Duration backend_latency = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetBackendLatencyFieldBuilder() { + if (backendLatencyBuilder_ == null) { + backendLatencyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getBackendLatency(), getParentForChildren(), isClean()); + backendLatency_ = null; + } + return backendLatencyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.SessionRequestStats) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.SessionRequestStats) + private static final com.google.bigtable.v2.SessionRequestStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.SessionRequestStats(); + } + + public static com.google.bigtable.v2.SessionRequestStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionRequestStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionRequestStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRequestStatsOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRequestStatsOrBuilder.java new file mode 100644 index 0000000000..728993cf71 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionRequestStatsOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface SessionRequestStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.SessionRequestStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Backend (critical section) latency for the request.
+   * 
+ * + * .google.protobuf.Duration backend_latency = 1; + * + * @return Whether the backendLatency field is set. + */ + boolean hasBackendLatency(); + + /** + * + * + *
+   * Backend (critical section) latency for the request.
+   * 
+ * + * .google.protobuf.Duration backend_latency = 1; + * + * @return The backendLatency. + */ + com.google.protobuf.Duration getBackendLatency(); + + /** + * + * + *
+   * Backend (critical section) latency for the request.
+   * 
+ * + * .google.protobuf.Duration backend_latency = 1; + */ + com.google.protobuf.DurationOrBuilder getBackendLatencyOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionResponse.java new file mode 100644 index 0000000000..9c4dfe078f --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionResponse.java @@ -0,0 +1,2131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionResponse} + */ +@com.google.protobuf.Generated +public final class SessionResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.SessionResponse) + SessionResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionResponse"); + } + + // Use SessionResponse.newBuilder() to construct. + private SessionResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionResponse.class, + com.google.bigtable.v2.SessionResponse.Builder.class); + } + + private int payloadCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object payload_; + + public enum PayloadCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + OPEN_SESSION(1), + VIRTUAL_RPC(2), + ERROR(3), + SESSION_PARAMETERS(4), + HEARTBEAT(5), + GO_AWAY(6), + SESSION_REFRESH_CONFIG(7), + PAYLOAD_NOT_SET(0); + private final int value; + + private PayloadCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PayloadCase valueOf(int value) { + return forNumber(value); + } + + public static PayloadCase forNumber(int value) { + switch (value) { + case 1: + return OPEN_SESSION; + case 2: + return VIRTUAL_RPC; + case 3: + return ERROR; + case 4: + return SESSION_PARAMETERS; + case 5: + return HEARTBEAT; + case 6: + return GO_AWAY; + case 7: + return SESSION_REFRESH_CONFIG; + case 0: + return PAYLOAD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public static final int OPEN_SESSION_FIELD_NUMBER = 1; + + /** + * .google.bigtable.v2.OpenSessionResponse open_session = 1; + * + * @return Whether the openSession field is set. + */ + @java.lang.Override + public boolean hasOpenSession() { + return payloadCase_ == 1; + } + + /** + * .google.bigtable.v2.OpenSessionResponse open_session = 1; + * + * @return The openSession. + */ + @java.lang.Override + public com.google.bigtable.v2.OpenSessionResponse getOpenSession() { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.OpenSessionResponse) payload_; + } + return com.google.bigtable.v2.OpenSessionResponse.getDefaultInstance(); + } + + /** .google.bigtable.v2.OpenSessionResponse open_session = 1; */ + @java.lang.Override + public com.google.bigtable.v2.OpenSessionResponseOrBuilder getOpenSessionOrBuilder() { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.OpenSessionResponse) payload_; + } + return com.google.bigtable.v2.OpenSessionResponse.getDefaultInstance(); + } + + public static final int VIRTUAL_RPC_FIELD_NUMBER = 2; + + /** + * + * + *
+   * A vRPC can result in either a successful result or an error.
+   * Error results are separate to allow for multiple vRPC responses,
+   * e.g. for streaming calls like scans (post-V1). See Flow Control.
+   * 
+ * + * .google.bigtable.v2.VirtualRpcResponse virtual_rpc = 2; + * + * @return Whether the virtualRpc field is set. + */ + @java.lang.Override + public boolean hasVirtualRpc() { + return payloadCase_ == 2; + } + + /** + * + * + *
+   * A vRPC can result in either a successful result or an error.
+   * Error results are separate to allow for multiple vRPC responses,
+   * e.g. for streaming calls like scans (post-V1). See Flow Control.
+   * 
+ * + * .google.bigtable.v2.VirtualRpcResponse virtual_rpc = 2; + * + * @return The virtualRpc. + */ + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcResponse getVirtualRpc() { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.VirtualRpcResponse) payload_; + } + return com.google.bigtable.v2.VirtualRpcResponse.getDefaultInstance(); + } + + /** + * + * + *
+   * A vRPC can result in either a successful result or an error.
+   * Error results are separate to allow for multiple vRPC responses,
+   * e.g. for streaming calls like scans (post-V1). See Flow Control.
+   * 
+ * + * .google.bigtable.v2.VirtualRpcResponse virtual_rpc = 2; + */ + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcResponseOrBuilder getVirtualRpcOrBuilder() { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.VirtualRpcResponse) payload_; + } + return com.google.bigtable.v2.VirtualRpcResponse.getDefaultInstance(); + } + + public static final int ERROR_FIELD_NUMBER = 3; + + /** + * .google.bigtable.v2.ErrorResponse error = 3; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return payloadCase_ == 3; + } + + /** + * .google.bigtable.v2.ErrorResponse error = 3; + * + * @return The error. + */ + @java.lang.Override + public com.google.bigtable.v2.ErrorResponse getError() { + if (payloadCase_ == 3) { + return (com.google.bigtable.v2.ErrorResponse) payload_; + } + return com.google.bigtable.v2.ErrorResponse.getDefaultInstance(); + } + + /** .google.bigtable.v2.ErrorResponse error = 3; */ + @java.lang.Override + public com.google.bigtable.v2.ErrorResponseOrBuilder getErrorOrBuilder() { + if (payloadCase_ == 3) { + return (com.google.bigtable.v2.ErrorResponse) payload_; + } + return com.google.bigtable.v2.ErrorResponse.getDefaultInstance(); + } + + public static final int SESSION_PARAMETERS_FIELD_NUMBER = 4; + + /** + * .google.bigtable.v2.SessionParametersResponse session_parameters = 4; + * + * @return Whether the sessionParameters field is set. + */ + @java.lang.Override + public boolean hasSessionParameters() { + return payloadCase_ == 4; + } + + /** + * .google.bigtable.v2.SessionParametersResponse session_parameters = 4; + * + * @return The sessionParameters. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionParametersResponse getSessionParameters() { + if (payloadCase_ == 4) { + return (com.google.bigtable.v2.SessionParametersResponse) payload_; + } + return com.google.bigtable.v2.SessionParametersResponse.getDefaultInstance(); + } + + /** .google.bigtable.v2.SessionParametersResponse session_parameters = 4; */ + @java.lang.Override + public com.google.bigtable.v2.SessionParametersResponseOrBuilder getSessionParametersOrBuilder() { + if (payloadCase_ == 4) { + return (com.google.bigtable.v2.SessionParametersResponse) payload_; + } + return com.google.bigtable.v2.SessionParametersResponse.getDefaultInstance(); + } + + public static final int HEARTBEAT_FIELD_NUMBER = 5; + + /** + * .google.bigtable.v2.HeartbeatResponse heartbeat = 5; + * + * @return Whether the heartbeat field is set. + */ + @java.lang.Override + public boolean hasHeartbeat() { + return payloadCase_ == 5; + } + + /** + * .google.bigtable.v2.HeartbeatResponse heartbeat = 5; + * + * @return The heartbeat. + */ + @java.lang.Override + public com.google.bigtable.v2.HeartbeatResponse getHeartbeat() { + if (payloadCase_ == 5) { + return (com.google.bigtable.v2.HeartbeatResponse) payload_; + } + return com.google.bigtable.v2.HeartbeatResponse.getDefaultInstance(); + } + + /** .google.bigtable.v2.HeartbeatResponse heartbeat = 5; */ + @java.lang.Override + public com.google.bigtable.v2.HeartbeatResponseOrBuilder getHeartbeatOrBuilder() { + if (payloadCase_ == 5) { + return (com.google.bigtable.v2.HeartbeatResponse) payload_; + } + return com.google.bigtable.v2.HeartbeatResponse.getDefaultInstance(); + } + + public static final int GO_AWAY_FIELD_NUMBER = 6; + + /** + * .google.bigtable.v2.GoAwayResponse go_away = 6; + * + * @return Whether the goAway field is set. + */ + @java.lang.Override + public boolean hasGoAway() { + return payloadCase_ == 6; + } + + /** + * .google.bigtable.v2.GoAwayResponse go_away = 6; + * + * @return The goAway. + */ + @java.lang.Override + public com.google.bigtable.v2.GoAwayResponse getGoAway() { + if (payloadCase_ == 6) { + return (com.google.bigtable.v2.GoAwayResponse) payload_; + } + return com.google.bigtable.v2.GoAwayResponse.getDefaultInstance(); + } + + /** .google.bigtable.v2.GoAwayResponse go_away = 6; */ + @java.lang.Override + public com.google.bigtable.v2.GoAwayResponseOrBuilder getGoAwayOrBuilder() { + if (payloadCase_ == 6) { + return (com.google.bigtable.v2.GoAwayResponse) payload_; + } + return com.google.bigtable.v2.GoAwayResponse.getDefaultInstance(); + } + + public static final int SESSION_REFRESH_CONFIG_FIELD_NUMBER = 7; + + /** + * .google.bigtable.v2.SessionRefreshConfig session_refresh_config = 7; + * + * @return Whether the sessionRefreshConfig field is set. + */ + @java.lang.Override + public boolean hasSessionRefreshConfig() { + return payloadCase_ == 7; + } + + /** + * .google.bigtable.v2.SessionRefreshConfig session_refresh_config = 7; + * + * @return The sessionRefreshConfig. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionRefreshConfig getSessionRefreshConfig() { + if (payloadCase_ == 7) { + return (com.google.bigtable.v2.SessionRefreshConfig) payload_; + } + return com.google.bigtable.v2.SessionRefreshConfig.getDefaultInstance(); + } + + /** .google.bigtable.v2.SessionRefreshConfig session_refresh_config = 7; */ + @java.lang.Override + public com.google.bigtable.v2.SessionRefreshConfigOrBuilder getSessionRefreshConfigOrBuilder() { + if (payloadCase_ == 7) { + return (com.google.bigtable.v2.SessionRefreshConfig) payload_; + } + return com.google.bigtable.v2.SessionRefreshConfig.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (payloadCase_ == 1) { + output.writeMessage(1, (com.google.bigtable.v2.OpenSessionResponse) payload_); + } + if (payloadCase_ == 2) { + output.writeMessage(2, (com.google.bigtable.v2.VirtualRpcResponse) payload_); + } + if (payloadCase_ == 3) { + output.writeMessage(3, (com.google.bigtable.v2.ErrorResponse) payload_); + } + if (payloadCase_ == 4) { + output.writeMessage(4, (com.google.bigtable.v2.SessionParametersResponse) payload_); + } + if (payloadCase_ == 5) { + output.writeMessage(5, (com.google.bigtable.v2.HeartbeatResponse) payload_); + } + if (payloadCase_ == 6) { + output.writeMessage(6, (com.google.bigtable.v2.GoAwayResponse) payload_); + } + if (payloadCase_ == 7) { + output.writeMessage(7, (com.google.bigtable.v2.SessionRefreshConfig) payload_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (payloadCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.bigtable.v2.OpenSessionResponse) payload_); + } + if (payloadCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.bigtable.v2.VirtualRpcResponse) payload_); + } + if (payloadCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.bigtable.v2.ErrorResponse) payload_); + } + if (payloadCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.bigtable.v2.SessionParametersResponse) payload_); + } + if (payloadCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.bigtable.v2.HeartbeatResponse) payload_); + } + if (payloadCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.bigtable.v2.GoAwayResponse) payload_); + } + if (payloadCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.bigtable.v2.SessionRefreshConfig) payload_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.SessionResponse)) { + return super.equals(obj); + } + com.google.bigtable.v2.SessionResponse other = (com.google.bigtable.v2.SessionResponse) obj; + + if (!getPayloadCase().equals(other.getPayloadCase())) return false; + switch (payloadCase_) { + case 1: + if (!getOpenSession().equals(other.getOpenSession())) return false; + break; + case 2: + if (!getVirtualRpc().equals(other.getVirtualRpc())) return false; + break; + case 3: + if (!getError().equals(other.getError())) return false; + break; + case 4: + if (!getSessionParameters().equals(other.getSessionParameters())) return false; + break; + case 5: + if (!getHeartbeat().equals(other.getHeartbeat())) return false; + break; + case 6: + if (!getGoAway().equals(other.getGoAway())) return false; + break; + case 7: + if (!getSessionRefreshConfig().equals(other.getSessionRefreshConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (payloadCase_) { + case 1: + hash = (37 * hash) + OPEN_SESSION_FIELD_NUMBER; + hash = (53 * hash) + getOpenSession().hashCode(); + break; + case 2: + hash = (37 * hash) + VIRTUAL_RPC_FIELD_NUMBER; + hash = (53 * hash) + getVirtualRpc().hashCode(); + break; + case 3: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 4: + hash = (37 * hash) + SESSION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getSessionParameters().hashCode(); + break; + case 5: + hash = (37 * hash) + HEARTBEAT_FIELD_NUMBER; + hash = (53 * hash) + getHeartbeat().hashCode(); + break; + case 6: + hash = (37 * hash) + GO_AWAY_FIELD_NUMBER; + hash = (53 * hash) + getGoAway().hashCode(); + break; + case 7: + hash = (37 * hash) + SESSION_REFRESH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSessionRefreshConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.SessionResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.SessionResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.SessionResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.SessionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.SessionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.SessionResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.SessionResponse) + com.google.bigtable.v2.SessionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.SessionResponse.class, + com.google.bigtable.v2.SessionResponse.Builder.class); + } + + // Construct using com.google.bigtable.v2.SessionResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (openSessionBuilder_ != null) { + openSessionBuilder_.clear(); + } + if (virtualRpcBuilder_ != null) { + virtualRpcBuilder_.clear(); + } + if (errorBuilder_ != null) { + errorBuilder_.clear(); + } + if (sessionParametersBuilder_ != null) { + sessionParametersBuilder_.clear(); + } + if (heartbeatBuilder_ != null) { + heartbeatBuilder_.clear(); + } + if (goAwayBuilder_ != null) { + goAwayBuilder_.clear(); + } + if (sessionRefreshConfigBuilder_ != null) { + sessionRefreshConfigBuilder_.clear(); + } + payloadCase_ = 0; + payload_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_SessionResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionResponse getDefaultInstanceForType() { + return com.google.bigtable.v2.SessionResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.SessionResponse build() { + com.google.bigtable.v2.SessionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionResponse buildPartial() { + com.google.bigtable.v2.SessionResponse result = + new com.google.bigtable.v2.SessionResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.SessionResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.bigtable.v2.SessionResponse result) { + result.payloadCase_ = payloadCase_; + result.payload_ = this.payload_; + if (payloadCase_ == 1 && openSessionBuilder_ != null) { + result.payload_ = openSessionBuilder_.build(); + } + if (payloadCase_ == 2 && virtualRpcBuilder_ != null) { + result.payload_ = virtualRpcBuilder_.build(); + } + if (payloadCase_ == 3 && errorBuilder_ != null) { + result.payload_ = errorBuilder_.build(); + } + if (payloadCase_ == 4 && sessionParametersBuilder_ != null) { + result.payload_ = sessionParametersBuilder_.build(); + } + if (payloadCase_ == 5 && heartbeatBuilder_ != null) { + result.payload_ = heartbeatBuilder_.build(); + } + if (payloadCase_ == 6 && goAwayBuilder_ != null) { + result.payload_ = goAwayBuilder_.build(); + } + if (payloadCase_ == 7 && sessionRefreshConfigBuilder_ != null) { + result.payload_ = sessionRefreshConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.SessionResponse) { + return mergeFrom((com.google.bigtable.v2.SessionResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.SessionResponse other) { + if (other == com.google.bigtable.v2.SessionResponse.getDefaultInstance()) return this; + switch (other.getPayloadCase()) { + case OPEN_SESSION: + { + mergeOpenSession(other.getOpenSession()); + break; + } + case VIRTUAL_RPC: + { + mergeVirtualRpc(other.getVirtualRpc()); + break; + } + case ERROR: + { + mergeError(other.getError()); + break; + } + case SESSION_PARAMETERS: + { + mergeSessionParameters(other.getSessionParameters()); + break; + } + case HEARTBEAT: + { + mergeHeartbeat(other.getHeartbeat()); + break; + } + case GO_AWAY: + { + mergeGoAway(other.getGoAway()); + break; + } + case SESSION_REFRESH_CONFIG: + { + mergeSessionRefreshConfig(other.getSessionRefreshConfig()); + break; + } + case PAYLOAD_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetOpenSessionFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetVirtualRpcFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetErrorFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetSessionParametersFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetHeartbeatFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(internalGetGoAwayFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetSessionRefreshConfigFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 7; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int payloadCase_ = 0; + private java.lang.Object payload_; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public Builder clearPayload() { + payloadCase_ = 0; + payload_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.OpenSessionResponse, + com.google.bigtable.v2.OpenSessionResponse.Builder, + com.google.bigtable.v2.OpenSessionResponseOrBuilder> + openSessionBuilder_; + + /** + * .google.bigtable.v2.OpenSessionResponse open_session = 1; + * + * @return Whether the openSession field is set. + */ + @java.lang.Override + public boolean hasOpenSession() { + return payloadCase_ == 1; + } + + /** + * .google.bigtable.v2.OpenSessionResponse open_session = 1; + * + * @return The openSession. + */ + @java.lang.Override + public com.google.bigtable.v2.OpenSessionResponse getOpenSession() { + if (openSessionBuilder_ == null) { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.OpenSessionResponse) payload_; + } + return com.google.bigtable.v2.OpenSessionResponse.getDefaultInstance(); + } else { + if (payloadCase_ == 1) { + return openSessionBuilder_.getMessage(); + } + return com.google.bigtable.v2.OpenSessionResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.OpenSessionResponse open_session = 1; */ + public Builder setOpenSession(com.google.bigtable.v2.OpenSessionResponse value) { + if (openSessionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + openSessionBuilder_.setMessage(value); + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.OpenSessionResponse open_session = 1; */ + public Builder setOpenSession( + com.google.bigtable.v2.OpenSessionResponse.Builder builderForValue) { + if (openSessionBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + openSessionBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.OpenSessionResponse open_session = 1; */ + public Builder mergeOpenSession(com.google.bigtable.v2.OpenSessionResponse value) { + if (openSessionBuilder_ == null) { + if (payloadCase_ == 1 + && payload_ != com.google.bigtable.v2.OpenSessionResponse.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.OpenSessionResponse.newBuilder( + (com.google.bigtable.v2.OpenSessionResponse) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 1) { + openSessionBuilder_.mergeFrom(value); + } else { + openSessionBuilder_.setMessage(value); + } + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.OpenSessionResponse open_session = 1; */ + public Builder clearOpenSession() { + if (openSessionBuilder_ == null) { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + } + openSessionBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.OpenSessionResponse open_session = 1; */ + public com.google.bigtable.v2.OpenSessionResponse.Builder getOpenSessionBuilder() { + return internalGetOpenSessionFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.OpenSessionResponse open_session = 1; */ + @java.lang.Override + public com.google.bigtable.v2.OpenSessionResponseOrBuilder getOpenSessionOrBuilder() { + if ((payloadCase_ == 1) && (openSessionBuilder_ != null)) { + return openSessionBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.OpenSessionResponse) payload_; + } + return com.google.bigtable.v2.OpenSessionResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.OpenSessionResponse open_session = 1; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.OpenSessionResponse, + com.google.bigtable.v2.OpenSessionResponse.Builder, + com.google.bigtable.v2.OpenSessionResponseOrBuilder> + internalGetOpenSessionFieldBuilder() { + if (openSessionBuilder_ == null) { + if (!(payloadCase_ == 1)) { + payload_ = com.google.bigtable.v2.OpenSessionResponse.getDefaultInstance(); + } + openSessionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.OpenSessionResponse, + com.google.bigtable.v2.OpenSessionResponse.Builder, + com.google.bigtable.v2.OpenSessionResponseOrBuilder>( + (com.google.bigtable.v2.OpenSessionResponse) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 1; + onChanged(); + return openSessionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.VirtualRpcResponse, + com.google.bigtable.v2.VirtualRpcResponse.Builder, + com.google.bigtable.v2.VirtualRpcResponseOrBuilder> + virtualRpcBuilder_; + + /** + * + * + *
+     * A vRPC can result in either a successful result or an error.
+     * Error results are separate to allow for multiple vRPC responses,
+     * e.g. for streaming calls like scans (post-V1). See Flow Control.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcResponse virtual_rpc = 2; + * + * @return Whether the virtualRpc field is set. + */ + @java.lang.Override + public boolean hasVirtualRpc() { + return payloadCase_ == 2; + } + + /** + * + * + *
+     * A vRPC can result in either a successful result or an error.
+     * Error results are separate to allow for multiple vRPC responses,
+     * e.g. for streaming calls like scans (post-V1). See Flow Control.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcResponse virtual_rpc = 2; + * + * @return The virtualRpc. + */ + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcResponse getVirtualRpc() { + if (virtualRpcBuilder_ == null) { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.VirtualRpcResponse) payload_; + } + return com.google.bigtable.v2.VirtualRpcResponse.getDefaultInstance(); + } else { + if (payloadCase_ == 2) { + return virtualRpcBuilder_.getMessage(); + } + return com.google.bigtable.v2.VirtualRpcResponse.getDefaultInstance(); + } + } + + /** + * + * + *
+     * A vRPC can result in either a successful result or an error.
+     * Error results are separate to allow for multiple vRPC responses,
+     * e.g. for streaming calls like scans (post-V1). See Flow Control.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcResponse virtual_rpc = 2; + */ + public Builder setVirtualRpc(com.google.bigtable.v2.VirtualRpcResponse value) { + if (virtualRpcBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + virtualRpcBuilder_.setMessage(value); + } + payloadCase_ = 2; + return this; + } + + /** + * + * + *
+     * A vRPC can result in either a successful result or an error.
+     * Error results are separate to allow for multiple vRPC responses,
+     * e.g. for streaming calls like scans (post-V1). See Flow Control.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcResponse virtual_rpc = 2; + */ + public Builder setVirtualRpc( + com.google.bigtable.v2.VirtualRpcResponse.Builder builderForValue) { + if (virtualRpcBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + virtualRpcBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 2; + return this; + } + + /** + * + * + *
+     * A vRPC can result in either a successful result or an error.
+     * Error results are separate to allow for multiple vRPC responses,
+     * e.g. for streaming calls like scans (post-V1). See Flow Control.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcResponse virtual_rpc = 2; + */ + public Builder mergeVirtualRpc(com.google.bigtable.v2.VirtualRpcResponse value) { + if (virtualRpcBuilder_ == null) { + if (payloadCase_ == 2 + && payload_ != com.google.bigtable.v2.VirtualRpcResponse.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.VirtualRpcResponse.newBuilder( + (com.google.bigtable.v2.VirtualRpcResponse) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 2) { + virtualRpcBuilder_.mergeFrom(value); + } else { + virtualRpcBuilder_.setMessage(value); + } + } + payloadCase_ = 2; + return this; + } + + /** + * + * + *
+     * A vRPC can result in either a successful result or an error.
+     * Error results are separate to allow for multiple vRPC responses,
+     * e.g. for streaming calls like scans (post-V1). See Flow Control.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcResponse virtual_rpc = 2; + */ + public Builder clearVirtualRpc() { + if (virtualRpcBuilder_ == null) { + if (payloadCase_ == 2) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 2) { + payloadCase_ = 0; + payload_ = null; + } + virtualRpcBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A vRPC can result in either a successful result or an error.
+     * Error results are separate to allow for multiple vRPC responses,
+     * e.g. for streaming calls like scans (post-V1). See Flow Control.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcResponse virtual_rpc = 2; + */ + public com.google.bigtable.v2.VirtualRpcResponse.Builder getVirtualRpcBuilder() { + return internalGetVirtualRpcFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * A vRPC can result in either a successful result or an error.
+     * Error results are separate to allow for multiple vRPC responses,
+     * e.g. for streaming calls like scans (post-V1). See Flow Control.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcResponse virtual_rpc = 2; + */ + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcResponseOrBuilder getVirtualRpcOrBuilder() { + if ((payloadCase_ == 2) && (virtualRpcBuilder_ != null)) { + return virtualRpcBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.VirtualRpcResponse) payload_; + } + return com.google.bigtable.v2.VirtualRpcResponse.getDefaultInstance(); + } + } + + /** + * + * + *
+     * A vRPC can result in either a successful result or an error.
+     * Error results are separate to allow for multiple vRPC responses,
+     * e.g. for streaming calls like scans (post-V1). See Flow Control.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcResponse virtual_rpc = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.VirtualRpcResponse, + com.google.bigtable.v2.VirtualRpcResponse.Builder, + com.google.bigtable.v2.VirtualRpcResponseOrBuilder> + internalGetVirtualRpcFieldBuilder() { + if (virtualRpcBuilder_ == null) { + if (!(payloadCase_ == 2)) { + payload_ = com.google.bigtable.v2.VirtualRpcResponse.getDefaultInstance(); + } + virtualRpcBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.VirtualRpcResponse, + com.google.bigtable.v2.VirtualRpcResponse.Builder, + com.google.bigtable.v2.VirtualRpcResponseOrBuilder>( + (com.google.bigtable.v2.VirtualRpcResponse) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 2; + onChanged(); + return virtualRpcBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.ErrorResponse, + com.google.bigtable.v2.ErrorResponse.Builder, + com.google.bigtable.v2.ErrorResponseOrBuilder> + errorBuilder_; + + /** + * .google.bigtable.v2.ErrorResponse error = 3; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return payloadCase_ == 3; + } + + /** + * .google.bigtable.v2.ErrorResponse error = 3; + * + * @return The error. + */ + @java.lang.Override + public com.google.bigtable.v2.ErrorResponse getError() { + if (errorBuilder_ == null) { + if (payloadCase_ == 3) { + return (com.google.bigtable.v2.ErrorResponse) payload_; + } + return com.google.bigtable.v2.ErrorResponse.getDefaultInstance(); + } else { + if (payloadCase_ == 3) { + return errorBuilder_.getMessage(); + } + return com.google.bigtable.v2.ErrorResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.ErrorResponse error = 3; */ + public Builder setError(com.google.bigtable.v2.ErrorResponse value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + payloadCase_ = 3; + return this; + } + + /** .google.bigtable.v2.ErrorResponse error = 3; */ + public Builder setError(com.google.bigtable.v2.ErrorResponse.Builder builderForValue) { + if (errorBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 3; + return this; + } + + /** .google.bigtable.v2.ErrorResponse error = 3; */ + public Builder mergeError(com.google.bigtable.v2.ErrorResponse value) { + if (errorBuilder_ == null) { + if (payloadCase_ == 3 + && payload_ != com.google.bigtable.v2.ErrorResponse.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.ErrorResponse.newBuilder( + (com.google.bigtable.v2.ErrorResponse) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 3) { + errorBuilder_.mergeFrom(value); + } else { + errorBuilder_.setMessage(value); + } + } + payloadCase_ = 3; + return this; + } + + /** .google.bigtable.v2.ErrorResponse error = 3; */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (payloadCase_ == 3) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 3) { + payloadCase_ = 0; + payload_ = null; + } + errorBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.ErrorResponse error = 3; */ + public com.google.bigtable.v2.ErrorResponse.Builder getErrorBuilder() { + return internalGetErrorFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.ErrorResponse error = 3; */ + @java.lang.Override + public com.google.bigtable.v2.ErrorResponseOrBuilder getErrorOrBuilder() { + if ((payloadCase_ == 3) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 3) { + return (com.google.bigtable.v2.ErrorResponse) payload_; + } + return com.google.bigtable.v2.ErrorResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.ErrorResponse error = 3; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.ErrorResponse, + com.google.bigtable.v2.ErrorResponse.Builder, + com.google.bigtable.v2.ErrorResponseOrBuilder> + internalGetErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(payloadCase_ == 3)) { + payload_ = com.google.bigtable.v2.ErrorResponse.getDefaultInstance(); + } + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.ErrorResponse, + com.google.bigtable.v2.ErrorResponse.Builder, + com.google.bigtable.v2.ErrorResponseOrBuilder>( + (com.google.bigtable.v2.ErrorResponse) payload_, getParentForChildren(), isClean()); + payload_ = null; + } + payloadCase_ = 3; + onChanged(); + return errorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionParametersResponse, + com.google.bigtable.v2.SessionParametersResponse.Builder, + com.google.bigtable.v2.SessionParametersResponseOrBuilder> + sessionParametersBuilder_; + + /** + * .google.bigtable.v2.SessionParametersResponse session_parameters = 4; + * + * @return Whether the sessionParameters field is set. + */ + @java.lang.Override + public boolean hasSessionParameters() { + return payloadCase_ == 4; + } + + /** + * .google.bigtable.v2.SessionParametersResponse session_parameters = 4; + * + * @return The sessionParameters. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionParametersResponse getSessionParameters() { + if (sessionParametersBuilder_ == null) { + if (payloadCase_ == 4) { + return (com.google.bigtable.v2.SessionParametersResponse) payload_; + } + return com.google.bigtable.v2.SessionParametersResponse.getDefaultInstance(); + } else { + if (payloadCase_ == 4) { + return sessionParametersBuilder_.getMessage(); + } + return com.google.bigtable.v2.SessionParametersResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionParametersResponse session_parameters = 4; */ + public Builder setSessionParameters(com.google.bigtable.v2.SessionParametersResponse value) { + if (sessionParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + sessionParametersBuilder_.setMessage(value); + } + payloadCase_ = 4; + return this; + } + + /** .google.bigtable.v2.SessionParametersResponse session_parameters = 4; */ + public Builder setSessionParameters( + com.google.bigtable.v2.SessionParametersResponse.Builder builderForValue) { + if (sessionParametersBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + sessionParametersBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 4; + return this; + } + + /** .google.bigtable.v2.SessionParametersResponse session_parameters = 4; */ + public Builder mergeSessionParameters(com.google.bigtable.v2.SessionParametersResponse value) { + if (sessionParametersBuilder_ == null) { + if (payloadCase_ == 4 + && payload_ != com.google.bigtable.v2.SessionParametersResponse.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.SessionParametersResponse.newBuilder( + (com.google.bigtable.v2.SessionParametersResponse) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 4) { + sessionParametersBuilder_.mergeFrom(value); + } else { + sessionParametersBuilder_.setMessage(value); + } + } + payloadCase_ = 4; + return this; + } + + /** .google.bigtable.v2.SessionParametersResponse session_parameters = 4; */ + public Builder clearSessionParameters() { + if (sessionParametersBuilder_ == null) { + if (payloadCase_ == 4) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 4) { + payloadCase_ = 0; + payload_ = null; + } + sessionParametersBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.SessionParametersResponse session_parameters = 4; */ + public com.google.bigtable.v2.SessionParametersResponse.Builder getSessionParametersBuilder() { + return internalGetSessionParametersFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.SessionParametersResponse session_parameters = 4; */ + @java.lang.Override + public com.google.bigtable.v2.SessionParametersResponseOrBuilder + getSessionParametersOrBuilder() { + if ((payloadCase_ == 4) && (sessionParametersBuilder_ != null)) { + return sessionParametersBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 4) { + return (com.google.bigtable.v2.SessionParametersResponse) payload_; + } + return com.google.bigtable.v2.SessionParametersResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionParametersResponse session_parameters = 4; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionParametersResponse, + com.google.bigtable.v2.SessionParametersResponse.Builder, + com.google.bigtable.v2.SessionParametersResponseOrBuilder> + internalGetSessionParametersFieldBuilder() { + if (sessionParametersBuilder_ == null) { + if (!(payloadCase_ == 4)) { + payload_ = com.google.bigtable.v2.SessionParametersResponse.getDefaultInstance(); + } + sessionParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionParametersResponse, + com.google.bigtable.v2.SessionParametersResponse.Builder, + com.google.bigtable.v2.SessionParametersResponseOrBuilder>( + (com.google.bigtable.v2.SessionParametersResponse) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 4; + onChanged(); + return sessionParametersBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.HeartbeatResponse, + com.google.bigtable.v2.HeartbeatResponse.Builder, + com.google.bigtable.v2.HeartbeatResponseOrBuilder> + heartbeatBuilder_; + + /** + * .google.bigtable.v2.HeartbeatResponse heartbeat = 5; + * + * @return Whether the heartbeat field is set. + */ + @java.lang.Override + public boolean hasHeartbeat() { + return payloadCase_ == 5; + } + + /** + * .google.bigtable.v2.HeartbeatResponse heartbeat = 5; + * + * @return The heartbeat. + */ + @java.lang.Override + public com.google.bigtable.v2.HeartbeatResponse getHeartbeat() { + if (heartbeatBuilder_ == null) { + if (payloadCase_ == 5) { + return (com.google.bigtable.v2.HeartbeatResponse) payload_; + } + return com.google.bigtable.v2.HeartbeatResponse.getDefaultInstance(); + } else { + if (payloadCase_ == 5) { + return heartbeatBuilder_.getMessage(); + } + return com.google.bigtable.v2.HeartbeatResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.HeartbeatResponse heartbeat = 5; */ + public Builder setHeartbeat(com.google.bigtable.v2.HeartbeatResponse value) { + if (heartbeatBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + heartbeatBuilder_.setMessage(value); + } + payloadCase_ = 5; + return this; + } + + /** .google.bigtable.v2.HeartbeatResponse heartbeat = 5; */ + public Builder setHeartbeat(com.google.bigtable.v2.HeartbeatResponse.Builder builderForValue) { + if (heartbeatBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + heartbeatBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 5; + return this; + } + + /** .google.bigtable.v2.HeartbeatResponse heartbeat = 5; */ + public Builder mergeHeartbeat(com.google.bigtable.v2.HeartbeatResponse value) { + if (heartbeatBuilder_ == null) { + if (payloadCase_ == 5 + && payload_ != com.google.bigtable.v2.HeartbeatResponse.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.HeartbeatResponse.newBuilder( + (com.google.bigtable.v2.HeartbeatResponse) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 5) { + heartbeatBuilder_.mergeFrom(value); + } else { + heartbeatBuilder_.setMessage(value); + } + } + payloadCase_ = 5; + return this; + } + + /** .google.bigtable.v2.HeartbeatResponse heartbeat = 5; */ + public Builder clearHeartbeat() { + if (heartbeatBuilder_ == null) { + if (payloadCase_ == 5) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 5) { + payloadCase_ = 0; + payload_ = null; + } + heartbeatBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.HeartbeatResponse heartbeat = 5; */ + public com.google.bigtable.v2.HeartbeatResponse.Builder getHeartbeatBuilder() { + return internalGetHeartbeatFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.HeartbeatResponse heartbeat = 5; */ + @java.lang.Override + public com.google.bigtable.v2.HeartbeatResponseOrBuilder getHeartbeatOrBuilder() { + if ((payloadCase_ == 5) && (heartbeatBuilder_ != null)) { + return heartbeatBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 5) { + return (com.google.bigtable.v2.HeartbeatResponse) payload_; + } + return com.google.bigtable.v2.HeartbeatResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.HeartbeatResponse heartbeat = 5; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.HeartbeatResponse, + com.google.bigtable.v2.HeartbeatResponse.Builder, + com.google.bigtable.v2.HeartbeatResponseOrBuilder> + internalGetHeartbeatFieldBuilder() { + if (heartbeatBuilder_ == null) { + if (!(payloadCase_ == 5)) { + payload_ = com.google.bigtable.v2.HeartbeatResponse.getDefaultInstance(); + } + heartbeatBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.HeartbeatResponse, + com.google.bigtable.v2.HeartbeatResponse.Builder, + com.google.bigtable.v2.HeartbeatResponseOrBuilder>( + (com.google.bigtable.v2.HeartbeatResponse) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 5; + onChanged(); + return heartbeatBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.GoAwayResponse, + com.google.bigtable.v2.GoAwayResponse.Builder, + com.google.bigtable.v2.GoAwayResponseOrBuilder> + goAwayBuilder_; + + /** + * .google.bigtable.v2.GoAwayResponse go_away = 6; + * + * @return Whether the goAway field is set. + */ + @java.lang.Override + public boolean hasGoAway() { + return payloadCase_ == 6; + } + + /** + * .google.bigtable.v2.GoAwayResponse go_away = 6; + * + * @return The goAway. + */ + @java.lang.Override + public com.google.bigtable.v2.GoAwayResponse getGoAway() { + if (goAwayBuilder_ == null) { + if (payloadCase_ == 6) { + return (com.google.bigtable.v2.GoAwayResponse) payload_; + } + return com.google.bigtable.v2.GoAwayResponse.getDefaultInstance(); + } else { + if (payloadCase_ == 6) { + return goAwayBuilder_.getMessage(); + } + return com.google.bigtable.v2.GoAwayResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.GoAwayResponse go_away = 6; */ + public Builder setGoAway(com.google.bigtable.v2.GoAwayResponse value) { + if (goAwayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + goAwayBuilder_.setMessage(value); + } + payloadCase_ = 6; + return this; + } + + /** .google.bigtable.v2.GoAwayResponse go_away = 6; */ + public Builder setGoAway(com.google.bigtable.v2.GoAwayResponse.Builder builderForValue) { + if (goAwayBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + goAwayBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 6; + return this; + } + + /** .google.bigtable.v2.GoAwayResponse go_away = 6; */ + public Builder mergeGoAway(com.google.bigtable.v2.GoAwayResponse value) { + if (goAwayBuilder_ == null) { + if (payloadCase_ == 6 + && payload_ != com.google.bigtable.v2.GoAwayResponse.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.GoAwayResponse.newBuilder( + (com.google.bigtable.v2.GoAwayResponse) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 6) { + goAwayBuilder_.mergeFrom(value); + } else { + goAwayBuilder_.setMessage(value); + } + } + payloadCase_ = 6; + return this; + } + + /** .google.bigtable.v2.GoAwayResponse go_away = 6; */ + public Builder clearGoAway() { + if (goAwayBuilder_ == null) { + if (payloadCase_ == 6) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 6) { + payloadCase_ = 0; + payload_ = null; + } + goAwayBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.GoAwayResponse go_away = 6; */ + public com.google.bigtable.v2.GoAwayResponse.Builder getGoAwayBuilder() { + return internalGetGoAwayFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.GoAwayResponse go_away = 6; */ + @java.lang.Override + public com.google.bigtable.v2.GoAwayResponseOrBuilder getGoAwayOrBuilder() { + if ((payloadCase_ == 6) && (goAwayBuilder_ != null)) { + return goAwayBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 6) { + return (com.google.bigtable.v2.GoAwayResponse) payload_; + } + return com.google.bigtable.v2.GoAwayResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.GoAwayResponse go_away = 6; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.GoAwayResponse, + com.google.bigtable.v2.GoAwayResponse.Builder, + com.google.bigtable.v2.GoAwayResponseOrBuilder> + internalGetGoAwayFieldBuilder() { + if (goAwayBuilder_ == null) { + if (!(payloadCase_ == 6)) { + payload_ = com.google.bigtable.v2.GoAwayResponse.getDefaultInstance(); + } + goAwayBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.GoAwayResponse, + com.google.bigtable.v2.GoAwayResponse.Builder, + com.google.bigtable.v2.GoAwayResponseOrBuilder>( + (com.google.bigtable.v2.GoAwayResponse) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 6; + onChanged(); + return goAwayBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionRefreshConfig, + com.google.bigtable.v2.SessionRefreshConfig.Builder, + com.google.bigtable.v2.SessionRefreshConfigOrBuilder> + sessionRefreshConfigBuilder_; + + /** + * .google.bigtable.v2.SessionRefreshConfig session_refresh_config = 7; + * + * @return Whether the sessionRefreshConfig field is set. + */ + @java.lang.Override + public boolean hasSessionRefreshConfig() { + return payloadCase_ == 7; + } + + /** + * .google.bigtable.v2.SessionRefreshConfig session_refresh_config = 7; + * + * @return The sessionRefreshConfig. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionRefreshConfig getSessionRefreshConfig() { + if (sessionRefreshConfigBuilder_ == null) { + if (payloadCase_ == 7) { + return (com.google.bigtable.v2.SessionRefreshConfig) payload_; + } + return com.google.bigtable.v2.SessionRefreshConfig.getDefaultInstance(); + } else { + if (payloadCase_ == 7) { + return sessionRefreshConfigBuilder_.getMessage(); + } + return com.google.bigtable.v2.SessionRefreshConfig.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionRefreshConfig session_refresh_config = 7; */ + public Builder setSessionRefreshConfig(com.google.bigtable.v2.SessionRefreshConfig value) { + if (sessionRefreshConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + sessionRefreshConfigBuilder_.setMessage(value); + } + payloadCase_ = 7; + return this; + } + + /** .google.bigtable.v2.SessionRefreshConfig session_refresh_config = 7; */ + public Builder setSessionRefreshConfig( + com.google.bigtable.v2.SessionRefreshConfig.Builder builderForValue) { + if (sessionRefreshConfigBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + sessionRefreshConfigBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 7; + return this; + } + + /** .google.bigtable.v2.SessionRefreshConfig session_refresh_config = 7; */ + public Builder mergeSessionRefreshConfig(com.google.bigtable.v2.SessionRefreshConfig value) { + if (sessionRefreshConfigBuilder_ == null) { + if (payloadCase_ == 7 + && payload_ != com.google.bigtable.v2.SessionRefreshConfig.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.SessionRefreshConfig.newBuilder( + (com.google.bigtable.v2.SessionRefreshConfig) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 7) { + sessionRefreshConfigBuilder_.mergeFrom(value); + } else { + sessionRefreshConfigBuilder_.setMessage(value); + } + } + payloadCase_ = 7; + return this; + } + + /** .google.bigtable.v2.SessionRefreshConfig session_refresh_config = 7; */ + public Builder clearSessionRefreshConfig() { + if (sessionRefreshConfigBuilder_ == null) { + if (payloadCase_ == 7) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 7) { + payloadCase_ = 0; + payload_ = null; + } + sessionRefreshConfigBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.SessionRefreshConfig session_refresh_config = 7; */ + public com.google.bigtable.v2.SessionRefreshConfig.Builder getSessionRefreshConfigBuilder() { + return internalGetSessionRefreshConfigFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.SessionRefreshConfig session_refresh_config = 7; */ + @java.lang.Override + public com.google.bigtable.v2.SessionRefreshConfigOrBuilder getSessionRefreshConfigOrBuilder() { + if ((payloadCase_ == 7) && (sessionRefreshConfigBuilder_ != null)) { + return sessionRefreshConfigBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 7) { + return (com.google.bigtable.v2.SessionRefreshConfig) payload_; + } + return com.google.bigtable.v2.SessionRefreshConfig.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionRefreshConfig session_refresh_config = 7; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionRefreshConfig, + com.google.bigtable.v2.SessionRefreshConfig.Builder, + com.google.bigtable.v2.SessionRefreshConfigOrBuilder> + internalGetSessionRefreshConfigFieldBuilder() { + if (sessionRefreshConfigBuilder_ == null) { + if (!(payloadCase_ == 7)) { + payload_ = com.google.bigtable.v2.SessionRefreshConfig.getDefaultInstance(); + } + sessionRefreshConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionRefreshConfig, + com.google.bigtable.v2.SessionRefreshConfig.Builder, + com.google.bigtable.v2.SessionRefreshConfigOrBuilder>( + (com.google.bigtable.v2.SessionRefreshConfig) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 7; + onChanged(); + return sessionRefreshConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.SessionResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.SessionResponse) + private static final com.google.bigtable.v2.SessionResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.SessionResponse(); + } + + public static com.google.bigtable.v2.SessionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.SessionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionResponseOrBuilder.java new file mode 100644 index 0000000000..492e52d893 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionResponseOrBuilder.java @@ -0,0 +1,175 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface SessionResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.SessionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.bigtable.v2.OpenSessionResponse open_session = 1; + * + * @return Whether the openSession field is set. + */ + boolean hasOpenSession(); + + /** + * .google.bigtable.v2.OpenSessionResponse open_session = 1; + * + * @return The openSession. + */ + com.google.bigtable.v2.OpenSessionResponse getOpenSession(); + + /** .google.bigtable.v2.OpenSessionResponse open_session = 1; */ + com.google.bigtable.v2.OpenSessionResponseOrBuilder getOpenSessionOrBuilder(); + + /** + * + * + *
+   * A vRPC can result in either a successful result or an error.
+   * Error results are separate to allow for multiple vRPC responses,
+   * e.g. for streaming calls like scans (post-V1). See Flow Control.
+   * 
+ * + * .google.bigtable.v2.VirtualRpcResponse virtual_rpc = 2; + * + * @return Whether the virtualRpc field is set. + */ + boolean hasVirtualRpc(); + + /** + * + * + *
+   * A vRPC can result in either a successful result or an error.
+   * Error results are separate to allow for multiple vRPC responses,
+   * e.g. for streaming calls like scans (post-V1). See Flow Control.
+   * 
+ * + * .google.bigtable.v2.VirtualRpcResponse virtual_rpc = 2; + * + * @return The virtualRpc. + */ + com.google.bigtable.v2.VirtualRpcResponse getVirtualRpc(); + + /** + * + * + *
+   * A vRPC can result in either a successful result or an error.
+   * Error results are separate to allow for multiple vRPC responses,
+   * e.g. for streaming calls like scans (post-V1). See Flow Control.
+   * 
+ * + * .google.bigtable.v2.VirtualRpcResponse virtual_rpc = 2; + */ + com.google.bigtable.v2.VirtualRpcResponseOrBuilder getVirtualRpcOrBuilder(); + + /** + * .google.bigtable.v2.ErrorResponse error = 3; + * + * @return Whether the error field is set. + */ + boolean hasError(); + + /** + * .google.bigtable.v2.ErrorResponse error = 3; + * + * @return The error. + */ + com.google.bigtable.v2.ErrorResponse getError(); + + /** .google.bigtable.v2.ErrorResponse error = 3; */ + com.google.bigtable.v2.ErrorResponseOrBuilder getErrorOrBuilder(); + + /** + * .google.bigtable.v2.SessionParametersResponse session_parameters = 4; + * + * @return Whether the sessionParameters field is set. + */ + boolean hasSessionParameters(); + + /** + * .google.bigtable.v2.SessionParametersResponse session_parameters = 4; + * + * @return The sessionParameters. + */ + com.google.bigtable.v2.SessionParametersResponse getSessionParameters(); + + /** .google.bigtable.v2.SessionParametersResponse session_parameters = 4; */ + com.google.bigtable.v2.SessionParametersResponseOrBuilder getSessionParametersOrBuilder(); + + /** + * .google.bigtable.v2.HeartbeatResponse heartbeat = 5; + * + * @return Whether the heartbeat field is set. + */ + boolean hasHeartbeat(); + + /** + * .google.bigtable.v2.HeartbeatResponse heartbeat = 5; + * + * @return The heartbeat. + */ + com.google.bigtable.v2.HeartbeatResponse getHeartbeat(); + + /** .google.bigtable.v2.HeartbeatResponse heartbeat = 5; */ + com.google.bigtable.v2.HeartbeatResponseOrBuilder getHeartbeatOrBuilder(); + + /** + * .google.bigtable.v2.GoAwayResponse go_away = 6; + * + * @return Whether the goAway field is set. + */ + boolean hasGoAway(); + + /** + * .google.bigtable.v2.GoAwayResponse go_away = 6; + * + * @return The goAway. + */ + com.google.bigtable.v2.GoAwayResponse getGoAway(); + + /** .google.bigtable.v2.GoAwayResponse go_away = 6; */ + com.google.bigtable.v2.GoAwayResponseOrBuilder getGoAwayOrBuilder(); + + /** + * .google.bigtable.v2.SessionRefreshConfig session_refresh_config = 7; + * + * @return Whether the sessionRefreshConfig field is set. + */ + boolean hasSessionRefreshConfig(); + + /** + * .google.bigtable.v2.SessionRefreshConfig session_refresh_config = 7; + * + * @return The sessionRefreshConfig. + */ + com.google.bigtable.v2.SessionRefreshConfig getSessionRefreshConfig(); + + /** .google.bigtable.v2.SessionRefreshConfig session_refresh_config = 7; */ + com.google.bigtable.v2.SessionRefreshConfigOrBuilder getSessionRefreshConfigOrBuilder(); + + com.google.bigtable.v2.SessionResponse.PayloadCase getPayloadCase(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionType.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionType.java new file mode 100644 index 0000000000..83bcbae51a --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SessionType.java @@ -0,0 +1,173 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Supported session types.
+ * 
+ * + * Protobuf enum {@code google.bigtable.v2.SessionType} + */ +@com.google.protobuf.Generated +public enum SessionType implements com.google.protobuf.ProtocolMessageEnum { + /** SESSION_TYPE_UNSET = 0; */ + SESSION_TYPE_UNSET(0), + /** SESSION_TYPE_TABLE = 1; */ + SESSION_TYPE_TABLE(1), + /** SESSION_TYPE_AUTHORIZED_VIEW = 2; */ + SESSION_TYPE_AUTHORIZED_VIEW(2), + /** SESSION_TYPE_MATERIALIZED_VIEW = 3; */ + SESSION_TYPE_MATERIALIZED_VIEW(3), + /** + * + * + *
+   * For internal protocol testing only.
+   * 
+ * + * SESSION_TYPE_TEST = -1; + */ + SESSION_TYPE_TEST(-1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionType"); + } + + /** SESSION_TYPE_UNSET = 0; */ + public static final int SESSION_TYPE_UNSET_VALUE = 0; + + /** SESSION_TYPE_TABLE = 1; */ + public static final int SESSION_TYPE_TABLE_VALUE = 1; + + /** SESSION_TYPE_AUTHORIZED_VIEW = 2; */ + public static final int SESSION_TYPE_AUTHORIZED_VIEW_VALUE = 2; + + /** SESSION_TYPE_MATERIALIZED_VIEW = 3; */ + public static final int SESSION_TYPE_MATERIALIZED_VIEW_VALUE = 3; + + /** + * + * + *
+   * For internal protocol testing only.
+   * 
+ * + * SESSION_TYPE_TEST = -1; + */ + public static final int SESSION_TYPE_TEST_VALUE = -1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SessionType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SessionType forNumber(int value) { + switch (value) { + case 0: + return SESSION_TYPE_UNSET; + case 1: + return SESSION_TYPE_TABLE; + case 2: + return SESSION_TYPE_AUTHORIZED_VIEW; + case 3: + return SESSION_TYPE_MATERIALIZED_VIEW; + case -1: + return SESSION_TYPE_TEST; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SessionType findValueByNumber(int number) { + return SessionType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto.getDescriptor().getEnumTypes().get(0); + } + + private static final SessionType[] VALUES = values(); + + public static SessionType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SessionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.bigtable.v2.SessionType) +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TableRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TableRequest.java new file mode 100644 index 0000000000..a79a31a443 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TableRequest.java @@ -0,0 +1,922 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.TableRequest} + */ +@com.google.protobuf.Generated +public final class TableRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.TableRequest) + TableRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TableRequest"); + } + + // Use TableRequest.newBuilder() to construct. + private TableRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TableRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_TableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_TableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.TableRequest.class, + com.google.bigtable.v2.TableRequest.Builder.class); + } + + private int payloadCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object payload_; + + public enum PayloadCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + READ_ROW(1), + MUTATE_ROW(2), + PAYLOAD_NOT_SET(0); + private final int value; + + private PayloadCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PayloadCase valueOf(int value) { + return forNumber(value); + } + + public static PayloadCase forNumber(int value) { + switch (value) { + case 1: + return READ_ROW; + case 2: + return MUTATE_ROW; + case 0: + return PAYLOAD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public static final int READ_ROW_FIELD_NUMBER = 1; + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return Whether the readRow field is set. + */ + @java.lang.Override + public boolean hasReadRow() { + return payloadCase_ == 1; + } + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return The readRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowRequest getReadRow() { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowRequest) payload_; + } + return com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowRequestOrBuilder getReadRowOrBuilder() { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowRequest) payload_; + } + return com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } + + public static final int MUTATE_ROW_FIELD_NUMBER = 2; + + /** + * .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; + * + * @return Whether the mutateRow field is set. + */ + @java.lang.Override + public boolean hasMutateRow() { + return payloadCase_ == 2; + } + + /** + * .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; + * + * @return The mutateRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowRequest getMutateRow() { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.SessionMutateRowRequest) payload_; + } + return com.google.bigtable.v2.SessionMutateRowRequest.getDefaultInstance(); + } + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowRequestOrBuilder getMutateRowOrBuilder() { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.SessionMutateRowRequest) payload_; + } + return com.google.bigtable.v2.SessionMutateRowRequest.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (payloadCase_ == 1) { + output.writeMessage(1, (com.google.bigtable.v2.SessionReadRowRequest) payload_); + } + if (payloadCase_ == 2) { + output.writeMessage(2, (com.google.bigtable.v2.SessionMutateRowRequest) payload_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (payloadCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.bigtable.v2.SessionReadRowRequest) payload_); + } + if (payloadCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.bigtable.v2.SessionMutateRowRequest) payload_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.TableRequest)) { + return super.equals(obj); + } + com.google.bigtable.v2.TableRequest other = (com.google.bigtable.v2.TableRequest) obj; + + if (!getPayloadCase().equals(other.getPayloadCase())) return false; + switch (payloadCase_) { + case 1: + if (!getReadRow().equals(other.getReadRow())) return false; + break; + case 2: + if (!getMutateRow().equals(other.getMutateRow())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (payloadCase_) { + case 1: + hash = (37 * hash) + READ_ROW_FIELD_NUMBER; + hash = (53 * hash) + getReadRow().hashCode(); + break; + case 2: + hash = (37 * hash) + MUTATE_ROW_FIELD_NUMBER; + hash = (53 * hash) + getMutateRow().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.TableRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.TableRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.TableRequest parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.TableRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.TableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.TableRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.TableRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.TableRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.TableRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.TableRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.TableRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.TableRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.TableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.TableRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.TableRequest) + com.google.bigtable.v2.TableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_TableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_TableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.TableRequest.class, + com.google.bigtable.v2.TableRequest.Builder.class); + } + + // Construct using com.google.bigtable.v2.TableRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (readRowBuilder_ != null) { + readRowBuilder_.clear(); + } + if (mutateRowBuilder_ != null) { + mutateRowBuilder_.clear(); + } + payloadCase_ = 0; + payload_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_TableRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.TableRequest getDefaultInstanceForType() { + return com.google.bigtable.v2.TableRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.TableRequest build() { + com.google.bigtable.v2.TableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.TableRequest buildPartial() { + com.google.bigtable.v2.TableRequest result = new com.google.bigtable.v2.TableRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.TableRequest result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.bigtable.v2.TableRequest result) { + result.payloadCase_ = payloadCase_; + result.payload_ = this.payload_; + if (payloadCase_ == 1 && readRowBuilder_ != null) { + result.payload_ = readRowBuilder_.build(); + } + if (payloadCase_ == 2 && mutateRowBuilder_ != null) { + result.payload_ = mutateRowBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.TableRequest) { + return mergeFrom((com.google.bigtable.v2.TableRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.TableRequest other) { + if (other == com.google.bigtable.v2.TableRequest.getDefaultInstance()) return this; + switch (other.getPayloadCase()) { + case READ_ROW: + { + mergeReadRow(other.getReadRow()); + break; + } + case MUTATE_ROW: + { + mergeMutateRow(other.getMutateRow()); + break; + } + case PAYLOAD_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetReadRowFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetMutateRowFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int payloadCase_ = 0; + private java.lang.Object payload_; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public Builder clearPayload() { + payloadCase_ = 0; + payload_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowRequest, + com.google.bigtable.v2.SessionReadRowRequest.Builder, + com.google.bigtable.v2.SessionReadRowRequestOrBuilder> + readRowBuilder_; + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return Whether the readRow field is set. + */ + @java.lang.Override + public boolean hasReadRow() { + return payloadCase_ == 1; + } + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return The readRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowRequest getReadRow() { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowRequest) payload_; + } + return com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } else { + if (payloadCase_ == 1) { + return readRowBuilder_.getMessage(); + } + return com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + public Builder setReadRow(com.google.bigtable.v2.SessionReadRowRequest value) { + if (readRowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + readRowBuilder_.setMessage(value); + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + public Builder setReadRow( + com.google.bigtable.v2.SessionReadRowRequest.Builder builderForValue) { + if (readRowBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + readRowBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + public Builder mergeReadRow(com.google.bigtable.v2.SessionReadRowRequest value) { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1 + && payload_ != com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.SessionReadRowRequest.newBuilder( + (com.google.bigtable.v2.SessionReadRowRequest) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 1) { + readRowBuilder_.mergeFrom(value); + } else { + readRowBuilder_.setMessage(value); + } + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + public Builder clearReadRow() { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + } + readRowBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + public com.google.bigtable.v2.SessionReadRowRequest.Builder getReadRowBuilder() { + return internalGetReadRowFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowRequestOrBuilder getReadRowOrBuilder() { + if ((payloadCase_ == 1) && (readRowBuilder_ != null)) { + return readRowBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowRequest) payload_; + } + return com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowRequest, + com.google.bigtable.v2.SessionReadRowRequest.Builder, + com.google.bigtable.v2.SessionReadRowRequestOrBuilder> + internalGetReadRowFieldBuilder() { + if (readRowBuilder_ == null) { + if (!(payloadCase_ == 1)) { + payload_ = com.google.bigtable.v2.SessionReadRowRequest.getDefaultInstance(); + } + readRowBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowRequest, + com.google.bigtable.v2.SessionReadRowRequest.Builder, + com.google.bigtable.v2.SessionReadRowRequestOrBuilder>( + (com.google.bigtable.v2.SessionReadRowRequest) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 1; + onChanged(); + return readRowBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionMutateRowRequest, + com.google.bigtable.v2.SessionMutateRowRequest.Builder, + com.google.bigtable.v2.SessionMutateRowRequestOrBuilder> + mutateRowBuilder_; + + /** + * .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; + * + * @return Whether the mutateRow field is set. + */ + @java.lang.Override + public boolean hasMutateRow() { + return payloadCase_ == 2; + } + + /** + * .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; + * + * @return The mutateRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowRequest getMutateRow() { + if (mutateRowBuilder_ == null) { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.SessionMutateRowRequest) payload_; + } + return com.google.bigtable.v2.SessionMutateRowRequest.getDefaultInstance(); + } else { + if (payloadCase_ == 2) { + return mutateRowBuilder_.getMessage(); + } + return com.google.bigtable.v2.SessionMutateRowRequest.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + public Builder setMutateRow(com.google.bigtable.v2.SessionMutateRowRequest value) { + if (mutateRowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + mutateRowBuilder_.setMessage(value); + } + payloadCase_ = 2; + return this; + } + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + public Builder setMutateRow( + com.google.bigtable.v2.SessionMutateRowRequest.Builder builderForValue) { + if (mutateRowBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + mutateRowBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 2; + return this; + } + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + public Builder mergeMutateRow(com.google.bigtable.v2.SessionMutateRowRequest value) { + if (mutateRowBuilder_ == null) { + if (payloadCase_ == 2 + && payload_ != com.google.bigtable.v2.SessionMutateRowRequest.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.SessionMutateRowRequest.newBuilder( + (com.google.bigtable.v2.SessionMutateRowRequest) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 2) { + mutateRowBuilder_.mergeFrom(value); + } else { + mutateRowBuilder_.setMessage(value); + } + } + payloadCase_ = 2; + return this; + } + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + public Builder clearMutateRow() { + if (mutateRowBuilder_ == null) { + if (payloadCase_ == 2) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 2) { + payloadCase_ = 0; + payload_ = null; + } + mutateRowBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + public com.google.bigtable.v2.SessionMutateRowRequest.Builder getMutateRowBuilder() { + return internalGetMutateRowFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowRequestOrBuilder getMutateRowOrBuilder() { + if ((payloadCase_ == 2) && (mutateRowBuilder_ != null)) { + return mutateRowBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.SessionMutateRowRequest) payload_; + } + return com.google.bigtable.v2.SessionMutateRowRequest.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionMutateRowRequest, + com.google.bigtable.v2.SessionMutateRowRequest.Builder, + com.google.bigtable.v2.SessionMutateRowRequestOrBuilder> + internalGetMutateRowFieldBuilder() { + if (mutateRowBuilder_ == null) { + if (!(payloadCase_ == 2)) { + payload_ = com.google.bigtable.v2.SessionMutateRowRequest.getDefaultInstance(); + } + mutateRowBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionMutateRowRequest, + com.google.bigtable.v2.SessionMutateRowRequest.Builder, + com.google.bigtable.v2.SessionMutateRowRequestOrBuilder>( + (com.google.bigtable.v2.SessionMutateRowRequest) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 2; + onChanged(); + return mutateRowBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.TableRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.TableRequest) + private static final com.google.bigtable.v2.TableRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.TableRequest(); + } + + public static com.google.bigtable.v2.TableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.TableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TableRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TableRequestOrBuilder.java new file mode 100644 index 0000000000..46dd37288e --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TableRequestOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface TableRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.TableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return Whether the readRow field is set. + */ + boolean hasReadRow(); + + /** + * .google.bigtable.v2.SessionReadRowRequest read_row = 1; + * + * @return The readRow. + */ + com.google.bigtable.v2.SessionReadRowRequest getReadRow(); + + /** .google.bigtable.v2.SessionReadRowRequest read_row = 1; */ + com.google.bigtable.v2.SessionReadRowRequestOrBuilder getReadRowOrBuilder(); + + /** + * .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; + * + * @return Whether the mutateRow field is set. + */ + boolean hasMutateRow(); + + /** + * .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; + * + * @return The mutateRow. + */ + com.google.bigtable.v2.SessionMutateRowRequest getMutateRow(); + + /** .google.bigtable.v2.SessionMutateRowRequest mutate_row = 2; */ + com.google.bigtable.v2.SessionMutateRowRequestOrBuilder getMutateRowOrBuilder(); + + com.google.bigtable.v2.TableRequest.PayloadCase getPayloadCase(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TableResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TableResponse.java new file mode 100644 index 0000000000..376919490e --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TableResponse.java @@ -0,0 +1,922 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.TableResponse} + */ +@com.google.protobuf.Generated +public final class TableResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.TableResponse) + TableResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TableResponse"); + } + + // Use TableResponse.newBuilder() to construct. + private TableResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TableResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_TableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_TableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.TableResponse.class, + com.google.bigtable.v2.TableResponse.Builder.class); + } + + private int payloadCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object payload_; + + public enum PayloadCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + READ_ROW(1), + MUTATE_ROW(2), + PAYLOAD_NOT_SET(0); + private final int value; + + private PayloadCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PayloadCase valueOf(int value) { + return forNumber(value); + } + + public static PayloadCase forNumber(int value) { + switch (value) { + case 1: + return READ_ROW; + case 2: + return MUTATE_ROW; + case 0: + return PAYLOAD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public static final int READ_ROW_FIELD_NUMBER = 1; + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return Whether the readRow field is set. + */ + @java.lang.Override + public boolean hasReadRow() { + return payloadCase_ == 1; + } + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return The readRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowResponse getReadRow() { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowResponse) payload_; + } + return com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowResponseOrBuilder getReadRowOrBuilder() { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowResponse) payload_; + } + return com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } + + public static final int MUTATE_ROW_FIELD_NUMBER = 2; + + /** + * .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; + * + * @return Whether the mutateRow field is set. + */ + @java.lang.Override + public boolean hasMutateRow() { + return payloadCase_ == 2; + } + + /** + * .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; + * + * @return The mutateRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowResponse getMutateRow() { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.SessionMutateRowResponse) payload_; + } + return com.google.bigtable.v2.SessionMutateRowResponse.getDefaultInstance(); + } + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowResponseOrBuilder getMutateRowOrBuilder() { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.SessionMutateRowResponse) payload_; + } + return com.google.bigtable.v2.SessionMutateRowResponse.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (payloadCase_ == 1) { + output.writeMessage(1, (com.google.bigtable.v2.SessionReadRowResponse) payload_); + } + if (payloadCase_ == 2) { + output.writeMessage(2, (com.google.bigtable.v2.SessionMutateRowResponse) payload_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (payloadCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.bigtable.v2.SessionReadRowResponse) payload_); + } + if (payloadCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.bigtable.v2.SessionMutateRowResponse) payload_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.TableResponse)) { + return super.equals(obj); + } + com.google.bigtable.v2.TableResponse other = (com.google.bigtable.v2.TableResponse) obj; + + if (!getPayloadCase().equals(other.getPayloadCase())) return false; + switch (payloadCase_) { + case 1: + if (!getReadRow().equals(other.getReadRow())) return false; + break; + case 2: + if (!getMutateRow().equals(other.getMutateRow())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (payloadCase_) { + case 1: + hash = (37 * hash) + READ_ROW_FIELD_NUMBER; + hash = (53 * hash) + getReadRow().hashCode(); + break; + case 2: + hash = (37 * hash) + MUTATE_ROW_FIELD_NUMBER; + hash = (53 * hash) + getMutateRow().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.TableResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.TableResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.TableResponse parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.TableResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.TableResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.TableResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.TableResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.TableResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.TableResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.TableResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.TableResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.TableResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.TableResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.TableResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.TableResponse) + com.google.bigtable.v2.TableResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_TableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_TableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.TableResponse.class, + com.google.bigtable.v2.TableResponse.Builder.class); + } + + // Construct using com.google.bigtable.v2.TableResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (readRowBuilder_ != null) { + readRowBuilder_.clear(); + } + if (mutateRowBuilder_ != null) { + mutateRowBuilder_.clear(); + } + payloadCase_ = 0; + payload_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_TableResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.TableResponse getDefaultInstanceForType() { + return com.google.bigtable.v2.TableResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.TableResponse build() { + com.google.bigtable.v2.TableResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.TableResponse buildPartial() { + com.google.bigtable.v2.TableResponse result = new com.google.bigtable.v2.TableResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.TableResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.bigtable.v2.TableResponse result) { + result.payloadCase_ = payloadCase_; + result.payload_ = this.payload_; + if (payloadCase_ == 1 && readRowBuilder_ != null) { + result.payload_ = readRowBuilder_.build(); + } + if (payloadCase_ == 2 && mutateRowBuilder_ != null) { + result.payload_ = mutateRowBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.TableResponse) { + return mergeFrom((com.google.bigtable.v2.TableResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.TableResponse other) { + if (other == com.google.bigtable.v2.TableResponse.getDefaultInstance()) return this; + switch (other.getPayloadCase()) { + case READ_ROW: + { + mergeReadRow(other.getReadRow()); + break; + } + case MUTATE_ROW: + { + mergeMutateRow(other.getMutateRow()); + break; + } + case PAYLOAD_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetReadRowFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetMutateRowFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int payloadCase_ = 0; + private java.lang.Object payload_; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public Builder clearPayload() { + payloadCase_ = 0; + payload_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowResponse, + com.google.bigtable.v2.SessionReadRowResponse.Builder, + com.google.bigtable.v2.SessionReadRowResponseOrBuilder> + readRowBuilder_; + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return Whether the readRow field is set. + */ + @java.lang.Override + public boolean hasReadRow() { + return payloadCase_ == 1; + } + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return The readRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowResponse getReadRow() { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowResponse) payload_; + } + return com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } else { + if (payloadCase_ == 1) { + return readRowBuilder_.getMessage(); + } + return com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + public Builder setReadRow(com.google.bigtable.v2.SessionReadRowResponse value) { + if (readRowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + readRowBuilder_.setMessage(value); + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + public Builder setReadRow( + com.google.bigtable.v2.SessionReadRowResponse.Builder builderForValue) { + if (readRowBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + readRowBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + public Builder mergeReadRow(com.google.bigtable.v2.SessionReadRowResponse value) { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1 + && payload_ != com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.SessionReadRowResponse.newBuilder( + (com.google.bigtable.v2.SessionReadRowResponse) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 1) { + readRowBuilder_.mergeFrom(value); + } else { + readRowBuilder_.setMessage(value); + } + } + payloadCase_ = 1; + return this; + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + public Builder clearReadRow() { + if (readRowBuilder_ == null) { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + } + readRowBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + public com.google.bigtable.v2.SessionReadRowResponse.Builder getReadRowBuilder() { + return internalGetReadRowFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + @java.lang.Override + public com.google.bigtable.v2.SessionReadRowResponseOrBuilder getReadRowOrBuilder() { + if ((payloadCase_ == 1) && (readRowBuilder_ != null)) { + return readRowBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 1) { + return (com.google.bigtable.v2.SessionReadRowResponse) payload_; + } + return com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowResponse, + com.google.bigtable.v2.SessionReadRowResponse.Builder, + com.google.bigtable.v2.SessionReadRowResponseOrBuilder> + internalGetReadRowFieldBuilder() { + if (readRowBuilder_ == null) { + if (!(payloadCase_ == 1)) { + payload_ = com.google.bigtable.v2.SessionReadRowResponse.getDefaultInstance(); + } + readRowBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionReadRowResponse, + com.google.bigtable.v2.SessionReadRowResponse.Builder, + com.google.bigtable.v2.SessionReadRowResponseOrBuilder>( + (com.google.bigtable.v2.SessionReadRowResponse) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 1; + onChanged(); + return readRowBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionMutateRowResponse, + com.google.bigtable.v2.SessionMutateRowResponse.Builder, + com.google.bigtable.v2.SessionMutateRowResponseOrBuilder> + mutateRowBuilder_; + + /** + * .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; + * + * @return Whether the mutateRow field is set. + */ + @java.lang.Override + public boolean hasMutateRow() { + return payloadCase_ == 2; + } + + /** + * .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; + * + * @return The mutateRow. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowResponse getMutateRow() { + if (mutateRowBuilder_ == null) { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.SessionMutateRowResponse) payload_; + } + return com.google.bigtable.v2.SessionMutateRowResponse.getDefaultInstance(); + } else { + if (payloadCase_ == 2) { + return mutateRowBuilder_.getMessage(); + } + return com.google.bigtable.v2.SessionMutateRowResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + public Builder setMutateRow(com.google.bigtable.v2.SessionMutateRowResponse value) { + if (mutateRowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + mutateRowBuilder_.setMessage(value); + } + payloadCase_ = 2; + return this; + } + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + public Builder setMutateRow( + com.google.bigtable.v2.SessionMutateRowResponse.Builder builderForValue) { + if (mutateRowBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + mutateRowBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 2; + return this; + } + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + public Builder mergeMutateRow(com.google.bigtable.v2.SessionMutateRowResponse value) { + if (mutateRowBuilder_ == null) { + if (payloadCase_ == 2 + && payload_ != com.google.bigtable.v2.SessionMutateRowResponse.getDefaultInstance()) { + payload_ = + com.google.bigtable.v2.SessionMutateRowResponse.newBuilder( + (com.google.bigtable.v2.SessionMutateRowResponse) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 2) { + mutateRowBuilder_.mergeFrom(value); + } else { + mutateRowBuilder_.setMessage(value); + } + } + payloadCase_ = 2; + return this; + } + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + public Builder clearMutateRow() { + if (mutateRowBuilder_ == null) { + if (payloadCase_ == 2) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 2) { + payloadCase_ = 0; + payload_ = null; + } + mutateRowBuilder_.clear(); + } + return this; + } + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + public com.google.bigtable.v2.SessionMutateRowResponse.Builder getMutateRowBuilder() { + return internalGetMutateRowFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + @java.lang.Override + public com.google.bigtable.v2.SessionMutateRowResponseOrBuilder getMutateRowOrBuilder() { + if ((payloadCase_ == 2) && (mutateRowBuilder_ != null)) { + return mutateRowBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 2) { + return (com.google.bigtable.v2.SessionMutateRowResponse) payload_; + } + return com.google.bigtable.v2.SessionMutateRowResponse.getDefaultInstance(); + } + } + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionMutateRowResponse, + com.google.bigtable.v2.SessionMutateRowResponse.Builder, + com.google.bigtable.v2.SessionMutateRowResponseOrBuilder> + internalGetMutateRowFieldBuilder() { + if (mutateRowBuilder_ == null) { + if (!(payloadCase_ == 2)) { + payload_ = com.google.bigtable.v2.SessionMutateRowResponse.getDefaultInstance(); + } + mutateRowBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionMutateRowResponse, + com.google.bigtable.v2.SessionMutateRowResponse.Builder, + com.google.bigtable.v2.SessionMutateRowResponseOrBuilder>( + (com.google.bigtable.v2.SessionMutateRowResponse) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 2; + onChanged(); + return mutateRowBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.TableResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.TableResponse) + private static final com.google.bigtable.v2.TableResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.TableResponse(); + } + + public static com.google.bigtable.v2.TableResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.TableResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TableResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TableResponseOrBuilder.java new file mode 100644 index 0000000000..e1b61b9d71 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TableResponseOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface TableResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.TableResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return Whether the readRow field is set. + */ + boolean hasReadRow(); + + /** + * .google.bigtable.v2.SessionReadRowResponse read_row = 1; + * + * @return The readRow. + */ + com.google.bigtable.v2.SessionReadRowResponse getReadRow(); + + /** .google.bigtable.v2.SessionReadRowResponse read_row = 1; */ + com.google.bigtable.v2.SessionReadRowResponseOrBuilder getReadRowOrBuilder(); + + /** + * .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; + * + * @return Whether the mutateRow field is set. + */ + boolean hasMutateRow(); + + /** + * .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; + * + * @return The mutateRow. + */ + com.google.bigtable.v2.SessionMutateRowResponse getMutateRow(); + + /** .google.bigtable.v2.SessionMutateRowResponse mutate_row = 2; */ + com.google.bigtable.v2.SessionMutateRowResponseOrBuilder getMutateRowOrBuilder(); + + com.google.bigtable.v2.TableResponse.PayloadCase getPayloadCase(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TelemetryConfiguration.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TelemetryConfiguration.java new file mode 100644 index 0000000000..43fe07eeb1 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TelemetryConfiguration.java @@ -0,0 +1,784 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Server provided instructions for enabling finer grained observability on
+ * the client to help diagnose customer issues. Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.TelemetryConfiguration} + */ +@com.google.protobuf.Generated +public final class TelemetryConfiguration extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.TelemetryConfiguration) + TelemetryConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TelemetryConfiguration"); + } + + // Use TelemetryConfiguration.newBuilder() to construct. + private TelemetryConfiguration(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TelemetryConfiguration() { + debugTagLevel_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_TelemetryConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_TelemetryConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.TelemetryConfiguration.class, + com.google.bigtable.v2.TelemetryConfiguration.Builder.class); + } + + /** + * + * + *
+   * The level of detail of telemetry to be sent from the client.
+   * 
+ * + * Protobuf enum {@code google.bigtable.v2.TelemetryConfiguration.Level} + */ + public enum Level implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Server did not specify a level. Should disable all debug tag counters.
+     * 
+ * + * LEVEL_UNSPECIFIED = 0; + */ + LEVEL_UNSPECIFIED(0), + /** + * + * + *
+     * Enables all debug tag counter levels.
+     * 
+ * + * DEBUG = 1; + */ + DEBUG(1), + /** + * + * + *
+     * Eables all debug tag counters except for DEBUG.
+     * 
+ * + * INFO = 2; + */ + INFO(2), + /** + * + * + *
+     * Enables all debug tag counters except for DEBUG and INFO.
+     * 
+ * + * WARN = 3; + */ + WARN(3), + /** + * + * + *
+     * Enables only error debug tag counters.
+     * 
+ * + * ERROR = 4; + */ + ERROR(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Level"); + } + + /** + * + * + *
+     * Server did not specify a level. Should disable all debug tag counters.
+     * 
+ * + * LEVEL_UNSPECIFIED = 0; + */ + public static final int LEVEL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Enables all debug tag counter levels.
+     * 
+ * + * DEBUG = 1; + */ + public static final int DEBUG_VALUE = 1; + + /** + * + * + *
+     * Eables all debug tag counters except for DEBUG.
+     * 
+ * + * INFO = 2; + */ + public static final int INFO_VALUE = 2; + + /** + * + * + *
+     * Enables all debug tag counters except for DEBUG and INFO.
+     * 
+ * + * WARN = 3; + */ + public static final int WARN_VALUE = 3; + + /** + * + * + *
+     * Enables only error debug tag counters.
+     * 
+ * + * ERROR = 4; + */ + public static final int ERROR_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Level valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Level forNumber(int value) { + switch (value) { + case 0: + return LEVEL_UNSPECIFIED; + case 1: + return DEBUG; + case 2: + return INFO; + case 3: + return WARN; + case 4: + return ERROR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Level findValueByNumber(int number) { + return Level.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.bigtable.v2.TelemetryConfiguration.getDescriptor().getEnumTypes().get(0); + } + + private static final Level[] VALUES = values(); + + public static Level valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Level(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.bigtable.v2.TelemetryConfiguration.Level) + } + + public static final int DEBUG_TAG_LEVEL_FIELD_NUMBER = 1; + private int debugTagLevel_ = 0; + + /** + * + * + *
+   * Selector for the debug counters that should be uploaded.
+   * 
+ * + * .google.bigtable.v2.TelemetryConfiguration.Level debug_tag_level = 1; + * + * @return The enum numeric value on the wire for debugTagLevel. + */ + @java.lang.Override + public int getDebugTagLevelValue() { + return debugTagLevel_; + } + + /** + * + * + *
+   * Selector for the debug counters that should be uploaded.
+   * 
+ * + * .google.bigtable.v2.TelemetryConfiguration.Level debug_tag_level = 1; + * + * @return The debugTagLevel. + */ + @java.lang.Override + public com.google.bigtable.v2.TelemetryConfiguration.Level getDebugTagLevel() { + com.google.bigtable.v2.TelemetryConfiguration.Level result = + com.google.bigtable.v2.TelemetryConfiguration.Level.forNumber(debugTagLevel_); + return result == null + ? com.google.bigtable.v2.TelemetryConfiguration.Level.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (debugTagLevel_ + != com.google.bigtable.v2.TelemetryConfiguration.Level.LEVEL_UNSPECIFIED.getNumber()) { + output.writeEnum(1, debugTagLevel_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (debugTagLevel_ + != com.google.bigtable.v2.TelemetryConfiguration.Level.LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, debugTagLevel_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.TelemetryConfiguration)) { + return super.equals(obj); + } + com.google.bigtable.v2.TelemetryConfiguration other = + (com.google.bigtable.v2.TelemetryConfiguration) obj; + + if (debugTagLevel_ != other.debugTagLevel_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEBUG_TAG_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + debugTagLevel_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.TelemetryConfiguration parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.TelemetryConfiguration parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.TelemetryConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.TelemetryConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.TelemetryConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.TelemetryConfiguration parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.TelemetryConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.TelemetryConfiguration parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.TelemetryConfiguration parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.TelemetryConfiguration parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.TelemetryConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.TelemetryConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.TelemetryConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Server provided instructions for enabling finer grained observability on
+   * the client to help diagnose customer issues. Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.TelemetryConfiguration} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.TelemetryConfiguration) + com.google.bigtable.v2.TelemetryConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_TelemetryConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_TelemetryConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.TelemetryConfiguration.class, + com.google.bigtable.v2.TelemetryConfiguration.Builder.class); + } + + // Construct using com.google.bigtable.v2.TelemetryConfiguration.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + debugTagLevel_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_TelemetryConfiguration_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.TelemetryConfiguration getDefaultInstanceForType() { + return com.google.bigtable.v2.TelemetryConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.TelemetryConfiguration build() { + com.google.bigtable.v2.TelemetryConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.TelemetryConfiguration buildPartial() { + com.google.bigtable.v2.TelemetryConfiguration result = + new com.google.bigtable.v2.TelemetryConfiguration(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.TelemetryConfiguration result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.debugTagLevel_ = debugTagLevel_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.TelemetryConfiguration) { + return mergeFrom((com.google.bigtable.v2.TelemetryConfiguration) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.TelemetryConfiguration other) { + if (other == com.google.bigtable.v2.TelemetryConfiguration.getDefaultInstance()) return this; + if (other.debugTagLevel_ != 0) { + setDebugTagLevelValue(other.getDebugTagLevelValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + debugTagLevel_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int debugTagLevel_ = 0; + + /** + * + * + *
+     * Selector for the debug counters that should be uploaded.
+     * 
+ * + * .google.bigtable.v2.TelemetryConfiguration.Level debug_tag_level = 1; + * + * @return The enum numeric value on the wire for debugTagLevel. + */ + @java.lang.Override + public int getDebugTagLevelValue() { + return debugTagLevel_; + } + + /** + * + * + *
+     * Selector for the debug counters that should be uploaded.
+     * 
+ * + * .google.bigtable.v2.TelemetryConfiguration.Level debug_tag_level = 1; + * + * @param value The enum numeric value on the wire for debugTagLevel to set. + * @return This builder for chaining. + */ + public Builder setDebugTagLevelValue(int value) { + debugTagLevel_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Selector for the debug counters that should be uploaded.
+     * 
+ * + * .google.bigtable.v2.TelemetryConfiguration.Level debug_tag_level = 1; + * + * @return The debugTagLevel. + */ + @java.lang.Override + public com.google.bigtable.v2.TelemetryConfiguration.Level getDebugTagLevel() { + com.google.bigtable.v2.TelemetryConfiguration.Level result = + com.google.bigtable.v2.TelemetryConfiguration.Level.forNumber(debugTagLevel_); + return result == null + ? com.google.bigtable.v2.TelemetryConfiguration.Level.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Selector for the debug counters that should be uploaded.
+     * 
+ * + * .google.bigtable.v2.TelemetryConfiguration.Level debug_tag_level = 1; + * + * @param value The debugTagLevel to set. + * @return This builder for chaining. + */ + public Builder setDebugTagLevel(com.google.bigtable.v2.TelemetryConfiguration.Level value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + debugTagLevel_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Selector for the debug counters that should be uploaded.
+     * 
+ * + * .google.bigtable.v2.TelemetryConfiguration.Level debug_tag_level = 1; + * + * @return This builder for chaining. + */ + public Builder clearDebugTagLevel() { + bitField0_ = (bitField0_ & ~0x00000001); + debugTagLevel_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.TelemetryConfiguration) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.TelemetryConfiguration) + private static final com.google.bigtable.v2.TelemetryConfiguration DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.TelemetryConfiguration(); + } + + public static com.google.bigtable.v2.TelemetryConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TelemetryConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.TelemetryConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TelemetryConfigurationOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TelemetryConfigurationOrBuilder.java new file mode 100644 index 0000000000..457c8e594c --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TelemetryConfigurationOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface TelemetryConfigurationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.TelemetryConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Selector for the debug counters that should be uploaded.
+   * 
+ * + * .google.bigtable.v2.TelemetryConfiguration.Level debug_tag_level = 1; + * + * @return The enum numeric value on the wire for debugTagLevel. + */ + int getDebugTagLevelValue(); + + /** + * + * + *
+   * Selector for the debug counters that should be uploaded.
+   * 
+ * + * .google.bigtable.v2.TelemetryConfiguration.Level debug_tag_level = 1; + * + * @return The debugTagLevel. + */ + com.google.bigtable.v2.TelemetryConfiguration.Level getDebugTagLevel(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/VirtualRpcRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/VirtualRpcRequest.java new file mode 100644 index 0000000000..da34767643 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/VirtualRpcRequest.java @@ -0,0 +1,2298 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.VirtualRpcRequest} + */ +@com.google.protobuf.Generated +public final class VirtualRpcRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.VirtualRpcRequest) + VirtualRpcRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VirtualRpcRequest"); + } + + // Use VirtualRpcRequest.newBuilder() to construct. + private VirtualRpcRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VirtualRpcRequest() { + payload_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_VirtualRpcRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_VirtualRpcRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.VirtualRpcRequest.class, + com.google.bigtable.v2.VirtualRpcRequest.Builder.class); + } + + public interface MetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.VirtualRpcRequest.Metadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Track retry attempts for this vRPC at the AFE.
+     * 
+ * + * int64 attempt_number = 1; + * + * @return The attemptNumber. + */ + long getAttemptNumber(); + + /** + * + * + *
+     * Track the client's known start time for the attempt. This is likely not
+     * easily compared with the server's time due to clock skew.
+     * 
+ * + * .google.protobuf.Timestamp attempt_start = 2; + * + * @return Whether the attemptStart field is set. + */ + boolean hasAttemptStart(); + + /** + * + * + *
+     * Track the client's known start time for the attempt. This is likely not
+     * easily compared with the server's time due to clock skew.
+     * 
+ * + * .google.protobuf.Timestamp attempt_start = 2; + * + * @return The attemptStart. + */ + com.google.protobuf.Timestamp getAttemptStart(); + + /** + * + * + *
+     * Track the client's known start time for the attempt. This is likely not
+     * easily compared with the server's time due to clock skew.
+     * 
+ * + * .google.protobuf.Timestamp attempt_start = 2; + */ + com.google.protobuf.TimestampOrBuilder getAttemptStartOrBuilder(); + + /** + * + * + *
+     * Link OpenTelemetry traces (e.g. Tapper). This can be used to link
+     * attempts together for the same logical operation (e.g. in logs / traces).
+     *
+     * Note, this may not be needed for V1, TBD.
+     * 
+ * + * string traceparent = 3; + * + * @return The traceparent. + */ + java.lang.String getTraceparent(); + + /** + * + * + *
+     * Link OpenTelemetry traces (e.g. Tapper). This can be used to link
+     * attempts together for the same logical operation (e.g. in logs / traces).
+     *
+     * Note, this may not be needed for V1, TBD.
+     * 
+ * + * string traceparent = 3; + * + * @return The bytes for traceparent. + */ + com.google.protobuf.ByteString getTraceparentBytes(); + } + + /** + * + * + *
+   * Container for all vRPC Metadata.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.VirtualRpcRequest.Metadata} + */ + public static final class Metadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.VirtualRpcRequest.Metadata) + MetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Metadata"); + } + + // Use Metadata.newBuilder() to construct. + private Metadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Metadata() { + traceparent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_VirtualRpcRequest_Metadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_VirtualRpcRequest_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.VirtualRpcRequest.Metadata.class, + com.google.bigtable.v2.VirtualRpcRequest.Metadata.Builder.class); + } + + private int bitField0_; + public static final int ATTEMPT_NUMBER_FIELD_NUMBER = 1; + private long attemptNumber_ = 0L; + + /** + * + * + *
+     * Track retry attempts for this vRPC at the AFE.
+     * 
+ * + * int64 attempt_number = 1; + * + * @return The attemptNumber. + */ + @java.lang.Override + public long getAttemptNumber() { + return attemptNumber_; + } + + public static final int ATTEMPT_START_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp attemptStart_; + + /** + * + * + *
+     * Track the client's known start time for the attempt. This is likely not
+     * easily compared with the server's time due to clock skew.
+     * 
+ * + * .google.protobuf.Timestamp attempt_start = 2; + * + * @return Whether the attemptStart field is set. + */ + @java.lang.Override + public boolean hasAttemptStart() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Track the client's known start time for the attempt. This is likely not
+     * easily compared with the server's time due to clock skew.
+     * 
+ * + * .google.protobuf.Timestamp attempt_start = 2; + * + * @return The attemptStart. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getAttemptStart() { + return attemptStart_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : attemptStart_; + } + + /** + * + * + *
+     * Track the client's known start time for the attempt. This is likely not
+     * easily compared with the server's time due to clock skew.
+     * 
+ * + * .google.protobuf.Timestamp attempt_start = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getAttemptStartOrBuilder() { + return attemptStart_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : attemptStart_; + } + + public static final int TRACEPARENT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object traceparent_ = ""; + + /** + * + * + *
+     * Link OpenTelemetry traces (e.g. Tapper). This can be used to link
+     * attempts together for the same logical operation (e.g. in logs / traces).
+     *
+     * Note, this may not be needed for V1, TBD.
+     * 
+ * + * string traceparent = 3; + * + * @return The traceparent. + */ + @java.lang.Override + public java.lang.String getTraceparent() { + java.lang.Object ref = traceparent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + traceparent_ = s; + return s; + } + } + + /** + * + * + *
+     * Link OpenTelemetry traces (e.g. Tapper). This can be used to link
+     * attempts together for the same logical operation (e.g. in logs / traces).
+     *
+     * Note, this may not be needed for V1, TBD.
+     * 
+ * + * string traceparent = 3; + * + * @return The bytes for traceparent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTraceparentBytes() { + java.lang.Object ref = traceparent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + traceparent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (attemptNumber_ != 0L) { + output.writeInt64(1, attemptNumber_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getAttemptStart()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(traceparent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, traceparent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attemptNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, attemptNumber_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAttemptStart()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(traceparent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, traceparent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.VirtualRpcRequest.Metadata)) { + return super.equals(obj); + } + com.google.bigtable.v2.VirtualRpcRequest.Metadata other = + (com.google.bigtable.v2.VirtualRpcRequest.Metadata) obj; + + if (getAttemptNumber() != other.getAttemptNumber()) return false; + if (hasAttemptStart() != other.hasAttemptStart()) return false; + if (hasAttemptStart()) { + if (!getAttemptStart().equals(other.getAttemptStart())) return false; + } + if (!getTraceparent().equals(other.getTraceparent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ATTEMPT_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAttemptNumber()); + if (hasAttemptStart()) { + hash = (37 * hash) + ATTEMPT_START_FIELD_NUMBER; + hash = (53 * hash) + getAttemptStart().hashCode(); + } + hash = (37 * hash) + TRACEPARENT_FIELD_NUMBER; + hash = (53 * hash) + getTraceparent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.VirtualRpcRequest.Metadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.VirtualRpcRequest.Metadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.VirtualRpcRequest.Metadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.VirtualRpcRequest.Metadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.VirtualRpcRequest.Metadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.VirtualRpcRequest.Metadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.VirtualRpcRequest.Metadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.VirtualRpcRequest.Metadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.VirtualRpcRequest.Metadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.VirtualRpcRequest.Metadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.VirtualRpcRequest.Metadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.VirtualRpcRequest.Metadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.VirtualRpcRequest.Metadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Container for all vRPC Metadata.
+     * 
+ * + * Protobuf type {@code google.bigtable.v2.VirtualRpcRequest.Metadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.VirtualRpcRequest.Metadata) + com.google.bigtable.v2.VirtualRpcRequest.MetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_VirtualRpcRequest_Metadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_VirtualRpcRequest_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.VirtualRpcRequest.Metadata.class, + com.google.bigtable.v2.VirtualRpcRequest.Metadata.Builder.class); + } + + // Construct using com.google.bigtable.v2.VirtualRpcRequest.Metadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAttemptStartFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attemptNumber_ = 0L; + attemptStart_ = null; + if (attemptStartBuilder_ != null) { + attemptStartBuilder_.dispose(); + attemptStartBuilder_ = null; + } + traceparent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_VirtualRpcRequest_Metadata_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcRequest.Metadata getDefaultInstanceForType() { + return com.google.bigtable.v2.VirtualRpcRequest.Metadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcRequest.Metadata build() { + com.google.bigtable.v2.VirtualRpcRequest.Metadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcRequest.Metadata buildPartial() { + com.google.bigtable.v2.VirtualRpcRequest.Metadata result = + new com.google.bigtable.v2.VirtualRpcRequest.Metadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.VirtualRpcRequest.Metadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attemptNumber_ = attemptNumber_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attemptStart_ = + attemptStartBuilder_ == null ? attemptStart_ : attemptStartBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.traceparent_ = traceparent_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.VirtualRpcRequest.Metadata) { + return mergeFrom((com.google.bigtable.v2.VirtualRpcRequest.Metadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.VirtualRpcRequest.Metadata other) { + if (other == com.google.bigtable.v2.VirtualRpcRequest.Metadata.getDefaultInstance()) + return this; + if (other.getAttemptNumber() != 0L) { + setAttemptNumber(other.getAttemptNumber()); + } + if (other.hasAttemptStart()) { + mergeAttemptStart(other.getAttemptStart()); + } + if (!other.getTraceparent().isEmpty()) { + traceparent_ = other.traceparent_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + attemptNumber_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetAttemptStartFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + traceparent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long attemptNumber_; + + /** + * + * + *
+       * Track retry attempts for this vRPC at the AFE.
+       * 
+ * + * int64 attempt_number = 1; + * + * @return The attemptNumber. + */ + @java.lang.Override + public long getAttemptNumber() { + return attemptNumber_; + } + + /** + * + * + *
+       * Track retry attempts for this vRPC at the AFE.
+       * 
+ * + * int64 attempt_number = 1; + * + * @param value The attemptNumber to set. + * @return This builder for chaining. + */ + public Builder setAttemptNumber(long value) { + + attemptNumber_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Track retry attempts for this vRPC at the AFE.
+       * 
+ * + * int64 attempt_number = 1; + * + * @return This builder for chaining. + */ + public Builder clearAttemptNumber() { + bitField0_ = (bitField0_ & ~0x00000001); + attemptNumber_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp attemptStart_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + attemptStartBuilder_; + + /** + * + * + *
+       * Track the client's known start time for the attempt. This is likely not
+       * easily compared with the server's time due to clock skew.
+       * 
+ * + * .google.protobuf.Timestamp attempt_start = 2; + * + * @return Whether the attemptStart field is set. + */ + public boolean hasAttemptStart() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Track the client's known start time for the attempt. This is likely not
+       * easily compared with the server's time due to clock skew.
+       * 
+ * + * .google.protobuf.Timestamp attempt_start = 2; + * + * @return The attemptStart. + */ + public com.google.protobuf.Timestamp getAttemptStart() { + if (attemptStartBuilder_ == null) { + return attemptStart_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : attemptStart_; + } else { + return attemptStartBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Track the client's known start time for the attempt. This is likely not
+       * easily compared with the server's time due to clock skew.
+       * 
+ * + * .google.protobuf.Timestamp attempt_start = 2; + */ + public Builder setAttemptStart(com.google.protobuf.Timestamp value) { + if (attemptStartBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attemptStart_ = value; + } else { + attemptStartBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Track the client's known start time for the attempt. This is likely not
+       * easily compared with the server's time due to clock skew.
+       * 
+ * + * .google.protobuf.Timestamp attempt_start = 2; + */ + public Builder setAttemptStart(com.google.protobuf.Timestamp.Builder builderForValue) { + if (attemptStartBuilder_ == null) { + attemptStart_ = builderForValue.build(); + } else { + attemptStartBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Track the client's known start time for the attempt. This is likely not
+       * easily compared with the server's time due to clock skew.
+       * 
+ * + * .google.protobuf.Timestamp attempt_start = 2; + */ + public Builder mergeAttemptStart(com.google.protobuf.Timestamp value) { + if (attemptStartBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && attemptStart_ != null + && attemptStart_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getAttemptStartBuilder().mergeFrom(value); + } else { + attemptStart_ = value; + } + } else { + attemptStartBuilder_.mergeFrom(value); + } + if (attemptStart_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Track the client's known start time for the attempt. This is likely not
+       * easily compared with the server's time due to clock skew.
+       * 
+ * + * .google.protobuf.Timestamp attempt_start = 2; + */ + public Builder clearAttemptStart() { + bitField0_ = (bitField0_ & ~0x00000002); + attemptStart_ = null; + if (attemptStartBuilder_ != null) { + attemptStartBuilder_.dispose(); + attemptStartBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Track the client's known start time for the attempt. This is likely not
+       * easily compared with the server's time due to clock skew.
+       * 
+ * + * .google.protobuf.Timestamp attempt_start = 2; + */ + public com.google.protobuf.Timestamp.Builder getAttemptStartBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAttemptStartFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Track the client's known start time for the attempt. This is likely not
+       * easily compared with the server's time due to clock skew.
+       * 
+ * + * .google.protobuf.Timestamp attempt_start = 2; + */ + public com.google.protobuf.TimestampOrBuilder getAttemptStartOrBuilder() { + if (attemptStartBuilder_ != null) { + return attemptStartBuilder_.getMessageOrBuilder(); + } else { + return attemptStart_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : attemptStart_; + } + } + + /** + * + * + *
+       * Track the client's known start time for the attempt. This is likely not
+       * easily compared with the server's time due to clock skew.
+       * 
+ * + * .google.protobuf.Timestamp attempt_start = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetAttemptStartFieldBuilder() { + if (attemptStartBuilder_ == null) { + attemptStartBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getAttemptStart(), getParentForChildren(), isClean()); + attemptStart_ = null; + } + return attemptStartBuilder_; + } + + private java.lang.Object traceparent_ = ""; + + /** + * + * + *
+       * Link OpenTelemetry traces (e.g. Tapper). This can be used to link
+       * attempts together for the same logical operation (e.g. in logs / traces).
+       *
+       * Note, this may not be needed for V1, TBD.
+       * 
+ * + * string traceparent = 3; + * + * @return The traceparent. + */ + public java.lang.String getTraceparent() { + java.lang.Object ref = traceparent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + traceparent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Link OpenTelemetry traces (e.g. Tapper). This can be used to link
+       * attempts together for the same logical operation (e.g. in logs / traces).
+       *
+       * Note, this may not be needed for V1, TBD.
+       * 
+ * + * string traceparent = 3; + * + * @return The bytes for traceparent. + */ + public com.google.protobuf.ByteString getTraceparentBytes() { + java.lang.Object ref = traceparent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + traceparent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Link OpenTelemetry traces (e.g. Tapper). This can be used to link
+       * attempts together for the same logical operation (e.g. in logs / traces).
+       *
+       * Note, this may not be needed for V1, TBD.
+       * 
+ * + * string traceparent = 3; + * + * @param value The traceparent to set. + * @return This builder for chaining. + */ + public Builder setTraceparent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + traceparent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Link OpenTelemetry traces (e.g. Tapper). This can be used to link
+       * attempts together for the same logical operation (e.g. in logs / traces).
+       *
+       * Note, this may not be needed for V1, TBD.
+       * 
+ * + * string traceparent = 3; + * + * @return This builder for chaining. + */ + public Builder clearTraceparent() { + traceparent_ = getDefaultInstance().getTraceparent(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Link OpenTelemetry traces (e.g. Tapper). This can be used to link
+       * attempts together for the same logical operation (e.g. in logs / traces).
+       *
+       * Note, this may not be needed for V1, TBD.
+       * 
+ * + * string traceparent = 3; + * + * @param value The bytes for traceparent to set. + * @return This builder for chaining. + */ + public Builder setTraceparentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + traceparent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.VirtualRpcRequest.Metadata) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.VirtualRpcRequest.Metadata) + private static final com.google.bigtable.v2.VirtualRpcRequest.Metadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.VirtualRpcRequest.Metadata(); + } + + public static com.google.bigtable.v2.VirtualRpcRequest.Metadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcRequest.Metadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int RPC_ID_FIELD_NUMBER = 1; + private long rpcId_ = 0L; + + /** + * + * + *
+   * Client chosen, monotonically increasing identifier for the request.
+   * Must be unique within a session.
+   * 
+ * + * int64 rpc_id = 1; + * + * @return The rpcId. + */ + @java.lang.Override + public long getRpcId() { + return rpcId_; + } + + public static final int DEADLINE_FIELD_NUMBER = 2; + private com.google.protobuf.Duration deadline_; + + /** + * + * + *
+   * Attempt deadline.
+   *
+   * Note, this may not be needed for V1, TBD (e.g. operation vs attempt
+   * deadline).
+   * 
+ * + * .google.protobuf.Duration deadline = 2; + * + * @return Whether the deadline field is set. + */ + @java.lang.Override + public boolean hasDeadline() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Attempt deadline.
+   *
+   * Note, this may not be needed for V1, TBD (e.g. operation vs attempt
+   * deadline).
+   * 
+ * + * .google.protobuf.Duration deadline = 2; + * + * @return The deadline. + */ + @java.lang.Override + public com.google.protobuf.Duration getDeadline() { + return deadline_ == null ? com.google.protobuf.Duration.getDefaultInstance() : deadline_; + } + + /** + * + * + *
+   * Attempt deadline.
+   *
+   * Note, this may not be needed for V1, TBD (e.g. operation vs attempt
+   * deadline).
+   * 
+ * + * .google.protobuf.Duration deadline = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDeadlineOrBuilder() { + return deadline_ == null ? com.google.protobuf.Duration.getDefaultInstance() : deadline_; + } + + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.bigtable.v2.VirtualRpcRequest.Metadata metadata_; + + /** + * + * + *
+   * vRPC metadata.
+   * 
+ * + * .google.bigtable.v2.VirtualRpcRequest.Metadata metadata = 3; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * vRPC metadata.
+   * 
+ * + * .google.bigtable.v2.VirtualRpcRequest.Metadata metadata = 3; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcRequest.Metadata getMetadata() { + return metadata_ == null + ? com.google.bigtable.v2.VirtualRpcRequest.Metadata.getDefaultInstance() + : metadata_; + } + + /** + * + * + *
+   * vRPC metadata.
+   * 
+ * + * .google.bigtable.v2.VirtualRpcRequest.Metadata metadata = 3; + */ + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcRequest.MetadataOrBuilder getMetadataOrBuilder() { + return metadata_ == null + ? com.google.bigtable.v2.VirtualRpcRequest.Metadata.getDefaultInstance() + : metadata_; + } + + public static final int PAYLOAD_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+   * Could be TableRequest (or in post-V1, SqlRequest)
+   * 
+ * + * bytes payload = 4; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (rpcId_ != 0L) { + output.writeInt64(1, rpcId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getDeadline()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getMetadata()); + } + if (!payload_.isEmpty()) { + output.writeBytes(4, payload_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rpcId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, rpcId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeadline()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } + if (!payload_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, payload_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.VirtualRpcRequest)) { + return super.equals(obj); + } + com.google.bigtable.v2.VirtualRpcRequest other = (com.google.bigtable.v2.VirtualRpcRequest) obj; + + if (getRpcId() != other.getRpcId()) return false; + if (hasDeadline() != other.hasDeadline()) return false; + if (hasDeadline()) { + if (!getDeadline().equals(other.getDeadline())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (!getPayload().equals(other.getPayload())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RPC_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRpcId()); + if (hasDeadline()) { + hash = (37 * hash) + DEADLINE_FIELD_NUMBER; + hash = (53 * hash) + getDeadline().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.VirtualRpcRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.VirtualRpcRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.VirtualRpcRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.VirtualRpcRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.VirtualRpcRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.VirtualRpcRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.VirtualRpcRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.VirtualRpcRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.VirtualRpcRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.VirtualRpcRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.VirtualRpcRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.VirtualRpcRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.VirtualRpcRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.VirtualRpcRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.VirtualRpcRequest) + com.google.bigtable.v2.VirtualRpcRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_VirtualRpcRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_VirtualRpcRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.VirtualRpcRequest.class, + com.google.bigtable.v2.VirtualRpcRequest.Builder.class); + } + + // Construct using com.google.bigtable.v2.VirtualRpcRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDeadlineFieldBuilder(); + internalGetMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rpcId_ = 0L; + deadline_ = null; + if (deadlineBuilder_ != null) { + deadlineBuilder_.dispose(); + deadlineBuilder_ = null; + } + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + payload_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_VirtualRpcRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcRequest getDefaultInstanceForType() { + return com.google.bigtable.v2.VirtualRpcRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcRequest build() { + com.google.bigtable.v2.VirtualRpcRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcRequest buildPartial() { + com.google.bigtable.v2.VirtualRpcRequest result = + new com.google.bigtable.v2.VirtualRpcRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.VirtualRpcRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rpcId_ = rpcId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deadline_ = deadlineBuilder_ == null ? deadline_ : deadlineBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.payload_ = payload_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.VirtualRpcRequest) { + return mergeFrom((com.google.bigtable.v2.VirtualRpcRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.VirtualRpcRequest other) { + if (other == com.google.bigtable.v2.VirtualRpcRequest.getDefaultInstance()) return this; + if (other.getRpcId() != 0L) { + setRpcId(other.getRpcId()); + } + if (other.hasDeadline()) { + mergeDeadline(other.getDeadline()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.getPayload().isEmpty()) { + setPayload(other.getPayload()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + rpcId_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetDeadlineFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + payload_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long rpcId_; + + /** + * + * + *
+     * Client chosen, monotonically increasing identifier for the request.
+     * Must be unique within a session.
+     * 
+ * + * int64 rpc_id = 1; + * + * @return The rpcId. + */ + @java.lang.Override + public long getRpcId() { + return rpcId_; + } + + /** + * + * + *
+     * Client chosen, monotonically increasing identifier for the request.
+     * Must be unique within a session.
+     * 
+ * + * int64 rpc_id = 1; + * + * @param value The rpcId to set. + * @return This builder for chaining. + */ + public Builder setRpcId(long value) { + + rpcId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Client chosen, monotonically increasing identifier for the request.
+     * Must be unique within a session.
+     * 
+ * + * int64 rpc_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearRpcId() { + bitField0_ = (bitField0_ & ~0x00000001); + rpcId_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Duration deadline_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + deadlineBuilder_; + + /** + * + * + *
+     * Attempt deadline.
+     *
+     * Note, this may not be needed for V1, TBD (e.g. operation vs attempt
+     * deadline).
+     * 
+ * + * .google.protobuf.Duration deadline = 2; + * + * @return Whether the deadline field is set. + */ + public boolean hasDeadline() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Attempt deadline.
+     *
+     * Note, this may not be needed for V1, TBD (e.g. operation vs attempt
+     * deadline).
+     * 
+ * + * .google.protobuf.Duration deadline = 2; + * + * @return The deadline. + */ + public com.google.protobuf.Duration getDeadline() { + if (deadlineBuilder_ == null) { + return deadline_ == null ? com.google.protobuf.Duration.getDefaultInstance() : deadline_; + } else { + return deadlineBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Attempt deadline.
+     *
+     * Note, this may not be needed for V1, TBD (e.g. operation vs attempt
+     * deadline).
+     * 
+ * + * .google.protobuf.Duration deadline = 2; + */ + public Builder setDeadline(com.google.protobuf.Duration value) { + if (deadlineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deadline_ = value; + } else { + deadlineBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Attempt deadline.
+     *
+     * Note, this may not be needed for V1, TBD (e.g. operation vs attempt
+     * deadline).
+     * 
+ * + * .google.protobuf.Duration deadline = 2; + */ + public Builder setDeadline(com.google.protobuf.Duration.Builder builderForValue) { + if (deadlineBuilder_ == null) { + deadline_ = builderForValue.build(); + } else { + deadlineBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Attempt deadline.
+     *
+     * Note, this may not be needed for V1, TBD (e.g. operation vs attempt
+     * deadline).
+     * 
+ * + * .google.protobuf.Duration deadline = 2; + */ + public Builder mergeDeadline(com.google.protobuf.Duration value) { + if (deadlineBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && deadline_ != null + && deadline_ != com.google.protobuf.Duration.getDefaultInstance()) { + getDeadlineBuilder().mergeFrom(value); + } else { + deadline_ = value; + } + } else { + deadlineBuilder_.mergeFrom(value); + } + if (deadline_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Attempt deadline.
+     *
+     * Note, this may not be needed for V1, TBD (e.g. operation vs attempt
+     * deadline).
+     * 
+ * + * .google.protobuf.Duration deadline = 2; + */ + public Builder clearDeadline() { + bitField0_ = (bitField0_ & ~0x00000002); + deadline_ = null; + if (deadlineBuilder_ != null) { + deadlineBuilder_.dispose(); + deadlineBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Attempt deadline.
+     *
+     * Note, this may not be needed for V1, TBD (e.g. operation vs attempt
+     * deadline).
+     * 
+ * + * .google.protobuf.Duration deadline = 2; + */ + public com.google.protobuf.Duration.Builder getDeadlineBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetDeadlineFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Attempt deadline.
+     *
+     * Note, this may not be needed for V1, TBD (e.g. operation vs attempt
+     * deadline).
+     * 
+ * + * .google.protobuf.Duration deadline = 2; + */ + public com.google.protobuf.DurationOrBuilder getDeadlineOrBuilder() { + if (deadlineBuilder_ != null) { + return deadlineBuilder_.getMessageOrBuilder(); + } else { + return deadline_ == null ? com.google.protobuf.Duration.getDefaultInstance() : deadline_; + } + } + + /** + * + * + *
+     * Attempt deadline.
+     *
+     * Note, this may not be needed for V1, TBD (e.g. operation vs attempt
+     * deadline).
+     * 
+ * + * .google.protobuf.Duration deadline = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetDeadlineFieldBuilder() { + if (deadlineBuilder_ == null) { + deadlineBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDeadline(), getParentForChildren(), isClean()); + deadline_ = null; + } + return deadlineBuilder_; + } + + private com.google.bigtable.v2.VirtualRpcRequest.Metadata metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.VirtualRpcRequest.Metadata, + com.google.bigtable.v2.VirtualRpcRequest.Metadata.Builder, + com.google.bigtable.v2.VirtualRpcRequest.MetadataOrBuilder> + metadataBuilder_; + + /** + * + * + *
+     * vRPC metadata.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcRequest.Metadata metadata = 3; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * vRPC metadata.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcRequest.Metadata metadata = 3; + * + * @return The metadata. + */ + public com.google.bigtable.v2.VirtualRpcRequest.Metadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.bigtable.v2.VirtualRpcRequest.Metadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * vRPC metadata.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcRequest.Metadata metadata = 3; + */ + public Builder setMetadata(com.google.bigtable.v2.VirtualRpcRequest.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * vRPC metadata.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcRequest.Metadata metadata = 3; + */ + public Builder setMetadata( + com.google.bigtable.v2.VirtualRpcRequest.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * vRPC metadata.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcRequest.Metadata metadata = 3; + */ + public Builder mergeMetadata(com.google.bigtable.v2.VirtualRpcRequest.Metadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && metadata_ != null + && metadata_ + != com.google.bigtable.v2.VirtualRpcRequest.Metadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * vRPC metadata.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcRequest.Metadata metadata = 3; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * vRPC metadata.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcRequest.Metadata metadata = 3; + */ + public com.google.bigtable.v2.VirtualRpcRequest.Metadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * vRPC metadata.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcRequest.Metadata metadata = 3; + */ + public com.google.bigtable.v2.VirtualRpcRequest.MetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.bigtable.v2.VirtualRpcRequest.Metadata.getDefaultInstance() + : metadata_; + } + } + + /** + * + * + *
+     * vRPC metadata.
+     * 
+ * + * .google.bigtable.v2.VirtualRpcRequest.Metadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.VirtualRpcRequest.Metadata, + com.google.bigtable.v2.VirtualRpcRequest.Metadata.Builder, + com.google.bigtable.v2.VirtualRpcRequest.MetadataOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.VirtualRpcRequest.Metadata, + com.google.bigtable.v2.VirtualRpcRequest.Metadata.Builder, + com.google.bigtable.v2.VirtualRpcRequest.MetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+     * Could be TableRequest (or in post-V1, SqlRequest)
+     * 
+ * + * bytes payload = 4; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + /** + * + * + *
+     * Could be TableRequest (or in post-V1, SqlRequest)
+     * 
+ * + * bytes payload = 4; + * + * @param value The payload to set. + * @return This builder for chaining. + */ + public Builder setPayload(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Could be TableRequest (or in post-V1, SqlRequest)
+     * 
+ * + * bytes payload = 4; + * + * @return This builder for chaining. + */ + public Builder clearPayload() { + bitField0_ = (bitField0_ & ~0x00000008); + payload_ = getDefaultInstance().getPayload(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.VirtualRpcRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.VirtualRpcRequest) + private static final com.google.bigtable.v2.VirtualRpcRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.VirtualRpcRequest(); + } + + public static com.google.bigtable.v2.VirtualRpcRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VirtualRpcRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/VirtualRpcRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/VirtualRpcRequestOrBuilder.java new file mode 100644 index 0000000000..2d18771f31 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/VirtualRpcRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface VirtualRpcRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.VirtualRpcRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Client chosen, monotonically increasing identifier for the request.
+   * Must be unique within a session.
+   * 
+ * + * int64 rpc_id = 1; + * + * @return The rpcId. + */ + long getRpcId(); + + /** + * + * + *
+   * Attempt deadline.
+   *
+   * Note, this may not be needed for V1, TBD (e.g. operation vs attempt
+   * deadline).
+   * 
+ * + * .google.protobuf.Duration deadline = 2; + * + * @return Whether the deadline field is set. + */ + boolean hasDeadline(); + + /** + * + * + *
+   * Attempt deadline.
+   *
+   * Note, this may not be needed for V1, TBD (e.g. operation vs attempt
+   * deadline).
+   * 
+ * + * .google.protobuf.Duration deadline = 2; + * + * @return The deadline. + */ + com.google.protobuf.Duration getDeadline(); + + /** + * + * + *
+   * Attempt deadline.
+   *
+   * Note, this may not be needed for V1, TBD (e.g. operation vs attempt
+   * deadline).
+   * 
+ * + * .google.protobuf.Duration deadline = 2; + */ + com.google.protobuf.DurationOrBuilder getDeadlineOrBuilder(); + + /** + * + * + *
+   * vRPC metadata.
+   * 
+ * + * .google.bigtable.v2.VirtualRpcRequest.Metadata metadata = 3; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
+   * vRPC metadata.
+   * 
+ * + * .google.bigtable.v2.VirtualRpcRequest.Metadata metadata = 3; + * + * @return The metadata. + */ + com.google.bigtable.v2.VirtualRpcRequest.Metadata getMetadata(); + + /** + * + * + *
+   * vRPC metadata.
+   * 
+ * + * .google.bigtable.v2.VirtualRpcRequest.Metadata metadata = 3; + */ + com.google.bigtable.v2.VirtualRpcRequest.MetadataOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+   * Could be TableRequest (or in post-V1, SqlRequest)
+   * 
+ * + * bytes payload = 4; + * + * @return The payload. + */ + com.google.protobuf.ByteString getPayload(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/VirtualRpcResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/VirtualRpcResponse.java new file mode 100644 index 0000000000..c7a7d7e56a --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/VirtualRpcResponse.java @@ -0,0 +1,1001 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +/** + * + * + *
+ * Internal usage only.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.VirtualRpcResponse} + */ +@com.google.protobuf.Generated +public final class VirtualRpcResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.VirtualRpcResponse) + VirtualRpcResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VirtualRpcResponse"); + } + + // Use VirtualRpcResponse.newBuilder() to construct. + private VirtualRpcResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VirtualRpcResponse() { + payload_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_VirtualRpcResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_VirtualRpcResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.VirtualRpcResponse.class, + com.google.bigtable.v2.VirtualRpcResponse.Builder.class); + } + + private int bitField0_; + public static final int RPC_ID_FIELD_NUMBER = 1; + private long rpcId_ = 0L; + + /** + * + * + *
+   * Which vRPC this response is for.
+   * 
+ * + * int64 rpc_id = 1; + * + * @return The rpcId. + */ + @java.lang.Override + public long getRpcId() { + return rpcId_; + } + + public static final int CLUSTER_INFO_FIELD_NUMBER = 2; + private com.google.bigtable.v2.ClusterInformation clusterInfo_; + + /** + * .google.bigtable.v2.ClusterInformation cluster_info = 2; + * + * @return Whether the clusterInfo field is set. + */ + @java.lang.Override + public boolean hasClusterInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * .google.bigtable.v2.ClusterInformation cluster_info = 2; + * + * @return The clusterInfo. + */ + @java.lang.Override + public com.google.bigtable.v2.ClusterInformation getClusterInfo() { + return clusterInfo_ == null + ? com.google.bigtable.v2.ClusterInformation.getDefaultInstance() + : clusterInfo_; + } + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + @java.lang.Override + public com.google.bigtable.v2.ClusterInformationOrBuilder getClusterInfoOrBuilder() { + return clusterInfo_ == null + ? com.google.bigtable.v2.ClusterInformation.getDefaultInstance() + : clusterInfo_; + } + + public static final int STATS_FIELD_NUMBER = 4; + private com.google.bigtable.v2.SessionRequestStats stats_; + + /** + * .google.bigtable.v2.SessionRequestStats stats = 4; + * + * @return Whether the stats field is set. + */ + @java.lang.Override + public boolean hasStats() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * .google.bigtable.v2.SessionRequestStats stats = 4; + * + * @return The stats. + */ + @java.lang.Override + public com.google.bigtable.v2.SessionRequestStats getStats() { + return stats_ == null + ? com.google.bigtable.v2.SessionRequestStats.getDefaultInstance() + : stats_; + } + + /** .google.bigtable.v2.SessionRequestStats stats = 4; */ + @java.lang.Override + public com.google.bigtable.v2.SessionRequestStatsOrBuilder getStatsOrBuilder() { + return stats_ == null + ? com.google.bigtable.v2.SessionRequestStats.getDefaultInstance() + : stats_; + } + + public static final int PAYLOAD_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+   * Could be TableResponse (or in post-V1, SqlResponse)
+   * 
+ * + * bytes payload = 3; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (rpcId_ != 0L) { + output.writeInt64(1, rpcId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getClusterInfo()); + } + if (!payload_.isEmpty()) { + output.writeBytes(3, payload_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getStats()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rpcId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, rpcId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getClusterInfo()); + } + if (!payload_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, payload_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStats()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.VirtualRpcResponse)) { + return super.equals(obj); + } + com.google.bigtable.v2.VirtualRpcResponse other = + (com.google.bigtable.v2.VirtualRpcResponse) obj; + + if (getRpcId() != other.getRpcId()) return false; + if (hasClusterInfo() != other.hasClusterInfo()) return false; + if (hasClusterInfo()) { + if (!getClusterInfo().equals(other.getClusterInfo())) return false; + } + if (hasStats() != other.hasStats()) return false; + if (hasStats()) { + if (!getStats().equals(other.getStats())) return false; + } + if (!getPayload().equals(other.getPayload())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RPC_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRpcId()); + if (hasClusterInfo()) { + hash = (37 * hash) + CLUSTER_INFO_FIELD_NUMBER; + hash = (53 * hash) + getClusterInfo().hashCode(); + } + if (hasStats()) { + hash = (37 * hash) + STATS_FIELD_NUMBER; + hash = (53 * hash) + getStats().hashCode(); + } + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.VirtualRpcResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.VirtualRpcResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.VirtualRpcResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.VirtualRpcResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.VirtualRpcResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.VirtualRpcResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.VirtualRpcResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.VirtualRpcResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.VirtualRpcResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.VirtualRpcResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.VirtualRpcResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.VirtualRpcResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.VirtualRpcResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Internal usage only.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.VirtualRpcResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.VirtualRpcResponse) + com.google.bigtable.v2.VirtualRpcResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_VirtualRpcResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_VirtualRpcResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.VirtualRpcResponse.class, + com.google.bigtable.v2.VirtualRpcResponse.Builder.class); + } + + // Construct using com.google.bigtable.v2.VirtualRpcResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetClusterInfoFieldBuilder(); + internalGetStatsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rpcId_ = 0L; + clusterInfo_ = null; + if (clusterInfoBuilder_ != null) { + clusterInfoBuilder_.dispose(); + clusterInfoBuilder_ = null; + } + stats_ = null; + if (statsBuilder_ != null) { + statsBuilder_.dispose(); + statsBuilder_ = null; + } + payload_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.SessionProto + .internal_static_google_bigtable_v2_VirtualRpcResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcResponse getDefaultInstanceForType() { + return com.google.bigtable.v2.VirtualRpcResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcResponse build() { + com.google.bigtable.v2.VirtualRpcResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcResponse buildPartial() { + com.google.bigtable.v2.VirtualRpcResponse result = + new com.google.bigtable.v2.VirtualRpcResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.VirtualRpcResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rpcId_ = rpcId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clusterInfo_ = + clusterInfoBuilder_ == null ? clusterInfo_ : clusterInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.stats_ = statsBuilder_ == null ? stats_ : statsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.payload_ = payload_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.VirtualRpcResponse) { + return mergeFrom((com.google.bigtable.v2.VirtualRpcResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.VirtualRpcResponse other) { + if (other == com.google.bigtable.v2.VirtualRpcResponse.getDefaultInstance()) return this; + if (other.getRpcId() != 0L) { + setRpcId(other.getRpcId()); + } + if (other.hasClusterInfo()) { + mergeClusterInfo(other.getClusterInfo()); + } + if (other.hasStats()) { + mergeStats(other.getStats()); + } + if (!other.getPayload().isEmpty()) { + setPayload(other.getPayload()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + rpcId_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetClusterInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + payload_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + input.readMessage(internalGetStatsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long rpcId_; + + /** + * + * + *
+     * Which vRPC this response is for.
+     * 
+ * + * int64 rpc_id = 1; + * + * @return The rpcId. + */ + @java.lang.Override + public long getRpcId() { + return rpcId_; + } + + /** + * + * + *
+     * Which vRPC this response is for.
+     * 
+ * + * int64 rpc_id = 1; + * + * @param value The rpcId to set. + * @return This builder for chaining. + */ + public Builder setRpcId(long value) { + + rpcId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Which vRPC this response is for.
+     * 
+ * + * int64 rpc_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearRpcId() { + bitField0_ = (bitField0_ & ~0x00000001); + rpcId_ = 0L; + onChanged(); + return this; + } + + private com.google.bigtable.v2.ClusterInformation clusterInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.ClusterInformation, + com.google.bigtable.v2.ClusterInformation.Builder, + com.google.bigtable.v2.ClusterInformationOrBuilder> + clusterInfoBuilder_; + + /** + * .google.bigtable.v2.ClusterInformation cluster_info = 2; + * + * @return Whether the clusterInfo field is set. + */ + public boolean hasClusterInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * .google.bigtable.v2.ClusterInformation cluster_info = 2; + * + * @return The clusterInfo. + */ + public com.google.bigtable.v2.ClusterInformation getClusterInfo() { + if (clusterInfoBuilder_ == null) { + return clusterInfo_ == null + ? com.google.bigtable.v2.ClusterInformation.getDefaultInstance() + : clusterInfo_; + } else { + return clusterInfoBuilder_.getMessage(); + } + } + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + public Builder setClusterInfo(com.google.bigtable.v2.ClusterInformation value) { + if (clusterInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clusterInfo_ = value; + } else { + clusterInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + public Builder setClusterInfo( + com.google.bigtable.v2.ClusterInformation.Builder builderForValue) { + if (clusterInfoBuilder_ == null) { + clusterInfo_ = builderForValue.build(); + } else { + clusterInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + public Builder mergeClusterInfo(com.google.bigtable.v2.ClusterInformation value) { + if (clusterInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && clusterInfo_ != null + && clusterInfo_ != com.google.bigtable.v2.ClusterInformation.getDefaultInstance()) { + getClusterInfoBuilder().mergeFrom(value); + } else { + clusterInfo_ = value; + } + } else { + clusterInfoBuilder_.mergeFrom(value); + } + if (clusterInfo_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + public Builder clearClusterInfo() { + bitField0_ = (bitField0_ & ~0x00000002); + clusterInfo_ = null; + if (clusterInfoBuilder_ != null) { + clusterInfoBuilder_.dispose(); + clusterInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + public com.google.bigtable.v2.ClusterInformation.Builder getClusterInfoBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetClusterInfoFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + public com.google.bigtable.v2.ClusterInformationOrBuilder getClusterInfoOrBuilder() { + if (clusterInfoBuilder_ != null) { + return clusterInfoBuilder_.getMessageOrBuilder(); + } else { + return clusterInfo_ == null + ? com.google.bigtable.v2.ClusterInformation.getDefaultInstance() + : clusterInfo_; + } + } + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.ClusterInformation, + com.google.bigtable.v2.ClusterInformation.Builder, + com.google.bigtable.v2.ClusterInformationOrBuilder> + internalGetClusterInfoFieldBuilder() { + if (clusterInfoBuilder_ == null) { + clusterInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.ClusterInformation, + com.google.bigtable.v2.ClusterInformation.Builder, + com.google.bigtable.v2.ClusterInformationOrBuilder>( + getClusterInfo(), getParentForChildren(), isClean()); + clusterInfo_ = null; + } + return clusterInfoBuilder_; + } + + private com.google.bigtable.v2.SessionRequestStats stats_; + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionRequestStats, + com.google.bigtable.v2.SessionRequestStats.Builder, + com.google.bigtable.v2.SessionRequestStatsOrBuilder> + statsBuilder_; + + /** + * .google.bigtable.v2.SessionRequestStats stats = 4; + * + * @return Whether the stats field is set. + */ + public boolean hasStats() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * .google.bigtable.v2.SessionRequestStats stats = 4; + * + * @return The stats. + */ + public com.google.bigtable.v2.SessionRequestStats getStats() { + if (statsBuilder_ == null) { + return stats_ == null + ? com.google.bigtable.v2.SessionRequestStats.getDefaultInstance() + : stats_; + } else { + return statsBuilder_.getMessage(); + } + } + + /** .google.bigtable.v2.SessionRequestStats stats = 4; */ + public Builder setStats(com.google.bigtable.v2.SessionRequestStats value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stats_ = value; + } else { + statsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** .google.bigtable.v2.SessionRequestStats stats = 4; */ + public Builder setStats(com.google.bigtable.v2.SessionRequestStats.Builder builderForValue) { + if (statsBuilder_ == null) { + stats_ = builderForValue.build(); + } else { + statsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** .google.bigtable.v2.SessionRequestStats stats = 4; */ + public Builder mergeStats(com.google.bigtable.v2.SessionRequestStats value) { + if (statsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && stats_ != null + && stats_ != com.google.bigtable.v2.SessionRequestStats.getDefaultInstance()) { + getStatsBuilder().mergeFrom(value); + } else { + stats_ = value; + } + } else { + statsBuilder_.mergeFrom(value); + } + if (stats_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** .google.bigtable.v2.SessionRequestStats stats = 4; */ + public Builder clearStats() { + bitField0_ = (bitField0_ & ~0x00000004); + stats_ = null; + if (statsBuilder_ != null) { + statsBuilder_.dispose(); + statsBuilder_ = null; + } + onChanged(); + return this; + } + + /** .google.bigtable.v2.SessionRequestStats stats = 4; */ + public com.google.bigtable.v2.SessionRequestStats.Builder getStatsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetStatsFieldBuilder().getBuilder(); + } + + /** .google.bigtable.v2.SessionRequestStats stats = 4; */ + public com.google.bigtable.v2.SessionRequestStatsOrBuilder getStatsOrBuilder() { + if (statsBuilder_ != null) { + return statsBuilder_.getMessageOrBuilder(); + } else { + return stats_ == null + ? com.google.bigtable.v2.SessionRequestStats.getDefaultInstance() + : stats_; + } + } + + /** .google.bigtable.v2.SessionRequestStats stats = 4; */ + private com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionRequestStats, + com.google.bigtable.v2.SessionRequestStats.Builder, + com.google.bigtable.v2.SessionRequestStatsOrBuilder> + internalGetStatsFieldBuilder() { + if (statsBuilder_ == null) { + statsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.bigtable.v2.SessionRequestStats, + com.google.bigtable.v2.SessionRequestStats.Builder, + com.google.bigtable.v2.SessionRequestStatsOrBuilder>( + getStats(), getParentForChildren(), isClean()); + stats_ = null; + } + return statsBuilder_; + } + + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+     * Could be TableResponse (or in post-V1, SqlResponse)
+     * 
+ * + * bytes payload = 3; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + /** + * + * + *
+     * Could be TableResponse (or in post-V1, SqlResponse)
+     * 
+ * + * bytes payload = 3; + * + * @param value The payload to set. + * @return This builder for chaining. + */ + public Builder setPayload(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Could be TableResponse (or in post-V1, SqlResponse)
+     * 
+ * + * bytes payload = 3; + * + * @return This builder for chaining. + */ + public Builder clearPayload() { + bitField0_ = (bitField0_ & ~0x00000008); + payload_ = getDefaultInstance().getPayload(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.VirtualRpcResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.VirtualRpcResponse) + private static final com.google.bigtable.v2.VirtualRpcResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.VirtualRpcResponse(); + } + + public static com.google.bigtable.v2.VirtualRpcResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VirtualRpcResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.VirtualRpcResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/VirtualRpcResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/VirtualRpcResponseOrBuilder.java new file mode 100644 index 0000000000..a4619c1118 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/VirtualRpcResponseOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/bigtable/v2/session.proto +// Protobuf Java Version: 4.33.2 + +package com.google.bigtable.v2; + +@com.google.protobuf.Generated +public interface VirtualRpcResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.VirtualRpcResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Which vRPC this response is for.
+   * 
+ * + * int64 rpc_id = 1; + * + * @return The rpcId. + */ + long getRpcId(); + + /** + * .google.bigtable.v2.ClusterInformation cluster_info = 2; + * + * @return Whether the clusterInfo field is set. + */ + boolean hasClusterInfo(); + + /** + * .google.bigtable.v2.ClusterInformation cluster_info = 2; + * + * @return The clusterInfo. + */ + com.google.bigtable.v2.ClusterInformation getClusterInfo(); + + /** .google.bigtable.v2.ClusterInformation cluster_info = 2; */ + com.google.bigtable.v2.ClusterInformationOrBuilder getClusterInfoOrBuilder(); + + /** + * .google.bigtable.v2.SessionRequestStats stats = 4; + * + * @return Whether the stats field is set. + */ + boolean hasStats(); + + /** + * .google.bigtable.v2.SessionRequestStats stats = 4; + * + * @return The stats. + */ + com.google.bigtable.v2.SessionRequestStats getStats(); + + /** .google.bigtable.v2.SessionRequestStats stats = 4; */ + com.google.bigtable.v2.SessionRequestStatsOrBuilder getStatsOrBuilder(); + + /** + * + * + *
+   * Could be TableResponse (or in post-V1, SqlResponse)
+   * 
+ * + * bytes payload = 3; + * + * @return The payload. + */ + com.google.protobuf.ByteString getPayload(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/bigtable.proto b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/bigtable.proto index 66536293e3..1a2bb37ccc 100644 --- a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/bigtable.proto +++ b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/bigtable.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/api/routing.proto"; import "google/bigtable/v2/data.proto"; import "google/bigtable/v2/request_stats.proto"; +import "google/bigtable/v2/session.proto"; import "google/bigtable/v2/types.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; @@ -328,6 +329,36 @@ service Bigtable { option (google.api.method_signature) = "instance_name,query"; option (google.api.method_signature) = "instance_name,query,app_profile_id"; } + + // This RPC is only intended to be used by the official Cloud Bigtable client + // libraries to implement the Bigtable Session based protocol. It is subject + // to change without notice. + rpc GetClientConfiguration(GetClientConfigurationRequest) + returns (ClientConfiguration) {} + + // This RPC is only intended to be used by the official Cloud Bigtable client + // libraries to implement the Bigtable Session based protocol. It is subject + // to change without notice. + rpc OpenTable(stream SessionRequest) returns (stream SessionResponse) { + option (google.bigtable.v2.rpc_session_type) = SESSION_TYPE_TABLE; + } + + // This RPC is only intended to be used by the official Cloud Bigtable client + // libraries to implement the Bigtable Session based protocol. It is subject + // to change without notice. + rpc OpenAuthorizedView(stream SessionRequest) + returns (stream SessionResponse) { + option (google.bigtable.v2.rpc_session_type) = SESSION_TYPE_AUTHORIZED_VIEW; + } + + // This RPC is only intended to be used by the official Cloud Bigtable client + // libraries to implement the Bigtable Session based protocol. It is subject + // to change without notice. + rpc OpenMaterializedView(stream SessionRequest) + returns (stream SessionResponse) { + option (google.bigtable.v2.rpc_session_type) = + SESSION_TYPE_MATERIALIZED_VIEW; + } } // Request message for Bigtable.ReadRows. diff --git a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/feature_flags.proto b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/feature_flags.proto index 9bf078e6e8..6cf9ca5b81 100644 --- a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/feature_flags.proto +++ b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/feature_flags.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -70,4 +70,10 @@ message FeatureFlags { // If the client can support using BigtablePeerInfo. bool peer_info = 11; + + // Indicates whether the client supports the Bigtable Sessions API. + bool sessions_compatible = 12; + + // Internal flag to force sessions for internal projects. + bool sessions_required = 13; } diff --git a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/peer_info.proto b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/peer_info.proto index 357af8216b..6a89fbf9ed 100644 --- a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/peer_info.proto +++ b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/peer_info.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -66,11 +66,15 @@ message PeerInfo { // request. int64 application_frontend_id = 2; + // The Cloud region of the application frontend that served this request. + string application_frontend_region = 6; + // The Cloud zone of the application frontend that served this request. - string application_frontend_zone = 3; + string application_frontend_zone = 3 [deprecated = true]; // The subzone of the application frontend that served this request, e.g. an - // identifier for where within the zone the application frontend is. + // identifier for where within a zone (within the reported region) the + // application frontend is. string application_frontend_subzone = 4; TransportType transport_type = 5; diff --git a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/request_stats.proto b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/request_stats.proto index 0049f8f73e..bcebc08e65 100644 --- a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/request_stats.proto +++ b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/request_stats.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/response_params.proto b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/response_params.proto index 6eedfdf735..9a48e2008f 100644 --- a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/response_params.proto +++ b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/response_params.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/session.proto b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/session.proto new file mode 100644 index 0000000000..4a79df1c67 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/session.proto @@ -0,0 +1,706 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.bigtable.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/bigtable/v2/data.proto"; +import "google/bigtable/v2/feature_flags.proto"; +import "google/bigtable/v2/request_stats.proto"; +import "google/protobuf/descriptor.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/error_details.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.Bigtable.V2"; +option go_package = "cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb"; +option java_multiple_files = true; +option java_outer_classname = "SessionProto"; +option java_package = "com.google.bigtable.v2"; +option php_namespace = "Google\\Cloud\\Bigtable\\V2"; +option ruby_package = "Google::Cloud::Bigtable::V2"; + +extend google.protobuf.MessageOptions { + // Only OpenSessionRequest.payload's with a type matching rpc_session_type are + // accepted by the server, and only OpenSessionResponse.payload's with a type + // matching rpc_session_type are accepted by the client. + google.bigtable.v2.SessionType open_session_type = 138898474; + + // Only VirtualRpcRequest.payload's with a type matching rpc_session_type are + // accepted by the server, and only VirtualRpcResponse.payload's with a type + // matching rpc_session_type are accepted by the client. + repeated google.bigtable.v2.SessionType vrpc_session_type = 138899157; +} + +extend google.protobuf.MethodOptions { + // All session service methods must set this option to indicate which + // messages are permissible within the generic envelope. + google.bigtable.v2.SessionType rpc_session_type = 137964804; +} + +// Supported session types. +enum SessionType { + SESSION_TYPE_UNSET = 0; + + SESSION_TYPE_TABLE = 1; + + SESSION_TYPE_AUTHORIZED_VIEW = 2; + + SESSION_TYPE_MATERIALIZED_VIEW = 3; + + // For internal protocol testing only. + SESSION_TYPE_TEST = -1; +} + +// See GetClientConfiguration() RPC in bigtable.proto. Internal usage only. +message GetClientConfigurationRequest { + // Required. The unique name of the instance for which the client will target + // with Data API requests. + // + // Values are of the form `projects//instances/` + string instance_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/Instance" + } + ]; + + // Optional. The name of the AppProfile which will be used by the client when + // sending requests in the Data API. + // + // If not specified, the `default` application profile will be used. + string app_profile_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for how to balance vRPCs over sessions. Internal usage only. +message LoadBalancingOptions { + // Balances vRPCs over backends, preferring to send new vRPCs to AFEs with the + // least number of active vRPCs. + message LeastInFlight { + // Of all connected AFEs, the size of the random subset to run the algorithm + // on. Zero implies all connected AFEs. + int64 random_subset_size = 1; + } + + // Balances vRPCs over backends, by maintaining a moving average of each AFE's + // round-trip time, weighted by the number of outstanding vRPCs, and + // distribute traffic to AFEs where that cost function is smallest. + // + // See: + // https://linkerd.io/2016/03/16/beyond-round-robin-load-balancing-for-latency + message PeakEwma { + // Of all connected AFEs, the size of the random subset to compare costs + // over. Zero implies all connected AFEs. + int64 random_subset_size = 1; + } + + // Balances vRPCs over backends, by randomly selecting a backend. + message Random {} + + oneof load_balancing_strategy { + LeastInFlight least_in_flight = 1; + + PeakEwma peak_ewma = 2; + + Random random = 4; + } +} + +// Configuration for the Session API. Internal usage only. +message SessionClientConfiguration { + // Configuration for the channel pool. + message ChannelPoolConfiguration { + // A channel mode which allows DirectAccess with a fallback to CloudPath if + // DirectAccess is unavailable. + message DirectAccessWithFallback { + // The threshold for errors on DirectAccess to trigger CloudPath fallback. + // The error rate is calculated based on a count of vRPCs with errors + // divided by a total count of vRPCs, over a rolling window of the past + // check_interval. If this ratio exceeds this threshold, the fallback to + // CloudPath is triggered. [0, 1]. + float error_rate_threshold = 1; + + // The interval to check the error rate over. + google.protobuf.Duration check_interval = 2; + } + + // A channel mode which only allows DirectAccess. + message DirectAccessOnly {} + + // A channel mode which only allows CloudPath. + message CloudPathOnly {} + + // The minimum number of distcint servers to connect to in the channel pool. + // The client will ensure that the channel pool will have at least this many + // distinct servers, but may have multiple channels connected to the same + // server (e.g. the client may have M channels on N machines, where M > N). + int32 min_server_count = 1; + + // The maximum number of distinct servers to connect to in the channel pool. + // The client will ensure that the channel pool will have at most this many + // distinct servers. + int32 max_server_count = 2; + + // Soft maximum for how many sessions are allowed per server. Normally, the + // client will ensure that it does not host more than this count of sessions + // per server, unless there are other limits encountered (e.g. the connected + // servers is already at max_servers). + int32 per_server_session_count = 3; + + // The fallback mode of the channel pool. + oneof mode { + // DirectAccess with a fallback to CloudPath. + DirectAccessWithFallback direct_access_with_fallback = 4; + + // DirectAccess only. + DirectAccessOnly direct_access_only = 5; + + // CloudPath only. + CloudPathOnly cloud_path_only = 6; + } + } + + // Configuration for the session pools. Session pools are tied to a scope + // like a table, an app profile, and a permission. + message SessionPoolConfiguration { + // Fraction of idle sessions to keep in order to manage an increase in + // requests-in-flight. For example, a headroom of 0.5 will keep enough + // sessions to deal with a 50% increase in QPS. + float headroom = 1; + + // The minimum number of sessions for a given scope. + int32 min_session_count = 2; + + // The maximum number of sessions for a given scope. + int32 max_session_count = 3; + + // Number of vRPCs that can be queued per starting session. + int32 new_session_queue_length = 4; + + // How many concurrent session establishments are allowed. The client will + // hold onto a count against this budget whenever it is establishing a new + // session, and release that count once the session is successfully + // established or failed to establish. + int32 new_session_creation_budget = 5; + + // How long to penalize the creation budget for a failed session creation + // attempt. + google.protobuf.Duration new_session_creation_penalty = 6; + + // A threshold for cancelling all pending vRPCs based on how many + // consecutive session establishment errors have been observed. The client + // will eagerly cancel queued vRPCs after this threshold is met to avoid + // them waiting their entire deadlines before terminating (while waiting for + // any session to establish to actually send the vRPC). + int32 consecutive_session_failure_threshold = 8; + + // How to balance vRPC load over connections to AFEs. + // Set only if session_load > 0. + LoadBalancingOptions load_balancing_options = 9; + } + + // What share of requests should operate on a session, [0, 1]. The rest + // should operate on the old-style API. + float session_load = 1; + + LoadBalancingOptions load_balancing_options = 2 [deprecated = true]; + + // Configuration for the channel pool. + ChannelPoolConfiguration channel_configuration = 3; + + // Configuration for the session pools. + SessionPoolConfiguration session_pool_configuration = 4; +} + +// Server provided instructions for enabling finer grained observability on +// the client to help diagnose customer issues. Internal usage only. +message TelemetryConfiguration { + // The level of detail of telemetry to be sent from the client. + enum Level { + // Server did not specify a level. Should disable all debug tag counters. + LEVEL_UNSPECIFIED = 0; + + // Enables all debug tag counter levels. + DEBUG = 1; + + // Eables all debug tag counters except for DEBUG. + INFO = 2; + + // Enables all debug tag counters except for DEBUG and INFO. + WARN = 3; + + // Enables only error debug tag counters. + ERROR = 4; + } + + // Selector for the debug counters that should be uploaded. + Level debug_tag_level = 1; +} + +// Configuration for the Session API. Internal usage only. +message ClientConfiguration { + message PollingConfiguration { + // A duration describing the time between GetClientConfiguration RPCs. + // Only strictly positive values are permissible. + google.protobuf.Duration polling_interval = 1; + + // How long the client should consider the configuration it receives from + // GetClientConfiguration valid for. Once this duration has passed, the + // client should consider the configuration invalid and must either: + // - Get a new configuration from GetClientConfiguration + // - Or if it cannot, use a sane default configuration + // + // This duration will be at least as long as the polling interval. + google.protobuf.Duration validity_duration = 2; + + // Number of times the client should retry a failed + // GetClientConfiguration RPC per polling interval before giving up. + int32 max_rpc_retry_count = 6; + } + + // The configuration for Bigtable Sessions. + SessionClientConfiguration session_configuration = 2; + + // How often the client should refresh this configuration. + oneof polling { + // If the client should cease to check for new configurations, e.g. a + // backstop to prevent excessive GetClientConfiguration RPCs. + bool stop_polling = 3; + + // Deprecated, prerfer polling_configuration. + // + // A duration describing the time between GetClientConfiguration RPCs. + // Only strictly positive values are permissible. + google.protobuf.Duration polling_interval = 4 [deprecated = true]; + + // If the client should continue to check for new configurations. + PollingConfiguration polling_configuration = 5; + } + + // Configuration for telemetry. + TelemetryConfiguration telemetry_configuration = 6; +} + +// Internal usage only. +message SessionRequest { + oneof payload { + OpenSessionRequest open_session = 1; + + CloseSessionRequest close_session = 2; + + VirtualRpcRequest virtual_rpc = 3; + } +} + +// Internal usage only. +message SessionResponse { + oneof payload { + OpenSessionResponse open_session = 1; + + // A vRPC can result in either a successful result or an error. + // Error results are separate to allow for multiple vRPC responses, + // e.g. for streaming calls like scans (post-V1). See Flow Control. + VirtualRpcResponse virtual_rpc = 2; + + ErrorResponse error = 3; + + SessionParametersResponse session_parameters = 4; + + HeartbeatResponse heartbeat = 5; + + GoAwayResponse go_away = 6; + + SessionRefreshConfig session_refresh_config = 7; + } +} + +// Internal usage only. +message OpenSessionRequest { + // A version indicator from the client stating its understanding of the + // protocol. This is to disambiguate client behavior amidst changes in + // semantic usage of the API, e.g. if the structure remains the same but + // behavior changes. + int64 protocol_version = 1; + + // Client settings, including a record of + FeatureFlags flags = 2; + + // Used for serverside observability. + int64 consecutive_failed_connection_attempts = 3; + + // How the request should be routed (if presented as part of a GOAWAY + // from a previous session). Post V1. + bytes routing_cookie = 4; + + // Can be Open{Table,AuthorizedView,MaterializedView}Request, + // (or in post-V1, PrepareSqlQueryRequest) + bytes payload = 5; +} + +// Information about the connected backends from a session client's +// perspective. This information may be used to make choices about session +// re-establishment en-masse for sessions with the same backend identifiers. +// Internal usage only. +message BackendIdentifier { + // An opaque identifier for the Google Frontend which serviced this request. + // Only set when not using DirectAccess. + int64 google_frontend_id = 1; + + // An opaque identifier for the application frontend which serviced this + // request. + int64 application_frontend_id = 2; + + // The zone of the application frontend that served this request. + string application_frontend_zone = 3; +} + +// Internal usage only. +message OpenSessionResponse { + // Information on the backend(s) that are hosting this session. + BackendIdentifier backend = 2; + + // Can be Open{Table,AuthorizedView,MaterializedView}Response, + // (or in post-V1, PrepareSqlQueryResponse) + bytes payload = 1; +} + +// Internal usage only. +message CloseSessionRequest { + // Client-generated reason for terminating the session, including a + // plain-text description of why. + // 'reason' may be used for metrics, while both may be logged (server-side). + enum CloseSessionReason { + CLOSE_SESSION_REASON_UNSET = 0; + + CLOSE_SESSION_REASON_GOAWAY = 1; + + CLOSE_SESSION_REASON_ERROR = 2; + + CLOSE_SESSION_REASON_USER = 3; + + CLOSE_SESSION_REASON_DOWNSIZE = 4; + + CLOSE_SESSION_REASON_MISSED_HEARTBEAT = 5; + } + + CloseSessionReason reason = 1; + + string description = 2; +} + +// Internal usage only. +message OpenTableRequest { + option (google.bigtable.v2.open_session_type) = SESSION_TYPE_TABLE; + + enum Permission { + PERMISSION_UNSET = 0; + + PERMISSION_READ = 1; + + PERMISSION_WRITE = 2; + + PERMISSION_READ_WRITE = 3; + } + + string table_name = 1; + + string app_profile_id = 2; + + Permission permission = 3; +} + +// Internal usage only. +message OpenTableResponse { + option (google.bigtable.v2.open_session_type) = SESSION_TYPE_TABLE; +} + +// Open sessions for an AuthorizedView. Internal usage only. +message OpenAuthorizedViewRequest { + option (google.bigtable.v2.open_session_type) = SESSION_TYPE_AUTHORIZED_VIEW; + + enum Permission { + PERMISSION_UNSET = 0; + + PERMISSION_READ = 1; + + PERMISSION_WRITE = 2; + + PERMISSION_READ_WRITE = 3; + } + + // The Authorized view name to read and write from. Values are of the form + // `projects//instances//tables//authorizedViews/`. + string authorized_view_name = 1; + + // The app profile id to use for the authorized view sessions. + string app_profile_id = 2; + + // Permission for the session. + Permission permission = 3; +} + +// Internal usage only. +message OpenAuthorizedViewResponse { + option (google.bigtable.v2.open_session_type) = SESSION_TYPE_AUTHORIZED_VIEW; +} + +// Open sessions for a MaterializedView. Internal usage only. +message OpenMaterializedViewRequest { + option (google.bigtable.v2.open_session_type) = + SESSION_TYPE_MATERIALIZED_VIEW; + + enum Permission { + PERMISSION_UNSET = 0; + + PERMISSION_READ = 1; + } + + // The Materialized view name to read and write from. Values are of the form + // `projects//instances//materializedViews/`. + string materialized_view_name = 1; + + // The app profile id to use for the materialized view sessions. + string app_profile_id = 2; + + // Permission for the session. + Permission permission = 3; +} + +// Internal usage only. +message OpenMaterializedViewResponse { + option (google.bigtable.v2.open_session_type) = + SESSION_TYPE_MATERIALIZED_VIEW; +} + +// Internal usage only. +message VirtualRpcRequest { + // Container for all vRPC Metadata. + message Metadata { + // Track retry attempts for this vRPC at the AFE. + int64 attempt_number = 1; + + // Track the client's known start time for the attempt. This is likely not + // easily compared with the server's time due to clock skew. + google.protobuf.Timestamp attempt_start = 2; + + // Link OpenTelemetry traces (e.g. Tapper). This can be used to link + // attempts together for the same logical operation (e.g. in logs / traces). + // + // Note, this may not be needed for V1, TBD. + string traceparent = 3; + } + + // Client chosen, monotonically increasing identifier for the request. + // Must be unique within a session. + int64 rpc_id = 1; + + // Attempt deadline. + // + // Note, this may not be needed for V1, TBD (e.g. operation vs attempt + // deadline). + google.protobuf.Duration deadline = 2; + + // vRPC metadata. + Metadata metadata = 3; + + // Could be TableRequest (or in post-V1, SqlRequest) + bytes payload = 4; +} + +// Information on which Cluster served a vRPC, e.g. for Client-Side metrics. +// Internal usage only. +message ClusterInformation { + string cluster_id = 1; + + string zone_id = 2; +} + +// Internal usage only. +message SessionRequestStats { + // Backend (critical section) latency for the request. + google.protobuf.Duration backend_latency = 1; +} + +// Internal usage only. +message VirtualRpcResponse { + // Which vRPC this response is for. + int64 rpc_id = 1; + + ClusterInformation cluster_info = 2; + + SessionRequestStats stats = 4; + + // Could be TableResponse (or in post-V1, SqlResponse) + bytes payload = 3; +} + +// Internal usage only. +message ErrorResponse { + // Which vRPC this response is for. + int64 rpc_id = 1; + + ClusterInformation cluster_info = 2; + + // The error from the vRPC and any retry information to consider. + google.rpc.Status status = 3; + + google.rpc.RetryInfo retry_info = 4; +} + +// Internal usage only. +message TableRequest { + option (google.bigtable.v2.vrpc_session_type) = SESSION_TYPE_TABLE; + + // Note in V1 we target only pure point operations. + oneof payload { + SessionReadRowRequest read_row = 1; + + SessionMutateRowRequest mutate_row = 2; + } +} + +// Internal usage only. +message TableResponse { + option (google.bigtable.v2.vrpc_session_type) = SESSION_TYPE_TABLE; + + oneof payload { + SessionReadRowResponse read_row = 1; + + SessionMutateRowResponse mutate_row = 2; + } +} + +// A request wrapper for operations on an authorized view. Internal usage only. +message AuthorizedViewRequest { + option (google.bigtable.v2.vrpc_session_type) = SESSION_TYPE_AUTHORIZED_VIEW; + + // Note in V1 we target only pure point operations. + oneof payload { + SessionReadRowRequest read_row = 1; + + SessionMutateRowRequest mutate_row = 2; + } +} + +// A response wrapper for operations on an authorized view. Internal usage only. +message AuthorizedViewResponse { + option (google.bigtable.v2.vrpc_session_type) = SESSION_TYPE_AUTHORIZED_VIEW; + + // Note in V1 we target only pure point operations. + oneof payload { + SessionReadRowResponse read_row = 1; + + SessionMutateRowResponse mutate_row = 2; + } +} + +// A request wrapper for operations on a materialized view. Internal usage only. +message MaterializedViewRequest { + option (google.bigtable.v2.vrpc_session_type) = + SESSION_TYPE_MATERIALIZED_VIEW; + + // Note in V1 we target only pure point operations. + oneof payload { + SessionReadRowRequest read_row = 1; + } +} + +// A response wrapper for operations on a materialized view. Internal usage +// only. +message MaterializedViewResponse { + option (google.bigtable.v2.vrpc_session_type) = + SESSION_TYPE_MATERIALIZED_VIEW; + + // Note in V1 we target only pure point operations. + oneof payload { + SessionReadRowResponse read_row = 1; + } +} + +// Internal usage only. +message SessionReadRowRequest { + bytes key = 1; + + RowFilter filter = 2; +} + +// Internal usage only. +message SessionReadRowResponse { + Row row = 1; + + RequestStats stats = 2; +} + +// Internal usage only. +message SessionMutateRowRequest { + bytes key = 1; + + repeated Mutation mutations = 2; +} + +// Internal usage only. +message SessionMutateRowResponse {} + +// Internal usage only. +message SessionParametersResponse { + // Maximum time between messages that the AFE will send to the client. The + // client may use this information to determine its control-flow in relation + // to pruning black-holed or otherwise non-responsive sessions. Must be set + // and positive. + // + // See also Heartbeats. + google.protobuf.Duration keep_alive = 1; +} + +// Internal usage only. +message HeartbeatResponse {} + +// Internal usage only. +message GoAwayResponse { + // Server-generated reason for GOAWAY, including a plain-text description of + // why. 'reason' may be used for CSM, while both may be logged. + string reason = 1; + + string description = 2; + + // The last vRPC which was admitted by the AFE. The client may expect the + // result from the vRPC on the stream before disconnecting, and should + // retry vRPCs beyond this boundary. + int64 last_rpc_id_admitted = 3; +} + +// Internal usage only. +message SessionRefreshConfig { + // Any additional metadata to include when reconnecting. Not a `map<>` type as + // this can be a multimap. + message Metadata { + // Output only. The key for the metadata entry. + string key = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The value for the metadata entry. + bytes value = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // An optimized Open request that the session may use on a retry when + // establishing this session again. This can be sent from the AFE to + // avoid certain work e.g. encoding a query plan for BTQL. + OpenSessionRequest optimized_open_request = 1; + + // Output only. Any additional metadata to include when reconnecting. + repeated Metadata metadata = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +}