Class MoveOrganizationSecurityPolicyRequest.Builder (1.93.0)

public static final class MoveOrganizationSecurityPolicyRequest.Builder extends GeneratedMessage.Builder<MoveOrganizationSecurityPolicyRequest.Builder> implements MoveOrganizationSecurityPolicyRequestOrBuilder

A request message for OrganizationSecurityPolicies.Move. See the method description for details.

Protobuf type google.cloud.compute.v1.MoveOrganizationSecurityPolicyRequest

Static Methods

getDescriptor()

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

Methods

build()

public MoveOrganizationSecurityPolicyRequest build()
Returns
Type Description
MoveOrganizationSecurityPolicyRequest

buildPartial()

public MoveOrganizationSecurityPolicyRequest buildPartial()
Returns
Type Description
MoveOrganizationSecurityPolicyRequest

clear()

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

clearParentId()

public MoveOrganizationSecurityPolicyRequest.Builder clearParentId()

The new parent of the security policy.

optional string parent_id = 459714768 [(.google.cloud.operation_request_field) = "parent_id"];

Returns
Type Description
MoveOrganizationSecurityPolicyRequest.Builder

This builder for chaining.

clearRequestId()

public MoveOrganizationSecurityPolicyRequest.Builder clearRequestId()

An optional 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.

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).

optional string request_id = 37109963;

Returns
Type Description
MoveOrganizationSecurityPolicyRequest.Builder

This builder for chaining.

clearSecurityPolicy()

public MoveOrganizationSecurityPolicyRequest.Builder clearSecurityPolicy()

Name of the security policy to update.

string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MoveOrganizationSecurityPolicyRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public MoveOrganizationSecurityPolicyRequest getDefaultInstanceForType()
Returns
Type Description
MoveOrganizationSecurityPolicyRequest

getDescriptorForType()

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

getParentId()

public String getParentId()

The new parent of the security policy.

optional string parent_id = 459714768 [(.google.cloud.operation_request_field) = "parent_id"];

Returns
Type Description
String

The parentId.

getParentIdBytes()

public ByteString getParentIdBytes()

The new parent of the security policy.

optional string parent_id = 459714768 [(.google.cloud.operation_request_field) = "parent_id"];

Returns
Type Description
ByteString

The bytes for parentId.

getRequestId()

public String getRequestId()

An optional 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.

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).

optional string request_id = 37109963;

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

An optional 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.

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).

optional string request_id = 37109963;

Returns
Type Description
ByteString

The bytes for requestId.

getSecurityPolicy()

public String getSecurityPolicy()

Name of the security policy to update.

string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The securityPolicy.

getSecurityPolicyBytes()

public ByteString getSecurityPolicyBytes()

Name of the security policy to update.

string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for securityPolicy.

hasParentId()

public boolean hasParentId()

The new parent of the security policy.

optional string parent_id = 459714768 [(.google.cloud.operation_request_field) = "parent_id"];

Returns
Type Description
boolean

Whether the parentId field is set.

hasRequestId()

public boolean hasRequestId()

An optional 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.

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).

optional string request_id = 37109963;

Returns
Type Description
boolean

Whether the requestId field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MoveOrganizationSecurityPolicyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setParentId(String value)

public MoveOrganizationSecurityPolicyRequest.Builder setParentId(String value)

The new parent of the security policy.

optional string parent_id = 459714768 [(.google.cloud.operation_request_field) = "parent_id"];

Parameter
Name Description
value String

The parentId to set.

Returns
Type Description
MoveOrganizationSecurityPolicyRequest.Builder

This builder for chaining.

setParentIdBytes(ByteString value)

public MoveOrganizationSecurityPolicyRequest.Builder setParentIdBytes(ByteString value)

The new parent of the security policy.

optional string parent_id = 459714768 [(.google.cloud.operation_request_field) = "parent_id"];

Parameter
Name Description
value ByteString

The bytes for parentId to set.

Returns
Type Description
MoveOrganizationSecurityPolicyRequest.Builder

This builder for chaining.

setRequestId(String value)

public MoveOrganizationSecurityPolicyRequest.Builder setRequestId(String value)

An optional 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.

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).

optional string request_id = 37109963;

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
MoveOrganizationSecurityPolicyRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public MoveOrganizationSecurityPolicyRequest.Builder setRequestIdBytes(ByteString value)

An optional 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.

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).

optional string request_id = 37109963;

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
MoveOrganizationSecurityPolicyRequest.Builder

This builder for chaining.

setSecurityPolicy(String value)

public MoveOrganizationSecurityPolicyRequest.Builder setSecurityPolicy(String value)

Name of the security policy to update.

string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The securityPolicy to set.

Returns
Type Description
MoveOrganizationSecurityPolicyRequest.Builder

This builder for chaining.

setSecurityPolicyBytes(ByteString value)

public MoveOrganizationSecurityPolicyRequest.Builder setSecurityPolicyBytes(ByteString value)

Name of the security policy to update.

string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for securityPolicy to set.

Returns
Type Description
MoveOrganizationSecurityPolicyRequest.Builder

This builder for chaining.