Class NetworkPolicy.Builder (0.41.0)

public static final class NetworkPolicy.Builder extends GeneratedMessageV3.Builder<NetworkPolicy.Builder> implements NetworkPolicyOrBuilder

Represents a network policy resource. Network policies are regional resources. You can use a network policy to enable or disable internet access and external IP access. Network policies are associated with a VMware Engine network, which might span across regions. For a given region, a network policy applies to all private clouds in the VMware Engine network associated with the policy.

Protobuf type google.cloud.vmwareengine.v1.NetworkPolicy

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NetworkPolicy build()
Returns
Type Description
NetworkPolicy

buildPartial()

public NetworkPolicy buildPartial()
Returns
Type Description
NetworkPolicy

clear()

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

clearCreateTime()

public NetworkPolicy.Builder clearCreateTime()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkPolicy.Builder

clearDescription()

public NetworkPolicy.Builder clearDescription()

Optional. User-provided description for this network policy.

string description = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

clearEdgeServicesCidr()

public NetworkPolicy.Builder clearEdgeServicesCidr()

Required. IP address range in CIDR notation used to create internet access and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.

string edge_services_cidr = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

clearExternalIp()

public NetworkPolicy.Builder clearExternalIp()

Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when internet_access is also enabled.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7;

Returns
Type Description
NetworkPolicy.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearInternetAccess()

public NetworkPolicy.Builder clearInternetAccess()

Network service that allows VMware workloads to access the internet.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;

Returns
Type Description
NetworkPolicy.Builder

clearName()

public NetworkPolicy.Builder clearName()

Output only. The resource name of this network policy. 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-network-policy

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUid()

public NetworkPolicy.Builder clearUid()

Output only. System-generated unique identifier for the resource.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

clearUpdateTime()

public NetworkPolicy.Builder clearUpdateTime()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkPolicy.Builder

clearVmwareEngineNetwork()

public NetworkPolicy.Builder clearVmwareEngineNetwork()

Optional. The relative resource name of the VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project} can either be a project number or a project ID.

string vmware_engine_network = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

clearVmwareEngineNetworkCanonical()

public NetworkPolicy.Builder clearVmwareEngineNetworkCanonical()

Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}

string vmware_engine_network_canonical = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public NetworkPolicy getDefaultInstanceForType()
Returns
Type Description
NetworkPolicy

getDescription()

public String getDescription()

Optional. User-provided description for this network policy.

string description = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. User-provided description for this network policy.

string description = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getEdgeServicesCidr()

public String getEdgeServicesCidr()

Required. IP address range in CIDR notation used to create internet access and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.

string edge_services_cidr = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The edgeServicesCidr.

getEdgeServicesCidrBytes()

public ByteString getEdgeServicesCidrBytes()

Required. IP address range in CIDR notation used to create internet access and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.

string edge_services_cidr = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for edgeServicesCidr.

getExternalIp()

public NetworkPolicy.NetworkService getExternalIp()

Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when internet_access is also enabled.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7;

Returns
Type Description
NetworkPolicy.NetworkService

The externalIp.

getExternalIpBuilder()

public NetworkPolicy.NetworkService.Builder getExternalIpBuilder()

Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when internet_access is also enabled.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7;

Returns
Type Description
NetworkPolicy.NetworkService.Builder

getExternalIpOrBuilder()

public NetworkPolicy.NetworkServiceOrBuilder getExternalIpOrBuilder()

Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when internet_access is also enabled.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7;

Returns
Type Description
NetworkPolicy.NetworkServiceOrBuilder

getInternetAccess()

public NetworkPolicy.NetworkService getInternetAccess()

Network service that allows VMware workloads to access the internet.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;

Returns
Type Description
NetworkPolicy.NetworkService

The internetAccess.

getInternetAccessBuilder()

public NetworkPolicy.NetworkService.Builder getInternetAccessBuilder()

Network service that allows VMware workloads to access the internet.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;

Returns
Type Description
NetworkPolicy.NetworkService.Builder

getInternetAccessOrBuilder()

public NetworkPolicy.NetworkServiceOrBuilder getInternetAccessOrBuilder()

Network service that allows VMware workloads to access the internet.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;

Returns
Type Description
NetworkPolicy.NetworkServiceOrBuilder

getName()

public String getName()

Output only. The resource name of this network policy. 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-network-policy

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of this network policy. 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-network-policy

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getUid()

public String getUid()

Output only. System-generated unique identifier for the resource.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. System-generated unique identifier for the resource.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getVmwareEngineNetwork()

public String getVmwareEngineNetwork()

Optional. The relative resource name of the VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project} can either be a project number or a project ID.

string vmware_engine_network = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The vmwareEngineNetwork.

getVmwareEngineNetworkBytes()

public ByteString getVmwareEngineNetworkBytes()

Optional. The relative resource name of the VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project} can either be a project number or a project ID.

string vmware_engine_network = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for vmwareEngineNetwork.

getVmwareEngineNetworkCanonical()

public String getVmwareEngineNetworkCanonical()

Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}

string vmware_engine_network_canonical = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The vmwareEngineNetworkCanonical.

getVmwareEngineNetworkCanonicalBytes()

public ByteString getVmwareEngineNetworkCanonicalBytes()

Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}

string vmware_engine_network_canonical = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for vmwareEngineNetworkCanonical.

hasCreateTime()

public boolean hasCreateTime()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasExternalIp()

public boolean hasExternalIp()

Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when internet_access is also enabled.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7;

