Class FetchGitAheadBehindRequest.Builder (0.47.0)

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

FetchGitAheadBehind request message.

Protobuf type google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FetchGitAheadBehindRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FetchGitAheadBehindRequest.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public FetchGitAheadBehindRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public FetchGitAheadBehindRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FetchGitAheadBehindRequest.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FetchGitAheadBehindRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FetchGitAheadBehindRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FetchGitAheadBehindRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FetchGitAheadBehindRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FetchGitAheadBehindRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FetchGitAheadBehindRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FetchGitAheadBehindRequest.Builder
Overrides