Package com.google.cloud.asset.v1
Class AnalyzerOrgPolicyConstraint.Constraint
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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.GeneratedMessageV3 implements AnalyzerOrgPolicyConstraint.ConstraintOrBuilder
The definition of a constraint.
Protobuf typegoogle.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
A `Constraint` that is either enforced or not.static interface
AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraintOrBuilder
static class
AnalyzerOrgPolicyConstraint.Constraint.Builder
The definition of a constraint.static class
AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault
Specifies the default behavior in the absence of any `Policy` for the `Constraint`.static class
AnalyzerOrgPolicyConstraint.Constraint.ConstraintTypeCase
static class
AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
A `Constraint` that allows or disallows a list of string values, which are configured by an organization's policy administrator with a `Policy`.static interface
AnalyzerOrgPolicyConstraint.Constraint.ListConstraintOrBuilder
-
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 int
BOOLEAN_CONSTRAINT_FIELD_NUMBER
static int
CONSTRAINT_DEFAULT_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
DISPLAY_NAME_FIELD_NUMBER
static int
LIST_CONSTRAINT_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
getBooleanConstraint()
Defines this constraint as being a BooleanConstraint.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraintOrBuilder
getBooleanConstraintOrBuilder()
Defines this constraint as being a BooleanConstraint.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault
getConstraintDefault()
The evaluation behavior of this constraint in the absence of 'Policy'.int
getConstraintDefaultValue()
The evaluation behavior of this constraint in the absence of 'Policy'.AnalyzerOrgPolicyConstraint.Constraint.ConstraintTypeCase
getConstraintTypeCase()
static AnalyzerOrgPolicyConstraint.Constraint
getDefaultInstance()
AnalyzerOrgPolicyConstraint.Constraint
getDefaultInstanceForType()
String
getDescription()
Detailed description of what this `Constraint` controls as well as how and where it is enforced.com.google.protobuf.ByteString
getDescriptionBytes()
Detailed description of what this `Constraint` controls as well as how and where it is enforced.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDisplayName()
The human readable name of the constraint.com.google.protobuf.ByteString
getDisplayNameBytes()
The human readable name of the constraint.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
getListConstraint()
Defines this constraint as being a ListConstraint.AnalyzerOrgPolicyConstraint.Constraint.ListConstraintOrBuilder
getListConstraintOrBuilder()
Defines this constraint as being a ListConstraint.String
getName()
The unique name of the constraint.com.google.protobuf.ByteString
getNameBytes()
The unique name of the constraint.com.google.protobuf.Parser<AnalyzerOrgPolicyConstraint.Constraint>
getParserForType()
int
getSerializedSize()
boolean
hasBooleanConstraint()
Defines this constraint as being a BooleanConstraint.int
hashCode()
boolean
hasListConstraint()
Defines this constraint as being a ListConstraint.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static AnalyzerOrgPolicyConstraint.Constraint.Builder
newBuilder()
static AnalyzerOrgPolicyConstraint.Constraint.Builder
newBuilder(AnalyzerOrgPolicyConstraint.Constraint prototype)
AnalyzerOrgPolicyConstraint.Constraint.Builder
newBuilderForType()
protected AnalyzerOrgPolicyConstraint.Constraint.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AnalyzerOrgPolicyConstraint.Constraint
parseDelimitedFrom(InputStream input)
static AnalyzerOrgPolicyConstraint.Constraint
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnalyzerOrgPolicyConstraint.Constraint
parseFrom(byte[] data)
static AnalyzerOrgPolicyConstraint.Constraint
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnalyzerOrgPolicyConstraint.Constraint
parseFrom(com.google.protobuf.ByteString data)
static AnalyzerOrgPolicyConstraint.Constraint
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnalyzerOrgPolicyConstraint.Constraint
parseFrom(com.google.protobuf.CodedInputStream input)
static AnalyzerOrgPolicyConstraint.Constraint
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnalyzerOrgPolicyConstraint.Constraint
parseFrom(InputStream input)
static AnalyzerOrgPolicyConstraint.Constraint
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnalyzerOrgPolicyConstraint.Constraint
parseFrom(ByteBuffer data)
static AnalyzerOrgPolicyConstraint.Constraint
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<AnalyzerOrgPolicyConstraint.Constraint>
parser()
AnalyzerOrgPolicyConstraint.Constraint.Builder
toBuilder()
void
writeTo(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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONSTRAINT_DEFAULT_FIELD_NUMBER
public static final int CONSTRAINT_DEFAULT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIST_CONSTRAINT_FIELD_NUMBER
public static final int LIST_CONSTRAINT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOLEAN_CONSTRAINT_FIELD_NUMBER
public static final int BOOLEAN_CONSTRAINT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getConstraintTypeCase
public AnalyzerOrgPolicyConstraint.Constraint.ConstraintTypeCase getConstraintTypeCase()
- Specified by:
getConstraintTypeCase
in interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder
-
getName
public String 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:
getName
in 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:
getNameBytes
in interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder
- Returns:
- The bytes for name.
-
getDisplayName
public String getDisplayName()
The human readable name of the constraint.
string display_name = 2;
- Specified by:
getDisplayName
in 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:
getDisplayNameBytes
in interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder
- Returns:
- The bytes for displayName.
-
getDescription
public String getDescription()
Detailed description of what this `Constraint` controls as well as how and where it is enforced.
string description = 3;
- Specified by:
getDescription
in 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:
getDescriptionBytes
in 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:
getConstraintDefaultValue
in interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder
- Returns:
- The enum numeric value on the wire for constraintDefault.
-
getConstraintDefault
public AnalyzerOrgPolicyConstraint.Constraint.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:
getConstraintDefault
in 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:
hasListConstraint
in interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder
- Returns:
- Whether the listConstraint field is set.
-
getListConstraint
public AnalyzerOrgPolicyConstraint.Constraint.ListConstraint getListConstraint()
Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
- Specified by:
getListConstraint
in interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder
- Returns:
- The listConstraint.
-
getListConstraintOrBuilder
public AnalyzerOrgPolicyConstraint.Constraint.ListConstraintOrBuilder getListConstraintOrBuilder()
Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
- Specified by:
getListConstraintOrBuilder
in 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:
hasBooleanConstraint
in interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder
- Returns:
- Whether the booleanConstraint field is set.
-
getBooleanConstraint
public AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint getBooleanConstraint()
Defines this constraint as being a BooleanConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
- Specified by:
getBooleanConstraint
in 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:
getBooleanConstraintOrBuilder
in interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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
public AnalyzerOrgPolicyConstraint.Constraint.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AnalyzerOrgPolicyConstraint.Constraint.Builder newBuilder()
-
newBuilder
public static AnalyzerOrgPolicyConstraint.Constraint.Builder newBuilder(AnalyzerOrgPolicyConstraint.Constraint prototype)
-
toBuilder
public AnalyzerOrgPolicyConstraint.Constraint.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AnalyzerOrgPolicyConstraint.Constraint.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AnalyzerOrgPolicyConstraint.Constraint getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AnalyzerOrgPolicyConstraint.Constraint> parser()
-
getParserForType
public com.google.protobuf.Parser<AnalyzerOrgPolicyConstraint.Constraint> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AnalyzerOrgPolicyConstraint.Constraint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-