- 3.82.0 (latest)
 - 3.80.0
 - 3.79.0
 - 3.78.0
 - 3.77.0
 - 3.76.0
 - 3.74.0
 - 3.72.0
 - 3.71.0
 - 3.68.0
 - 3.67.0
 - 3.66.0
 - 3.64.0
 - 3.63.0
 - 3.62.0
 - 3.61.0
 - 3.60.0
 - 3.59.0
 - 3.58.0
 - 3.57.0
 - 3.56.0
 - 3.55.0
 - 3.53.0
 - 3.52.0
 - 3.51.0
 - 3.50.0
 - 3.49.0
 - 3.48.0
 - 3.47.0
 - 3.46.0
 - 3.45.0
 - 3.44.0
 - 3.43.0
 - 3.41.0
 - 3.40.0
 - 3.39.0
 - 3.38.0
 - 3.37.0
 - 3.36.0
 - 3.35.0
 - 3.34.0
 - 3.33.0
 - 3.32.0
 - 3.31.0
 - 3.28.0
 - 3.27.0
 - 3.26.0
 - 3.25.0
 - 3.24.0
 - 3.23.0
 - 3.22.0
 - 3.21.0
 - 3.20.0
 - 3.19.0
 - 3.18.0
 - 3.17.0
 - 3.16.0
 - 3.15.0
 - 3.14.0
 - 3.13.0
 - 3.12.0
 - 3.11.0
 - 3.10.0
 - 3.9.0
 - 3.8.0
 - 3.7.2-SNAPSHOT
 - 3.6.0
 - 3.4.1
 - 3.3.1
 - 3.2.17
 
public static final class AnalyzerOrgPolicyConstraint.CustomConstraint.Builder extends GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.CustomConstraint.Builder> implements AnalyzerOrgPolicyConstraint.CustomConstraintOrBuilderThe definition of a custom constraint.
 Protobuf type google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnalyzerOrgPolicyConstraint.CustomConstraint.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description | 
Descriptor | 
        
Methods
addAllMethodTypes(Iterable<? extends AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType> values)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder addAllMethodTypes(Iterable<? extends AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType> values)All the operations being applied for this constraint.
 
 repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
 
| Name | Description | 
values | 
        Iterable<? extends com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType>The methodTypes to add.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
addAllMethodTypesValue(Iterable<Integer> values)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder addAllMethodTypesValue(Iterable<Integer> values)All the operations being applied for this constraint.
 
 repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
 
| Name | Description | 
values | 
        Iterable<Integer>The enum numeric values on the wire for methodTypes to add.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
addAllResourceTypes(Iterable<String> values)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder addAllResourceTypes(Iterable<String> values)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;
| Name | Description | 
values | 
        Iterable<String>The resourceTypes to add.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
