- 2.51.0 (latest)
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.1.0
- 2.0.0
- 1.1.0
- 1.0.4
- 0.9.0
- 0.8.2
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AcknowledgeViolationRequest.BuilderImplements
AcknowledgeViolationRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AcknowledgeViolationRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
AcknowledgeViolationRequest.Builder |
build()
public AcknowledgeViolationRequest build()
Returns | |
---|---|
Type | Description |
AcknowledgeViolationRequest |
buildPartial()
public AcknowledgeViolationRequest buildPartial()
Returns | |
---|---|
Type | Description |
AcknowledgeViolationRequest |
clear()
public AcknowledgeViolationRequest.Builder clear()
Returns | |
---|---|
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];
Returns | |
---|---|
Type | Description |
AcknowledgeViolationRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AcknowledgeViolationRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
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];
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
AcknowledgeViolationRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AcknowledgeViolationRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
AcknowledgeViolationRequest.Builder |
clone()
public AcknowledgeViolationRequest.Builder clone()
Returns | |
---|---|
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];
Returns | |
---|---|
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];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for comment. |
getDefaultInstanceForType()
public AcknowledgeViolationRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AcknowledgeViolationRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
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];
Returns | |
---|---|
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];
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for nonCompliantOrgPolicy. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(AcknowledgeViolationRequest other)
public AcknowledgeViolationRequest.Builder mergeFrom(AcknowledgeViolationRequest other)
Parameter | |
---|---|
Name | Description |
other | AcknowledgeViolationRequest |
Returns | |
---|---|
Type | Description |
AcknowledgeViolationRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AcknowledgeViolationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AcknowledgeViolationRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public AcknowledgeViolationRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
AcknowledgeViolationRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AcknowledgeViolationRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
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];
Parameter | |
---|---|
Name | Description |
value | String The comment to set. |
Returns | |
---|---|
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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for comment to set. |
Returns | |
---|---|
Type | Description |
AcknowledgeViolationRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AcknowledgeViolationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
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];
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The nonCompliantOrgPolicy to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for nonCompliantOrgPolicy to set. |
Returns | |
---|---|
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)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
AcknowledgeViolationRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AcknowledgeViolationRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AcknowledgeViolationRequest.Builder |