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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
clear
public AnalyzerOrgPolicyConstraint.Constraint.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
getDefaultInstanceForType
public AnalyzerOrgPolicyConstraint.Constraint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AnalyzerOrgPolicyConstraint.Constraint build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AnalyzerOrgPolicyConstraint.Constraint buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AnalyzerOrgPolicyConstraint.Constraint.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
setField
public AnalyzerOrgPolicyConstraint.Constraint.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
clearField
public AnalyzerOrgPolicyConstraint.Constraint.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
clearOneof
public AnalyzerOrgPolicyConstraint.Constraint.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
addRepeatedField
public AnalyzerOrgPolicyConstraint.Constraint.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
mergeFrom
public AnalyzerOrgPolicyConstraint.Constraint.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
mergeFrom
public AnalyzerOrgPolicyConstraint.Constraint.Builder mergeFrom(AnalyzerOrgPolicyConstraint.Constraint other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
- Throws:
IOException
-
getConstraintTypeCase
public AnalyzerOrgPolicyConstraint.Constraint.ConstraintTypeCase getConstraintTypeCase()
- Specified by:
getConstraintTypeCase
in 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:
getName
in 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:
getNameBytes
in 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:
getDisplayName
in 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:
getDisplayNameBytes
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
getConstraintDefaultValue
in 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:
getConstraintDefault
in 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:
hasListConstraint
in 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:
getListConstraint
in 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:
getListConstraintOrBuilder
in 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:
hasBooleanConstraint
in 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:
getBooleanConstraint
in 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:
getBooleanConstraintOrBuilder
in interfaceAnalyzerOrgPolicyConstraint.ConstraintOrBuilder
-
setUnknownFields
public final AnalyzerOrgPolicyConstraint.Constraint.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
mergeUnknownFields
public final AnalyzerOrgPolicyConstraint.Constraint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder>
-
-