Class ListNodePoolsRequest.Builder (2.4.1)

public static final class ListNodePoolsRequest.Builder extends GeneratedMessageV3.Builder<ListNodePoolsRequest.Builder> implements ListNodePoolsRequestOrBuilder

ListNodePoolsRequest lists the node pool(s) for a cluster.

Protobuf type google.container.v1.ListNodePoolsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListNodePoolsRequest build()
Returns
TypeDescription
ListNodePoolsRequest

buildPartial()

public ListNodePoolsRequest buildPartial()
Returns
TypeDescription
ListNodePoolsRequest

clear()

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

clearClusterId()

public ListNodePoolsRequest.Builder clearClusterId()

Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.

string cluster_id = 3 [deprecated = true];

Returns
TypeDescription
ListNodePoolsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ListNodePoolsRequest.Builder clearParent()

The parent (project, location, cluster id) where the node pools will be listed. Specified in the format projects/*/locations/*/clusters/*.

string parent = 5;

Returns
TypeDescription
ListNodePoolsRequest.Builder

This builder for chaining.

clearProjectId()

public ListNodePoolsRequest.Builder clearProjectId()

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
ListNodePoolsRequest.Builder

This builder for chaining.

clearZone()

public ListNodePoolsRequest.Builder clearZone()

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
ListNodePoolsRequest.Builder

This builder for chaining.

clone()

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

getClusterId()

public String getClusterId()

Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.

string cluster_id = 3 [deprecated = true];

Returns
TypeDescription
String

The clusterId.

getClusterIdBytes()

public ByteString getClusterIdBytes()

Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.

string cluster_id = 3 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for clusterId.

getDefaultInstanceForType()

public ListNodePoolsRequest getDefaultInstanceForType()
Returns
TypeDescription
ListNodePoolsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

The parent (project, location, cluster id) where the node pools will be listed. Specified in the format projects/*/locations/*/clusters/*.

string parent = 5;

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The parent (project, location, cluster id) where the node pools will be listed. Specified in the format projects/*/locations/*/clusters/*.

string parent = 5;

Returns
TypeDescription
ByteString

The bytes for parent.

getProjectId()

public String getProjectId()

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()

public ByteString getProjectIdBytes()

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()

public String getZone()

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()

public ByteString getZoneBytes()

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListNodePoolsRequest other)

public ListNodePoolsRequest.Builder mergeFrom(ListNodePoolsRequest other)
Parameter
NameDescription
otherListNodePoolsRequest
Returns
TypeDescription
ListNodePoolsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setClusterId(String value)

public ListNodePoolsRequest.Builder setClusterId(String value)

Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.

string cluster_id = 3 [deprecated = true];

Parameter
NameDescription
valueString

The clusterId to set.

Returns
TypeDescription
ListNodePoolsRequest.Builder

This builder for chaining.

setClusterIdBytes(ByteString value)

public ListNodePoolsRequest.Builder setClusterIdBytes(ByteString value)

Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.

string cluster_id = 3 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for clusterId to set.

Returns
TypeDescription
ListNodePoolsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public ListNodePoolsRequest.Builder setParent(String value)

The parent (project, location, cluster id) where the node pools will be listed. Specified in the format projects/*/locations/*/clusters/*.

string parent = 5;

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ListNodePoolsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListNodePoolsRequest.Builder setParentBytes(ByteString value)

The parent (project, location, cluster id) where the node pools will be listed. Specified in the format projects/*/locations/*/clusters/*.

string parent = 5;

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ListNodePoolsRequest.Builder

This builder for chaining.

setProjectId(String value)

public ListNodePoolsRequest.Builder setProjectId(String value)

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
ListNodePoolsRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public ListNodePoolsRequest.Builder setProjectIdBytes(ByteString value)

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
ListNodePoolsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setZone(String value)

public ListNodePoolsRequest.Builder setZone(String value)

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
ListNodePoolsRequest.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public ListNodePoolsRequest.Builder setZoneBytes(ByteString value)

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
ListNodePoolsRequest.Builder

This builder for chaining.