Skip to content

Commit

Permalink
feat: [container] add a FastSocket API (#8845)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] authored Dec 6, 2022
1 parent b79a23f commit 184ae92
Show file tree
Hide file tree
Showing 96 changed files with 3,039 additions and 1,825 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@ public final UnaryCallable<UpdateClusterRequest, Operation> updateClusterCallabl
* .setGcfsConfig(GcfsConfig.newBuilder().build())
* .setConfidentialNodes(ConfidentialNodes.newBuilder().build())
* .setGvnic(VirtualNIC.newBuilder().build())
* .setFastSocket(FastSocket.newBuilder().build())
* .setLoggingConfig(NodePoolLoggingConfig.newBuilder().build())
* .setResourceLabels(ResourceLabels.newBuilder().build())
* .build();
Expand Down Expand Up @@ -731,6 +732,7 @@ public final Operation updateNodePool(UpdateNodePoolRequest request) {
* .setGcfsConfig(GcfsConfig.newBuilder().build())
* .setConfidentialNodes(ConfidentialNodes.newBuilder().build())
* .setGvnic(VirtualNIC.newBuilder().build())
* .setFastSocket(FastSocket.newBuilder().build())
* .setLoggingConfig(NodePoolLoggingConfig.newBuilder().build())
* .setResourceLabels(ResourceLabels.newBuilder().build())
* .build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import com.google.container.v1beta1.DatabaseEncryption;
import com.google.container.v1beta1.DeleteClusterRequest;
import com.google.container.v1beta1.DeleteNodePoolRequest;
import com.google.container.v1beta1.FastSocket;
import com.google.container.v1beta1.GcfsConfig;
import com.google.container.v1beta1.GetClusterRequest;
import com.google.container.v1beta1.GetJSONWebKeysRequest;
Expand Down Expand Up @@ -495,6 +496,7 @@ public void updateNodePoolTest() throws Exception {
.setGcfsConfig(GcfsConfig.newBuilder().build())
.setConfidentialNodes(ConfidentialNodes.newBuilder().build())
.setGvnic(VirtualNIC.newBuilder().build())
.setFastSocket(FastSocket.newBuilder().build())
.setLoggingConfig(NodePoolLoggingConfig.newBuilder().build())
.setResourceLabels(ResourceLabels.newBuilder().build())
.build();
Expand Down Expand Up @@ -526,6 +528,7 @@ public void updateNodePoolTest() throws Exception {
Assert.assertEquals(request.getGcfsConfig(), actualRequest.getGcfsConfig());
Assert.assertEquals(request.getConfidentialNodes(), actualRequest.getConfidentialNodes());
Assert.assertEquals(request.getGvnic(), actualRequest.getGvnic());
Assert.assertEquals(request.getFastSocket(), actualRequest.getFastSocket());
Assert.assertEquals(request.getLoggingConfig(), actualRequest.getLoggingConfig());
Assert.assertEquals(request.getResourceLabels(), actualRequest.getResourceLabels());
Assert.assertTrue(
Expand Down Expand Up @@ -561,6 +564,7 @@ public void updateNodePoolExceptionTest() throws Exception {
.setGcfsConfig(GcfsConfig.newBuilder().build())
.setConfidentialNodes(ConfidentialNodes.newBuilder().build())
.setGvnic(VirtualNIC.newBuilder().build())
.setFastSocket(FastSocket.newBuilder().build())
.setLoggingConfig(NodePoolLoggingConfig.newBuilder().build())
.setResourceLabels(ResourceLabels.newBuilder().build())
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public com.google.protobuf.ByteString getGpuPartitionSizeBytes() {
* <code>int64 max_time_shared_clients_per_gpu = 4 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is
* deprecated. See google/container/v1beta1/cluster_service.proto;l=4167
* deprecated. See google/container/v1beta1/cluster_service.proto;l=4172
* @return The maxTimeSharedClientsPerGpu.
*/
@java.lang.Override
Expand Down Expand Up @@ -998,7 +998,7 @@ public Builder setGpuPartitionSizeBytes(com.google.protobuf.ByteString value) {
* <code>int64 max_time_shared_clients_per_gpu = 4 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is
* deprecated. See google/container/v1beta1/cluster_service.proto;l=4167
* deprecated. See google/container/v1beta1/cluster_service.proto;l=4172
* @return The maxTimeSharedClientsPerGpu.
*/
@java.lang.Override
Expand All @@ -1016,7 +1016,7 @@ public long getMaxTimeSharedClientsPerGpu() {
* <code>int64 max_time_shared_clients_per_gpu = 4 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is
* deprecated. See google/container/v1beta1/cluster_service.proto;l=4167
* deprecated. See google/container/v1beta1/cluster_service.proto;l=4172
* @param value The maxTimeSharedClientsPerGpu to set.
* @return This builder for chaining.
*/
Expand All @@ -1037,7 +1037,7 @@ public Builder setMaxTimeSharedClientsPerGpu(long value) {
* <code>int64 max_time_shared_clients_per_gpu = 4 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is
* deprecated. See google/container/v1beta1/cluster_service.proto;l=4167
* deprecated. See google/container/v1beta1/cluster_service.proto;l=4172
* @return This builder for chaining.
*/
@java.lang.Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public interface AcceleratorConfigOrBuilder
* <code>int64 max_time_shared_clients_per_gpu = 4 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is
* deprecated. See google/container/v1beta1/cluster_service.proto;l=4167
* deprecated. See google/container/v1beta1/cluster_service.proto;l=4172
* @return The maxTimeSharedClientsPerGpu.
*/
@java.lang.Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public com.google.container.v1beta1.HorizontalPodAutoscaling getHorizontalPodAut
* </code>
*
* @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1051
* google/container/v1beta1/cluster_service.proto;l=1054
* @return Whether the kubernetesDashboard field is set.
*/
@java.lang.Override
Expand All @@ -214,7 +214,7 @@ public boolean hasKubernetesDashboard() {
* </code>
*
* @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1051
* google/container/v1beta1/cluster_service.proto;l=1054
* @return The kubernetesDashboard.
*/
@java.lang.Override
Expand Down Expand Up @@ -314,7 +314,7 @@ public com.google.container.v1beta1.NetworkPolicyConfig getNetworkPolicyConfig()
* <code>.google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1060
* google/container/v1beta1/cluster_service.proto;l=1063
* @return Whether the istioConfig field is set.
*/
@java.lang.Override
Expand All @@ -333,7 +333,7 @@ public boolean hasIstioConfig() {
* <code>.google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1060
* google/container/v1beta1/cluster_service.proto;l=1063
* @return The istioConfig.
*/
@java.lang.Override
Expand Down Expand Up @@ -583,7 +583,7 @@ public boolean hasGcePersistentDiskCsiDriverConfig() {
* <code>.google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1079
* google/container/v1beta1/cluster_service.proto;l=1082
* @return Whether the kalmConfig field is set.
*/
@java.lang.Override
Expand All @@ -602,7 +602,7 @@ public boolean hasKalmConfig() {
* <code>.google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1079
* google/container/v1beta1/cluster_service.proto;l=1082
* @return The kalmConfig.
*/
@java.lang.Override
Expand Down Expand Up @@ -1903,7 +1903,7 @@ public Builder clearHorizontalPodAutoscaling() {
* </code>
*
* @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1051
* google/container/v1beta1/cluster_service.proto;l=1054
* @return Whether the kubernetesDashboard field is set.
*/
@java.lang.Deprecated
Expand All @@ -1926,7 +1926,7 @@ public boolean hasKubernetesDashboard() {
* </code>
*
* @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1051
* google/container/v1beta1/cluster_service.proto;l=1054
* @return The kubernetesDashboard.
*/
@java.lang.Deprecated
Expand Down Expand Up @@ -2360,7 +2360,7 @@ public Builder clearNetworkPolicyConfig() {
* <code>.google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1060
* google/container/v1beta1/cluster_service.proto;l=1063
* @return Whether the istioConfig field is set.
*/
@java.lang.Deprecated
Expand All @@ -2378,7 +2378,7 @@ public boolean hasIstioConfig() {
* <code>.google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1060
* google/container/v1beta1/cluster_service.proto;l=1063
* @return The istioConfig.
*/
@java.lang.Deprecated
Expand Down Expand Up @@ -3368,7 +3368,7 @@ public Builder clearGcePersistentDiskCsiDriverConfig() {
* <code>.google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1079
* google/container/v1beta1/cluster_service.proto;l=1082
* @return Whether the kalmConfig field is set.
*/
@java.lang.Deprecated
Expand All @@ -3386,7 +3386,7 @@ public boolean hasKalmConfig() {
* <code>.google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1079
* google/container/v1beta1/cluster_service.proto;l=1082
* @return The kalmConfig.
*/
@java.lang.Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public interface AddonsConfigOrBuilder
* </code>
*
* @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1051
* google/container/v1beta1/cluster_service.proto;l=1054
* @return Whether the kubernetesDashboard field is set.
*/
@java.lang.Deprecated
Expand All @@ -140,7 +140,7 @@ public interface AddonsConfigOrBuilder
* </code>
*
* @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1051
* google/container/v1beta1/cluster_service.proto;l=1054
* @return The kubernetesDashboard.
*/
@java.lang.Deprecated
Expand Down Expand Up @@ -215,7 +215,7 @@ public interface AddonsConfigOrBuilder
* <code>.google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1060
* google/container/v1beta1/cluster_service.proto;l=1063
* @return Whether the istioConfig field is set.
*/
@java.lang.Deprecated
Expand All @@ -231,7 +231,7 @@ public interface AddonsConfigOrBuilder
* <code>.google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1060
* google/container/v1beta1/cluster_service.proto;l=1063
* @return The istioConfig.
*/
@java.lang.Deprecated
Expand Down Expand Up @@ -417,7 +417,7 @@ public interface AddonsConfigOrBuilder
* <code>.google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1079
* google/container/v1beta1/cluster_service.proto;l=1082
* @return Whether the kalmConfig field is set.
*/
@java.lang.Deprecated
Expand All @@ -433,7 +433,7 @@ public interface AddonsConfigOrBuilder
* <code>.google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See
* google/container/v1beta1/cluster_service.proto;l=1079
* google/container/v1beta1/cluster_service.proto;l=1082
* @return The kalmConfig.
*/
@java.lang.Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuild
* <code>string min_cpu_platform = 5 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3917
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3922
* @return The minCpuPlatform.
*/
@java.lang.Override
Expand Down Expand Up @@ -389,7 +389,7 @@ public java.lang.String getMinCpuPlatform() {
* <code>string min_cpu_platform = 5 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3917
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3922
* @return The bytes for minCpuPlatform.
*/
@java.lang.Override
Expand Down Expand Up @@ -2006,7 +2006,7 @@ public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuild
* <code>string min_cpu_platform = 5 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3917
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3922
* @return The minCpuPlatform.
*/
@java.lang.Deprecated
Expand Down Expand Up @@ -2042,7 +2042,7 @@ public java.lang.String getMinCpuPlatform() {
* <code>string min_cpu_platform = 5 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3917
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3922
* @return The bytes for minCpuPlatform.
*/
@java.lang.Deprecated
Expand Down Expand Up @@ -2078,7 +2078,7 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() {
* <code>string min_cpu_platform = 5 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3917
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3922
* @param value The minCpuPlatform to set.
* @return This builder for chaining.
*/
Expand Down Expand Up @@ -2113,7 +2113,7 @@ public Builder setMinCpuPlatform(java.lang.String value) {
* <code>string min_cpu_platform = 5 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3917
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3922
* @return This builder for chaining.
*/
@java.lang.Deprecated
Expand Down Expand Up @@ -2144,7 +2144,7 @@ public Builder clearMinCpuPlatform() {
* <code>string min_cpu_platform = 5 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3917
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3922
* @param value The bytes for minCpuPlatform to set.
* @return This builder for chaining.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder
* <code>string min_cpu_platform = 5 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3917
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3922
* @return The minCpuPlatform.
*/
@java.lang.Deprecated
Expand All @@ -264,7 +264,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder
* <code>string min_cpu_platform = 5 [deprecated = true];</code>
*
* @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3917
* deprecated. See google/container/v1beta1/cluster_service.proto;l=3922
* @return The bytes for minCpuPlatform.
*/
@java.lang.Deprecated
Expand Down
Loading

0 comments on commit 184ae92

Please sign in to comment.