Class PolicySet.Builder (0.11.0)

public static final class PolicySet.Builder extends GeneratedMessageV3.Builder<PolicySet.Builder> implements PolicySetOrBuilder

PolicySet representation.

Protobuf type google.cloud.securityposture.v1.PolicySet

Implements

PolicySetOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllPolicies(Iterable<? extends Policy> values)

public PolicySet.Builder addAllPolicies(Iterable<? extends Policy> values)

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.securityposture.v1.Policy>
Returns
Type Description
PolicySet.Builder

addPolicies(Policy value)

public PolicySet.Builder addPolicies(Policy value)

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Policy
Returns
Type Description
PolicySet.Builder

addPolicies(Policy.Builder builderForValue)

public PolicySet.Builder addPolicies(Policy.Builder builderForValue)

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Policy.Builder
Returns
Type Description
PolicySet.Builder

addPolicies(int index, Policy value)

public PolicySet.Builder addPolicies(int index, Policy value)

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Policy
Returns
Type Description
PolicySet.Builder

addPolicies(int index, Policy.Builder builderForValue)

public PolicySet.Builder addPolicies(int index, Policy.Builder builderForValue)

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Policy.Builder
Returns
Type Description
PolicySet.Builder

addPoliciesBuilder()

public Policy.Builder addPoliciesBuilder()

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Policy.Builder

addPoliciesBuilder(int index)

public Policy.Builder addPoliciesBuilder(int index)

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Policy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PolicySet build()
Returns
Type Description
PolicySet

buildPartial()

public PolicySet buildPartial()
Returns
Type Description
PolicySet

clear()

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

clearDescription()

public PolicySet.Builder clearDescription()

Optional. Description of the Policy set.

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

Returns
Type Description
PolicySet.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicies()

public PolicySet.Builder clearPolicies()

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PolicySet.Builder

clearPolicySetId()

public PolicySet.Builder clearPolicySetId()

Required. ID of the Policy set.

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

Returns
Type Description
PolicySet.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public PolicySet getDefaultInstanceForType()
Returns
Type Description
PolicySet

getDescription()

public String getDescription()

Optional. Description of the Policy set.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the Policy set.

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

getPolicies(int index)

public Policy getPolicies(int index)

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Policy

getPoliciesBuilder(int index)

public Policy.Builder getPoliciesBuilder(int index)

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Policy.Builder

getPoliciesBuilderList()

public List<Policy.Builder> getPoliciesBuilderList()

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getPoliciesCount()

public int getPoliciesCount()

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getPoliciesList()

public List<Policy> getPoliciesList()

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Policy>

getPoliciesOrBuilder(int index)

public PolicyOrBuilder getPoliciesOrBuilder(int index)

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PolicyOrBuilder

getPoliciesOrBuilderList()

public List<? extends PolicyOrBuilder> getPoliciesOrBuilderList()

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.securityposture.v1.PolicyOrBuilder>

getPolicySetId()

public String getPolicySetId()

Required. ID of the Policy set.

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

Returns
Type Description
String

The policySetId.

getPolicySetIdBytes()

public ByteString getPolicySetIdBytes()

Required. ID of the Policy set.

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

Returns
Type Description
ByteString

The bytes for policySetId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PolicySet other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePolicies(int index)

public PolicySet.Builder removePolicies(int index)

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PolicySet.Builder

setDescription(String value)

public PolicySet.Builder setDescription(String value)

Optional. Description of the Policy set.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
PolicySet.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public PolicySet.Builder setDescriptionBytes(ByteString value)

Optional. Description of the Policy set.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
PolicySet.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPolicies(int index, Policy value)

public PolicySet.Builder setPolicies(int index, Policy value)

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Policy
Returns
Type Description
PolicySet.Builder

setPolicies(int index, Policy.Builder builderForValue)

public PolicySet.Builder setPolicies(int index, Policy.Builder builderForValue)

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Policy.Builder
Returns
Type Description
PolicySet.Builder

setPolicySetId(String value)

public PolicySet.Builder setPolicySetId(String value)

Required. ID of the Policy set.

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

Parameter
Name Description
value String

The policySetId to set.

Returns
Type Description
PolicySet.Builder

This builder for chaining.

setPolicySetIdBytes(ByteString value)

public PolicySet.Builder setPolicySetIdBytes(ByteString value)

Required. ID of the Policy set.

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

Parameter
Name Description
value ByteString

The bytes for policySetId to set.

Returns
Type Description
PolicySet.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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