Returns
Type Description
boolean

Whether the externalIp field is set.

hasInternetAccess()

public boolean hasInternetAccess()

Network service that allows VMware workloads to access the internet.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;

Returns
Type Description
boolean

Whether the internetAccess field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public NetworkPolicy.Builder mergeCreateTime(Timestamp value)

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
NetworkPolicy.Builder

mergeExternalIp(NetworkPolicy.NetworkService value)

public NetworkPolicy.Builder mergeExternalIp(NetworkPolicy.NetworkService value)

Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when internet_access is also enabled.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7;

Parameter
Name Description
value NetworkPolicy.NetworkService
Returns
Type Description
NetworkPolicy.Builder

mergeFrom(NetworkPolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInternetAccess(NetworkPolicy.NetworkService value)

public NetworkPolicy.Builder mergeInternetAccess(NetworkPolicy.NetworkService value)

Network service that allows VMware workloads to access the internet.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;

Parameter
Name Description
value NetworkPolicy.NetworkService
Returns
Type Description
NetworkPolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public NetworkPolicy.Builder mergeUpdateTime(Timestamp value)

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
NetworkPolicy.Builder

setCreateTime(Timestamp value)

public NetworkPolicy.Builder setCreateTime(Timestamp value)

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
NetworkPolicy.Builder

setCreateTime(Timestamp.Builder builderForValue)

public NetworkPolicy.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
NetworkPolicy.Builder

setDescription(String value)

public NetworkPolicy.Builder setDescription(String value)

Optional. User-provided description for this network policy.

string description = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public NetworkPolicy.Builder setDescriptionBytes(ByteString value)

Optional. User-provided description for this network policy.

string description = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

setEdgeServicesCidr(String value)

public NetworkPolicy.Builder setEdgeServicesCidr(String value)

Required. IP address range in CIDR notation used to create internet access and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.

string edge_services_cidr = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The edgeServicesCidr to set.

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

setEdgeServicesCidrBytes(ByteString value)

public NetworkPolicy.Builder setEdgeServicesCidrBytes(ByteString value)

Required. IP address range in CIDR notation used to create internet access and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.

string edge_services_cidr = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for edgeServicesCidr to set.

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

setExternalIp(NetworkPolicy.NetworkService value)

public NetworkPolicy.Builder setExternalIp(NetworkPolicy.NetworkService value)

Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when internet_access is also enabled.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7;

Parameter
Name Description
value NetworkPolicy.NetworkService
Returns
Type Description
NetworkPolicy.Builder

setExternalIp(NetworkPolicy.NetworkService.Builder builderForValue)

public NetworkPolicy.Builder setExternalIp(NetworkPolicy.NetworkService.Builder builderForValue)

Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when internet_access is also enabled.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7;

Parameter
Name Description
builderForValue NetworkPolicy.NetworkService.Builder
Returns
Type Description
NetworkPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInternetAccess(NetworkPolicy.NetworkService value)

public NetworkPolicy.Builder setInternetAccess(NetworkPolicy.NetworkService value)

Network service that allows VMware workloads to access the internet.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;

Parameter
Name Description
value NetworkPolicy.NetworkService
Returns
Type Description
NetworkPolicy.Builder

setInternetAccess(NetworkPolicy.NetworkService.Builder builderForValue)

public NetworkPolicy.Builder setInternetAccess(NetworkPolicy.NetworkService.Builder builderForValue)

Network service that allows VMware workloads to access the internet.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;

Parameter
Name Description
builderForValue NetworkPolicy.NetworkService.Builder
Returns
Type Description
NetworkPolicy.Builder

setName(String value)

public NetworkPolicy.Builder setName(String value)

Output only. The resource name of this network policy. 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-network-policy

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NetworkPolicy.Builder setNameBytes(ByteString value)

Output only. The resource name of this network policy. 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-network-policy

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

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

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

setUid(String value)

public NetworkPolicy.Builder setUid(String value)

Output only. System-generated unique identifier for the resource.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

setUidBytes(ByteString value)

public NetworkPolicy.Builder setUidBytes(ByteString value)

Output only. System-generated unique identifier for the resource.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public NetworkPolicy.Builder setUpdateTime(Timestamp value)

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
NetworkPolicy.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public NetworkPolicy.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
NetworkPolicy.Builder

setVmwareEngineNetwork(String value)

public NetworkPolicy.Builder setVmwareEngineNetwork(String value)

Optional. The relative resource name of the VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project} can either be a project number or a project ID.

string vmware_engine_network = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The vmwareEngineNetwork to set.

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

setVmwareEngineNetworkBytes(ByteString value)

public NetworkPolicy.Builder setVmwareEngineNetworkBytes(ByteString value)

Optional. The relative resource name of the VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project} can either be a project number or a project ID.

string vmware_engine_network = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for vmwareEngineNetwork to set.

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

setVmwareEngineNetworkCanonical(String value)

public NetworkPolicy.Builder setVmwareEngineNetworkCanonical(String value)

Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}

string vmware_engine_network_canonical = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The vmwareEngineNetworkCanonical to set.

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.

setVmwareEngineNetworkCanonicalBytes(ByteString value)

public NetworkPolicy.Builder setVmwareEngineNetworkCanonicalBytes(ByteString value)

Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}

string vmware_engine_network_canonical = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for vmwareEngineNetworkCanonical to set.

Returns
Type Description
NetworkPolicy.Builder

This builder for chaining.