Package com.google.cloud.asset.v1
Class AnalyzerOrgPolicyConstraint.CustomConstraint
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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.GeneratedMessage
implements AnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder
The definition of a custom constraint.Protobuf type
google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAllow or deny type.static final classThe definition of a custom constraint.static enumThe operation in which this constraint will be applied.Nested 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 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 TypeMethodDescriptionbooleanAllow or deny type.intAllow or deny type.Organization Policy condition/expression.com.google.protobuf.ByteStringOrganization Policy condition/expression.Detailed information about this custom policy constraint.com.google.protobuf.ByteStringDetailed information about this custom policy constraint.static final com.google.protobuf.Descriptors.DescriptorOne line display name for the UI.com.google.protobuf.ByteStringOne line display name for the UI.getMethodTypes(int index) All the operations being applied for this constraint.intAll the operations being applied for this constraint.All the operations being applied for this constraint.intgetMethodTypesValue(int index) All the operations being applied for this constraint.All the operations being applied for this constraint.getName()Name of the constraint.com.google.protobuf.ByteStringName of the constraint.com.google.protobuf.Parser<AnalyzerOrgPolicyConstraint.CustomConstraint>getResourceTypes(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.intThe Resource Instance type on which this policy applies to.com.google.protobuf.ProtocolStringListThe Resource Instance type on which this policy applies to.intinthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilderForType(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.CustomConstraint>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:
-
RESOURCE_TYPES_FIELD_NUMBER
public static final int RESOURCE_TYPES_FIELD_NUMBER- See Also:
-
METHOD_TYPES_FIELD_NUMBER
public static final int METHOD_TYPES_FIELD_NUMBER- See Also:
-
CONDITION_FIELD_NUMBER
public static final int CONDITION_FIELD_NUMBER- See Also:
-
ACTION_TYPE_FIELD_NUMBER
public static final int ACTION_TYPE_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:
-
-
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
-
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
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
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
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
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
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
Allow or deny type.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;- Specified by:
getActionTypein interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder- Returns:
- The actionType.
-
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
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.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.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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static AnalyzerOrgPolicyConstraint.CustomConstraint.Builder newBuilder(AnalyzerOrgPolicyConstraint.CustomConstraint prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AnalyzerOrgPolicyConstraint.CustomConstraint.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
-