Class FetchGitAheadBehindRequest.Builder (0.82.0)

public static final class FetchGitAheadBehindRequest.Builder extends GeneratedMessage.Builder<FetchGitAheadBehindRequest.Builder> implements FetchGitAheadBehindRequestOrBuilder

FetchGitAheadBehind request message.

Protobuf type google.cloud.dataform.v1.FetchGitAheadBehindRequest

Static Methods

getDescriptor()

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

Methods

build()

public FetchGitAheadBehindRequest build()
Returns
Type Description
FetchGitAheadBehindRequest

buildPartial()

public FetchGitAheadBehindRequest buildPartial()
Returns
Type Description
FetchGitAheadBehindRequest

clear()

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

clearName()

public FetchGitAheadBehindRequest.Builder clearName()

Required. The workspace's name.

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

Returns
Type Description
FetchGitAheadBehindRequest.Builder

This builder for chaining.

clearRemoteBranch()

public FetchGitAheadBehindRequest.Builder clearRemoteBranch()

Optional. The name of the branch in the Git remote against which this workspace should be compared. If left unset, the repository's default branch name will be used.

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

Returns
Type Description
FetchGitAheadBehindRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public FetchGitAheadBehindRequest getDefaultInstanceForType()
Returns
Type Description
FetchGitAheadBehindRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The workspace's name.

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's name.

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

Returns
Type Description
ByteString

The bytes for name.

getRemoteBranch()

public String getRemoteBranch()

Optional. The name of the branch in the Git remote against which this workspace should be compared. If left unset, the repository's default branch name will be used.

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

Returns
Type Description
String

The remoteBranch.

getRemoteBranchBytes()

public ByteString getRemoteBranchBytes()

Optional. The name of the branch in the Git remote against which this workspace should be compared. If left unset, the repository's default branch name will be used.

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

Returns
Type Description
ByteString

The bytes for remoteBranch.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchGitAheadBehindRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public FetchGitAheadBehindRequest.Builder setName(String value)

Required. The workspace's name.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
FetchGitAheadBehindRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public FetchGitAheadBehindRequest.Builder setNameBytes(ByteString value)

Required. The workspace's name.

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

This builder for chaining.

setRemoteBranch(String value)

public FetchGitAheadBehindRequest.Builder setRemoteBranch(String value)

Optional. The name of the branch in the Git remote against which this workspace should be compared. If left unset, the repository's default branch name will be used.

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

Parameter
Name Description
value String

The remoteBranch to set.

Returns
Type Description
FetchGitAheadBehindRequest.Builder

This builder for chaining.

setRemoteBranchBytes(ByteString value)

public FetchGitAheadBehindRequest.Builder setRemoteBranchBytes(ByteString value)

Optional. The name of the branch in the Git remote against which this workspace should be compared. If left unset, the repository's default branch name will be used.

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

Parameter
Name Description
value ByteString

The bytes for remoteBranch to set.

Returns
Type Description
FetchGitAheadBehindRequest.Builder

This builder for chaining.