Class Policy.ComplianceStandard.Builder (0.8.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Policy.ComplianceStandard.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Policy.ComplianceStandard.Builder
Overrides

build()

public Policy.ComplianceStandard build()
Returns
Type Description
Policy.ComplianceStandard

buildPartial()

public Policy.ComplianceStandard buildPartial()
Returns
Type Description
Policy.ComplianceStandard

clear()

public Policy.ComplianceStandard.Builder clear()
Returns
Type Description
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
Type Description
Policy.ComplianceStandard.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Policy.ComplianceStandard.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Policy.ComplianceStandard.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Policy.ComplianceStandard.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
Policy.ComplianceStandard.Builder

This builder for chaining.

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Policy.ComplianceStandard other)

public Policy.ComplianceStandard.Builder mergeFrom(Policy.ComplianceStandard other)
Parameter
Name Description
other Policy.ComplianceStandard
Returns
Type Description
Policy.ComplianceStandard.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Policy.ComplianceStandard.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Policy.ComplianceStandard.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Policy.ComplianceStandard.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Policy.ComplianceStandard.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Policy.ComplianceStandard.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The control to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for control to set.

Returns
Type Description
Policy.ComplianceStandard.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Policy.ComplianceStandard.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value String

The standard to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for standard to set.

Returns
Type Description
Policy.ComplianceStandard.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Policy.ComplianceStandard.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Policy.ComplianceStandard.Builder
Overrides