Class PolicySet.Builder (0.4.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.securityposture.v1.Policy>
Returns
TypeDescription
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
NameDescription
valuePolicy
Returns
TypeDescription
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
NameDescription
builderForValuePolicy.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePolicy
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePolicy.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Policy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PolicySet build()
Returns
TypeDescription
PolicySet

buildPartial()

public PolicySet buildPartial()
Returns
TypeDescription
PolicySet

clear()

public PolicySet.Builder clear()
Returns
TypeDescription
PolicySet.Builder
Overrides

clearDescription()

public PolicySet.Builder clearDescription()

Optional. Description of the Policy set.

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

Returns
TypeDescription
PolicySet.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicySetId()

public PolicySet.Builder clearPolicySetId()

Required. ID of the Policy set.

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

Returns
TypeDescription
PolicySet.Builder

This builder for chaining.

clone()

public PolicySet.Builder clone()
Returns
TypeDescription
PolicySet.Builder
Overrides

getDefaultInstanceForType()

public PolicySet getDefaultInstanceForType()
Returns
TypeDescription
PolicySet

getDescription()

public String getDescription()

Optional. Description of the Policy set.

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

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the Policy set.

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

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getPoliciesCount()

public int getPoliciesCount()

Required. List of policies.

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

Returns
TypeDescription
int

getPoliciesList()

public List<Policy> getPoliciesList()

Required. List of policies.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
String

The policySetId.

getPolicySetIdBytes()

public ByteString getPolicySetIdBytes()

Required. ID of the Policy set.

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

Returns
TypeDescription
ByteString

The bytes for policySetId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PolicySet other)

public PolicySet.Builder mergeFrom(PolicySet other)
Parameter
NameDescription
otherPolicySet
Returns
TypeDescription
PolicySet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The description to set.

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

The bytes for description to set.

Returns
TypeDescription
PolicySet.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PolicySet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valuePolicy
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePolicy.Builder
Returns
TypeDescription
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
NameDescription
valueString

The policySetId to set.

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

The bytes for policySetId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PolicySet.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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