Class CloudControlGroup.Builder (0.1.0)

public static final class CloudControlGroup.Builder extends GeneratedMessageV3.Builder<CloudControlGroup.Builder> implements CloudControlGroupOrBuilder

CloudControlGroup is an optional entity within a Framework that helps customers organize their CloudControls.

Protobuf type google.cloud.cloudsecuritycompliance.v1.CloudControlGroup

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllCloudControlDetails(Iterable<? extends CloudControlDetails> values)

public CloudControlGroup.Builder addAllCloudControlDetails(Iterable<? extends CloudControlDetails> values)

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.cloudsecuritycompliance.v1.CloudControlDetails>
Returns
Type Description
CloudControlGroup.Builder

addCloudControlDetails(CloudControlDetails value)

public CloudControlGroup.Builder addCloudControlDetails(CloudControlDetails value)

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CloudControlDetails
Returns
Type Description
CloudControlGroup.Builder

addCloudControlDetails(CloudControlDetails.Builder builderForValue)

public CloudControlGroup.Builder addCloudControlDetails(CloudControlDetails.Builder builderForValue)

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CloudControlDetails.Builder
Returns
Type Description
CloudControlGroup.Builder

addCloudControlDetails(int index, CloudControlDetails value)

public CloudControlGroup.Builder addCloudControlDetails(int index, CloudControlDetails value)

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value CloudControlDetails
Returns
Type Description
CloudControlGroup.Builder

addCloudControlDetails(int index, CloudControlDetails.Builder builderForValue)

public CloudControlGroup.Builder addCloudControlDetails(int index, CloudControlDetails.Builder builderForValue)

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue CloudControlDetails.Builder
Returns
Type Description
CloudControlGroup.Builder

addCloudControlDetailsBuilder()

public CloudControlDetails.Builder addCloudControlDetailsBuilder()

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudControlDetails.Builder

addCloudControlDetailsBuilder(int index)

public CloudControlDetails.Builder addCloudControlDetailsBuilder(int index)

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CloudControlDetails.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudControlGroup build()
Returns
Type Description
CloudControlGroup

buildPartial()

public CloudControlGroup buildPartial()
Returns
Type Description
CloudControlGroup

clear()

public CloudControlGroup.Builder clear()
Returns
Type Description
CloudControlGroup.Builder
Overrides

clearCloudControlDetails()

public CloudControlGroup.Builder clearCloudControlDetails()

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudControlGroup.Builder

clearControl()

public CloudControlGroup.Builder clearControl()

Optional. The industry-defined Control assciated with the cloud controls in this group. organizations/{organization}/locations/{location}/controls/{control_id}

string control = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

clearControlId()

public CloudControlGroup.Builder clearControlId()

Optional. The control identifier used to fetch the findings. This is same as the control report name.

string control_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

clearDescription()

public CloudControlGroup.Builder clearDescription()

Optional. The description of the cloud control group.The maximum length is 2000 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMajorRevisionId()

public CloudControlGroup.Builder clearMajorRevisionId()

Optional. Major revision of the cloud control group.

int64 major_revision_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

clearName()

public CloudControlGroup.Builder clearName()

Required. The name of the cloud control group in the format: “organizations/{organization}/locations/{location}/ cloudControlGroups/{cloud-control-group}”

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudControlGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CloudControlGroup.Builder
Overrides

clearType()

public CloudControlGroup.Builder clearType()

Optional. Output only. The type of the cloud control group. Default is TYPE_CUSTOM.

.google.cloud.cloudsecuritycompliance.v1.CloudControlGroup.CloudControlGroupType type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

clone()

public CloudControlGroup.Builder clone()
Returns
Type Description
CloudControlGroup.Builder
Overrides

getCloudControlDetails(int index)

public CloudControlDetails getCloudControlDetails(int index)

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CloudControlDetails

getCloudControlDetailsBuilder(int index)

public CloudControlDetails.Builder getCloudControlDetailsBuilder(int index)

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CloudControlDetails.Builder

getCloudControlDetailsBuilderList()

public List<CloudControlDetails.Builder> getCloudControlDetailsBuilderList()

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getCloudControlDetailsCount()

public int getCloudControlDetailsCount()

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getCloudControlDetailsList()

public List<CloudControlDetails> getCloudControlDetailsList()

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<CloudControlDetails>

getCloudControlDetailsOrBuilder(int index)

public CloudControlDetailsOrBuilder getCloudControlDetailsOrBuilder(int index)

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CloudControlDetailsOrBuilder

getCloudControlDetailsOrBuilderList()

public List<? extends CloudControlDetailsOrBuilder> getCloudControlDetailsOrBuilderList()

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.cloudsecuritycompliance.v1.CloudControlDetailsOrBuilder>

getControl()

public String getControl()

Optional. The industry-defined Control assciated with the cloud controls in this group. organizations/{organization}/locations/{location}/controls/{control_id}

string control = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The control.

getControlBytes()

public ByteString getControlBytes()

Optional. The industry-defined Control assciated with the cloud controls in this group. organizations/{organization}/locations/{location}/controls/{control_id}

