@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
/** * * * <pre> * The node pool to create. * </pre> * * <code>.google.container.v1.NodePool node_pool = 4;</code> */ public Builder mergeNodePool(com.google.container.v1.NodePool value) { if (nodePoolBuilder_ == null) { if (nodePool_ != null) { nodePool_ = com.google.container.v1.NodePool.newBuilder(nodePool_) .mergeFrom(value) .buildPartial(); } else { nodePool_ = value; } onChanged(); } else { nodePoolBuilder_.mergeFrom(value); } return this; } /**
@Test @SuppressWarnings("all") public void createNodePoolExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockClusterManager.addException(exception); try { String projectId = "projectId-1969970175"; String zone = "zone3744684"; String clusterId = "clusterId240280960"; NodePool nodePool = NodePool.newBuilder().build(); client.createNodePool(projectId, zone, clusterId, nodePool); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception } }
String statusMessage = "statusMessage-239442758"; NodePool expectedResponse = NodePool.newBuilder() .setName(name) .setInitialNodeCount(initialNodeCount)
String zone = "zone3744684"; String clusterId = "clusterId240280960"; NodePool nodePool = NodePool.newBuilder().build();