Package com.google.cloud.orgpolicy.v1
Class Policy
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.orgpolicy.v1.Policy
-
- All Implemented Interfaces:
PolicyOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Policy extends com.google.protobuf.GeneratedMessageV3 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- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPolicy.BooleanPolicyUsed in `policy_type` to specify how `boolean_policy` will behave at this resource.static interfacePolicy.BooleanPolicyOrBuilderstatic classPolicy.BuilderDefines a Cloud Organization `Policy` which is used to specify `Constraints` for configurations of Cloud Platform resources.static classPolicy.ListPolicyUsed in `policy_type` to specify how `list_policy` behaves at this resource.static interfacePolicy.ListPolicyOrBuilderstatic classPolicy.PolicyTypeCasestatic classPolicy.RestoreDefaultIgnores policies set above this resource and restores the `constraint_default` enforcement behavior of the specific `Constraint` at this resource.static interfacePolicy.RestoreDefaultOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBOOLEAN_POLICY_FIELD_NUMBERstatic intCONSTRAINT_FIELD_NUMBERstatic intETAG_FIELD_NUMBERstatic intLIST_POLICY_FIELD_NUMBERstatic intRESTORE_DEFAULT_FIELD_NUMBERstatic intUPDATE_TIME_FIELD_NUMBERstatic intVERSION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Policy.BooleanPolicygetBooleanPolicy()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`.static PolicygetDefaultInstance()PolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()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.ListPolicyOrBuildergetListPolicyOrBuilder()List of values either allowed or disallowed.com.google.protobuf.Parser<Policy>getParserForType()Policy.PolicyTypeCasegetPolicyTypeCase()Policy.RestoreDefaultgetRestoreDefault()Restores the default behavior of the constraint; independent of `Constraint` type.Policy.RestoreDefaultOrBuildergetRestoreDefaultOrBuilder()Restores the default behavior of the constraint; independent of `Constraint` type.intgetSerializedSize()com.google.protobuf.TimestampgetUpdateTime()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.inthashCode()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()static Policy.BuildernewBuilder()static Policy.BuildernewBuilder(Policy prototype)Policy.BuildernewBuilderForType()protected Policy.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static PolicyparseDelimitedFrom(InputStream input)static PolicyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PolicyparseFrom(byte[] data)static PolicyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PolicyparseFrom(com.google.protobuf.ByteString data)static PolicyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PolicyparseFrom(com.google.protobuf.CodedInputStream input)static PolicyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PolicyparseFrom(InputStream input)static PolicyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PolicyparseFrom(ByteBuffer data)static PolicyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Policy>parser()Policy.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONSTRAINT_FIELD_NUMBER
public static final int CONSTRAINT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIST_POLICY_FIELD_NUMBER
public static final int LIST_POLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOLEAN_POLICY_FIELD_NUMBER
public static final int BOOLEAN_POLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESTORE_DEFAULT_FIELD_NUMBER
public static final int RESTORE_DEFAULT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
getPolicyTypeCase
public Policy.PolicyTypeCase getPolicyTypeCase()
- Specified by:
getPolicyTypeCasein interfacePolicyOrBuilder
-
getVersion
public int getVersion()
Version of the `Policy`. Default version is 0;
int32 version = 1;- Specified by:
getVersionin interfacePolicyOrBuilder- Returns:
- The version.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Policy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Policy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Policy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Policy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Policy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Policy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Policy parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Policy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Policy parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Policy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Policy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Policy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Policy.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Policy.Builder newBuilder()
-
newBuilder
public static Policy.Builder newBuilder(Policy prototype)
-
toBuilder
public Policy.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Policy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Policy getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Policy> parser()
-
getParserForType
public com.google.protobuf.Parser<Policy> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Policy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-