Class FetchNetworkPolicyExternalAddressesRequest.Builder (0.33.0)

public static final class FetchNetworkPolicyExternalAddressesRequest.Builder extends GeneratedMessageV3.Builder<FetchNetworkPolicyExternalAddressesRequest.Builder> implements FetchNetworkPolicyExternalAddressesRequestOrBuilder

Request message for VmwareEngine.FetchNetworkPolicyExternalAddresses

Protobuf type google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FetchNetworkPolicyExternalAddressesRequest build()
Returns
TypeDescription
FetchNetworkPolicyExternalAddressesRequest

buildPartial()

public FetchNetworkPolicyExternalAddressesRequest buildPartial()
Returns
TypeDescription
FetchNetworkPolicyExternalAddressesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNetworkPolicy()

public FetchNetworkPolicyExternalAddressesRequest.Builder clearNetworkPolicy()

Required. The resource name of the network policy to query for assigned external IP addresses. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my-policy

string network_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
FetchNetworkPolicyExternalAddressesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public FetchNetworkPolicyExternalAddressesRequest.Builder clearPageSize()

The maximum number of external IP addresses to return in one page. The service may return fewer than this value. The maximum value is coerced to 1000. The default value of this field is 500.

int32 page_size = 2;

Returns
TypeDescription
FetchNetworkPolicyExternalAddressesRequest.Builder

This builder for chaining.

clearPageToken()

public FetchNetworkPolicyExternalAddressesRequest.Builder clearPageToken()

A page token, received from a previous FetchNetworkPolicyExternalAddresses call. Provide this to retrieve the subsequent page.

When paginating, all parameters provided to FetchNetworkPolicyExternalAddresses, except for page_size and page_token, must match the call that provided the page token.

string page_token = 3;

Returns
TypeDescription
FetchNetworkPolicyExternalAddressesRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public FetchNetworkPolicyExternalAddressesRequest getDefaultInstanceForType()
Returns
TypeDescription
FetchNetworkPolicyExternalAddressesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNetworkPolicy()

public String getNetworkPolicy()

Required. The resource name of the network policy to query for assigned external IP addresses. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my-policy

string network_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The networkPolicy.

getNetworkPolicyBytes()

public ByteString getNetworkPolicyBytes()

Required. The resource name of the network policy to query for assigned external IP addresses. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my-policy

string network_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for networkPolicy.

getPageSize()

public int getPageSize()

The maximum number of external IP addresses to return in one page. The service may return fewer than this value. The maximum value is coerced to 1000. The default value of this field is 500.

int32 page_size = 2;

Returns
TypeDescription
int

The pageSize.

getPageToken()

public String getPageToken()

A page token, received from a previous FetchNetworkPolicyExternalAddresses call. Provide this to retrieve the subsequent page.

When paginating, all parameters provided to FetchNetworkPolicyExternalAddresses, except for page_size and page_token, must match the call that provided the page token.

string page_token = 3;

Returns
TypeDescription
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

A page token, received from a previous FetchNetworkPolicyExternalAddresses call. Provide this to retrieve the subsequent page.

When paginating, all parameters provided to FetchNetworkPolicyExternalAddresses, except for page_size and page_token, must match the call that provided the page token.

string page_token = 3;

Returns
TypeDescription
ByteString

The bytes for pageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FetchNetworkPolicyExternalAddressesRequest other)

public FetchNetworkPolicyExternalAddressesRequest.Builder mergeFrom(FetchNetworkPolicyExternalAddressesRequest other)
Parameter
NameDescription
otherFetchNetworkPolicyExternalAddressesRequest
Returns
TypeDescription
FetchNetworkPolicyExternalAddressesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNetworkPolicy(String value)

public FetchNetworkPolicyExternalAddressesRequest.Builder setNetworkPolicy(String value)

Required. The resource name of the network policy to query for assigned external IP addresses. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my-policy

string network_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The networkPolicy to set.

Returns
TypeDescription
FetchNetworkPolicyExternalAddressesRequest.Builder

This builder for chaining.

setNetworkPolicyBytes(ByteString value)

public FetchNetworkPolicyExternalAddressesRequest.Builder setNetworkPolicyBytes(ByteString value)

Required. The resource name of the network policy to query for assigned external IP addresses. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my-policy

string network_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for networkPolicy to set.

Returns
TypeDescription
FetchNetworkPolicyExternalAddressesRequest.Builder

This builder for chaining.

setPageSize(int value)

public FetchNetworkPolicyExternalAddressesRequest.Builder setPageSize(int value)

The maximum number of external IP addresses to return in one page. The service may return fewer than this value. The maximum value is coerced to 1000. The default value of this field is 500.

int32 page_size = 2;

Parameter
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
FetchNetworkPolicyExternalAddressesRequest.Builder

This builder for chaining.

setPageToken(String value)

public FetchNetworkPolicyExternalAddressesRequest.Builder setPageToken(String value)

A page token, received from a previous FetchNetworkPolicyExternalAddresses call. Provide this to retrieve the subsequent page.

When paginating, all parameters provided to FetchNetworkPolicyExternalAddresses, except for page_size and page_token, must match the call that provided the page token.

string page_token = 3;

Parameter
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
FetchNetworkPolicyExternalAddressesRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public FetchNetworkPolicyExternalAddressesRequest.Builder setPageTokenBytes(ByteString value)

A page token, received from a previous FetchNetworkPolicyExternalAddresses call. Provide this to retrieve the subsequent page.

When paginating, all parameters provided to FetchNetworkPolicyExternalAddresses, except for page_size and page_token, must match the call that provided the page token.

string page_token = 3;

Parameter
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
FetchNetworkPolicyExternalAddressesRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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