Class DeleteCustomConstraintRequest.Builder (2.37.0)

public static final class DeleteCustomConstraintRequest.Builder extends GeneratedMessageV3.Builder<DeleteCustomConstraintRequest.Builder> implements DeleteCustomConstraintRequestOrBuilder

The request sent to the [DeleteCustomConstraint] [google.cloud.orgpolicy.v2.OrgPolicy.DeleteCustomConstraint] method.

Protobuf type google.cloud.orgpolicy.v2.DeleteCustomConstraintRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeleteCustomConstraintRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeleteCustomConstraintRequest.Builder
Overrides

build()

public DeleteCustomConstraintRequest build()
Returns
TypeDescription
DeleteCustomConstraintRequest

buildPartial()

public DeleteCustomConstraintRequest buildPartial()
Returns
TypeDescription
DeleteCustomConstraintRequest

clear()

public DeleteCustomConstraintRequest.Builder clear()
Returns
TypeDescription
DeleteCustomConstraintRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DeleteCustomConstraintRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DeleteCustomConstraintRequest.Builder
Overrides

clearName()

public DeleteCustomConstraintRequest.Builder clearName()

Required. Name of the custom constraint to delete. See the custom constraint entry for naming rules.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
DeleteCustomConstraintRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DeleteCustomConstraintRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DeleteCustomConstraintRequest.Builder
Overrides

clone()

public DeleteCustomConstraintRequest.Builder clone()
Returns
TypeDescription
DeleteCustomConstraintRequest.Builder
Overrides

getDefaultInstanceForType()

public DeleteCustomConstraintRequest getDefaultInstanceForType()
Returns
TypeDescription
DeleteCustomConstraintRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. Name of the custom constraint to delete. See the custom constraint entry for naming rules.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the custom constraint to delete. See the custom constraint entry for naming rules.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeleteCustomConstraintRequest other)

public DeleteCustomConstraintRequest.Builder mergeFrom(DeleteCustomConstraintRequest other)
Parameter
NameDescription
otherDeleteCustomConstraintRequest
Returns
TypeDescription
DeleteCustomConstraintRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeleteCustomConstraintRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeleteCustomConstraintRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DeleteCustomConstraintRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DeleteCustomConstraintRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeleteCustomConstraintRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeleteCustomConstraintRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DeleteCustomConstraintRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeleteCustomConstraintRequest.Builder
Overrides

setName(String value)

public DeleteCustomConstraintRequest.Builder setName(String value)

Required. Name of the custom constraint to delete. See the custom constraint entry for naming rules.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DeleteCustomConstraintRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteCustomConstraintRequest.Builder setNameBytes(ByteString value)

Required. Name of the custom constraint to delete. See the custom constraint entry for naming rules.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DeleteCustomConstraintRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DeleteCustomConstraintRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DeleteCustomConstraintRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DeleteCustomConstraintRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeleteCustomConstraintRequest.Builder
Overrides