Class AcknowledgeViolationRequest.Builder (2.41.0)

public static final class AcknowledgeViolationRequest.Builder extends GeneratedMessageV3.Builder<AcknowledgeViolationRequest.Builder> implements AcknowledgeViolationRequestOrBuilder

Request for acknowledging the violation Next Id: 4

Protobuf type google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AcknowledgeViolationRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AcknowledgeViolationRequest.Builder
Overrides

build()

public AcknowledgeViolationRequest build()
Returns
TypeDescription
AcknowledgeViolationRequest

buildPartial()

public AcknowledgeViolationRequest buildPartial()
Returns
TypeDescription
AcknowledgeViolationRequest

clear()

public AcknowledgeViolationRequest.Builder clear()
Returns
TypeDescription
AcknowledgeViolationRequest.Builder
Overrides

clearComment()

public AcknowledgeViolationRequest.Builder clearComment()

Required. Business justification explaining the need for violation acknowledgement

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

Returns
TypeDescription
AcknowledgeViolationRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AcknowledgeViolationRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AcknowledgeViolationRequest.Builder
Overrides

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];

Returns
TypeDescription
AcknowledgeViolationRequest.Builder

This builder for chaining.

clearNonCompliantOrgPolicy() (deprecated)

public AcknowledgeViolationRequest.Builder clearNonCompliantOrgPolicy()

Deprecated. google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest.non_compliant_org_policy is deprecated. See google/cloud/assuredworkloads/v1/assuredworkloads.proto;l=584

Optional. This field is deprecated and will be removed in future version of the API. 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 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AcknowledgeViolationRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AcknowledgeViolationRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AcknowledgeViolationRequest.Builder
Overrides

clone()

public AcknowledgeViolationRequest.Builder clone()
Returns
TypeDescription
AcknowledgeViolationRequest.Builder
Overrides

getComment()

public String getComment()

Required. Business justification explaining the need for violation acknowledgement

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

Returns
TypeDescription
String

The comment.

getCommentBytes()

public ByteString getCommentBytes()

Required. Business justification explaining the need for violation acknowledgement

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

Returns
TypeDescription
ByteString

The bytes for comment.

getDefaultInstanceForType()

public AcknowledgeViolationRequest getDefaultInstanceForType()
Returns
TypeDescription
AcknowledgeViolationRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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];

Returns
TypeDescription
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];

Returns
TypeDescription
ByteString

The bytes for name.

getNonCompliantOrgPolicy() (deprecated)

public String getNonCompliantOrgPolicy()

Deprecated. google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest.non_compliant_org_policy is deprecated. See google/cloud/assuredworkloads/v1/assuredworkloads.proto;l=584

Optional. This field is deprecated and will be removed in future version of the API. 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 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The nonCompliantOrgPolicy.

getNonCompliantOrgPolicyBytes() (deprecated)

public ByteString getNonCompliantOrgPolicyBytes()

Deprecated. google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest.non_compliant_org_policy is deprecated. See google/cloud/assuredworkloads/v1/assuredworkloads.proto;l=584

Optional. This field is deprecated and will be removed in future version of the API. 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 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for nonCompliantOrgPolicy.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AcknowledgeViolationRequest other)

public AcknowledgeViolationRequest.Builder mergeFrom(AcknowledgeViolationRequest other)
Parameter
NameDescription
otherAcknowledgeViolationRequest
Returns
TypeDescription
AcknowledgeViolationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AcknowledgeViolationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AcknowledgeViolationRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AcknowledgeViolationRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AcknowledgeViolationRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AcknowledgeViolationRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AcknowledgeViolationRequest.Builder
Overrides

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];

Parameter
NameDescription
valueString

The comment to set.

Returns
TypeDescription
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];

Parameter
NameDescription
valueByteString

The bytes for comment to set.

Returns
TypeDescription
AcknowledgeViolationRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AcknowledgeViolationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AcknowledgeViolationRequest.Builder
Overrides

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];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
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];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AcknowledgeViolationRequest.Builder

This builder for chaining.

setNonCompliantOrgPolicy(String value) (deprecated)

public AcknowledgeViolationRequest.Builder setNonCompliantOrgPolicy(String value)

Deprecated. google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest.non_compliant_org_policy is deprecated. See google/cloud/assuredworkloads/v1/assuredworkloads.proto;l=584

Optional. This field is deprecated and will be removed in future version of the API. 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 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The nonCompliantOrgPolicy to set.

Returns
TypeDescription
AcknowledgeViolationRequest.Builder

This builder for chaining.

setNonCompliantOrgPolicyBytes(ByteString value) (deprecated)

public AcknowledgeViolationRequest.Builder setNonCompliantOrgPolicyBytes(ByteString value)

Deprecated. google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest.non_compliant_org_policy is deprecated. See google/cloud/assuredworkloads/v1/assuredworkloads.proto;l=584

Optional. This field is deprecated and will be removed in future version of the API. 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 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for nonCompliantOrgPolicy to set.

Returns
TypeDescription
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)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AcknowledgeViolationRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AcknowledgeViolationRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AcknowledgeViolationRequest.Builder
Overrides