public static final class PolicySet.Builder extends GeneratedMessage.Builder<PolicySet.Builder> implements PolicySetOrBuilderPolicySet representation.
Protobuf type google.cloud.securityposture.v1.PolicySet
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PolicySet.BuilderImplements
PolicySetOrBuilderStatic 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 |
|
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 |
|
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. |
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. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PolicySet.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PolicySet.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
PolicySet.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe bytes for policySetId to set. |
| Returns | |
|---|---|
| Type | Description |
PolicySet.Builder |
This builder for chaining. |