public static final class CmEnrollment.Builder extends GeneratedMessageV3.Builder<CmEnrollment.Builder> implements CmEnrollmentOrBuilderThe settings for Compliance Manager at a specific resource scope.=
Protobuf type google.cloud.cloudsecuritycompliance.v1.CmEnrollment
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CmEnrollment.BuilderImplements
CmEnrollmentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CmEnrollment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
|
build()
public CmEnrollment build()| Returns | |
|---|---|
| Type | Description |
CmEnrollment |
|
buildPartial()
public CmEnrollment buildPartial()| Returns | |
|---|---|
| Type | Description |
CmEnrollment |
|
clear()
public CmEnrollment.Builder clear()| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
|
clearAuditConfig()
public CmEnrollment.Builder clearAuditConfig()Optional. The audit configuration for Compliance Manager. If set at a scope, this configuration overrides any inherited audit configuration.
.google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
|
clearEnrolled()
public CmEnrollment.Builder clearEnrolled()Optional. Whether the resource is enrolled in Compliance Manager. This setting is inherited by all descendants.
bool enrolled = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CmEnrollment.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
|
clearName()
public CmEnrollment.Builder clearName()Identifier. The name of the Compliance Manager enrollment.
Supported formats are the following:
organizations/{organization_id}/locations/{location}/cmEnrollmentfolders/{folder_id}/locations/{location}/cmEnrollmentprojects/{project_id}/locations/{location}/cmEnrollment
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CmEnrollment.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
|
clone()
public CmEnrollment.Builder clone()| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
|
getAuditConfig()
public AuditConfig getAuditConfig()Optional. The audit configuration for Compliance Manager. If set at a scope, this configuration overrides any inherited audit configuration.
.google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AuditConfig |
The auditConfig. |
getAuditConfigBuilder()
public AuditConfig.Builder getAuditConfigBuilder()Optional. The audit configuration for Compliance Manager. If set at a scope, this configuration overrides any inherited audit configuration.
.google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
|
getAuditConfigOrBuilder()
public AuditConfigOrBuilder getAuditConfigOrBuilder()Optional. The audit configuration for Compliance Manager. If set at a scope, this configuration overrides any inherited audit configuration.
.google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AuditConfigOrBuilder |
|
getDefaultInstanceForType()
public CmEnrollment getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CmEnrollment |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEnrolled()
public boolean getEnrolled()Optional. Whether the resource is enrolled in Compliance Manager. This setting is inherited by all descendants.
bool enrolled = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The enrolled. |
getName()
public String getName()Identifier. The name of the Compliance Manager enrollment.
Supported formats are the following:
organizations/{organization_id}/locations/{location}/cmEnrollmentfolders/{folder_id}/locations/{location}/cmEnrollmentprojects/{project_id}/locations/{location}/cmEnrollment
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Identifier. The name of the Compliance Manager enrollment.
Supported formats are the following:
organizations/{organization_id}/locations/{location}/cmEnrollmentfolders/{folder_id}/locations/{location}/cmEnrollmentprojects/{project_id}/locations/{location}/cmEnrollment
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
hasAuditConfig()
public boolean hasAuditConfig()Optional. The audit configuration for Compliance Manager. If set at a scope, this configuration overrides any inherited audit configuration.
.google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the auditConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAuditConfig(AuditConfig value)
public CmEnrollment.Builder mergeAuditConfig(AuditConfig value)Optional. The audit configuration for Compliance Manager. If set at a scope, this configuration overrides any inherited audit configuration.
.google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AuditConfig |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
|
mergeFrom(CmEnrollment other)
public CmEnrollment.Builder mergeFrom(CmEnrollment other)| Parameter | |
|---|---|
| Name | Description |
other |
CmEnrollment |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CmEnrollment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CmEnrollment.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CmEnrollment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
|
setAuditConfig(AuditConfig value)
public CmEnrollment.Builder setAuditConfig(AuditConfig value)Optional. The audit configuration for Compliance Manager. If set at a scope, this configuration overrides any inherited audit configuration.
.google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AuditConfig |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
|
setAuditConfig(AuditConfig.Builder builderForValue)
public CmEnrollment.Builder setAuditConfig(AuditConfig.Builder builderForValue)Optional. The audit configuration for Compliance Manager. If set at a scope, this configuration overrides any inherited audit configuration.
.google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AuditConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
|
setEnrolled(boolean value)
public CmEnrollment.Builder setEnrolled(boolean value)Optional. Whether the resource is enrolled in Compliance Manager. This setting is inherited by all descendants.
bool enrolled = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe enrolled to set. |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CmEnrollment.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
|
setName(String value)
public CmEnrollment.Builder setName(String value)Identifier. The name of the Compliance Manager enrollment.
Supported formats are the following:
organizations/{organization_id}/locations/{location}/cmEnrollmentfolders/{folder_id}/locations/{location}/cmEnrollmentprojects/{project_id}/locations/{location}/cmEnrollment
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public CmEnrollment.Builder setNameBytes(ByteString value)Identifier. The name of the Compliance Manager enrollment.
Supported formats are the following:
organizations/{organization_id}/locations/{location}/cmEnrollmentfolders/{folder_id}/locations/{location}/cmEnrollmentprojects/{project_id}/locations/{location}/cmEnrollment
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CmEnrollment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final CmEnrollment.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment.Builder |
|