Class PullGitCommitsRequest.Builder (0.46.0)

public static final class PullGitCommitsRequest.Builder extends GeneratedMessageV3.Builder<PullGitCommitsRequest.Builder> implements PullGitCommitsRequestOrBuilder

PullGitCommits request message.

Protobuf type google.cloud.dataform.v1beta1.PullGitCommitsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PullGitCommitsRequest build()
Returns
Type Description
PullGitCommitsRequest

buildPartial()

public PullGitCommitsRequest buildPartial()
Returns
Type Description
PullGitCommitsRequest

clear()

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

clearAuthor()

public PullGitCommitsRequest.Builder clearAuthor()

Required. The author of any merge commit which may be created as a result of merging fetched Git commits into this workspace.

.google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PullGitCommitsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public PullGitCommitsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PullGitCommitsRequest.Builder
Overrides

clearName()

public PullGitCommitsRequest.Builder clearName()

Required. The workspace's name.

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

Returns
Type Description
PullGitCommitsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRemoteBranch()

public PullGitCommitsRequest.Builder clearRemoteBranch()

Optional. The name of the branch in the Git remote from which to pull commits. If left unset, the repository's default branch name will be used.

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

Returns
Type Description
PullGitCommitsRequest.Builder

This builder for chaining.

clone()

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

getAuthor()

public CommitAuthor getAuthor()

Required. The author of any merge commit which may be created as a result of merging fetched Git commits into this workspace.

.google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CommitAuthor

The author.

getAuthorBuilder()

public CommitAuthor.Builder getAuthorBuilder()

Required. The author of any merge commit which may be created as a result of merging fetched Git commits into this workspace.

.google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CommitAuthor.Builder

getAuthorOrBuilder()

public CommitAuthorOrBuilder getAuthorOrBuilder()

Required. The author of any merge commit which may be created as a result of merging fetched Git commits into this workspace.

.google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CommitAuthorOrBuilder

getDefaultInstanceForType()

public PullGitCommitsRequest getDefaultInstanceForType()
Returns
Type Description
PullGitCommitsRequest

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 from which to pull commits. 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 from which to pull commits. 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.

hasAuthor()

public boolean hasAuthor()

Required. The author of any merge commit which may be created as a result of merging fetched Git commits into this workspace.

.google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the author field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAuthor(CommitAuthor value)

public PullGitCommitsRequest.Builder mergeAuthor(CommitAuthor value)

Required. The author of any merge commit which may be created as a result of merging fetched Git commits into this workspace.

.google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CommitAuthor
Returns
Type Description
PullGitCommitsRequest.Builder

mergeFrom(PullGitCommitsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAuthor(CommitAuthor value)

public PullGitCommitsRequest.Builder setAuthor(CommitAuthor value)

Required. The author of any merge commit which may be created as a result of merging fetched Git commits into this workspace.

.google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CommitAuthor
Returns
Type Description
PullGitCommitsRequest.Builder

setAuthor(CommitAuthor.Builder builderForValue)

public PullGitCommitsRequest.Builder setAuthor(CommitAuthor.Builder builderForValue)

Required. The author of any merge commit which may be created as a result of merging fetched Git commits into this workspace.

.google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CommitAuthor.Builder
Returns
Type Description
PullGitCommitsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

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

This builder for chaining.

setNameBytes(ByteString value)

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

This builder for chaining.

setRemoteBranch(String value)

public PullGitCommitsRequest.Builder setRemoteBranch(String value)

Optional. The name of the branch in the Git remote from which to pull commits. 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
PullGitCommitsRequest.Builder

This builder for chaining.

setRemoteBranchBytes(ByteString value)

public PullGitCommitsRequest.Builder setRemoteBranchBytes(ByteString value)

Optional. The name of the branch in the Git remote from which to pull commits. 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
PullGitCommitsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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