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 class
AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType
Allow or deny type.static class
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder
The definition of a custom constraint.static class
AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType
The 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 int
ACTION_TYPE_FIELD_NUMBER
static int
CONDITION_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
DISPLAY_NAME_FIELD_NUMBER
static int
METHOD_TYPES_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
RESOURCE_TYPES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType
getActionType()
Allow or deny type.int
getActionTypeValue()
Allow or deny type.String
getCondition()
Organization Policy condition/expression.com.google.protobuf.ByteString
getConditionBytes()
Organization Policy condition/expression.static AnalyzerOrgPolicyConstraint.CustomConstraint
getDefaultInstance()
AnalyzerOrgPolicyConstraint.CustomConstraint
getDefaultInstanceForType()
String
getDescription()
Detailed information about this custom policy constraint.com.google.protobuf.ByteString
getDescriptionBytes()
Detailed information about this custom policy constraint.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDisplayName()
One line display name for the UI.com.google.protobuf.ByteString
getDisplayNameBytes()
One line display name for the UI.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType
getMethodTypes(int index)
All the operations being applied for this constraint.int
getMethodTypesCount()
All the operations being applied for this constraint.List<AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType>
getMethodTypesList()
All the operations being applied for this constraint.int
getMethodTypesValue(int index)
All the operations being applied for this constraint.List<Integer>
getMethodTypesValueList()
All the operations being applied for this constraint.String
getName()
Name of the constraint.com.google.protobuf.ByteString
getNameBytes()
Name of the constraint.com.google.protobuf.Parser<AnalyzerOrgPolicyConstraint.CustomConstraint>
getParserForType()
String
getResourceTypes(int index)
The Resource Instance type on which this policy applies to.com.google.protobuf.ByteString
getResourceTypesBytes(int index)
The Resource Instance type on which this policy applies to.int
getResourceTypesCount()
The Resource Instance type on which this policy applies to.com.google.protobuf.ProtocolStringList
getResourceTypesList()
The Resource Instance type on which this policy applies to.int
getSerializedSize()
int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static AnalyzerOrgPolicyConstraint.CustomConstraint.Builder
newBuilder()
static AnalyzerOrgPolicyConstraint.CustomConstraint.Builder
newBuilder(AnalyzerOrgPolicyConstraint.CustomConstraint prototype)
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder
newBuilderForType()
protected AnalyzerOrgPolicyConstraint.CustomConstraint.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AnalyzerOrgPolicyConstraint.CustomConstraint
parseDelimitedFrom(InputStream input)
static AnalyzerOrgPolicyConstraint.CustomConstraint
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnalyzerOrgPolicyConstraint.CustomConstraint
parseFrom(byte[] data)
static AnalyzerOrgPolicyConstraint.CustomConstraint
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnalyzerOrgPolicyConstraint.CustomConstraint
parseFrom(com.google.protobuf.ByteString data)
static AnalyzerOrgPolicyConstraint.CustomConstraint
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnalyzerOrgPolicyConstraint.CustomConstraint
parseFrom(com.google.protobuf.CodedInputStream input)
static AnalyzerOrgPolicyConstraint.CustomConstraint
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnalyzerOrgPolicyConstraint.CustomConstraint
parseFrom(InputStream input)
static AnalyzerOrgPolicyConstraint.CustomConstraint
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnalyzerOrgPolicyConstraint.CustomConstraint
parseFrom(ByteBuffer data)
static AnalyzerOrgPolicyConstraint.CustomConstraint
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<AnalyzerOrgPolicyConstraint.CustomConstraint>
parser()
AnalyzerOrgPolicyConstraint.CustomConstraint.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
-
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:
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
-
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:
getName
in 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:
getNameBytes
in 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:
getResourceTypesList
in 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:
getResourceTypesCount
in 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:
getResourceTypes
in 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:
getResourceTypesBytes
in 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:
getMethodTypesList
in 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:
getMethodTypesCount
in 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:
getMethodTypes
in 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:
getMethodTypesValueList
in 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:
getMethodTypesValue
in 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:
getCondition
in 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:
getConditionBytes
in 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:
getActionTypeValue
in 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:
getActionType
in interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder
- Returns:
- The actionType.
-
getDisplayName
public String getDisplayName()
One line display name for the UI.
string display_name = 6;
- Specified by:
getDisplayName
in 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:
getDisplayNameBytes
in interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder
- Returns:
- The bytes for displayName.
-
getDescription
public String getDescription()
Detailed information about this custom policy constraint.
string description = 7;
- Specified by:
getDescription
in interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Detailed information about this custom policy constraint.
string description = 7;
- Specified by:
getDescriptionBytes
in interfaceAnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder
- Returns:
- The bytes for description.
-
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.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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AnalyzerOrgPolicyConstraint.CustomConstraint.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AnalyzerOrgPolicyConstraint.CustomConstraint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-