Class CreateAuthzPolicyRequest.Builder (0.94.0)

public static final class CreateAuthzPolicyRequest.Builder extends GeneratedMessage.Builder<CreateAuthzPolicyRequest.Builder> implements CreateAuthzPolicyRequestOrBuilder

Message for creating an AuthzPolicy resource.

Protobuf type google.cloud.networksecurity.v1.CreateAuthzPolicyRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateAuthzPolicyRequest build()
Returns
Type Description
CreateAuthzPolicyRequest

buildPartial()

public CreateAuthzPolicyRequest buildPartial()
Returns
Type Description
CreateAuthzPolicyRequest

clear()

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

clearAuthzPolicy()

public CreateAuthzPolicyRequest.Builder clearAuthzPolicy()

Required. AuthzPolicy resource to be created.

.google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateAuthzPolicyRequest.Builder

clearAuthzPolicyId()

public CreateAuthzPolicyRequest.Builder clearAuthzPolicyId()

Required. User-provided ID of the AuthzPolicy resource to be created.

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

Returns
Type Description
CreateAuthzPolicyRequest.Builder

This builder for chaining.

clearParent()

public CreateAuthzPolicyRequest.Builder clearParent()

Required. The parent resource of the AuthzPolicy resource. Must be in the format projects/{project}/locations/{location}.

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

Returns
Type Description
CreateAuthzPolicyRequest.Builder

This builder for chaining.

clearRequestId()

public CreateAuthzPolicyRequest.Builder clearRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request.

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, ignores 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, (.google.api.field_info) = { ... }

Returns
Type Description
CreateAuthzPolicyRequest.Builder

This builder for chaining.

getAuthzPolicy()

public AuthzPolicy getAuthzPolicy()

Required. AuthzPolicy resource to be created.

.google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuthzPolicy

The authzPolicy.

getAuthzPolicyBuilder()

public AuthzPolicy.Builder getAuthzPolicyBuilder()

Required. AuthzPolicy resource to be created.

.google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuthzPolicy.Builder

getAuthzPolicyId()

public String getAuthzPolicyId()

Required. User-provided ID of the AuthzPolicy resource to be created.

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

Returns
Type Description
String

The authzPolicyId.

getAuthzPolicyIdBytes()

public ByteString getAuthzPolicyIdBytes()

Required. User-provided ID of the AuthzPolicy resource to be created.

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

Returns
Type Description
ByteString

The bytes for authzPolicyId.

getAuthzPolicyOrBuilder()

public AuthzPolicyOrBuilder getAuthzPolicyOrBuilder()

Required. AuthzPolicy resource to be created.

.google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuthzPolicyOrBuilder

getDefaultInstanceForType()

public CreateAuthzPolicyRequest getDefaultInstanceForType()
Returns
Type Description
CreateAuthzPolicyRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource of the AuthzPolicy resource. Must be in the format projects/{project}/locations/{location}.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource of the AuthzPolicy resource. Must be in the format projects/{project}/locations/{location}.

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. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request.

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, ignores 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, (.google.api.field_info) = { ... }

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request.

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, ignores 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, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for requestId.

hasAuthzPolicy()

public boolean hasAuthzPolicy()

Required. AuthzPolicy resource to be created.

.google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the authzPolicy field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAuthzPolicy(AuthzPolicy value)

public CreateAuthzPolicyRequest.Builder mergeAuthzPolicy(AuthzPolicy value)

Required. AuthzPolicy resource to be created.

.google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AuthzPolicy
Returns
Type Description
CreateAuthzPolicyRequest.Builder

mergeFrom(CreateAuthzPolicyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAuthzPolicy(AuthzPolicy value)

public CreateAuthzPolicyRequest.Builder setAuthzPolicy(AuthzPolicy value)

Required. AuthzPolicy resource to be created.

.google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AuthzPolicy
Returns
Type Description
CreateAuthzPolicyRequest.Builder

setAuthzPolicy(AuthzPolicy.Builder builderForValue)

public CreateAuthzPolicyRequest.Builder setAuthzPolicy(AuthzPolicy.Builder builderForValue)

Required. AuthzPolicy resource to be created.

.google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AuthzPolicy.Builder
Returns
Type Description
CreateAuthzPolicyRequest.Builder

setAuthzPolicyId(String value)

public CreateAuthzPolicyRequest.Builder setAuthzPolicyId(String value)

Required. User-provided ID of the AuthzPolicy resource to be created.

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

Parameter
Name Description
value String

The authzPolicyId to set.

Returns
Type Description
CreateAuthzPolicyRequest.Builder

This builder for chaining.

setAuthzPolicyIdBytes(ByteString value)

public CreateAuthzPolicyRequest.Builder setAuthzPolicyIdBytes(ByteString value)

Required. User-provided ID of the AuthzPolicy resource to be created.

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

Parameter
Name Description
value ByteString

The bytes for authzPolicyId to set.

Returns
Type Description
CreateAuthzPolicyRequest.Builder

This builder for chaining.

setParent(String value)

public CreateAuthzPolicyRequest.Builder setParent(String value)

Required. The parent resource of the AuthzPolicy resource. Must be in the format projects/{project}/locations/{location}.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateAuthzPolicyRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateAuthzPolicyRequest.Builder setParentBytes(ByteString value)

Required. The parent resource of the AuthzPolicy resource. Must be in the format projects/{project}/locations/{location}.

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
CreateAuthzPolicyRequest.Builder

This builder for chaining.

setRequestId(String value)

public CreateAuthzPolicyRequest.Builder setRequestId(String value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request.

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, ignores 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, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateAuthzPolicyRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateAuthzPolicyRequest.Builder setRequestIdBytes(ByteString value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request.

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, ignores 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, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateAuthzPolicyRequest.Builder

This builder for chaining.