Class DeleteBranchRequest.Builder (0.98.0)

public static final class DeleteBranchRequest.Builder extends GeneratedMessage.Builder<DeleteBranchRequest.Builder> implements DeleteBranchRequestOrBuilder

DeleteBranch request message.

Protobuf type google.cloud.dataform.v1beta1.DeleteBranchRequest

Static Methods

getDescriptor()

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

Methods

build()

public DeleteBranchRequest build()
Returns
Type Description
DeleteBranchRequest

buildPartial()

public DeleteBranchRequest buildPartial()
Returns
Type Description
DeleteBranchRequest

clear()

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

clearBranch()

public DeleteBranchRequest.Builder clearBranch()

Required. The name of the branch in the Git repository to delete.

string branch = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeleteBranchRequest.Builder

This builder for chaining.

clearForce()

public DeleteBranchRequest.Builder clearForce()

Optional. If set to true, any non-pushed commits on the branch will be deleted. Upstream branch name will be the same as the branch to delete.

bool force = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeleteBranchRequest.Builder

This builder for chaining.

clearName()

public DeleteBranchRequest.Builder clearName()

Required. The workspace resource name. Format: projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}

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

Returns
Type Description
DeleteBranchRequest.Builder

This builder for chaining.

getBranch()

public String getBranch()

Required. The name of the branch in the Git repository to delete.

string branch = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The branch.

getBranchBytes()

public ByteString getBranchBytes()

Required. The name of the branch in the Git repository to delete.

string branch = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for branch.

getDefaultInstanceForType()

public DeleteBranchRequest getDefaultInstanceForType()
Returns
Type Description
DeleteBranchRequest

getDescriptorForType()

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

getForce()

public boolean getForce()

Optional. If set to true, any non-pushed commits on the branch will be deleted. Upstream branch name will be the same as the branch to delete.

bool force = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The force.

getName()

public String getName()

Required. The workspace resource name. Format: projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The workspace resource name. Format: projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}

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(DeleteBranchRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBranch(String value)

public DeleteBranchRequest.Builder setBranch(String value)

Required. The name of the branch in the Git repository to delete.

string branch = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The branch to set.

Returns
Type Description
DeleteBranchRequest.Builder

This builder for chaining.

setBranchBytes(ByteString value)

public DeleteBranchRequest.Builder setBranchBytes(ByteString value)

Required. The name of the branch in the Git repository to delete.

string branch = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for branch to set.

Returns
Type Description
DeleteBranchRequest.Builder

This builder for chaining.

setForce(boolean value)

public DeleteBranchRequest.Builder setForce(boolean value)

Optional. If set to true, any non-pushed commits on the branch will be deleted. Upstream branch name will be the same as the branch to delete.

bool force = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The force to set.

Returns
Type Description
DeleteBranchRequest.Builder

This builder for chaining.

setName(String value)

public DeleteBranchRequest.Builder setName(String value)

Required. The workspace resource name. Format: projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeleteBranchRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteBranchRequest.Builder setNameBytes(ByteString value)

Required. The workspace resource name. Format: projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}

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
DeleteBranchRequest.Builder

This builder for chaining.