@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.container.v1.CreateNodePoolRequest)) { return super.equals(obj); } com.google.container.v1.CreateNodePoolRequest other = (com.google.container.v1.CreateNodePoolRequest) obj; boolean result = true; result = result && getProjectId().equals(other.getProjectId()); result = result && getZone().equals(other.getZone()); result = result && getClusterId().equals(other.getClusterId()); result = result && (hasNodePool() == other.hasNodePool()); if (hasNodePool()) { result = result && getNodePool().equals(other.getNodePool()); } result = result && getParent().equals(other.getParent()); result = result && unknownFields.equals(other.unknownFields); return result; }
/** * * * <pre> * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the parent field. * </pre> * * <code>string project_id = 1 [deprecated = true];</code> */ @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /**
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getProjectIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } if (!getZoneBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); } if (!getClusterIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); } if (nodePool_ != null) { output.writeMessage(4, getNodePool()); } if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parent_); } unknownFields.writeTo(output); }
/** * * * <pre> * The parent (project, location, cluster id) where the node pool will be * created. Specified in the format * 'projects/*/locations/*/clusters/*'. * </pre> * * <code>string parent = 6;</code> */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /**
CreateNodePoolRequest actualRequest = (CreateNodePoolRequest) actualRequests.get(0); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(zone, actualRequest.getZone()); Assert.assertEquals(clusterId, actualRequest.getClusterId()); Assert.assertEquals(nodePool, actualRequest.getNodePool()); Assert.assertTrue( channelProvider.isHeaderSent(
/** * * * <pre> * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the parent field. * </pre> * * <code>string cluster_id = 3 [deprecated = true];</code> */ @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); return this; } /**
/** * * * <pre> * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster * resides. * This field has been deprecated and replaced by the parent field. * </pre> * * <code>string zone = 2 [deprecated = true];</code> */ @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); return this; } /**
@java.lang.Override public com.google.container.v1.CreateNodePoolRequest getDefaultInstanceForType() { return com.google.container.v1.CreateNodePoolRequest.getDefaultInstance(); }
/** * * * <pre> * The node pool to create. * </pre> * * <code>.google.container.v1.NodePool node_pool = 4;</code> */ public com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder() { return getNodePool(); }
@java.lang.Override public com.google.container.v1.CreateNodePoolRequest buildPartial() { com.google.container.v1.CreateNodePoolRequest result = new com.google.container.v1.CreateNodePoolRequest(this); result.projectId_ = projectId_; result.zone_ = zone_; result.clusterId_ = clusterId_; if (nodePoolBuilder_ == null) { result.nodePool_ = nodePool_; } else { result.nodePool_ = nodePoolBuilder_.build(); } result.parent_ = parent_; onBuilt(); return result; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getProjectIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } if (!getZoneBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); } if (!getClusterIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); } if (nodePool_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNodePool()); } if (!getParentBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
.setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.container.v1.CreateNodePoolRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller(
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + ZONE_FIELD_NUMBER; hash = (53 * hash) + getZone().hashCode(); hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + getClusterId().hashCode(); if (hasNodePool()) { hash = (37 * hash) + NODE_POOL_FIELD_NUMBER; hash = (53 * hash) + getNodePool().hashCode(); } hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
.setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.container.v1.CreateNodePoolRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller(
CreateNodePoolRequest.newBuilder() .setProjectId(projectId) .setZone(zone)
public Builder mergeFrom(com.google.container.v1.CreateNodePoolRequest other) { if (other == com.google.container.v1.CreateNodePoolRequest.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); } if (!other.getZone().isEmpty()) { zone_ = other.zone_; onChanged(); } if (!other.getClusterId().isEmpty()) { clusterId_ = other.clusterId_; onChanged(); } if (other.hasNodePool()) { mergeNodePool(other.getNodePool()); } if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }