Class CreateNetworkPolicyRequest.Builder (0.12.0)

public static final class CreateNetworkPolicyRequest.Builder extends GeneratedMessageV3.Builder<CreateNetworkPolicyRequest.Builder> implements CreateNetworkPolicyRequestOrBuilder

Request message for VmwareEngine.CreateNetworkPolicy

Protobuf type google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateNetworkPolicyRequest build()
Returns
TypeDescription
CreateNetworkPolicyRequest

buildPartial()

public CreateNetworkPolicyRequest buildPartial()
Returns
TypeDescription
CreateNetworkPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNetworkPolicy()

public CreateNetworkPolicyRequest.Builder clearNetworkPolicy()

Required. The network policy configuration to use in the request.

.google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateNetworkPolicyRequest.Builder

clearNetworkPolicyId()

public CreateNetworkPolicyRequest.Builder clearNetworkPolicyId()

Required. The user-provided identifier of the network policy to be created. This identifier must be unique within parent projects/{my-project}/locations/{us-central1}/networkPolicies and becomes the final token in the name URI. The identifier must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

string network_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateNetworkPolicyRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateNetworkPolicyRequest.Builder clearParent()

Required. The resource name of the location (region) to create the new network policy in. 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

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

Returns
TypeDescription
CreateNetworkPolicyRequest.Builder

This builder for chaining.

clearRequestId()

public CreateNetworkPolicyRequest.Builder clearRequestId()

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CreateNetworkPolicyRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateNetworkPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateNetworkPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNetworkPolicy()

public NetworkPolicy getNetworkPolicy()

Required. The network policy configuration to use in the request.

.google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NetworkPolicy

The networkPolicy.

getNetworkPolicyBuilder()

public NetworkPolicy.Builder getNetworkPolicyBuilder()

Required. The network policy configuration to use in the request.

.google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NetworkPolicy.Builder

getNetworkPolicyId()

public String getNetworkPolicyId()

Required. The user-provided identifier of the network policy to be created. This identifier must be unique within parent projects/{my-project}/locations/{us-central1}/networkPolicies and becomes the final token in the name URI. The identifier must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

string network_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The networkPolicyId.

getNetworkPolicyIdBytes()

public ByteString getNetworkPolicyIdBytes()

Required. The user-provided identifier of the network policy to be created. This identifier must be unique within parent projects/{my-project}/locations/{us-central1}/networkPolicies and becomes the final token in the name URI. The identifier must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

string network_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for networkPolicyId.

getNetworkPolicyOrBuilder()

public NetworkPolicyOrBuilder getNetworkPolicyOrBuilder()

Required. The network policy configuration to use in the request.

.google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NetworkPolicyOrBuilder

getParent()

public String getParent()

Required. The resource name of the location (region) to create the new network policy in. 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

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the location (region) to create the new network policy in. 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

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

Returns
TypeDescription
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for requestId.

hasNetworkPolicy()

public boolean hasNetworkPolicy()

Required. The network policy configuration to use in the request.

.google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the networkPolicy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateNetworkPolicyRequest other)

public CreateNetworkPolicyRequest.Builder mergeFrom(CreateNetworkPolicyRequest other)
Parameter
NameDescription
otherCreateNetworkPolicyRequest
Returns
TypeDescription
CreateNetworkPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNetworkPolicy(NetworkPolicy value)

public CreateNetworkPolicyRequest.Builder mergeNetworkPolicy(NetworkPolicy value)

Required. The network policy configuration to use in the request.

.google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueNetworkPolicy
Returns
TypeDescription
CreateNetworkPolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNetworkPolicy(NetworkPolicy value)

public CreateNetworkPolicyRequest.Builder setNetworkPolicy(NetworkPolicy value)

Required. The network policy configuration to use in the request.

.google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueNetworkPolicy
Returns
TypeDescription
CreateNetworkPolicyRequest.Builder

setNetworkPolicy(NetworkPolicy.Builder builderForValue)

public CreateNetworkPolicyRequest.Builder setNetworkPolicy(NetworkPolicy.Builder builderForValue)

Required. The network policy configuration to use in the request.

.google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueNetworkPolicy.Builder
Returns
TypeDescription
CreateNetworkPolicyRequest.Builder

setNetworkPolicyId(String value)

public CreateNetworkPolicyRequest.Builder setNetworkPolicyId(String value)

Required. The user-provided identifier of the network policy to be created. This identifier must be unique within parent projects/{my-project}/locations/{us-central1}/networkPolicies and becomes the final token in the name URI. The identifier must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

string network_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The networkPolicyId to set.

Returns
TypeDescription
CreateNetworkPolicyRequest.Builder

This builder for chaining.

setNetworkPolicyIdBytes(ByteString value)

public CreateNetworkPolicyRequest.Builder setNetworkPolicyIdBytes(ByteString value)

Required. The user-provided identifier of the network policy to be created. This identifier must be unique within parent projects/{my-project}/locations/{us-central1}/networkPolicies and becomes the final token in the name URI. The identifier must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

string network_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for networkPolicyId to set.

Returns
TypeDescription
CreateNetworkPolicyRequest.Builder

This builder for chaining.

setParent(String value)

public CreateNetworkPolicyRequest.Builder setParent(String value)

Required. The resource name of the location (region) to create the new network policy in. 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

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateNetworkPolicyRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateNetworkPolicyRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the location (region) to create the new network policy in. 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

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateNetworkPolicyRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateNetworkPolicyRequest.Builder setRequestId(String value)

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
CreateNetworkPolicyRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateNetworkPolicyRequest.Builder setRequestIdBytes(ByteString value)

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
CreateNetworkPolicyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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