public static final class Policy.Builder extends GeneratedMessage.Builder<Policy.Builder> implements PolicyOrBuilderA Policy is a resource within an Application Template that refers to a Policy that you author outside of Application Design Center and attach to an application template.
Protobuf type google.cloud.designcenter.v1.Policy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Policy.BuilderImplements
PolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllApplyConditions(Iterable<? extends ApplyCondition> values)
public Policy.Builder addAllApplyConditions(Iterable<? extends ApplyCondition> values) Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.designcenter.v1.ApplyCondition> |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
addAllCloudControlConfigs(Iterable<? extends CloudControlConfig> values)
public Policy.Builder addAllCloudControlConfigs(Iterable<? extends CloudControlConfig> values)Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.designcenter.v1.CloudControlConfig> |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
addApplyConditions(ApplyCondition value)
public Policy.Builder addApplyConditions(ApplyCondition value) Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ApplyCondition |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
addApplyConditions(ApplyCondition.Builder builderForValue)
public Policy.Builder addApplyConditions(ApplyCondition.Builder builderForValue) Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ApplyCondition.Builder |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
addApplyConditions(int index, ApplyCondition value)
public Policy.Builder addApplyConditions(int index, ApplyCondition value) Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ApplyCondition |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
addApplyConditions(int index, ApplyCondition.Builder builderForValue)
public Policy.Builder addApplyConditions(int index, ApplyCondition.Builder builderForValue) Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ApplyCondition.Builder |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
addApplyConditionsBuilder()
public ApplyCondition.Builder addApplyConditionsBuilder() Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ApplyCondition.Builder |
|
addApplyConditionsBuilder(int index)
public ApplyCondition.Builder addApplyConditionsBuilder(int index) Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ApplyCondition.Builder |
|
addCloudControlConfigs(CloudControlConfig value)
public Policy.Builder addCloudControlConfigs(CloudControlConfig value)Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
CloudControlConfig |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
addCloudControlConfigs(CloudControlConfig.Builder builderForValue)
public Policy.Builder addCloudControlConfigs(CloudControlConfig.Builder builderForValue)Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CloudControlConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
addCloudControlConfigs(int index, CloudControlConfig value)
public Policy.Builder addCloudControlConfigs(int index, CloudControlConfig value)Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
CloudControlConfig |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
addCloudControlConfigs(int index, CloudControlConfig.Builder builderForValue)
public Policy.Builder addCloudControlConfigs(int index, CloudControlConfig.Builder builderForValue)Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
CloudControlConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
addCloudControlConfigsBuilder()
public CloudControlConfig.Builder addCloudControlConfigsBuilder()Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CloudControlConfig.Builder |
|
addCloudControlConfigsBuilder(int index)
public CloudControlConfig.Builder addCloudControlConfigsBuilder(int index)Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CloudControlConfig.Builder |
|
build()
public Policy build()| Returns | |
|---|---|
| Type | Description |
Policy |
|
buildPartial()
public Policy buildPartial()| Returns | |
|---|---|
| Type | Description |
Policy |
|
clear()
public Policy.Builder clear()| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
clearApplyConditions()
public Policy.Builder clearApplyConditions() Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
clearCloudControlConfigs()
public Policy.Builder clearCloudControlConfigs()Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
clearCreateTime()
public Policy.Builder clearCreateTime()Output only. The policy creation timestamp.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
clearDescription()
public Policy.Builder clearDescription()Optional. The policy description.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
clearDisplayName()
public Policy.Builder clearDisplayName()Optional. The policy display name.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
clearName()
public Policy.Builder clearName() Identifier. The policy name in the following format:
projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
clearPolicyRevisionUri()
public Policy.Builder clearPolicyRevisionUri()Optional. URI of the policy revision.
string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
clearPolicyType()
public Policy.Builder clearPolicyType()Required. The policy type. Policy type is used to determine the domain of the policy.
.google.cloud.designcenter.v1.Policy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
clearPolicyUri()
public Policy.Builder clearPolicyUri()Optional. URI of the policy.
string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
clearUpdateTime()
public Policy.Builder clearUpdateTime()Output only. The policy update timestamp.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
clearUri()
public Policy.Builder clearUri()| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
getApplyConditions(int index)
public ApplyCondition getApplyConditions(int index) Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ApplyCondition |
|
getApplyConditionsBuilder(int index)
public ApplyCondition.Builder getApplyConditionsBuilder(int index) Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ApplyCondition.Builder |
|
getApplyConditionsBuilderList()
public List<ApplyCondition.Builder> getApplyConditionsBuilderList() Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getApplyConditionsCount()
public int getApplyConditionsCount() Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getApplyConditionsList()
public List<ApplyCondition> getApplyConditionsList() Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<ApplyCondition> |
|
getApplyConditionsOrBuilder(int index)
public ApplyConditionOrBuilder getApplyConditionsOrBuilder(int index) Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ApplyConditionOrBuilder |
|
getApplyConditionsOrBuilderList()
public List<? extends ApplyConditionOrBuilder> getApplyConditionsOrBuilderList() Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.designcenter.v1.ApplyConditionOrBuilder> |
|
getCloudControlConfigs(int index)
public CloudControlConfig getCloudControlConfigs(int index)Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CloudControlConfig |
|
getCloudControlConfigsBuilder(int index)
public CloudControlConfig.Builder getCloudControlConfigsBuilder(int index)Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CloudControlConfig.Builder |
|
getCloudControlConfigsBuilderList()
public List<CloudControlConfig.Builder> getCloudControlConfigsBuilderList()Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getCloudControlConfigsCount()
public int getCloudControlConfigsCount()Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getCloudControlConfigsList()
public List<CloudControlConfig> getCloudControlConfigsList()Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<CloudControlConfig> |
|
getCloudControlConfigsOrBuilder(int index)
public CloudControlConfigOrBuilder getCloudControlConfigsOrBuilder(int index)Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CloudControlConfigOrBuilder |
|
getCloudControlConfigsOrBuilderList()
public List<? extends CloudControlConfigOrBuilder> getCloudControlConfigsOrBuilderList()Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.designcenter.v1.CloudControlConfigOrBuilder> |
|
getCreateTime()
public Timestamp getCreateTime()Output only. The policy creation timestamp.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. The policy creation timestamp.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. The policy creation timestamp.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public Policy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Policy |
|
getDescription()
public String getDescription()Optional. The policy description.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Optional. The policy description.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisplayName()
public String getDisplayName()Optional. The policy display name.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()Optional. The policy display name.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getName()
public String getName() Identifier. The policy name in the following format:
projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Identifier. The policy name in the following format:
projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getPolicyRevisionUri()
public String getPolicyRevisionUri()Optional. URI of the policy revision.
string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The policyRevisionUri. |
getPolicyRevisionUriBytes()
public ByteString getPolicyRevisionUriBytes()Optional. URI of the policy revision.
string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for policyRevisionUri. |
getPolicyType()
public Policy.PolicyType getPolicyType()Required. The policy type. Policy type is used to determine the domain of the policy.
.google.cloud.designcenter.v1.Policy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Policy.PolicyType |
The policyType. |
getPolicyTypeValue()
public int getPolicyTypeValue()Required. The policy type. Policy type is used to determine the domain of the policy.
.google.cloud.designcenter.v1.Policy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for policyType. |
getPolicyUri()
public String getPolicyUri()Optional. URI of the policy.
string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The policyUri. |
getPolicyUriBytes()
public ByteString getPolicyUriBytes()Optional. URI of the policy.
string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for policyUri. |
getUpdateTime()
public Timestamp getUpdateTime()Output only. The policy update timestamp.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. The policy update timestamp.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The policy update timestamp.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getUriCase()
public Policy.UriCase getUriCase()| Returns | |
|---|---|
| Type | Description |
Policy.UriCase |
|
hasCreateTime()
public boolean hasCreateTime()Output only. The policy creation timestamp.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasPolicyRevisionUri()
public boolean hasPolicyRevisionUri()Optional. URI of the policy revision.
string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the policyRevisionUri field is set. |
hasPolicyUri()
public boolean hasPolicyUri()Optional. URI of the policy.
string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the policyUri field is set. |
hasUpdateTime()
public boolean hasUpdateTime()Output only. The policy update timestamp.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public Policy.Builder mergeCreateTime(Timestamp value)Output only. The policy creation timestamp.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
mergeFrom(Policy other)
public Policy.Builder mergeFrom(Policy other)| Parameter | |
|---|---|
| Name | Description |
other |
Policy |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Policy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Policy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
mergeUpdateTime(Timestamp value)
public Policy.Builder mergeUpdateTime(Timestamp value)Output only. The policy update timestamp.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
removeApplyConditions(int index)
public Policy.Builder removeApplyConditions(int index) Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
removeCloudControlConfigs(int index)
public Policy.Builder removeCloudControlConfigs(int index)Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
setApplyConditions(int index, ApplyCondition value)
public Policy.Builder setApplyConditions(int index, ApplyCondition value) Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ApplyCondition |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
setApplyConditions(int index, ApplyCondition.Builder builderForValue)
public Policy.Builder setApplyConditions(int index, ApplyCondition.Builder builderForValue) Optional. Conditions for applying the policy. Condition accepts the
criticality and environment parameters from the application template.
repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ApplyCondition.Builder |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
setCloudControlConfigs(int index, CloudControlConfig value)
public Policy.Builder setCloudControlConfigs(int index, CloudControlConfig value)Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
CloudControlConfig |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
setCloudControlConfigs(int index, CloudControlConfig.Builder builderForValue)
public Policy.Builder setCloudControlConfigs(int index, CloudControlConfig.Builder builderForValue)Optional. Input only. Parameter values for the cloud controls of the policy's framework, grouped by cloud control. Only honored when framework parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on
the policy. On update, they replace the saved values. If they are empty,
the saved values are cleared if cloud_control_configs is named in the
update mask. Otherwise, the saved values are kept, unless the policy's
framework changes.
repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
CloudControlConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
setCreateTime(Timestamp value)
public Policy.Builder setCreateTime(Timestamp value)Output only. The policy creation timestamp.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public Policy.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. The policy creation timestamp.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
setDescription(String value)
public Policy.Builder setDescription(String value)Optional. The policy description.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public Policy.Builder setDescriptionBytes(ByteString value)Optional. The policy description.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
setDisplayName(String value)
public Policy.Builder setDisplayName(String value)Optional. The policy display name.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public Policy.Builder setDisplayNameBytes(ByteString value)Optional. The policy display name.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
setName(String value)
public Policy.Builder setName(String value) Identifier. The policy name in the following format:
projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Policy.Builder setNameBytes(ByteString value) Identifier. The policy name in the following format:
projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
setPolicyRevisionUri(String value)
public Policy.Builder setPolicyRevisionUri(String value)Optional. URI of the policy revision.
string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe policyRevisionUri to set. |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
setPolicyRevisionUriBytes(ByteString value)
public Policy.Builder setPolicyRevisionUriBytes(ByteString value)Optional. URI of the policy revision.
string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for policyRevisionUri to set. |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
setPolicyType(Policy.PolicyType value)
public Policy.Builder setPolicyType(Policy.PolicyType value)Required. The policy type. Policy type is used to determine the domain of the policy.
.google.cloud.designcenter.v1.Policy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Policy.PolicyTypeThe policyType to set. |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
setPolicyTypeValue(int value)
public Policy.Builder setPolicyTypeValue(int value)Required. The policy type. Policy type is used to determine the domain of the policy.
.google.cloud.designcenter.v1.Policy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for policyType to set. |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
setPolicyUri(String value)
public Policy.Builder setPolicyUri(String value)Optional. URI of the policy.
string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe policyUri to set. |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
setPolicyUriBytes(ByteString value)
public Policy.Builder setPolicyUriBytes(ByteString value)Optional. URI of the policy.
string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for policyUri to set. |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
This builder for chaining. |
setUpdateTime(Timestamp value)
public Policy.Builder setUpdateTime(Timestamp value)Output only. The policy update timestamp.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public Policy.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. The policy update timestamp.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|