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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Policy.Builder>
public Policy.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Policy.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Policy.Builder>
public Policy getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Policy build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Policy buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Policy.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Policy.Builder>
public Policy.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Policy.Builder>
public Policy.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Policy.Builder>
public Policy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Policy.Builder>
public Policy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Policy.Builder>
public Policy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Policy.Builder>
public Policy.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Policy.Builder>
public Policy.Builder mergeFrom(Policy other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Policy.Builder>
public Policy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Policy.Builder>
IOException
public Policy.PolicyTypeCase getPolicyTypeCase()
getPolicyTypeCase
in interface PolicyOrBuilder
public Policy.Builder clearPolicyType()
public int getVersion()
Version of the `Policy`. Default version is 0;
int32 version = 1;
getVersion
in interface PolicyOrBuilder
public 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 PolicyOrBuilder
public 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 PolicyOrBuilder
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;
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 PolicyOrBuilder
public 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 PolicyOrBuilder
public 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 PolicyOrBuilder
public 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 PolicyOrBuilder
public boolean hasListPolicy()
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;
hasListPolicy
in interface PolicyOrBuilder
public Policy.ListPolicy getListPolicy()
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;
getListPolicy
in interface PolicyOrBuilder
public 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 PolicyOrBuilder
public boolean hasBooleanPolicy()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;
hasBooleanPolicy
in interface PolicyOrBuilder
public 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 PolicyOrBuilder
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;
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 PolicyOrBuilder
public 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 PolicyOrBuilder
public 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 PolicyOrBuilder
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;
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 PolicyOrBuilder
public final Policy.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Policy.Builder>
public final Policy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Policy.Builder>
Copyright © 2021 Google LLC. All rights reserved.