Package com.google.cloud.asset.v1
Class AnalyzerOrgPolicyConstraint.Constraint.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.Builder
- All Implemented Interfaces:
AnalyzerOrgPolicyConstraint.ConstraintOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnalyzerOrgPolicyConstraint.Constraint
public static final class AnalyzerOrgPolicyConstraint.Constraint.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
implements AnalyzerOrgPolicyConstraint.ConstraintOrBuilder
The definition of a constraint.Protobuf type
google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Defines this constraint as being a BooleanConstraint.The evaluation behavior of this constraint in the absence of 'Policy'.Detailed description of what this `Constraint` controls as well as how and where it is enforced.The human readable name of the constraint.Defines this constraint as being a ListConstraint.The unique name of the constraint.Defines this constraint as being a BooleanConstraint.Defines this constraint as being a BooleanConstraint.Defines this constraint as being a BooleanConstraint.The evaluation behavior of this constraint in the absence of 'Policy'.intThe evaluation behavior of this constraint in the absence of 'Policy'.Detailed description of what this `Constraint` controls as well as how and where it is enforced.com.google.protobuf.ByteStringDetailed description of what this `Constraint` controls as well as how and where it is enforced.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe human readable name of the constraint.com.google.protobuf.ByteStringThe human readable name of the constraint.Defines this constraint as being a ListConstraint.Defines this constraint as being a ListConstraint.Defines this constraint as being a ListConstraint.getName()The unique name of the constraint.com.google.protobuf.ByteStringThe unique name of the constraint.booleanDefines this constraint as being a BooleanConstraint.booleanDefines this constraint as being a ListConstraint.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanDefines this constraint as being a BooleanConstraint.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Defines this constraint as being a ListConstraint.Defines this constraint as being a BooleanConstraint.setBooleanConstraint(AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint.Builder builderForValue) Defines this constraint as being a BooleanConstraint.The evaluation behavior of this constraint in the absence of 'Policy'.setConstraintDefaultValue(int value) The evaluation behavior of this constraint in the absence of 'Policy'.setDescription(String value) Detailed description of what this `Constraint` controls as well as how and where it is enforced.setDescriptionBytes(com.google.protobuf.ByteString value) Detailed description of what this `Constraint` controls as well as how and where it is enforced.setDisplayName(String value) The human readable name of the constraint.setDisplayNameBytes(com.google.protobuf.ByteString value) The human readable name of the constraint.Defines this constraint as being a ListConstraint.Defines this constraint as being a ListConstraint.The unique name of the constraint.setNameBytes(com.google.protobuf.ByteString value) The unique name of the constraint.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
mergeFrom
public AnalyzerOrgPolicyConstraint.Constraint.Builder mergeFrom(AnalyzerOrgPolicyConstraint.Constraint other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
mergeFrom
public AnalyzerOrgPolicyConstraint.Constraint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>- Throws:
IOException
-
getConstraintTypeCase
- Specified by:
getConstraintTypeCasein interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder
-
clearConstraintType
-
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:
getNamein 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:
getNameBytesin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The bytes for name.
-
setName
The unique name of the constraint. Format of the name should be * `constraints/{constraint_name}` For example, `constraints/compute.disableSerialPortAccess`.string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The unique name of the constraint. Format of the name should be * `constraints/{constraint_name}` For example, `constraints/compute.disableSerialPortAccess`.string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public AnalyzerOrgPolicyConstraint.Constraint.Builder setNameBytes(com.google.protobuf.ByteString value) The unique name of the constraint. Format of the name should be * `constraints/{constraint_name}` For example, `constraints/compute.disableSerialPortAccess`.string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
The human readable name of the constraint.
string display_name = 2;- Specified by:
getDisplayNamein 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:
getDisplayNameBytesin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
The human readable name of the constraint.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
The human readable name of the constraint.
string display_name = 2;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public AnalyzerOrgPolicyConstraint.Constraint.Builder setDisplayNameBytes(com.google.protobuf.ByteString value) The human readable name of the constraint.
string display_name = 2;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDescription
Detailed description of what this `Constraint` controls as well as how and where it is enforced.
string description = 3;- Specified by:
getDescriptionin 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:
getDescriptionBytesin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The bytes for description.
-
setDescription
Detailed description of what this `Constraint` controls as well as how and where it is enforced.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Detailed description of what this `Constraint` controls as well as how and where it is enforced.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public AnalyzerOrgPolicyConstraint.Constraint.Builder setDescriptionBytes(com.google.protobuf.ByteString value) Detailed description of what this `Constraint` controls as well as how and where it is enforced.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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:
getConstraintDefaultValuein interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The enum numeric value on the wire for constraintDefault.
-
setConstraintDefaultValue
The evaluation behavior of this constraint in the absence of 'Policy'.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;- Parameters:
value- The enum numeric value on the wire for constraintDefault to set.- Returns:
- This builder for chaining.
-
getConstraintDefault
The evaluation behavior of this constraint in the absence of 'Policy'.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;- Specified by:
getConstraintDefaultin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The constraintDefault.
-
setConstraintDefault
public AnalyzerOrgPolicyConstraint.Constraint.Builder setConstraintDefault(AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault value) The evaluation behavior of this constraint in the absence of 'Policy'.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;- Parameters:
value- The constraintDefault to set.- Returns:
- This builder for chaining.
-
clearConstraintDefault
The evaluation behavior of this constraint in the absence of 'Policy'.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;- Returns:
- This builder for chaining.
-
hasListConstraint
public boolean hasListConstraint()Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;- Specified by:
hasListConstraintin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- Whether the listConstraint field is set.
-
getListConstraint
Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;- Specified by:
getListConstraintin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The listConstraint.
-
setListConstraint
public AnalyzerOrgPolicyConstraint.Constraint.Builder setListConstraint(AnalyzerOrgPolicyConstraint.Constraint.ListConstraint value) Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5; -
setListConstraint
public AnalyzerOrgPolicyConstraint.Constraint.Builder setListConstraint(AnalyzerOrgPolicyConstraint.Constraint.ListConstraint.Builder builderForValue) Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5; -
mergeListConstraint
public AnalyzerOrgPolicyConstraint.Constraint.Builder mergeListConstraint(AnalyzerOrgPolicyConstraint.Constraint.ListConstraint value) Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5; -
clearListConstraint
Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5; -
getListConstraintBuilder
Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5; -
getListConstraintOrBuilder
Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;- Specified by:
getListConstraintOrBuilderin 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:
hasBooleanConstraintin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- Whether the booleanConstraint field is set.
-
getBooleanConstraint
Defines this constraint as being a BooleanConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;- Specified by:
getBooleanConstraintin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder- Returns:
- The booleanConstraint.
-
setBooleanConstraint
public AnalyzerOrgPolicyConstraint.Constraint.Builder setBooleanConstraint(AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint value) Defines this constraint as being a BooleanConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6; -
setBooleanConstraint
public AnalyzerOrgPolicyConstraint.Constraint.Builder setBooleanConstraint(AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint.Builder builderForValue) Defines this constraint as being a BooleanConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6; -
mergeBooleanConstraint
public AnalyzerOrgPolicyConstraint.Constraint.Builder mergeBooleanConstraint(AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint value) Defines this constraint as being a BooleanConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6; -
clearBooleanConstraint
Defines this constraint as being a BooleanConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6; -
getBooleanConstraintBuilder
public AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint.Builder getBooleanConstraintBuilder()Defines this constraint as being a BooleanConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6; -
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:
getBooleanConstraintOrBuilderin interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder
-