Package com.google.cloud.asset.v1
Class AnalyzerOrgPolicyConstraint.CustomConstraint
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
-
- All Implemented Interfaces:
AnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder,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.CustomConstraint extends com.google.protobuf.GeneratedMessageV3 implements AnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder
The definition of a custom constraint.
Protobuf typegoogle.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnalyzerOrgPolicyConstraint.CustomConstraint.ActionTypeAllow or deny type.static classAnalyzerOrgPolicyConstraint.CustomConstraint.BuilderThe definition of a custom constraint.static classAnalyzerOrgPolicyConstraint.CustomConstraint.MethodTypeThe operation in which this constraint will be applied.-
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 intACTION_TYPE_FIELD_NUMBERstatic intCONDITION_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intMETHOD_TYPES_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intRESOURCE_TYPES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)AnalyzerOrgPolicyConstraint.CustomConstraint.ActionTypegetActionType()Allow or deny type.intgetActionTypeValue()Allow or deny type.StringgetCondition()Organization Policy condition/expression.com.google.protobuf.ByteStringgetConditionBytes()Organization Policy condition/expression.static AnalyzerOrgPolicyConstraint.CustomConstraintgetDefaultInstance()AnalyzerOrgPolicyConstraint.CustomConstraintgetDefaultInstanceForType()StringgetDescription()Detailed information about this custom policy constraint.com.google.protobuf.ByteStringgetDescriptionBytes()Detailed information about this custom policy constraint.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisplayName()One line display name for the UI.com.google.protobuf.ByteStringgetDisplayNameBytes()One line display name for the UI.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodTypegetMethodTypes(int index)All the operations being applied for this constraint.intgetMethodTypesCount()All the operations being applied for this constraint.List<AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType>getMethodTypesList()All the operations being applied for this constraint.intgetMethodTypesValue(int index)All the operations being applied for this constraint.List<Integer>getMethodTypesValueList()All the operations being applied for this constraint.StringgetName()Name of the constraint.com.google.protobuf.ByteStringgetNameBytes()Name of the constraint.com.google.protobuf.Parser<AnalyzerOrgPolicyConstraint.CustomConstraint>getParserForType()StringgetResourceTypes(int index)The Resource Instance type on which this policy applies to.com.google.protobuf.ByteStringgetResourceTypesBytes(int index)The Resource Instance type on which this policy applies to.intgetResourceTypesCount()The Resource Instance type on which this policy applies to.com.google.protobuf.ProtocolStringListgetResourceTypesList()The Resource Instance type on which this policy applies to.intgetSerializedSize()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static AnalyzerOrgPolicyConstraint.CustomConstraint.BuildernewBuilder()static AnalyzerOrgPolicyConstraint.CustomConstraint.BuildernewBuilder(AnalyzerOrgPolicyConstraint.CustomConstraint prototype)AnalyzerOrgPolicyConstraint.CustomConstraint.BuildernewBuilderForType()protected AnalyzerOrgPolicyConstraint.CustomConstraint.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AnalyzerOrgPolicyConstraint.CustomConstraintparseDelimitedFrom(InputStream input)static AnalyzerOrgPolicyConstraint.CustomConstraintparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnalyzerOrgPolicyConstraint.CustomConstraintparseFrom(byte[] data)static AnalyzerOrgPolicyConstraint.CustomConstraintparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnalyzerOrgPolicyConstraint.CustomConstraintparseFrom(com.google.protobuf.ByteString data)static AnalyzerOrgPolicyConstraint.CustomConstraintparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnalyzerOrgPolicyConstraint.CustomConstraintparseFrom(com.google.protobuf.CodedInputStream input)static AnalyzerOrgPolicyConstraint.CustomConstraintparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnalyzerOrgPolicyConstraint.CustomConstraintparseFrom(InputStream input)static AnalyzerOrgPolicyConstraint.CustomConstraintparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnalyzerOrgPolicyConstraint.CustomConstraintparseFrom(ByteBuffer data)static AnalyzerOrgPolicyConstraint.CustomConstraintparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AnalyzerOrgPolicyConstraint.CustomConstraint>parser()AnalyzerOrgPolicyConstraint.CustomConstraint.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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_TYPES_FIELD_NUMBER
public static final int RESOURCE_TYPES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METHOD_TYPES_FIELD_NUMBER
public static final int METHOD_TYPES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONDITION_FIELD_NUMBER
public static final int CONDITION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACTION_TYPE_FIELD_NUMBER
public static final int ACTION_TYPE_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
-
-
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
-
getName
public String getName()
Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : "organizations/123/customConstraints/custom.createOnlyE2TypeVms"string name = 1;- Specified by:
getNamein interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : "organizations/123/customConstraints/custom.createOnlyE2TypeVms"string name = 1;- Specified by:
getNameBytesin interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Returns:
- The bytes for name.
-
getResourceTypesList
public com.google.protobuf.ProtocolStringList getResourceTypesList()
The Resource Instance type on which this policy applies to. Format will be of the form : "<canonical service name>/<type>" Example: * `compute.googleapis.com/Instance`.
repeated string resource_types = 2;- Specified by:
getResourceTypesListin interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Returns:
- A list containing the resourceTypes.
-
getResourceTypesCount
public int getResourceTypesCount()
The Resource Instance type on which this policy applies to. Format will be of the form : "<canonical service name>/<type>" Example: * `compute.googleapis.com/Instance`.
repeated string resource_types = 2;- Specified by:
getResourceTypesCountin interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Returns:
- The count of resourceTypes.
-
getResourceTypes
public String getResourceTypes(int index)
The Resource Instance type on which this policy applies to. Format will be of the form : "<canonical service name>/<type>" Example: * `compute.googleapis.com/Instance`.
repeated string resource_types = 2;- Specified by:
getResourceTypesin interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The resourceTypes at the given index.
-
getResourceTypesBytes
public com.google.protobuf.ByteString getResourceTypesBytes(int index)
The Resource Instance type on which this policy applies to. Format will be of the form : "<canonical service name>/<type>" Example: * `compute.googleapis.com/Instance`.
repeated string resource_types = 2;- Specified by:
getResourceTypesBytesin interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the resourceTypes at the given index.
-
getMethodTypesList
public List<AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType> getMethodTypesList()
All the operations being applied for this constraint.
repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;- Specified by:
getMethodTypesListin interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Returns:
- A list containing the methodTypes.
-
getMethodTypesCount
public int getMethodTypesCount()
All the operations being applied for this constraint.
repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;- Specified by:
getMethodTypesCountin interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Returns:
- The count of methodTypes.
-
getMethodTypes
public AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType getMethodTypes(int index)
All the operations being applied for this constraint.
repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;- Specified by:
getMethodTypesin interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The methodTypes at the given index.
-
getMethodTypesValueList
public List<Integer> getMethodTypesValueList()
All the operations being applied for this constraint.
repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;- Specified by:
getMethodTypesValueListin interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Returns:
- A list containing the enum numeric values on the wire for methodTypes.
-
getMethodTypesValue
public int getMethodTypesValue(int index)
All the operations being applied for this constraint.
repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;- Specified by:
getMethodTypesValuein interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of methodTypes at the given index.
-
getCondition
public String getCondition()
Organization Policy condition/expression. For example: `resource.instanceName.matches("[production|test]_.*_(\d)+")'` or, `resource.management.auto_upgrade == true`string condition = 4;- Specified by:
getConditionin interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Returns:
- The condition.
-
getConditionBytes
public com.google.protobuf.ByteString getConditionBytes()
Organization Policy condition/expression. For example: `resource.instanceName.matches("[production|test]_.*_(\d)+")'` or, `resource.management.auto_upgrade == true`string condition = 4;- Specified by:
getConditionBytesin interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Returns:
- The bytes for condition.
-
getActionTypeValue
public int getActionTypeValue()
Allow or deny type.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;- Specified by:
getActionTypeValuein interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Returns:
- The enum numeric value on the wire for actionType.
-
getActionType
public AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType getActionType()
Allow or deny type.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;- Specified by:
getActionTypein interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Returns:
- The actionType.
-
getDisplayName
public String getDisplayName()
One line display name for the UI.
string display_name = 6;- Specified by:
getDisplayNamein interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
One line display name for the UI.
string display_name = 6;- Specified by:
getDisplayNameBytesin interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Returns:
- The bytes for displayName.
-
getDescription
public String getDescription()
Detailed information about this custom policy constraint.
string description = 7;- Specified by:
getDescriptionin interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Detailed information about this custom policy constraint.
string description = 7;- Specified by:
getDescriptionBytesin interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Returns:
- The bytes for description.
-
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 AnalyzerOrgPolicyConstraint.CustomConstraint parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.CustomConstraint parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.CustomConstraint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.CustomConstraint 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.CustomConstraint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.CustomConstraint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.CustomConstraint parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.CustomConstraint parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AnalyzerOrgPolicyConstraint.CustomConstraint parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AnalyzerOrgPolicyConstraint.CustomConstraint parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.CustomConstraint parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AnalyzerOrgPolicyConstraint.CustomConstraint parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AnalyzerOrgPolicyConstraint.CustomConstraint.Builder newBuilder()
-
newBuilder
public static AnalyzerOrgPolicyConstraint.CustomConstraint.Builder newBuilder(AnalyzerOrgPolicyConstraint.CustomConstraint prototype)
-
toBuilder
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AnalyzerOrgPolicyConstraint.CustomConstraint.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AnalyzerOrgPolicyConstraint.CustomConstraint getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AnalyzerOrgPolicyConstraint.CustomConstraint> parser()
-
getParserForType
public com.google.protobuf.Parser<AnalyzerOrgPolicyConstraint.CustomConstraint> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AnalyzerOrgPolicyConstraint.CustomConstraint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-