public interface CreateContentPolicyRequestOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getContentPolicy()
public abstract ContentPolicy getContentPolicy()Required. The content_policy resource.
.google.privacy.dlp.v2.ContentPolicy content_policy = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ContentPolicy |
The contentPolicy. |
getContentPolicyId()
public abstract String getContentPolicyId() Optional. The content policy ID can contain uppercase and lowercase
letters, numbers, and hyphens; that is, it must match the regular
expression:
[a-zA-Z\d-_]+.
The maximum length is 100 characters. If empty, the system will generate
a random id.
string content_policy_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The contentPolicyId. |
getContentPolicyIdBytes()
public abstract ByteString getContentPolicyIdBytes() Optional. The content policy ID can contain uppercase and lowercase
letters, numbers, and hyphens; that is, it must match the regular
expression:
[a-zA-Z\d-_]+.
The maximum length is 100 characters. If empty, the system will generate
a random id.
string content_policy_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for contentPolicyId. |
getContentPolicyOrBuilder()
public abstract ContentPolicyOrBuilder getContentPolicyOrBuilder()Required. The content_policy resource.
.google.privacy.dlp.v2.ContentPolicy content_policy = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ContentPolicyOrBuilder |
|
getParent()
public abstract String getParent()Required. Parent resource name.
The format of this value varies depending on the scope of the request (project):
- Projects scope:
projects/{project_id}/locations/{location_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public abstract ByteString getParentBytes()Required. Parent resource name.
The format of this value varies depending on the scope of the request (project):
- Projects scope:
projects/{project_id}/locations/{location_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
hasContentPolicy()
public abstract boolean hasContentPolicy()Required. The content_policy resource.
.google.privacy.dlp.v2.ContentPolicy content_policy = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the contentPolicy field is set. |