Package com.google.cloud.asset.v1
Class AnalyzerOrgPolicyConstraint.Constraint
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
- All Implemented Interfaces:
AnalyzerOrgPolicyConstraint.ConstraintOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- AnalyzerOrgPolicyConstraint
public static final class AnalyzerOrgPolicyConstraint.Constraint
extends com.google.protobuf.GeneratedMessage
implements AnalyzerOrgPolicyConstraint.ConstraintOrBuilder
The definition of a constraint.Protobuf type
google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA `Constraint` that is either enforced or not.static interfacestatic final classThe definition of a constraint.static enumSpecifies the default behavior in the absence of any `Policy` for the `Constraint`.static enumstatic final classA `Constraint` that allows or disallows a list of string values, which are configured by an organization's policy administrator with a `Policy`.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanDefines this constraint as being a BooleanConstraint.Defines this constraint as being a BooleanConstraint.The evaluation behavior of this constraint in the absence of 'Policy'.intThe evaluation behavior of this constraint in the absence of 'Policy'.Detailed description of what this `Constraint` controls as well as how and where it is enforced.com.google.protobuf.ByteStringDetailed description of what this `Constraint` controls as well as how and where it is enforced.static final com.google.protobuf.Descriptors.DescriptorThe human readable name of the constraint.com.google.protobuf.ByteStringThe human readable name of the constraint.Defines this constraint as being a ListConstraint.Defines this constraint as being a ListConstraint.getName()The unique name of the constraint.com.google.protobuf.ByteStringThe unique name of the constraint.com.google.protobuf.Parser<AnalyzerOrgPolicyConstraint.Constraint>intbooleanDefines this constraint as being a BooleanConstraint.inthashCode()booleanDefines this constraint as being a ListConstraint.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(AnalyzerOrgPolicyConstraint.Constraint prototype) newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AnalyzerOrgPolicyConstraint.Constraint>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
CONSTRAINT_DEFAULT_FIELD_NUMBER
public static final int CONSTRAINT_DEFAULT_FIELD_NUMBER- See Also:
-
LIST_CONSTRAINT_FIELD_NUMBER
public static final int LIST_CONSTRAINT_FIELD_NUMBER- See Also:
-
BOOLEAN_CONSTRAINT_FIELD_NUMBER
public static final int BOOLEAN_CONSTRAINT_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getConstraintTypeCase
- Specified by:
getConstraintTypeCasein interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder
-
getName
The unique name of the constraint. Format of the name should be * `constraints/{constraint_name}` For example, `constraints/compute.disableSerialPortAccess`.string name = 1;- Specified by:
getNamein interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The unique name of the constraint. Format of the name should be * `constraints/{constraint_name}` For example, `constraints/compute.disableSerialPortAccess`.string name = 1;- Specified by:
getNameBytesin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
The human readable name of the constraint.
string display_name = 2;- Specified by:
getDisplayNamein interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The human readable name of the constraint.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The bytes for displayName.
-
getDescription
Detailed description of what this `Constraint` controls as well as how and where it is enforced.
string description = 3;- Specified by:
getDescriptionin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Detailed description of what this `Constraint` controls as well as how and where it is enforced.
string description = 3;- Specified by:
getDescriptionBytesin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The bytes for description.
-
getConstraintDefaultValue
public int getConstraintDefaultValue()The evaluation behavior of this constraint in the absence of 'Policy'.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;- Specified by:
getConstraintDefaultValuein interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The enum numeric value on the wire for constraintDefault.
-
getConstraintDefault
The evaluation behavior of this constraint in the absence of 'Policy'.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;- Specified by:
getConstraintDefaultin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The constraintDefault.
-
hasListConstraint
public boolean hasListConstraint()Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;- Specified by:
hasListConstraintin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- Whether the listConstraint field is set.
-
getListConstraint
Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;- Specified by:
getListConstraintin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The listConstraint.
-
getListConstraintOrBuilder
Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;- Specified by:
getListConstraintOrBuilderin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder
-
hasBooleanConstraint
public boolean hasBooleanConstraint()Defines this constraint as being a BooleanConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;- Specified by:
hasBooleanConstraintin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- Whether the booleanConstraint field is set.
-
getBooleanConstraint
Defines this constraint as being a BooleanConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;- Specified by:
getBooleanConstraintin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The booleanConstraint.
-
getBooleanConstraintOrBuilder
public AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraintOrBuilder getBooleanConstraintOrBuilder()Defines this constraint as being a BooleanConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;- Specified by:
getBooleanConstraintOrBuilderin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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 AnalyzerOrgPolicyConstraint.Constraint parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static AnalyzerOrgPolicyConstraint.Constraint parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static AnalyzerOrgPolicyConstraint.Constraint parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static AnalyzerOrgPolicyConstraint.Constraint.Builder newBuilder(AnalyzerOrgPolicyConstraint.Constraint prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AnalyzerOrgPolicyConstraint.Constraint.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-