public final class Policy extends GeneratedMessage 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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
BOOLEAN_POLICY_FIELD_NUMBER
public static final int BOOLEAN_POLICY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CONSTRAINT_FIELD_NUMBER
public static final int CONSTRAINT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
LIST_POLICY_FIELD_NUMBER
public static final int LIST_POLICY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RESTORE_DEFAULT_FIELD_NUMBER
public static final int RESTORE_DEFAULT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Policy getDefaultInstance()
| Returns |
| Type |
Description |
Policy |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Policy.Builder newBuilder()
newBuilder(Policy prototype)
public static Policy.Builder newBuilder(Policy prototype)
| Parameter |
| Name |
Description |
prototype |
Policy
|
public static Policy parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
Policy |
|
public static Policy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Policy |
|
parseFrom(byte[] data)
public static Policy parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Policy |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Policy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Policy |
|
parseFrom(ByteString data)
public static Policy parseFrom(ByteString data)
| Returns |
| Type |
Description |
Policy |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Policy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Policy |
|
public static Policy parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
Policy |
|
public static Policy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Policy |
|
public static Policy parseFrom(InputStream input)
| Returns |
| Type |
Description |
Policy |
|
public static Policy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Policy |
|
parseFrom(ByteBuffer data)
public static Policy parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
Policy |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Policy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Policy |
|
parser()
public static Parser<Policy> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getBooleanPolicy()
public Policy.BooleanPolicy getBooleanPolicy()
For boolean Constraints, whether to enforce the Constraint or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;
getBooleanPolicyOrBuilder()
public Policy.BooleanPolicyOrBuilder getBooleanPolicyOrBuilder()
For boolean Constraints, whether to enforce the Constraint or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;
getConstraint()
public String getConstraint()
The name of the Constraint the Policy is configuring, for example,
constraints/serviceuser.services.
Immutable after creation.
string constraint = 2;
| Returns |
| Type |
Description |
String |
The constraint.
|
getConstraintBytes()
public ByteString getConstraintBytes()
The name of the Constraint the Policy is configuring, for example,
constraints/serviceuser.services.
Immutable after creation.
string constraint = 2;
| Returns |
| Type |
Description |
ByteString |
The bytes for constraint.
|
getDefaultInstanceForType()
public Policy getDefaultInstanceForType()
| Returns |
| Type |
Description |
Policy |
|
getEtag()
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 etagin a
SetOrgPolicy request will result in an unconditional write of the
Policy.
bytes etag = 3;
getListPolicy()
public Policy.ListPolicy getListPolicy()
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;
getListPolicyOrBuilder()
public Policy.ListPolicyOrBuilder getListPolicyOrBuilder()
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;
getParserForType()
public Parser<Policy> getParserForType()
Overrides
getPolicyTypeCase()
public Policy.PolicyTypeCase getPolicyTypeCase()
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;
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;
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getUpdateTime()
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;
| Returns |
| Type |
Description |
Timestamp |
The updateTime.
|
getUpdateTimeOrBuilder()
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;
getVersion()
Version of the Policy. Default version is 0;
int32 version = 1;
| Returns |
| Type |
Description |
int |
The version.
|
hasBooleanPolicy()
public boolean hasBooleanPolicy()
For boolean Constraints, whether to enforce the Constraint or not.
.google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;
| Returns |
| Type |
Description |
boolean |
Whether the booleanPolicy field is set.
|
hasListPolicy()
public boolean hasListPolicy()
List of values either allowed or disallowed.
.google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;
| Returns |
| Type |
Description |
boolean |
Whether the listPolicy field is set.
|
hasRestoreDefault()
public boolean hasRestoreDefault()
Restores the default behavior of the constraint; independent of
Constraint type.
.google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;
| Returns |
| Type |
Description |
boolean |
Whether the restoreDefault field is set.
|
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;
| Returns |
| Type |
Description |
boolean |
Whether the updateTime field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Policy.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Policy.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Policy.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides