Interface CheckoutWorkspaceBranchRequestOrBuilder (0.98.0)

public interface CheckoutWorkspaceBranchRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBranch()

public abstract String getBranch()

Required. The name of the branch in the Git repository to which the workspace should be checked out.

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

Returns
Type Description
String

The branch.

getBranchBytes()

public abstract ByteString getBranchBytes()

Required. The name of the branch in the Git repository to which the workspace should be checked out.

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

Returns
Type Description
ByteString

The bytes for branch.

getCreateIfNotExists()

public abstract boolean getCreateIfNotExists()

Optional. If set to true and the branch does not exist, it will be created. Otherwise, an error will be thrown.

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

Returns
Type Description
boolean

The createIfNotExists.

getName()

public abstract 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 abstract 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.

getSourceBranch()

public abstract String getSourceBranch()

Optional. The name of the branch in the Git repository from which the new branch should be created. If left unset, the workspace's current branch name will be used. Accepts only branch names from FetchWorkspaceBranches response, and can only be set if create_if_not_exists is true. Oherwise, an error will be thrown.

string source_branch = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The sourceBranch.

getSourceBranchBytes()

public abstract ByteString getSourceBranchBytes()

Optional. The name of the branch in the Git repository from which the new branch should be created. If left unset, the workspace's current branch name will be used. Accepts only branch names from FetchWorkspaceBranches response, and can only be set if create_if_not_exists is true. Oherwise, an error will be thrown.

string source_branch = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for sourceBranch.