Class DeleteBranchRuleRequest.Builder (0.53.0)

public static final class DeleteBranchRuleRequest.Builder extends GeneratedMessage.Builder<DeleteBranchRuleRequest.Builder> implements DeleteBranchRuleRequestOrBuilder

DeleteBranchRuleRequest is the request to delete a branch rule.

Protobuf type google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public DeleteBranchRuleRequest build()
Returns
Type Description
DeleteBranchRuleRequest

buildPartial()

public DeleteBranchRuleRequest buildPartial()
Returns
Type Description
DeleteBranchRuleRequest

clear()

public DeleteBranchRuleRequest.Builder clear()
Returns
Type Description
DeleteBranchRuleRequest.Builder
Overrides

clearAllowMissing()

public DeleteBranchRuleRequest.Builder clearAllowMissing()

Optional. If set to true, and the branch rule is not found, the request will succeed but no action will be taken on the server.

bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeleteBranchRuleRequest.Builder

This builder for chaining.

clearName()

public DeleteBranchRuleRequest.Builder clearName()

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

Returns
Type Description
DeleteBranchRuleRequest.Builder

This builder for chaining.

getAllowMissing()

public boolean getAllowMissing()

Optional. If set to true, and the branch rule is not found, the request will succeed but no action will be taken on the server.

bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The allowMissing.

getDefaultInstanceForType()

public DeleteBranchRuleRequest getDefaultInstanceForType()
Returns
Type Description
DeleteBranchRuleRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeleteBranchRuleRequest other)

public DeleteBranchRuleRequest.Builder mergeFrom(DeleteBranchRuleRequest other)
Parameter
Name Description
other DeleteBranchRuleRequest
Returns
Type Description
DeleteBranchRuleRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeleteBranchRuleRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeleteBranchRuleRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DeleteBranchRuleRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DeleteBranchRuleRequest.Builder
Overrides

setAllowMissing(boolean value)

public DeleteBranchRuleRequest.Builder setAllowMissing(boolean value)

Optional. If set to true, and the branch rule is not found, the request will succeed but no action will be taken on the server.

bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The allowMissing to set.

Returns
Type Description
DeleteBranchRuleRequest.Builder

This builder for chaining.

setName(String value)

public DeleteBranchRuleRequest.Builder setName(String value)

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeleteBranchRuleRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteBranchRuleRequest.Builder setNameBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DeleteBranchRuleRequest.Builder

This builder for chaining.