addMethodTypes(AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder addMethodTypes(AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType value)All the operations being applied for this constraint.
 
 repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
 
| Name | Description | 
value | 
        AnalyzerOrgPolicyConstraint.CustomConstraint.MethodTypeThe methodTypes to add.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
addMethodTypesValue(int value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder addMethodTypesValue(int value)All the operations being applied for this constraint.
 
 repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
 
| Name | Description | 
value | 
        intThe enum numeric value on the wire for methodTypes to add.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        
addResourceTypes(String value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder addResourceTypes(String value)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;
| Name | Description | 
value | 
        StringThe resourceTypes to add.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
addResourceTypesBytes(ByteString value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder addResourceTypesBytes(ByteString value)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;
| Name | Description | 
value | 
        ByteStringThe bytes of the resourceTypes to add.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
build()
public AnalyzerOrgPolicyConstraint.CustomConstraint build()| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint | 
        
buildPartial()
public AnalyzerOrgPolicyConstraint.CustomConstraint buildPartial()| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint | 
        
clear()
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder clear()| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        
clearActionType()
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder clearActionType()Allow or deny type.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;
 
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
clearCondition()
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder clearCondition() Organization Policy condition/expression. For example:
 resource.instanceName.matches("[production|test].*(\d)+")' or,
 resource.management.auto_upgrade == true
 string condition = 4;
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
clearDescription()
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder clearDescription()Detailed information about this custom policy constraint.
 string description = 7;
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
clearDisplayName()
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder clearDisplayName()One line display name for the UI.
 string display_name = 6;
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
clearField(Descriptors.FieldDescriptor field)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description | 
field | 
        FieldDescriptor | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        
clearMethodTypes()
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder clearMethodTypes()All the operations being applied for this constraint.
 
 repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
 
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
clearName()
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder clearName()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;
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
clearOneof(Descriptors.OneofDescriptor oneof)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        
clearResourceTypes()
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder clearResourceTypes()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;
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
clone()
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder clone()| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        
getActionType()
public AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType getActionType()Allow or deny type.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;
 
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType | 
        The actionType.  | 
      
getActionTypeValue()
public int getActionTypeValue()Allow or deny type.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;
 
| Type | Description | 
int | 
        The enum numeric value on the wire for actionType.  | 
      
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;
| Type | Description | 
String | 
        The condition.  | 
      
getConditionBytes()
public ByteString getConditionBytes() Organization Policy condition/expression. For example:
 resource.instanceName.matches("[production|test].*(\d)+")' or,
 resource.management.auto_upgrade == true
 string condition = 4;
| Type | Description | 
ByteString | 
        The bytes for condition.  | 
      
getDefaultInstanceForType()
public AnalyzerOrgPolicyConstraint.CustomConstraint getDefaultInstanceForType()| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint | 
        
getDescription()
public String getDescription()Detailed information about this custom policy constraint.
 string description = 7;
| Type | Description | 
String | 
        The description.  | 
      
getDescriptionBytes()
public ByteString getDescriptionBytes()Detailed information about this custom policy constraint.
 string description = 7;
| Type | Description | 
ByteString | 
        The bytes for description.  | 
      
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description | 
Descriptor | 
        
getDisplayName()
public String getDisplayName()One line display name for the UI.
 string display_name = 6;
| Type | Description | 
String | 
        The displayName.  | 
      
getDisplayNameBytes()
public ByteString getDisplayNameBytes()One line display name for the UI.
 string display_name = 6;
| Type | Description | 
ByteString | 
        The bytes for displayName.  | 
      
getMethodTypes(int index)
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;
 
| Name | Description | 
index | 
        intThe index of the element to return.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType | 
        The methodTypes at the given index.  | 
      
getMethodTypesCount()
public int getMethodTypesCount()All the operations being applied for this constraint.
 
 repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
 
| Type | Description | 
int | 
        The count of methodTypes.  | 
      
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;
 
| Type | Description | 
List<MethodType> | 
        A list containing the methodTypes.  | 
      
getMethodTypesValue(int index)
public int getMethodTypesValue(int index)All the operations being applied for this constraint.
 
 repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
 
| Name | Description | 
index | 
        intThe index of the value to return.  | 
      
| Type | Description | 
int | 
        The enum numeric value on the wire of 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;
 
| Type | Description | 
List<Integer> | 
        A list containing the enum numeric values on the wire for methodTypes.  | 
      
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;
| Type | Description | 
String | 
        The name.  | 
      
getNameBytes()
public 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;
| Type | Description | 
ByteString | 
        The bytes for name.  | 
      
getResourceTypes(int index)
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;
| Name | Description | 
index | 
        intThe index of the element to return.  | 
      
| Type | Description | 
String | 
        The resourceTypes at the given index.  | 
      
getResourceTypesBytes(int index)
public 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;
| Name | Description | 
index | 
        intThe index of the value to return.  | 
      
| Type | Description | 
ByteString | 
        The bytes of the resourceTypes at the given index.  | 
      
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;
| Type | Description | 
int | 
        The count of resourceTypes.  | 
      
getResourceTypesList()
public 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;
| Type | Description | 
ProtocolStringList | 
        A list containing the resourceTypes.  | 
      
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description | 
FieldAccessorTable | 
        
isInitialized()
public final boolean isInitialized()| Type | Description | 
boolean | 
        
mergeFrom(AnalyzerOrgPolicyConstraint.CustomConstraint other)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder mergeFrom(AnalyzerOrgPolicyConstraint.CustomConstraint other)| Name | Description | 
other | 
        AnalyzerOrgPolicyConstraint.CustomConstraint | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description | 
input | 
        CodedInputStream | 
      
extensionRegistry | 
        ExtensionRegistryLite | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        
| Type | Description | 
IOException | 
        
mergeFrom(Message other)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder mergeFrom(Message other)| Name | Description | 
other | 
        Message | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnalyzerOrgPolicyConstraint.CustomConstraint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        
setActionType(AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder setActionType(AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType value)Allow or deny type.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;
 
| Name | Description | 
value | 
        AnalyzerOrgPolicyConstraint.CustomConstraint.ActionTypeThe actionType to set.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
setActionTypeValue(int value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder setActionTypeValue(int value)Allow or deny type.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;
 
| Name | Description | 
value | 
        intThe enum numeric value on the wire for actionType to set.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
setCondition(String value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder setCondition(String value) Organization Policy condition/expression. For example:
 resource.instanceName.matches("[production|test].*(\d)+")' or,
 resource.management.auto_upgrade == true
 string condition = 4;
| Name | Description | 
value | 
        StringThe condition to set.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
setConditionBytes(ByteString value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder setConditionBytes(ByteString value) Organization Policy condition/expression. For example:
 resource.instanceName.matches("[production|test].*(\d)+")' or,
 resource.management.auto_upgrade == true
 string condition = 4;
| Name | Description | 
value | 
        ByteStringThe bytes for condition to set.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
setDescription(String value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder setDescription(String value)Detailed information about this custom policy constraint.
 string description = 7;
| Name | Description | 
value | 
        StringThe description to set.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
setDescriptionBytes(ByteString value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder setDescriptionBytes(ByteString value)Detailed information about this custom policy constraint.
 string description = 7;
| Name | Description | 
value | 
        ByteStringThe bytes for description to set.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
setDisplayName(String value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder setDisplayName(String value)One line display name for the UI.
 string display_name = 6;
| Name | Description | 
value | 
        StringThe displayName to set.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
setDisplayNameBytes(ByteString value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder setDisplayNameBytes(ByteString value)One line display name for the UI.
 string display_name = 6;
| Name | Description | 
value | 
        ByteStringThe bytes for displayName to set.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
setField(Descriptors.FieldDescriptor field, Object value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        
setMethodTypes(int index, AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder setMethodTypes(int index, AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType value)All the operations being applied for this constraint.
 
 repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
 
| Name | Description | 
index | 
        intThe index to set the value at.  | 
      
value | 
        AnalyzerOrgPolicyConstraint.CustomConstraint.MethodTypeThe methodTypes to set.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
setMethodTypesValue(int index, int value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder setMethodTypesValue(int index, int value)All the operations being applied for this constraint.
 
 repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
 
| Name | Description | 
index | 
        intThe index to set the value at.  | 
      
value | 
        intThe enum numeric value on the wire for methodTypes to set.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
setName(String value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder setName(String value)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;
| Name | Description | 
value | 
        StringThe name to set.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
setNameBytes(ByteString value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder setNameBytes(ByteString value)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;
| Name | Description | 
value | 
        ByteStringThe bytes for name to set.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        
setResourceTypes(int index, String value)
public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder setResourceTypes(int index, String value)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;
| Name | Description | 
index | 
        intThe index to set the value at.  | 
      
value | 
        StringThe resourceTypes to set.  | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder | 
        This builder for chaining.  | 
      
setUnknownFields(UnknownFieldSet unknownFields)
public final AnalyzerOrgPolicyConstraint.CustomConstraint.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Type | Description | 
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder |