public static final class DeleteBranchRequest.Builder extends GeneratedMessage.Builder<DeleteBranchRequest.Builder> implements DeleteBranchRequestOrBuilder DeleteBranch request message.
Protobuf type google.cloud.dataform.v1beta1.DeleteBranchRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DeleteBranchRequest.BuilderImplements
DeleteBranchRequestOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DeleteBranchRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DeleteBranchRequest.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
booleanThe 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 |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
DeleteBranchRequest.Builder |
This builder for chaining. |