Class ListUsableSubnetworksRequest.Builder (2.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListUsableSubnetworksRequest build()
Returns
TypeDescription
ListUsableSubnetworksRequest

buildPartial()

public ListUsableSubnetworksRequest buildPartial()
Returns
TypeDescription
ListUsableSubnetworksRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListUsableSubnetworksRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListUsableSubnetworksRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListUsableSubnetworksRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ListUsableSubnetworksRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListUsableSubnetworksRequest getDefaultInstanceForType()
Returns
TypeDescription
ListUsableSubnetworksRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListUsableSubnetworksRequest other)

public ListUsableSubnetworksRequest.Builder mergeFrom(ListUsableSubnetworksRequest other)
Parameter
NameDescription
otherListUsableSubnetworksRequest
Returns
TypeDescription
ListUsableSubnetworksRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ListUsableSubnetworksRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The filter to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for filter to set.

Returns
TypeDescription
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
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
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
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListUsableSubnetworksRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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