Class OrgPolicyOverlay.CustomConstraintOverlay.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OrgPolicyOverlay.CustomConstraintOverlay.Builder>
com.google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay.Builder
- All Implemented Interfaces:
OrgPolicyOverlay.CustomConstraintOverlayOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OrgPolicyOverlay.CustomConstraintOverlay
public static final class OrgPolicyOverlay.CustomConstraintOverlay.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OrgPolicyOverlay.CustomConstraintOverlay.Builder>
implements OrgPolicyOverlay.CustomConstraintOverlayOrBuilder
A change to an OrgPolicy custom constraint.Protobuf type
google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setCustomConstraint(CustomConstraint.Builder builderForValue) Optional.setCustomConstraintParent(String value) Optional.setCustomConstraintParentBytes(com.google.protobuf.ByteString value) Optional.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<OrgPolicyOverlay.CustomConstraintOverlay.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<OrgPolicyOverlay.CustomConstraintOverlay.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<OrgPolicyOverlay.CustomConstraintOverlay.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
public OrgPolicyOverlay.CustomConstraintOverlay.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OrgPolicyOverlay.CustomConstraintOverlay.Builder>
-
mergeFrom
public OrgPolicyOverlay.CustomConstraintOverlay.Builder mergeFrom(OrgPolicyOverlay.CustomConstraintOverlay other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OrgPolicyOverlay.CustomConstraintOverlay.Builder>
-
mergeFrom
public OrgPolicyOverlay.CustomConstraintOverlay.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<OrgPolicyOverlay.CustomConstraintOverlay.Builder>- Throws:
IOException
-
getCustomConstraintParent
Optional. Resource the constraint is attached to. Example: "organization/987654"
string custom_constraint_parent = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomConstraintParentin interfaceOrgPolicyOverlay.CustomConstraintOverlayOrBuilder- Returns:
- The customConstraintParent.
-
getCustomConstraintParentBytes
public com.google.protobuf.ByteString getCustomConstraintParentBytes()Optional. Resource the constraint is attached to. Example: "organization/987654"
string custom_constraint_parent = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomConstraintParentBytesin interfaceOrgPolicyOverlay.CustomConstraintOverlayOrBuilder- Returns:
- The bytes for customConstraintParent.
-
setCustomConstraintParent
Optional. Resource the constraint is attached to. Example: "organization/987654"
string custom_constraint_parent = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The customConstraintParent to set.- Returns:
- This builder for chaining.
-
clearCustomConstraintParent
Optional. Resource the constraint is attached to. Example: "organization/987654"
string custom_constraint_parent = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setCustomConstraintParentBytes
public OrgPolicyOverlay.CustomConstraintOverlay.Builder setCustomConstraintParentBytes(com.google.protobuf.ByteString value) Optional. Resource the constraint is attached to. Example: "organization/987654"
string custom_constraint_parent = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for customConstraintParent to set.- Returns:
- This builder for chaining.
-
hasCustomConstraint
public boolean hasCustomConstraint()Optional. The new or updated custom constraint.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCustomConstraintin interfaceOrgPolicyOverlay.CustomConstraintOverlayOrBuilder- Returns:
- Whether the customConstraint field is set.
-
getCustomConstraint
Optional. The new or updated custom constraint.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomConstraintin interfaceOrgPolicyOverlay.CustomConstraintOverlayOrBuilder- Returns:
- The customConstraint.
-
setCustomConstraint
Optional. The new or updated custom constraint.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setCustomConstraint
public OrgPolicyOverlay.CustomConstraintOverlay.Builder setCustomConstraint(CustomConstraint.Builder builderForValue) Optional. The new or updated custom constraint.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 2 [(.google.api.field_behavior) = OPTIONAL]; -
mergeCustomConstraint
public OrgPolicyOverlay.CustomConstraintOverlay.Builder mergeCustomConstraint(CustomConstraint value) Optional. The new or updated custom constraint.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearCustomConstraint
Optional. The new or updated custom constraint.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomConstraintBuilder
Optional. The new or updated custom constraint.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomConstraintOrBuilder
Optional. The new or updated custom constraint.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomConstraintOrBuilderin interfaceOrgPolicyOverlay.CustomConstraintOverlayOrBuilder
-