Class SyncWorkspaceRefsRequest.Builder (0.98.0)

public static final class SyncWorkspaceRefsRequest.Builder extends GeneratedMessage.Builder<SyncWorkspaceRefsRequest.Builder> implements SyncWorkspaceRefsRequestOrBuilder

SyncWorkspaceRefs request message.

Protobuf type google.cloud.dataform.v1beta1.SyncWorkspaceRefsRequest

Static Methods

getDescriptor()

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

Methods

build()

public SyncWorkspaceRefsRequest build()
Returns
Type Description
SyncWorkspaceRefsRequest

buildPartial()

public SyncWorkspaceRefsRequest buildPartial()
Returns
Type Description
SyncWorkspaceRefsRequest

clear()

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

clearDeepen()

public SyncWorkspaceRefsRequest.Builder clearDeepen()

Optional. Can be used to deepen the commit history of shallow clones. Git documentation: https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt---deependepth

int32 deepen = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SyncWorkspaceRefsRequest.Builder

This builder for chaining.

clearName()

public SyncWorkspaceRefsRequest.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
SyncWorkspaceRefsRequest.Builder

This builder for chaining.

clearRemoteBranchName()

public SyncWorkspaceRefsRequest.Builder clearRemoteBranchName()

Optional. The name of the branch in the Git remote to which the refs should be fetched for. If left unset, all remote branches will be fetched.

string remote_branch_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SyncWorkspaceRefsRequest.Builder

This builder for chaining.

getDeepen()

public int getDeepen()

Optional. Can be used to deepen the commit history of shallow clones. Git documentation: https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt---deependepth

int32 deepen = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The deepen.

getDefaultInstanceForType()

public SyncWorkspaceRefsRequest getDefaultInstanceForType()
Returns
Type Description
SyncWorkspaceRefsRequest

getDescriptorForType()

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

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.

getRemoteBranchName()

public String getRemoteBranchName()

Optional. The name of the branch in the Git remote to which the refs should be fetched for. If left unset, all remote branches will be fetched.

string remote_branch_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The remoteBranchName.

getRemoteBranchNameBytes()

public ByteString getRemoteBranchNameBytes()

Optional. The name of the branch in the Git remote to which the refs should be fetched for. If left unset, all remote branches will be fetched.

string remote_branch_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for remoteBranchName.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SyncWorkspaceRefsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDeepen(int value)

public SyncWorkspaceRefsRequest.Builder setDeepen(int value)

Optional. Can be used to deepen the commit history of shallow clones. Git documentation: https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt---deependepth

int32 deepen = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The deepen to set.

Returns
Type Description
SyncWorkspaceRefsRequest.Builder

This builder for chaining.

setName(String value)

public SyncWorkspaceRefsRequest.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
SyncWorkspaceRefsRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SyncWorkspaceRefsRequest.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
SyncWorkspaceRefsRequest.Builder

This builder for chaining.

setRemoteBranchName(String value)

public SyncWorkspaceRefsRequest.Builder setRemoteBranchName(String value)

Optional. The name of the branch in the Git remote to which the refs should be fetched for. If left unset, all remote branches will be fetched.

string remote_branch_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The remoteBranchName to set.

Returns
Type Description
SyncWorkspaceRefsRequest.Builder

This builder for chaining.

setRemoteBranchNameBytes(ByteString value)

public SyncWorkspaceRefsRequest.Builder setRemoteBranchNameBytes(ByteString value)

Optional. The name of the branch in the Git remote to which the refs should be fetched for. If left unset, all remote branches will be fetched.

string remote_branch_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for remoteBranchName to set.

Returns
Type Description
SyncWorkspaceRefsRequest.Builder

This builder for chaining.