string control = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for control.

getControlId()

public String getControlId()

Optional. The control identifier used to fetch the findings. This is same as the control report name.

string control_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The controlId.

getControlIdBytes()

public ByteString getControlIdBytes()

Optional. The control identifier used to fetch the findings. This is same as the control report name.

string control_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for controlId.

getDefaultInstanceForType()

public CloudControlGroup getDefaultInstanceForType()
Returns
Type Description
CloudControlGroup

getDescription()

public String getDescription()

Optional. The description of the cloud control group.The maximum length is 2000 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The description of the cloud control group.The maximum length is 2000 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMajorRevisionId()

public long getMajorRevisionId()

Optional. Major revision of the cloud control group.

int64 major_revision_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The majorRevisionId.

getName()

public String getName()

Required. The name of the cloud control group in the format: “organizations/{organization}/locations/{location}/ cloudControlGroups/{cloud-control-group}”

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the cloud control group in the format: “organizations/{organization}/locations/{location}/ cloudControlGroups/{cloud-control-group}”

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getType()

public CloudControlGroup.CloudControlGroupType getType()

Optional. Output only. The type of the cloud control group. Default is TYPE_CUSTOM.

.google.cloud.cloudsecuritycompliance.v1.CloudControlGroup.CloudControlGroupType type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CloudControlGroup.CloudControlGroupType

The type.

getTypeValue()

public int getTypeValue()

Optional. Output only. The type of the cloud control group. Default is TYPE_CUSTOM.

.google.cloud.cloudsecuritycompliance.v1.CloudControlGroup.CloudControlGroupType type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CloudControlGroup other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudControlGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CloudControlGroup.Builder
Overrides

removeCloudControlDetails(int index)

public CloudControlGroup.Builder removeCloudControlDetails(int index)

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CloudControlGroup.Builder

setCloudControlDetails(int index, CloudControlDetails value)

public CloudControlGroup.Builder setCloudControlDetails(int index, CloudControlDetails value)

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value CloudControlDetails
Returns
Type Description
CloudControlGroup.Builder

setCloudControlDetails(int index, CloudControlDetails.Builder builderForValue)

public CloudControlGroup.Builder setCloudControlDetails(int index, CloudControlDetails.Builder builderForValue)

Required. The details of the cloud controls to be referred to in the framework.

repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 5 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue CloudControlDetails.Builder
Returns
Type Description
CloudControlGroup.Builder

setControl(String value)

public CloudControlGroup.Builder setControl(String value)

Optional. The industry-defined Control assciated with the cloud controls in this group. organizations/{organization}/locations/{location}/controls/{control_id}

string control = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The control to set.

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

setControlBytes(ByteString value)

public CloudControlGroup.Builder setControlBytes(ByteString value)

Optional. The industry-defined Control assciated with the cloud controls in this group. organizations/{organization}/locations/{location}/controls/{control_id}

string control = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for control to set.

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

setControlId(String value)

public CloudControlGroup.Builder setControlId(String value)

Optional. The control identifier used to fetch the findings. This is same as the control report name.

string control_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The controlId to set.

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

setControlIdBytes(ByteString value)

public CloudControlGroup.Builder setControlIdBytes(ByteString value)

Optional. The control identifier used to fetch the findings. This is same as the control report name.

string control_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for controlId to set.

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

setDescription(String value)

public CloudControlGroup.Builder setDescription(String value)

Optional. The description of the cloud control group.The maximum length is 2000 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public CloudControlGroup.Builder setDescriptionBytes(ByteString value)

Optional. The description of the cloud control group.The maximum length is 2000 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CloudControlGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CloudControlGroup.Builder
Overrides

setMajorRevisionId(long value)

public CloudControlGroup.Builder setMajorRevisionId(long value)

Optional. Major revision of the cloud control group.

int64 major_revision_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The majorRevisionId to set.

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

setName(String value)

public CloudControlGroup.Builder setName(String value)

Required. The name of the cloud control group in the format: “organizations/{organization}/locations/{location}/ cloudControlGroups/{cloud-control-group}”

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CloudControlGroup.Builder setNameBytes(ByteString value)

Required. The name of the cloud control group in the format: “organizations/{organization}/locations/{location}/ cloudControlGroups/{cloud-control-group}”

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

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

public CloudControlGroup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CloudControlGroup.Builder
Overrides

setType(CloudControlGroup.CloudControlGroupType value)

public CloudControlGroup.Builder setType(CloudControlGroup.CloudControlGroupType value)

Optional. Output only. The type of the cloud control group. Default is TYPE_CUSTOM.

.google.cloud.cloudsecuritycompliance.v1.CloudControlGroup.CloudControlGroupType type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CloudControlGroup.CloudControlGroupType

The type to set.

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

setTypeValue(int value)

public CloudControlGroup.Builder setTypeValue(int value)

Optional. Output only. The type of the cloud control group. Default is TYPE_CUSTOM.

.google.cloud.cloudsecuritycompliance.v1.CloudControlGroup.CloudControlGroupType type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
CloudControlGroup.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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