Package com.google.cloud.orgpolicy.v1
Class Policy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
- com.google.cloud.orgpolicy.v1.Policy.Builder
-
- All Implemented Interfaces:
PolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Policy
public static final class Policy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder> implements PolicyOrBuilder
Defines a Cloud Organization `Policy` which is used to specify `Constraints` for configurations of Cloud Platform resources.
Protobuf typegoogle.cloud.orgpolicy.v1.Policy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Policy.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Policybuild()PolicybuildPartial()Policy.Builderclear()Policy.BuilderclearBooleanPolicy()For boolean `Constraints`, whether to enforce the `Constraint` or not.Policy.BuilderclearConstraint()The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`.Policy.BuilderclearEtag()An opaque tag indicating the current version of the `Policy`, used for concurrency control.Policy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Policy.BuilderclearListPolicy()List of values either allowed or disallowed.Policy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Policy.BuilderclearPolicyType()Policy.BuilderclearRestoreDefault()Restores the default behavior of the constraint; independent of `Constraint` type.Policy.BuilderclearUpdateTime()The time stamp the `Policy` was previously updated.Policy.BuilderclearVersion()Version of the `Policy`.Policy.Builderclone()Policy.BooleanPolicygetBooleanPolicy()For boolean `Constraints`, whether to enforce the `Constraint` or not.Policy.BooleanPolicy.BuildergetBooleanPolicyBuilder()For boolean `Constraints`, whether to enforce the `Constraint` or not.Policy.BooleanPolicyOrBuildergetBooleanPolicyOrBuilder()For boolean `Constraints`, whether to enforce the `Constraint` or not.StringgetConstraint()The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`.com.google.protobuf.ByteStringgetConstraintBytes()The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`.PolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.ByteStringgetEtag()An opaque tag indicating the current version of the `Policy`, used for concurrency control.Policy.ListPolicygetListPolicy()List of values either allowed or disallowed.Policy.ListPolicy.BuildergetListPolicyBuilder()List of values either allowed or disallowed.Policy.ListPolicyOrBuildergetListPolicyOrBuilder()List of values either allowed or disallowed.Policy.PolicyTypeCasegetPolicyTypeCase()Policy.RestoreDefaultgetRestoreDefault()Restores the default behavior of the constraint; independent of `Constraint` type.Policy.RestoreDefault.BuildergetRestoreDefaultBuilder()Restores the default behavior of the constraint; independent of `Constraint` type.Policy.RestoreDefaultOrBuildergetRestoreDefaultOrBuilder()Restores the default behavior of the constraint; independent of `Constraint` type.com.google.protobuf.TimestampgetUpdateTime()The time stamp the `Policy` was previously updated.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()The time stamp the `Policy` was previously updated.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()The time stamp the `Policy` was previously updated.intgetVersion()Version of the `Policy`.booleanhasBooleanPolicy()For boolean `Constraints`, whether to enforce the `Constraint` or not.booleanhasListPolicy()List of values either allowed or disallowed.booleanhasRestoreDefault()Restores the default behavior of the constraint; independent of `Constraint` type.booleanhasUpdateTime()The time stamp the `Policy` was previously updated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Policy.BuildermergeBooleanPolicy(Policy.BooleanPolicy value)For boolean `Constraints`, whether to enforce the `Constraint` or not.Policy.BuildermergeFrom(Policy other)Policy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Policy.BuildermergeFrom(com.google.protobuf.Message other)Policy.BuildermergeListPolicy(Policy.ListPolicy value)List of values either allowed or disallowed.Policy.BuildermergeRestoreDefault(Policy.RestoreDefault value)Restores the default behavior of the constraint; independent of `Constraint` type.Policy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Policy.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)The time stamp the `Policy` was previously updated.Policy.BuildersetBooleanPolicy(Policy.BooleanPolicy value)For boolean `Constraints`, whether to enforce the `Constraint` or not.Policy.BuildersetBooleanPolicy(Policy.BooleanPolicy.Builder builderForValue)For boolean `Constraints`, whether to enforce the `Constraint` or not.Policy.BuildersetConstraint(String value)The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`.Policy.BuildersetConstraintBytes(com.google.protobuf.ByteString value)The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`.Policy.BuildersetEtag(com.google.protobuf.ByteString value)An opaque tag indicating the current version of the `Policy`, used for concurrency control.Policy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Policy.BuildersetListPolicy(Policy.ListPolicy value)List of values either allowed or disallowed.Policy.BuildersetListPolicy(Policy.ListPolicy.Builder builderForValue)List of values either allowed or disallowed.Policy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Policy.BuildersetRestoreDefault(Policy.RestoreDefault value)Restores the default behavior of the constraint; independent of `Constraint` type.Policy.BuildersetRestoreDefault(Policy.RestoreDefault.Builder builderForValue)Restores the default behavior of the constraint; independent of `Constraint` type.Policy.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Policy.BuildersetUpdateTime(com.google.protobuf.Timestamp value)The time stamp the `Policy` was previously updated.Policy.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)The time stamp the `Policy` was previously updated.Policy.BuildersetVersion(int value)Version of the `Policy`.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
clear
public Policy.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
getDefaultInstanceForType
public Policy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Policy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Policy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Policy.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
setField
public Policy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
clearField
public Policy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
clearOneof
public Policy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
setRepeatedField
public Policy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
addRepeatedField
public Policy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
mergeFrom
public Policy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Policy.Builder>
-
mergeFrom
public Policy.Builder mergeFrom(Policy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
mergeFrom
public Policy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Policy.Builder>- Throws:
IOException
-
getPolicyTypeCase
public Policy.PolicyTypeCase getPolicyTypeCase()
- Specified by:
getPolicyTypeCasein interfacePolicyOrBuilder
-
clearPolicyType
public Policy.Builder clearPolicyType()
-
getVersion
public int getVersion()
Version of the `Policy`. Default version is 0;
int32 version = 1;- Specified by:
getVersionin interfacePolicyOrBuilder- Returns:
- The version.
-
setVersion
public Policy.Builder setVersion(int value)
Version of the `Policy`. Default version is 0;
int32 version = 1;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
public Policy.Builder clearVersion()
Version of the `Policy`. Default version is 0;
int32 version = 1;- Returns:
- This builder for chaining.
-
getConstraint
public String getConstraint()
The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`. Immutable after creation.
string constraint = 2;- Specified by:
getConstraintin interfacePolicyOrBuilder- Returns:
- The constraint.
-
getConstraintBytes
public com.google.protobuf.ByteString getConstraintBytes()
The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`. Immutable after creation.
string constraint = 2;- Specified by:
getConstraintBytesin interfacePolicyOrBuilder- Returns:
- The bytes for constraint.
-
setConstraint
public Policy.Builder setConstraint(String value)
The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`. Immutable after creation.
string constraint = 2;- Parameters:
value- The constraint to set.- Returns:
- This builder for chaining.
-
clearConstraint
public Policy.Builder clearConstraint()
The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`. Immutable after creation.
string constraint = 2;- Returns:
- This builder for chaining.
-
setConstraintBytes
public Policy.Builder setConstraintBytes(com.google.protobuf.ByteString value)
The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`. Immutable after creation.
string constraint = 2;- Parameters:
value- The bytes for constraint to set.- Returns:
- This builder for chaining.
-
getEtag
public com.google.protobuf.ByteString getEtag()
An opaque tag indicating the current version of the `Policy`, used for concurrency control. When the `Policy` is returned from either a `GetPolicy` or a `ListOrgPolicy` request, this `etag` indicates the version of the current `Policy` to use when executing a read-modify-write loop. When the `Policy` is returned from a `GetEffectivePolicy` request, the `etag` will be unset. When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value that was returned from a `GetOrgPolicy` request as part of a read-modify-write loop for concurrency control. Not setting the `etag`in a `SetOrgPolicy` request will result in an unconditional write of the `Policy`.
bytes etag = 3;- Specified by:
getEtagin interfacePolicyOrBuilder- Returns:
- The etag.
-
setEtag
public Policy.Builder setEtag(com.google.protobuf.ByteString value)
An opaque tag indicating the current version of the `Policy`, used for concurrency control. When the `Policy` is returned from either a `GetPolicy` or a `ListOrgPolicy` request, this `etag` indicates the version of the current `Policy` to use when executing a read-modify-write loop. When the `Policy` is returned from a `GetEffectivePolicy` request, the `etag` will be unset. When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value that was returned from a `GetOrgPolicy` request as part of a read-modify-write loop for concurrency control. Not setting the `etag`in a `SetOrgPolicy` request will result in an unconditional write of the `Policy`.
bytes etag = 3;- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
public Policy.Builder clearEtag()
An opaque tag indicating the current version of the `Policy`, used for concurrency control. When the `Policy` is returned from either a `GetPolicy` or a `ListOrgPolicy` request, this `etag` indicates the version of the current `Policy` to use when executing a read-modify-write loop. When the `Policy` is returned from a `GetEffectivePolicy` request, the `etag` will be unset. When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value that was returned from a `GetOrgPolicy` request as part of a read-modify-write loop for concurrency control. Not setting the `etag`in a `SetOrgPolicy` request will result in an unconditional write of the `Policy`.
bytes etag = 3;- Returns:
- This builder for chaining.
-
hasUpdateTime
public boolean hasUpdateTime()
The time stamp the `Policy` was previously updated. This is set by the server, not specified by the caller, and represents the last time a call to `SetOrgPolicy` was made for that `Policy`. Any value set by the client will be ignored.
.google.protobuf.Timestamp update_time = 4;- Specified by:
hasUpdateTimein interfacePolicyOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
The time stamp the `Policy` was previously updated. This is set by the server, not specified by the caller, and represents the last time a call to `SetOrgPolicy` was made for that `Policy`. Any value set by the client will be ignored.
.google.protobuf.Timestamp update_time = 4;- Specified by:
getUpdateTimein interfacePolicyOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
public Policy.Builder setUpdateTime(com.google.protobuf.Timestamp value)
The time stamp the `Policy` was previously updated. This is set by the server, not specified by the caller, and represents the last time a call to `SetOrgPolicy` was made for that `Policy`. Any value set by the client will be ignored.
.google.protobuf.Timestamp update_time = 4;
-
setUpdateTime
public Policy.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time stamp the `Policy` was previously updated. This is set by the server, not specified by the caller, and represents the last time a call to `SetOrgPolicy` was made for that `Policy`. Any value set by the client will be ignored.
.google.protobuf.Timestamp update_time = 4;
-
mergeUpdateTime
public Policy.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
The time stamp the `Policy` was previously updated. This is set by the server, not specified by the caller, and represents the last time a call to `SetOrgPolicy` was made for that `Policy`. Any value set by the client will be ignored.
.google.protobuf.Timestamp update_time = 4;
-
clearUpdateTime
public Policy.Builder clearUpdateTime()
The time stamp the `Policy` was previously updated. This is set by the server, not specified by the caller, and represents the last time a call to `SetOrgPolicy` was made for that `Policy`. Any value set by the client will be ignored.
.google.protobuf.Timestamp update_time = 4;
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
The time stamp the `Policy` was previously updated. This is set by the server, not specified by the caller, and represents the last time a call to `SetOrgPolicy` was made for that `Policy`. Any value set by the client will be ignored.
.google.protobuf.Timestamp update_time = 4;
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
The time stamp the `Policy` was previously updated. This is set by the server, not specified by the caller, and represents the last time a call to `SetOrgPolicy` was made for that `Policy`. Any value set by the client will be ignored.
.google.protobuf.Timestamp update_time = 4;- Specified by:
getUpdateTimeOrBuilderin interfacePolicyOrBuilder
-
hasListPolicy
public boolean hasListPolicy()
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;- Specified by:
hasListPolicyin interfacePolicyOrBuilder- Returns:
- Whether the listPolicy field is set.
-
getListPolicy
public Policy.ListPolicy getListPolicy()
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;- Specified by:
getListPolicyin interfacePolicyOrBuilder- Returns:
- The listPolicy.
-
setListPolicy
public Policy.Builder setListPolicy(Policy.ListPolicy value)
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;
-
setListPolicy
public Policy.Builder setListPolicy(Policy.ListPolicy.Builder builderForValue)
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;
-
mergeListPolicy
public Policy.Builder mergeListPolicy(Policy.ListPolicy value)
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;
-
clearListPolicy
public Policy.Builder clearListPolicy()
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;
-
getListPolicyBuilder
public Policy.ListPolicy.Builder getListPolicyBuilder()
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;
-
getListPolicyOrBuilder
public Policy.ListPolicyOrBuilder getListPolicyOrBuilder()
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;- Specified by:
getListPolicyOrBuilderin interfacePolicyOrBuilder
-
hasBooleanPolicy
public boolean hasBooleanPolicy()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;- Specified by:
hasBooleanPolicyin interfacePolicyOrBuilder- Returns:
- Whether the booleanPolicy field is set.
-
getBooleanPolicy
public Policy.BooleanPolicy getBooleanPolicy()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;- Specified by:
getBooleanPolicyin interfacePolicyOrBuilder- Returns:
- The booleanPolicy.
-
setBooleanPolicy
public Policy.Builder setBooleanPolicy(Policy.BooleanPolicy value)
For boolean `Constraints`, whether to enforce the `Constraint` or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;
-
setBooleanPolicy
public Policy.Builder setBooleanPolicy(Policy.BooleanPolicy.Builder builderForValue)
For boolean `Constraints`, whether to enforce the `Constraint` or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;
-
mergeBooleanPolicy
public Policy.Builder mergeBooleanPolicy(Policy.BooleanPolicy value)
For boolean `Constraints`, whether to enforce the `Constraint` or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;
-
clearBooleanPolicy
public Policy.Builder clearBooleanPolicy()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;
-
getBooleanPolicyBuilder
public Policy.BooleanPolicy.Builder getBooleanPolicyBuilder()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;
-
getBooleanPolicyOrBuilder
public Policy.BooleanPolicyOrBuilder getBooleanPolicyOrBuilder()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;- Specified by:
getBooleanPolicyOrBuilderin interfacePolicyOrBuilder
-
hasRestoreDefault
public boolean hasRestoreDefault()
Restores the default behavior of the constraint; independent of `Constraint` type.
.google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;- Specified by:
hasRestoreDefaultin interfacePolicyOrBuilder- Returns:
- Whether the restoreDefault field is set.
-
getRestoreDefault
public Policy.RestoreDefault getRestoreDefault()
Restores the default behavior of the constraint; independent of `Constraint` type.
.google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;- Specified by:
getRestoreDefaultin interfacePolicyOrBuilder- Returns:
- The restoreDefault.
-
setRestoreDefault
public Policy.Builder setRestoreDefault(Policy.RestoreDefault value)
Restores the default behavior of the constraint; independent of `Constraint` type.
.google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;
-
setRestoreDefault
public Policy.Builder setRestoreDefault(Policy.RestoreDefault.Builder builderForValue)
Restores the default behavior of the constraint; independent of `Constraint` type.
.google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;
-
mergeRestoreDefault
public Policy.Builder mergeRestoreDefault(Policy.RestoreDefault value)
Restores the default behavior of the constraint; independent of `Constraint` type.
.google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;
-
clearRestoreDefault
public Policy.Builder clearRestoreDefault()
Restores the default behavior of the constraint; independent of `Constraint` type.
.google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;
-
getRestoreDefaultBuilder
public Policy.RestoreDefault.Builder getRestoreDefaultBuilder()
Restores the default behavior of the constraint; independent of `Constraint` type.
.google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;
-
getRestoreDefaultOrBuilder
public Policy.RestoreDefaultOrBuilder getRestoreDefaultOrBuilder()
Restores the default behavior of the constraint; independent of `Constraint` type.
.google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;- Specified by:
getRestoreDefaultOrBuilderin interfacePolicyOrBuilder
-
setUnknownFields
public final Policy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
mergeUnknownFields
public final Policy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
-