Class ListUsableSubnetworksRequest.Builder (2.45.0)

public static final class ListUsableSubnetworksRequest.Builder extends GeneratedMessageV3.Builder<ListUsableSubnetworksRequest.Builder> implements ListUsableSubnetworksRequestOrBuilder

ListUsableSubnetworksRequest requests the list of usable subnetworks. available to a user for creating clusters.

Protobuf type google.container.v1beta1.ListUsableSubnetworksRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListUsableSubnetworksRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListUsableSubnetworksRequest.Builder
Overrides

build()

public ListUsableSubnetworksRequest build()
Returns
Type Description
ListUsableSubnetworksRequest

buildPartial()

public ListUsableSubnetworksRequest buildPartial()
Returns
Type Description
ListUsableSubnetworksRequest

clear()

public ListUsableSubnetworksRequest.Builder clear()
Returns
Type Description
ListUsableSubnetworksRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListUsableSubnetworksRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListUsableSubnetworksRequest.Builder
Overrides

clearFilter()

public ListUsableSubnetworksRequest.Builder clearFilter()

Filtering currently only supports equality on the networkProjectId and must be in the form: "networkProjectId=[PROJECTID]", where networkProjectId is the project which owns the listed subnetworks. This defaults to the parent project ID.

string filter = 2;

Returns
Type Description
ListUsableSubnetworksRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListUsableSubnetworksRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListUsableSubnetworksRequest.Builder
Overrides

clearPageSize()

public ListUsableSubnetworksRequest.Builder clearPageSize()

The max number of results per page that should be returned. If the number of available results is larger than page_size, a next_page_token is returned which can be used to get the next page of results in subsequent requests. Acceptable values are 0 to 500, inclusive. (Default: 500)

int32 page_size = 3;

Returns
Type Description
ListUsableSubnetworksRequest.Builder

This builder for chaining.

clearPageToken()

public ListUsableSubnetworksRequest.Builder clearPageToken()

Specifies a page token to use. Set this to the nextPageToken returned by previous list requests to get the next page of results.

string page_token = 4;

Returns
Type Description
ListUsableSubnetworksRequest.Builder

This builder for chaining.

clearParent()

public ListUsableSubnetworksRequest.Builder clearParent()

Required. The parent project where subnetworks are usable. Specified in the format projects/*.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ListUsableSubnetworksRequest.Builder

This builder for chaining.

clone()

public ListUsableSubnetworksRequest.Builder clone()
Returns
Type Description
ListUsableSubnetworksRequest.Builder
Overrides

getDefaultInstanceForType()

public ListUsableSubnetworksRequest getDefaultInstanceForType()
Returns
Type Description
ListUsableSubnetworksRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFilter()

public String getFilter()

Filtering currently only supports equality on the networkProjectId and must be in the form: "networkProjectId=[PROJECTID]", where networkProjectId is the project which owns the listed subnetworks. This defaults to the parent project ID.

string filter = 2;

Returns
Type Description
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

Filtering currently only supports equality on the networkProjectId and must be in the form: "networkProjectId=[PROJECTID]", where networkProjectId is the project which owns the listed subnetworks. This defaults to the parent project ID.

string filter = 2;

Returns
Type Description
ByteString

The bytes for filter.

getPageSize()

public int getPageSize()

The max number of results per page that should be returned. If the number of available results is larger than page_size, a next_page_token is returned which can be used to get the next page of results in subsequent requests. Acceptable values are 0 to 500, inclusive. (Default: 500)

int32 page_size = 3;

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

Specifies a page token to use. Set this to the nextPageToken returned by previous list requests to get the next page of results.

string page_token = 4;

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Specifies a page token to use. Set this to the nextPageToken returned by previous list requests to get the next page of results.

string page_token = 4;

Returns
Type Description
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. The parent project where subnetworks are usable. Specified in the format projects/*.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent project where subnetworks are usable. Specified in the format projects/*.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListUsableSubnetworksRequest other)

public ListUsableSubnetworksRequest.Builder mergeFrom(ListUsableSubnetworksRequest other)
Parameter
Name Description
other ListUsableSubnetworksRequest
Returns
Type Description
ListUsableSubnetworksRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListUsableSubnetworksRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListUsableSubnetworksRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListUsableSubnetworksRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListUsableSubnetworksRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListUsableSubnetworksRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListUsableSubnetworksRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ListUsableSubnetworksRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListUsableSubnetworksRequest.Builder
Overrides

setFilter(String value)

public ListUsableSubnetworksRequest.Builder setFilter(String value)

Filtering currently only supports equality on the networkProjectId and must be in the form: "networkProjectId=[PROJECTID]", where networkProjectId is the project which owns the listed subnetworks. This defaults to the parent project ID.

string filter = 2;

Parameter
Name Description
value String

The filter to set.

Returns
Type Description
ListUsableSubnetworksRequest.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public ListUsableSubnetworksRequest.Builder setFilterBytes(ByteString value)

Filtering currently only supports equality on the networkProjectId and must be in the form: "networkProjectId=[PROJECTID]", where networkProjectId is the project which owns the listed subnetworks. This defaults to the parent project ID.

string filter = 2;

Parameter
Name Description
value ByteString

The bytes for filter to set.

Returns
Type Description
ListUsableSubnetworksRequest.Builder

This builder for chaining.

setPageSize(int value)

public ListUsableSubnetworksRequest.Builder setPageSize(int value)

The max number of results per page that should be returned. If the number of available results is larger than page_size, a next_page_token is returned which can be used to get the next page of results in subsequent requests. Acceptable values are 0 to 500, inclusive. (Default: 500)

int32 page_size = 3;

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListUsableSubnetworksRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListUsableSubnetworksRequest.Builder setPageToken(String value)

Specifies a page token to use. Set this to the nextPageToken returned by previous list requests to get the next page of results.

string page_token = 4;

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListUsableSubnetworksRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListUsableSubnetworksRequest.Builder setPageTokenBytes(ByteString value)

Specifies a page token to use. Set this to the nextPageToken returned by previous list requests to get the next page of results.

string page_token = 4;

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListUsableSubnetworksRequest.Builder

This builder for chaining.

setParent(String value)

public ListUsableSubnetworksRequest.Builder setParent(String value)

Required. The parent project where subnetworks are usable. Specified in the format projects/*.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ListUsableSubnetworksRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListUsableSubnetworksRequest.Builder setParentBytes(ByteString value)

Required. The parent project where subnetworks are usable. Specified in the format projects/*.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ListUsableSubnetworksRequest.Builder

This builder for chaining.

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

public ListUsableSubnetworksRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListUsableSubnetworksRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListUsableSubnetworksRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListUsableSubnetworksRequest.Builder
Overrides