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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder> implements AnalyzerOrgPolicyConstraint.ConstraintOrBuilder
The definition of a constraint.
Protobuf typegoogle.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
getDefaultInstanceForType
public AnalyzerOrgPolicyConstraint.Constraint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AnalyzerOrgPolicyConstraint.Constraint build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AnalyzerOrgPolicyConstraint.Constraint buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AnalyzerOrgPolicyConstraint.Constraint.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
setField
public AnalyzerOrgPolicyConstraint.Constraint.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
clearField
public AnalyzerOrgPolicyConstraint.Constraint.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
clearOneof
public AnalyzerOrgPolicyConstraint.Constraint.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
setRepeatedField
public AnalyzerOrgPolicyConstraint.Constraint.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
addRepeatedField
public AnalyzerOrgPolicyConstraint.Constraint.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
mergeFrom
public AnalyzerOrgPolicyConstraint.Constraint.Builder mergeFrom(com.google.protobuf.Message other)
- 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.GeneratedMessageV3.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
public AnalyzerOrgPolicyConstraint.Constraint.ConstraintTypeCase getConstraintTypeCase()
- Specified by:
getConstraintTypeCasein interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder
-
clearConstraintType
public AnalyzerOrgPolicyConstraint.Constraint.Builder clearConstraintType()
-
getName
public String 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
public AnalyzerOrgPolicyConstraint.Constraint.Builder setName(String 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 name to set.- Returns:
- This builder for chaining.
-
clearName
public AnalyzerOrgPolicyConstraint.Constraint.Builder 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
public String 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
public AnalyzerOrgPolicyConstraint.Constraint.Builder setDisplayName(String value)
The human readable name of the constraint.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public AnalyzerOrgPolicyConstraint.Constraint.Builder 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
public String 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
public AnalyzerOrgPolicyConstraint.Constraint.Builder setDescription(String value)
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
public AnalyzerOrgPolicyConstraint.Constraint.Builder 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
public AnalyzerOrgPolicyConstraint.Constraint.Builder setConstraintDefaultValue(int 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 enum numeric value on the wire for constraintDefault to set.- Returns:
- This builder for chaining.
-
getConstraintDefault
public AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault 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
public AnalyzerOrgPolicyConstraint.Constraint.Builder 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
public AnalyzerOrgPolicyConstraint.Constraint.ListConstraint 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
public AnalyzerOrgPolicyConstraint.Constraint.Builder clearListConstraint()
Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
-
getListConstraintBuilder
public AnalyzerOrgPolicyConstraint.Constraint.ListConstraint.Builder getListConstraintBuilder()
Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
-
getListConstraintOrBuilder
public AnalyzerOrgPolicyConstraint.Constraint.ListConstraintOrBuilder 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
public AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint 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
public AnalyzerOrgPolicyConstraint.Constraint.Builder 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
-
setUnknownFields
public final AnalyzerOrgPolicyConstraint.Constraint.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
mergeUnknownFields
public final AnalyzerOrgPolicyConstraint.Constraint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
-