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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateNetworkPolicyRequest.BuilderImplements
CreateNetworkPolicyRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateNetworkPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest.Builder |
build()
public CreateNetworkPolicyRequest build()
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest |
buildPartial()
public CreateNetworkPolicyRequest buildPartial()
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest |
clear()
public CreateNetworkPolicyRequest.Builder clear()
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public CreateNetworkPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
CreateNetworkPolicyRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateNetworkPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
CreateNetworkPolicyRequest.Builder | This builder for chaining. |
clone()
public CreateNetworkPolicyRequest.Builder clone()
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest.Builder |
getDefaultInstanceForType()
public CreateNetworkPolicyRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the networkPolicy field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CreateNetworkPolicyRequest other)
public CreateNetworkPolicyRequest.Builder mergeFrom(CreateNetworkPolicyRequest other)
Parameter | |
---|---|
Name | Description |
other | CreateNetworkPolicyRequest |
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateNetworkPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CreateNetworkPolicyRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest.Builder |
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 | |
---|---|
Name | Description |
value | NetworkPolicy |
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateNetworkPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateNetworkPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest.Builder |
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 | |
---|---|
Name | Description |
value | NetworkPolicy |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | NetworkPolicy.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The networkPolicyId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for networkPolicyId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The parent to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for parent to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest.Builder |
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 | |
---|---|
Name | Description |
value | String The requestId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for requestId to set. |
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateNetworkPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateNetworkPolicyRequest.Builder |