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.UnusedPrivateParameter
AbstractMessageLite.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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public Policy.PolicyTypeCase getPolicyTypeCase()
getPolicyTypeCase
in interface PolicyOrBuilder
public int getVersion()
Version of the `Policy`. Default version is 0;
int32 version = 1;
getVersion
in interface PolicyOrBuilder
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 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 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 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.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.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.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 boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Policy parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Policy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Policy parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Policy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Policy parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Policy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Policy parseFrom(InputStream input) throws IOException
IOException
public static Policy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Policy parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Policy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Policy parseFrom(CodedInputStream input) throws IOException
IOException
public static Policy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Policy.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Policy.Builder newBuilder()
public static Policy.Builder newBuilder(Policy prototype)
public Policy.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Policy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Policy getDefaultInstance()
public Parser<Policy> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Policy getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2021 Google LLC. All rights reserved.