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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > NetworkPolicy.BuilderImplements
NetworkPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public NetworkPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
NetworkPolicy.Builder |
build()
public NetworkPolicy build()
Type | Description |
NetworkPolicy |
buildPartial()
public NetworkPolicy buildPartial()
Type | Description |
NetworkPolicy |
clear()
public NetworkPolicy.Builder clear()
Type | Description |
NetworkPolicy.Builder |
clearCreateTime()
public NetworkPolicy.Builder clearCreateTime()
Output only. Creation time of this resource.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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];
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;
Type | Description |
NetworkPolicy.Builder |
clearField(Descriptors.FieldDescriptor field)
public NetworkPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
NetworkPolicy.Builder |
clearInternetAccess()
public NetworkPolicy.Builder clearInternetAccess()
Network service that allows VMware workloads to access the internet.
.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;
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];
Type | Description |
NetworkPolicy.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public NetworkPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
NetworkPolicy.Builder |
clearUid()
public NetworkPolicy.Builder clearUid()
Output only. System-generated unique identifier for the resource.
string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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) = { ... }
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) = { ... }
Type | Description |
NetworkPolicy.Builder | This builder for chaining. |
clone()
public NetworkPolicy.Builder clone()
Type | Description |
NetworkPolicy.Builder |
getCreateTime()
public Timestamp getCreateTime()
Output only. Creation time of this resource.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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];
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public NetworkPolicy getDefaultInstanceForType()
Type | Description |
NetworkPolicy |
getDescription()
public String getDescription()
Optional. User-provided description for this network policy.
string description = 13 [(.google.api.field_behavior) = OPTIONAL];
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];
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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];
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];
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;
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;
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;
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;
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;
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;
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];
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];
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];
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];
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];
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];
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];
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) = { ... }
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) = { ... }
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) = { ... }
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) = { ... }
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];
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;
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;
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];
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
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];
Name | Description |
value | Timestamp |
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;
Name | Description |
value | NetworkPolicy.NetworkService |
Type | Description |
NetworkPolicy.Builder |
mergeFrom(NetworkPolicy other)
public NetworkPolicy.Builder mergeFrom(NetworkPolicy other)
Name | Description |
other | NetworkPolicy |
Type | Description |
NetworkPolicy.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public NetworkPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
NetworkPolicy.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public NetworkPolicy.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
NetworkPolicy.Builder |
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;
Name | Description |
value | NetworkPolicy.NetworkService |
Type | Description |
NetworkPolicy.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NetworkPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
NetworkPolicy.Builder |
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];
Name | Description |
value | Timestamp |
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];
Name | Description |
value | Timestamp |
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];
Name | Description |
builderForValue | Builder |
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];
Name | Description |
value | String The description to set. |
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];
Name | Description |
value | ByteString The bytes for description to set. |
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];
Name | Description |
value | String The edgeServicesCidr to set. |
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];
Name | Description |
value | ByteString The bytes for edgeServicesCidr to set. |
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;
Name | Description |
value | NetworkPolicy.NetworkService |
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;
Name | Description |
builderForValue | NetworkPolicy.NetworkService.Builder |
Type | Description |
NetworkPolicy.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public NetworkPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
NetworkPolicy.Builder |
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;
Name | Description |
value | NetworkPolicy.NetworkService |
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;
Name | Description |
builderForValue | NetworkPolicy.NetworkService.Builder |
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];
Name | Description |
value | String The name to set. |
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];
Name | Description |
value | ByteString The bytes for name to set. |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
NetworkPolicy.Builder |
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];
Name | Description |
value | String The uid to set. |
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];
Name | Description |
value | ByteString The bytes for uid to set. |
Type | Description |
NetworkPolicy.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final NetworkPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
NetworkPolicy.Builder |
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];
Name | Description |
value | Timestamp |
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];
Name | Description |
builderForValue | Builder |
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) = { ... }
Name | Description |
value | String The vmwareEngineNetwork to set. |
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) = { ... }
Name | Description |
value | ByteString The bytes for vmwareEngineNetwork to set. |
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) = { ... }
Name | Description |
value | String The vmwareEngineNetworkCanonical to set. |
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) = { ... }
Name | Description |
value | ByteString The bytes for vmwareEngineNetworkCanonical to set. |
Type | Description |
NetworkPolicy.Builder | This builder for chaining. |