Class FetchNetworkPolicyExternalAddressesRequest.Builder (0.40.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FetchNetworkPolicyExternalAddressesRequest build()
Returns
Type Description
FetchNetworkPolicyExternalAddressesRequest

buildPartial()

public FetchNetworkPolicyExternalAddressesRequest buildPartial()
Returns
Type Description
FetchNetworkPolicyExternalAddressesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public FetchNetworkPolicyExternalAddressesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
FetchNetworkPolicyExternalAddressesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FetchNetworkPolicyExternalAddressesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
FetchNetworkPolicyExternalAddressesRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public FetchNetworkPolicyExternalAddressesRequest getDefaultInstanceForType()
Returns
Type Description
FetchNetworkPolicyExternalAddressesRequest

getDescriptorForType()

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

The bytes for pageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchNetworkPolicyExternalAddressesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public FetchNetworkPolicyExternalAddressesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The networkPolicy to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for networkPolicy to set.

Returns
Type Description
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
Name Description
value int

The pageSize to set.

Returns
Type Description
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
Name Description
value String

The pageToken to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FetchNetworkPolicyExternalAddressesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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