Class PullGitCommitsRequest.Builder (0.2.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PullGitCommitsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PullGitCommitsRequest.Builder
Overrides

build()

public PullGitCommitsRequest build()
Returns
TypeDescription
PullGitCommitsRequest

buildPartial()

public PullGitCommitsRequest buildPartial()
Returns
TypeDescription
PullGitCommitsRequest

clear()

public PullGitCommitsRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
PullGitCommitsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public PullGitCommitsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
PullGitCommitsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PullGitCommitsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
PullGitCommitsRequest.Builder

This builder for chaining.

clone()

public PullGitCommitsRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CommitAuthorOrBuilder

getDefaultInstanceForType()

public PullGitCommitsRequest getDefaultInstanceForType()
Returns
TypeDescription
PullGitCommitsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The workspace's name.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the author field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCommitAuthor
Returns
TypeDescription
PullGitCommitsRequest.Builder

mergeFrom(PullGitCommitsRequest other)

public PullGitCommitsRequest.Builder mergeFrom(PullGitCommitsRequest other)
Parameter
NameDescription
otherPullGitCommitsRequest
Returns
TypeDescription
PullGitCommitsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PullGitCommitsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PullGitCommitsRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PullGitCommitsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PullGitCommitsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PullGitCommitsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueCommitAuthor
Returns
TypeDescription
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
NameDescription
builderForValueCommitAuthor.Builder
Returns
TypeDescription
PullGitCommitsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PullGitCommitsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The remoteBranch to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for remoteBranch to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PullGitCommitsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PullGitCommitsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PullGitCommitsRequest.Builder
Overrides