public static final class PolicySet.Builder extends GeneratedMessageV3.Builder<PolicySet.Builder> implements PolicySetOrBuilder
PolicySet representation.
Protobuf type google.cloud.securityposture.v1.PolicySet
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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
|
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];
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];
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];
addPoliciesBuilder()
public Policy.Builder addPoliciesBuilder()
Required. List of policies.
repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PolicySet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public PolicySet buildPartial()
clear()
public PolicySet.Builder clear()
Overrides
clearDescription()
public PolicySet.Builder clearDescription()
Optional. Description of the Policy set.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
clearField(Descriptors.FieldDescriptor field)
public PolicySet.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PolicySet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPolicies()
public PolicySet.Builder clearPolicies()
Required. List of policies.
repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];
clearPolicySetId()
public PolicySet.Builder clearPolicySetId()
Required. ID of the Policy set.
string policy_set_id = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public PolicySet.Builder clone()
Overrides
getDefaultInstanceForType()
public PolicySet getDefaultInstanceForType()
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()
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
|
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
|
getPoliciesBuilderList()
public List<Policy.Builder> getPoliciesBuilderList()
Required. List of policies.
repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];
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];
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(PolicySet other)
public PolicySet.Builder mergeFrom(PolicySet other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PolicySet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public PolicySet.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PolicySet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public PolicySet.Builder setField(Descriptors.FieldDescriptor field, Object value)
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];
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];
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PolicySet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PolicySet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides