public static final class Policy.ComplianceStandard.Builder extends GeneratedMessageV3.Builder<Policy.ComplianceStandard.Builder> implements Policy.ComplianceStandardOrBuilder
Mapping for a Policy to standard and control.
Protobuf type google.cloud.securityposture.v1.Policy.ComplianceStandard
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Policy.ComplianceStandard.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Policy.ComplianceStandard build()
buildPartial()
public Policy.ComplianceStandard buildPartial()
clear()
public Policy.ComplianceStandard.Builder clear()
Overrides
clearControl()
public Policy.ComplianceStandard.Builder clearControl()
Optional. Control mapping provided by user for this Policy. e.g.: 1.5.
string control = 2 [(.google.api.field_behavior) = OPTIONAL];
clearField(Descriptors.FieldDescriptor field)
public Policy.ComplianceStandard.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Policy.ComplianceStandard.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearStandard()
public Policy.ComplianceStandard.Builder clearStandard()
Optional. The compliance standard that the Policy maps to, e.g.: CIS-2.0.
string standard = 1 [(.google.api.field_behavior) = OPTIONAL];
clone()
public Policy.ComplianceStandard.Builder clone()
Overrides
getControl()
public String getControl()
Optional. Control mapping provided by user for this Policy. e.g.: 1.5.
string control = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The control.
|
getControlBytes()
public ByteString getControlBytes()
Optional. Control mapping provided by user for this Policy. e.g.: 1.5.
string control = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for control.
|
getDefaultInstanceForType()
public Policy.ComplianceStandard getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getStandard()
public String getStandard()
Optional. The compliance standard that the Policy maps to, e.g.: CIS-2.0.
string standard = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The standard.
|
getStandardBytes()
public ByteString getStandardBytes()
Optional. The compliance standard that the Policy maps to, e.g.: CIS-2.0.
string standard = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for standard.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Policy.ComplianceStandard other)
public Policy.ComplianceStandard.Builder mergeFrom(Policy.ComplianceStandard other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Policy.ComplianceStandard.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Policy.ComplianceStandard.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Policy.ComplianceStandard.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setControl(String value)
public Policy.ComplianceStandard.Builder setControl(String value)
Optional. Control mapping provided by user for this Policy. e.g.: 1.5.
string control = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
String
The control to set.
|
setControlBytes(ByteString value)
public Policy.ComplianceStandard.Builder setControlBytes(ByteString value)
Optional. Control mapping provided by user for this Policy. e.g.: 1.5.
string control = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
ByteString
The bytes for control to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Policy.ComplianceStandard.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Policy.ComplianceStandard.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setStandard(String value)
public Policy.ComplianceStandard.Builder setStandard(String value)
Optional. The compliance standard that the Policy maps to, e.g.: CIS-2.0.
string standard = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
String
The standard to set.
|
setStandardBytes(ByteString value)
public Policy.ComplianceStandard.Builder setStandardBytes(ByteString value)
Optional. The compliance standard that the Policy maps to, e.g.: CIS-2.0.
string standard = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
ByteString
The bytes for standard to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Policy.ComplianceStandard.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides