public static final class Policy.Builder extends GeneratedMessageV3.Builder<Policy.Builder> implements PolicyOrBuilder
Defines a Cloud Organization `Policy` which is used to specify `Constraints` for configurations of Cloud Platform resources.Protobuf type
google.cloud.orgpolicy.v1.Policy| Modifier and Type | Method and Description |
|---|---|
Policy.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
Policy |
build() |
Policy |
buildPartial() |
Policy.Builder |
clear() |
Policy.Builder |
clearBooleanPolicy()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
|
Policy.Builder |
clearConstraint()
The name of the `Constraint` the `Policy` is configuring, for example,
`constraints/serviceuser.services`.
|
Policy.Builder |
clearEtag()
An opaque tag indicating the current version of the `Policy`, used for
concurrency control.
|
Policy.Builder |
clearField(Descriptors.FieldDescriptor field) |
Policy.Builder |
clearListPolicy()
List of values either allowed or disallowed.
|
Policy.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Policy.Builder |
clearPolicyType() |
Policy.Builder |
clearRestoreDefault()
Restores the default behavior of the constraint; independent of
`Constraint` type.
|
Policy.Builder |
clearUpdateTime()
The time stamp the `Policy` was previously updated.
|
Policy.Builder |
clearVersion()
Version of the `Policy`.
|
Policy.Builder |
clone() |
Policy.BooleanPolicy |
getBooleanPolicy()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
|
Policy.BooleanPolicy.Builder |
getBooleanPolicyBuilder()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
|
Policy.BooleanPolicyOrBuilder |
getBooleanPolicyOrBuilder()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
|
String |
getConstraint()
The name of the `Constraint` the `Policy` is configuring, for example,
`constraints/serviceuser.services`.
|
ByteString |
getConstraintBytes()
The name of the `Constraint` the `Policy` is configuring, for example,
`constraints/serviceuser.services`.
|
Policy |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
ByteString |
getEtag()
An opaque tag indicating the current version of the `Policy`, used for
concurrency control.
|
Policy.ListPolicy |
getListPolicy()
List of values either allowed or disallowed.
|
Policy.ListPolicy.Builder |
getListPolicyBuilder()
List of values either allowed or disallowed.
|
Policy.ListPolicyOrBuilder |
getListPolicyOrBuilder()
List of values either allowed or disallowed.
|
Policy.PolicyTypeCase |
getPolicyTypeCase() |
Policy.RestoreDefault |
getRestoreDefault()
Restores the default behavior of the constraint; independent of
`Constraint` type.
|
Policy.RestoreDefault.Builder |
getRestoreDefaultBuilder()
Restores the default behavior of the constraint; independent of
`Constraint` type.
|
Policy.RestoreDefaultOrBuilder |
getRestoreDefaultOrBuilder()
Restores the default behavior of the constraint; independent of
`Constraint` type.
|
Timestamp |
getUpdateTime()
The time stamp the `Policy` was previously updated.
|
Timestamp.Builder |
getUpdateTimeBuilder()
The time stamp the `Policy` was previously updated.
|
TimestampOrBuilder |
getUpdateTimeOrBuilder()
The time stamp the `Policy` was previously updated.
|
int |
getVersion()
Version of the `Policy`.
|
boolean |
hasBooleanPolicy()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
|
boolean |
hasListPolicy()
List of values either allowed or disallowed.
|
boolean |
hasRestoreDefault()
Restores the default behavior of the constraint; independent of
`Constraint` type.
|
boolean |
hasUpdateTime()
The time stamp the `Policy` was previously updated.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Policy.Builder |
mergeBooleanPolicy(Policy.BooleanPolicy value)
For boolean `Constraints`, whether to enforce the `Constraint` or not.
|
Policy.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Policy.Builder |
mergeFrom(Message other) |
Policy.Builder |
mergeFrom(Policy other) |
Policy.Builder |
mergeListPolicy(Policy.ListPolicy value)
List of values either allowed or disallowed.
|
Policy.Builder |
mergeRestoreDefault(Policy.RestoreDefault value)
Restores the default behavior of the constraint; independent of
`Constraint` type.
|
Policy.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Policy.Builder |
mergeUpdateTime(Timestamp value)
The time stamp the `Policy` was previously updated.
|
Policy.Builder |
setBooleanPolicy(Policy.BooleanPolicy.Builder builderForValue)
For boolean `Constraints`, whether to enforce the `Constraint` or not.
|
Policy.Builder |
setBooleanPolicy(Policy.BooleanPolicy value)
For boolean `Constraints`, whether to enforce the `Constraint` or not.
|
Policy.Builder |
setConstraint(String value)
The name of the `Constraint` the `Policy` is configuring, for example,
`constraints/serviceuser.services`.
|
Policy.Builder |
setConstraintBytes(ByteString value)
The name of the `Constraint` the `Policy` is configuring, for example,
`constraints/serviceuser.services`.
|
Policy.Builder |
setEtag(ByteString value)
An opaque tag indicating the current version of the `Policy`, used for
concurrency control.
|
Policy.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
Policy.Builder |
setListPolicy(Policy.ListPolicy.Builder builderForValue)
List of values either allowed or disallowed.
|
Policy.Builder |
setListPolicy(Policy.ListPolicy value)
List of values either allowed or disallowed.
|
Policy.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
Policy.Builder |
setRestoreDefault(Policy.RestoreDefault.Builder builderForValue)
Restores the default behavior of the constraint; independent of
`Constraint` type.
|
Policy.Builder |
setRestoreDefault(Policy.RestoreDefault value)
Restores the default behavior of the constraint; independent of
`Constraint` type.
|
Policy.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
Policy.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
The time stamp the `Policy` was previously updated.
|
Policy.Builder |
setUpdateTime(Timestamp value)
The time stamp the `Policy` was previously updated.
|
Policy.Builder |
setVersion(int value)
Version of the `Policy`.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Policy.Builder>public Policy.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Policy.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Policy.Builder>public Policy getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Policy build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Policy buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Policy.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Policy.Builder>public Policy.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Policy.Builder>public Policy.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Policy.Builder>public Policy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Policy.Builder>public Policy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Policy.Builder>public Policy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Policy.Builder>public Policy.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Policy.Builder>public Policy.Builder mergeFrom(Policy other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Policy.Builder>public Policy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Policy.Builder>IOExceptionpublic Policy.PolicyTypeCase getPolicyTypeCase()
getPolicyTypeCase in interface PolicyOrBuilderpublic Policy.Builder clearPolicyType()
public int getVersion()
Version of the `Policy`. Default version is 0;
int32 version = 1;getVersion in interface PolicyOrBuilderpublic Policy.Builder setVersion(int value)
Version of the `Policy`. Default version is 0;
int32 version = 1;value - The version to set.public Policy.Builder clearVersion()
Version of the `Policy`. Default version is 0;
int32 version = 1;public String getConstraint()
The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`. Immutable after creation.
string constraint = 2;getConstraint in interface PolicyOrBuilderpublic ByteString getConstraintBytes()
The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`. Immutable after creation.
string constraint = 2;getConstraintBytes in interface PolicyOrBuilderpublic 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;value - The constraint to set.public Policy.Builder clearConstraint()
The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`. Immutable after creation.
string constraint = 2;public Policy.Builder setConstraintBytes(ByteString value)
The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`. Immutable after creation.
string constraint = 2;value - The bytes for constraint to set.public 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;getEtag in interface PolicyOrBuilderpublic Policy.Builder setEtag(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;value - The etag to set.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;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;hasUpdateTime in interface PolicyOrBuilderpublic 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;getUpdateTime in interface PolicyOrBuilderpublic Policy.Builder setUpdateTime(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;public Policy.Builder setUpdateTime(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;public Policy.Builder mergeUpdateTime(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;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;public 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;public 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;getUpdateTimeOrBuilder in interface PolicyOrBuilderpublic boolean hasListPolicy()
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;hasListPolicy in interface PolicyOrBuilderpublic Policy.ListPolicy getListPolicy()
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;getListPolicy in interface PolicyOrBuilderpublic Policy.Builder setListPolicy(Policy.ListPolicy value)
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;public Policy.Builder setListPolicy(Policy.ListPolicy.Builder builderForValue)
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;public Policy.Builder mergeListPolicy(Policy.ListPolicy value)
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;public Policy.Builder clearListPolicy()
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;public Policy.ListPolicy.Builder getListPolicyBuilder()
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;public Policy.ListPolicyOrBuilder getListPolicyOrBuilder()
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;getListPolicyOrBuilder in interface PolicyOrBuilderpublic boolean hasBooleanPolicy()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;hasBooleanPolicy in interface PolicyOrBuilderpublic Policy.BooleanPolicy getBooleanPolicy()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;getBooleanPolicy in interface PolicyOrBuilderpublic 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;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;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;public Policy.Builder clearBooleanPolicy()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;public Policy.BooleanPolicy.Builder getBooleanPolicyBuilder()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;public Policy.BooleanPolicyOrBuilder getBooleanPolicyOrBuilder()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;getBooleanPolicyOrBuilder in interface PolicyOrBuilderpublic boolean hasRestoreDefault()
Restores the default behavior of the constraint; independent of `Constraint` type.
.google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;hasRestoreDefault in interface PolicyOrBuilderpublic Policy.RestoreDefault getRestoreDefault()
Restores the default behavior of the constraint; independent of `Constraint` type.
.google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;getRestoreDefault in interface PolicyOrBuilderpublic 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;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;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;public Policy.Builder clearRestoreDefault()
Restores the default behavior of the constraint; independent of `Constraint` type.
.google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;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;public Policy.RestoreDefaultOrBuilder getRestoreDefaultOrBuilder()
Restores the default behavior of the constraint; independent of `Constraint` type.
.google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;getRestoreDefaultOrBuilder in interface PolicyOrBuilderpublic final Policy.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Policy.Builder>public final Policy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Policy.Builder>Copyright © 2021 Google LLC. All rights reserved.