public static final class AcknowledgeViolationRequest.Builder extends GeneratedMessageV3.Builder<AcknowledgeViolationRequest.Builder> implements AcknowledgeViolationRequestOrBuilderRequest for acknowledging the violation Next Id: 4
Protobuf type google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AcknowledgeViolationRequest.BuilderImplements
AcknowledgeViolationRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AcknowledgeViolationRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| AcknowledgeViolationRequest.Builder |
build()
public AcknowledgeViolationRequest build()| Type | Description |
| AcknowledgeViolationRequest |
buildPartial()
public AcknowledgeViolationRequest buildPartial()| Type | Description |
| AcknowledgeViolationRequest |
clear()
public AcknowledgeViolationRequest.Builder clear()| Type | Description |
| AcknowledgeViolationRequest.Builder |
clearComment()
public AcknowledgeViolationRequest.Builder clearComment()Required. Business justification explaining the need for violation acknowledgement
string comment = 2 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| AcknowledgeViolationRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AcknowledgeViolationRequest.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| AcknowledgeViolationRequest.Builder |
clearName()
public AcknowledgeViolationRequest.Builder clearName()Required. The resource name of the Violation to acknowledge. Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| AcknowledgeViolationRequest.Builder | This builder for chaining. |
clearNonCompliantOrgPolicy()
public AcknowledgeViolationRequest.Builder clearNonCompliantOrgPolicy()Optional. Name of the OrgPolicy which was modified with non-compliant change and resulted in this violation. Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
string non_compliant_org_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
| Type | Description |
| AcknowledgeViolationRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AcknowledgeViolationRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| AcknowledgeViolationRequest.Builder |
clone()
public AcknowledgeViolationRequest.Builder clone()| Type | Description |
| AcknowledgeViolationRequest.Builder |
getComment()
public String getComment()Required. Business justification explaining the need for violation acknowledgement
string comment = 2 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| String | The comment. |
getCommentBytes()
public ByteString getCommentBytes()Required. Business justification explaining the need for violation acknowledgement
string comment = 2 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| ByteString | The bytes for comment. |
getDefaultInstanceForType()
public AcknowledgeViolationRequest getDefaultInstanceForType()| Type | Description |
| AcknowledgeViolationRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getName()
public String getName()Required. The resource name of the Violation to acknowledge. Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| String | The name. |
getNameBytes()
public ByteString getNameBytes()Required. The resource name of the Violation to acknowledge. Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| ByteString | The bytes for name. |
getNonCompliantOrgPolicy()
public String getNonCompliantOrgPolicy()Optional. Name of the OrgPolicy which was modified with non-compliant change and resulted in this violation. Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
string non_compliant_org_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
| Type | Description |
| String | The nonCompliantOrgPolicy. |
getNonCompliantOrgPolicyBytes()
public ByteString getNonCompliantOrgPolicyBytes()Optional. Name of the OrgPolicy which was modified with non-compliant change and resulted in this violation. Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
string non_compliant_org_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
| Type | Description |
| ByteString | The bytes for nonCompliantOrgPolicy. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeFrom(AcknowledgeViolationRequest other)
public AcknowledgeViolationRequest.Builder mergeFrom(AcknowledgeViolationRequest other)| Name | Description |
| other | AcknowledgeViolationRequest |
| Type | Description |
| AcknowledgeViolationRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AcknowledgeViolationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| AcknowledgeViolationRequest.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public AcknowledgeViolationRequest.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| AcknowledgeViolationRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AcknowledgeViolationRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| AcknowledgeViolationRequest.Builder |
setComment(String value)
public AcknowledgeViolationRequest.Builder setComment(String value)Required. Business justification explaining the need for violation acknowledgement
string comment = 2 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| value | StringThe comment to set. |
| Type | Description |
| AcknowledgeViolationRequest.Builder | This builder for chaining. |
setCommentBytes(ByteString value)
public AcknowledgeViolationRequest.Builder setCommentBytes(ByteString value)Required. Business justification explaining the need for violation acknowledgement
string comment = 2 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| value | ByteStringThe bytes for comment to set. |
| Type | Description |
| AcknowledgeViolationRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AcknowledgeViolationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| AcknowledgeViolationRequest.Builder |
setName(String value)
public AcknowledgeViolationRequest.Builder setName(String value)Required. The resource name of the Violation to acknowledge. Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| value | StringThe name to set. |
| Type | Description |
| AcknowledgeViolationRequest.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public AcknowledgeViolationRequest.Builder setNameBytes(ByteString value)Required. The resource name of the Violation to acknowledge. Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| value | ByteStringThe bytes for name to set. |
| Type | Description |
| AcknowledgeViolationRequest.Builder | This builder for chaining. |
setNonCompliantOrgPolicy(String value)
public AcknowledgeViolationRequest.Builder setNonCompliantOrgPolicy(String value)Optional. Name of the OrgPolicy which was modified with non-compliant change and resulted in this violation. Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
string non_compliant_org_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
| Name | Description |
| value | StringThe nonCompliantOrgPolicy to set. |
| Type | Description |
| AcknowledgeViolationRequest.Builder | This builder for chaining. |
setNonCompliantOrgPolicyBytes(ByteString value)
public AcknowledgeViolationRequest.Builder setNonCompliantOrgPolicyBytes(ByteString value)Optional. Name of the OrgPolicy which was modified with non-compliant change and resulted in this violation. Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
string non_compliant_org_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
| Name | Description |
| value | ByteStringThe bytes for nonCompliantOrgPolicy to set. |
| Type | Description |
| AcknowledgeViolationRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AcknowledgeViolationRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| AcknowledgeViolationRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AcknowledgeViolationRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| AcknowledgeViolationRequest.Builder |