Class NetworkPolicy.Builder (0.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NetworkPolicy build()
Returns
TypeDescription
NetworkPolicy

buildPartial()

public NetworkPolicy buildPartial()
Returns
TypeDescription
NetworkPolicy

clear()

public NetworkPolicy.Builder clear()
Returns
TypeDescription
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
TypeDescription
NetworkPolicy.Builder

clearDescription()

public NetworkPolicy.Builder clearDescription()

Optional. User-provided description for this network policy.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
NetworkPolicy.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public NetworkPolicy.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public NetworkPolicy getDefaultInstanceForType()
Returns
TypeDescription
NetworkPolicy

getDescription()

public String getDescription()

Optional. User-provided description for this network policy.

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

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. User-provided description for this network policy.

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

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

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

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueNetworkPolicy.NetworkService
Returns
TypeDescription
NetworkPolicy.Builder

mergeFrom(NetworkPolicy other)

public NetworkPolicy.Builder mergeFrom(NetworkPolicy other)
Parameter
NameDescription
otherNetworkPolicy
Returns
TypeDescription
NetworkPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public NetworkPolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueNetworkPolicy.NetworkService
Returns
TypeDescription
NetworkPolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

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

The bytes for description to set.

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

The edgeServicesCidr to set.

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

The bytes for edgeServicesCidr to set.

Returns
TypeDescription
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
NameDescription
valueNetworkPolicy.NetworkService
Returns
TypeDescription
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
NameDescription
builderForValueNetworkPolicy.NetworkService.Builder
Returns
TypeDescription
NetworkPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

The uid to set.

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

The bytes for uid to set.

Returns
TypeDescription
NetworkPolicy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The vmwareEngineNetwork to set.

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

The bytes for vmwareEngineNetwork to set.

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

The vmwareEngineNetworkCanonical to set.

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

The bytes for vmwareEngineNetworkCanonical to set.

Returns
TypeDescription
NetworkPolicy.Builder

This builder for chaining.