public final class Policy extends GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
Policy.BooleanPolicy
Used in `policy_type` to specify how `boolean_policy` will behave at this
resource.
|
static interface |
Policy.BooleanPolicyOrBuilder |
static class |
Policy.Builder
Defines a Cloud Organization `Policy` which is used to specify `Constraints`
for configurations of Cloud Platform resources.
|
static class |
Policy.ListPolicy
Used in `policy_type` to specify how `list_policy` behaves at this
resource.
|
static interface |
Policy.ListPolicyOrBuilder |
static class |
Policy.PolicyTypeCase |
static class |
Policy.RestoreDefault
Ignores policies set above this resource and restores the
`constraint_default` enforcement behavior of the specific `Constraint` at
this resource.
|
static interface |
Policy.RestoreDefaultOrBuilder |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterAbstractMessageLite.InternalOneOfEnum| Modifier and Type | Field and Description |
|---|---|
static int |
BOOLEAN_POLICY_FIELD_NUMBER |
static int |
CONSTRAINT_FIELD_NUMBER |
static int |
ETAG_FIELD_NUMBER |
static int |
LIST_POLICY_FIELD_NUMBER |
static int |
RESTORE_DEFAULT_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Policy.BooleanPolicy |
getBooleanPolicy()
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`.
|
static Policy |
getDefaultInstance() |
Policy |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
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.ListPolicyOrBuilder |
getListPolicyOrBuilder()
List of values either allowed or disallowed.
|
Parser<Policy> |
getParserForType() |
Policy.PolicyTypeCase |
getPolicyTypeCase() |
Policy.RestoreDefault |
getRestoreDefault()
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.
|
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
Timestamp |
getUpdateTime()
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.
|
int |
hashCode() |
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() |
static Policy.Builder |
newBuilder() |
static Policy.Builder |
newBuilder(Policy prototype) |
Policy.Builder |
newBuilderForType() |
protected Policy.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static Policy |
parseDelimitedFrom(InputStream input) |
static Policy |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Policy |
parseFrom(byte[] data) |
static Policy |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Policy |
parseFrom(ByteBuffer data) |
static Policy |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Policy |
parseFrom(ByteString data) |
static Policy |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Policy |
parseFrom(CodedInputStream input) |
static Policy |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Policy |
parseFrom(InputStream input) |
static Policy |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Policy> |
parser() |
Policy.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int VERSION_FIELD_NUMBER
public static final int CONSTRAINT_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final int LIST_POLICY_FIELD_NUMBER
public static final int BOOLEAN_POLICY_FIELD_NUMBER
public static final int RESTORE_DEFAULT_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class GeneratedMessageV3public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public Policy.PolicyTypeCase getPolicyTypeCase()
getPolicyTypeCase in interface PolicyOrBuilderpublic int getVersion()
Version of the `Policy`. Default version is 0;
int32 version = 1;getVersion in interface PolicyOrBuilderpublic 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 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 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 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.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.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.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 boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Policy parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Policy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Policy parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Policy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Policy parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Policy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Policy parseFrom(InputStream input) throws IOException
IOExceptionpublic static Policy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Policy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Policy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Policy parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static Policy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Policy.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Policy.Builder newBuilder()
public static Policy.Builder newBuilder(Policy prototype)
public Policy.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Policy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Policy getDefaultInstance()
public Parser<Policy> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Policy getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderCopyright © 2021 Google LLC. All rights reserved.