Class UpdateCustomConstraintRequest.Builder (2.94.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class UpdateCustomConstraintRequest.Builder extends GeneratedMessage.Builder<UpdateCustomConstraintRequest.Builder> implements UpdateCustomConstraintRequestOrBuilder
The request sent to the [UpdateCustomConstraintRequest]
[google.cloud.orgpolicy.v2.OrgPolicy.UpdateCustomConstraint] method.
Protobuf type google.cloud.orgpolicy.v2.UpdateCustomConstraintRequest
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public UpdateCustomConstraintRequest build()
buildPartial()
public UpdateCustomConstraintRequest buildPartial()
clear()
public UpdateCustomConstraintRequest.Builder clear()
Overrides
clearCustomConstraint()
public UpdateCustomConstraintRequest.Builder clearCustomConstraint()
Required. CustomConstraint to update.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];
getCustomConstraint()
public CustomConstraint getCustomConstraint()
Required. CustomConstraint to update.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];
getCustomConstraintBuilder()
public CustomConstraint.Builder getCustomConstraintBuilder()
Required. CustomConstraint to update.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];
getCustomConstraintOrBuilder()
public CustomConstraintOrBuilder getCustomConstraintOrBuilder()
Required. CustomConstraint to update.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public UpdateCustomConstraintRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
hasCustomConstraint()
public boolean hasCustomConstraint()
Required. CustomConstraint to update.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
boolean |
Whether the customConstraint field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeCustomConstraint(CustomConstraint value)
public UpdateCustomConstraintRequest.Builder mergeCustomConstraint(CustomConstraint value)
Required. CustomConstraint to update.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];
mergeFrom(UpdateCustomConstraintRequest other)
public UpdateCustomConstraintRequest.Builder mergeFrom(UpdateCustomConstraintRequest other)
public UpdateCustomConstraintRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UpdateCustomConstraintRequest.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
setCustomConstraint(CustomConstraint value)
public UpdateCustomConstraintRequest.Builder setCustomConstraint(CustomConstraint value)
Required. CustomConstraint to update.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];
setCustomConstraint(CustomConstraint.Builder builderForValue)
public UpdateCustomConstraintRequest.Builder setCustomConstraint(CustomConstraint.Builder builderForValue)
Required. CustomConstraint to update.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-08-04 UTC.
[null,null,["Last updated 2026-08-04 UTC."],[],[]]