Class CreateClusterRequest.Builder (2.8.0)

public static final class CreateClusterRequest.Builder extends GeneratedMessageV3.Builder<CreateClusterRequest.Builder> implements CreateClusterRequestOrBuilder

CreateClusterRequest creates a cluster.

Protobuf type google.container.v1.CreateClusterRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateClusterRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateClusterRequest.Builder
Overrides

build()

public CreateClusterRequest build()
Returns
TypeDescription
CreateClusterRequest

buildPartial()

public CreateClusterRequest buildPartial()
Returns
TypeDescription
CreateClusterRequest

clear()

public CreateClusterRequest.Builder clear()
Returns
TypeDescription
CreateClusterRequest.Builder
Overrides

clearCluster()

public CreateClusterRequest.Builder clearCluster()

Required. A cluster resource

.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateClusterRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateClusterRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateClusterRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateClusterRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateClusterRequest.Builder
Overrides

clearParent()

public CreateClusterRequest.Builder clearParent()

The parent (project and location) where the cluster will be created. Specified in the format projects/*/locations/*.

string parent = 5;

Returns
TypeDescription
CreateClusterRequest.Builder

This builder for chaining.

clearProjectId() (deprecated)

public CreateClusterRequest.Builder clearProjectId()

Deprecated. google.container.v1.CreateClusterRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=2086

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.

string project_id = 1 [deprecated = true];

Returns
TypeDescription
CreateClusterRequest.Builder

This builder for chaining.

clearZone() (deprecated)

public CreateClusterRequest.Builder clearZone()

Deprecated. google.container.v1.CreateClusterRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=2092

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.

string zone = 2 [deprecated = true];

Returns
TypeDescription
CreateClusterRequest.Builder

This builder for chaining.

clone()

public CreateClusterRequest.Builder clone()
Returns
TypeDescription
CreateClusterRequest.Builder
Overrides

getCluster()

public Cluster getCluster()

Required. A cluster resource

.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Cluster

The cluster.

getClusterBuilder()

public Cluster.Builder getClusterBuilder()

Required. A cluster resource

.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Cluster.Builder

getClusterOrBuilder()

public ClusterOrBuilder getClusterOrBuilder()

Required. A cluster resource

.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ClusterOrBuilder

getDefaultInstanceForType()

public CreateClusterRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateClusterRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

The parent (project and location) where the cluster will be created. Specified in the format projects/*/locations/*.

string parent = 5;

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The parent (project and location) where the cluster will be created. Specified in the format projects/*/locations/*.

string parent = 5;

Returns
TypeDescription
ByteString

The bytes for parent.

getProjectId() (deprecated)

public String getProjectId()

Deprecated. google.container.v1.CreateClusterRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=2086

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.

string project_id = 1 [deprecated = true];

Returns
TypeDescription
String

The projectId.

getProjectIdBytes() (deprecated)

public ByteString getProjectIdBytes()

Deprecated. google.container.v1.CreateClusterRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=2086

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.

string project_id = 1 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for projectId.

getZone() (deprecated)

public String getZone()

Deprecated. google.container.v1.CreateClusterRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=2092

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.

string zone = 2 [deprecated = true];

Returns
TypeDescription
String

The zone.

getZoneBytes() (deprecated)

public ByteString getZoneBytes()

Deprecated. google.container.v1.CreateClusterRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=2092

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.

string zone = 2 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for zone.

hasCluster()

public boolean hasCluster()

Required. A cluster resource

.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the cluster field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCluster(Cluster value)

public CreateClusterRequest.Builder mergeCluster(Cluster value)

Required. A cluster resource

.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCluster
Returns
TypeDescription
CreateClusterRequest.Builder

mergeFrom(CreateClusterRequest other)

public CreateClusterRequest.Builder mergeFrom(CreateClusterRequest other)
Parameter
NameDescription
otherCreateClusterRequest
Returns
TypeDescription
CreateClusterRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateClusterRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateClusterRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateClusterRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateClusterRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateClusterRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateClusterRequest.Builder
Overrides

setCluster(Cluster value)

public CreateClusterRequest.Builder setCluster(Cluster value)

Required. A cluster resource

.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCluster
Returns
TypeDescription
CreateClusterRequest.Builder

setCluster(Cluster.Builder builderForValue)

public CreateClusterRequest.Builder setCluster(Cluster.Builder builderForValue)

Required. A cluster resource

.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueCluster.Builder
Returns
TypeDescription
CreateClusterRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateClusterRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateClusterRequest.Builder
Overrides

setParent(String value)

public CreateClusterRequest.Builder setParent(String value)

The parent (project and location) where the cluster will be created. Specified in the format projects/*/locations/*.

string parent = 5;

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateClusterRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateClusterRequest.Builder setParentBytes(ByteString value)

The parent (project and location) where the cluster will be created. Specified in the format projects/*/locations/*.

string parent = 5;

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateClusterRequest.Builder

This builder for chaining.

setProjectId(String value) (deprecated)

public CreateClusterRequest.Builder setProjectId(String value)

Deprecated. google.container.v1.CreateClusterRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=2086

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.

string project_id = 1 [deprecated = true];

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
CreateClusterRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value) (deprecated)

public CreateClusterRequest.Builder setProjectIdBytes(ByteString value)

Deprecated. google.container.v1.CreateClusterRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=2086

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.

string project_id = 1 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
CreateClusterRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateClusterRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateClusterRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateClusterRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateClusterRequest.Builder
Overrides

setZone(String value) (deprecated)

public CreateClusterRequest.Builder setZone(String value)

Deprecated. google.container.v1.CreateClusterRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=2092

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.

string zone = 2 [deprecated = true];

Parameter
NameDescription
valueString

The zone to set.

Returns
TypeDescription
CreateClusterRequest.Builder

This builder for chaining.

setZoneBytes(ByteString value) (deprecated)

public CreateClusterRequest.Builder setZoneBytes(ByteString value)

Deprecated. google.container.v1.CreateClusterRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=2092

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.

string zone = 2 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
CreateClusterRequest.Builder

This builder for chaining.