Class Policy.ComplianceStandard.Builder (0.6.0)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Policy.ComplianceStandard build()
Returns
TypeDescription
Policy.ComplianceStandard

buildPartial()

public Policy.ComplianceStandard buildPartial()
Returns
TypeDescription
Policy.ComplianceStandard

clear()

public Policy.ComplianceStandard.Builder clear()
Returns
TypeDescription
Policy.ComplianceStandard.Builder
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];

Returns
TypeDescription
Policy.ComplianceStandard.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Policy.ComplianceStandard.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Policy.ComplianceStandard.Builder
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];

Returns
TypeDescription
Policy.ComplianceStandard.Builder

This builder for chaining.

clone()

public Policy.ComplianceStandard.Builder clone()
Returns
TypeDescription
Policy.ComplianceStandard.Builder
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
TypeDescription
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
TypeDescription
ByteString

The bytes for control.

getDefaultInstanceForType()

public Policy.ComplianceStandard getDefaultInstanceForType()
Returns
TypeDescription
Policy.ComplianceStandard

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
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
TypeDescription
ByteString

The bytes for standard.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Policy.ComplianceStandard other)

public Policy.ComplianceStandard.Builder mergeFrom(Policy.ComplianceStandard other)
Parameter
NameDescription
otherPolicy.ComplianceStandard
Returns
TypeDescription
Policy.ComplianceStandard.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Policy.ComplianceStandard.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Policy.ComplianceStandard.Builder
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
NameDescription
valueString

The control to set.

Returns
TypeDescription
Policy.ComplianceStandard.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for control to set.

Returns
TypeDescription
Policy.ComplianceStandard.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Policy.ComplianceStandard.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Policy.ComplianceStandard.Builder
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
NameDescription
valueString

The standard to set.

Returns
TypeDescription
Policy.ComplianceStandard.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for standard to set.

Returns
TypeDescription
Policy.ComplianceStandard.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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