Class PushGitCommitsRequest.Builder (0.23.0)

public static final class PushGitCommitsRequest.Builder extends GeneratedMessageV3.Builder<PushGitCommitsRequest.Builder> implements PushGitCommitsRequestOrBuilder

PushGitCommits request message.

Protobuf type google.cloud.dataform.v1beta1.PushGitCommitsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PushGitCommitsRequest build()
Returns
Type Description
PushGitCommitsRequest

buildPartial()

public PushGitCommitsRequest buildPartial()
Returns
Type Description
PushGitCommitsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public PushGitCommitsRequest.Builder clearName()

Required. The workspace's name.

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

Returns
Type Description
PushGitCommitsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRemoteBranch()

public PushGitCommitsRequest.Builder clearRemoteBranch()

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

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

Returns
Type Description
PushGitCommitsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public PushGitCommitsRequest getDefaultInstanceForType()
Returns
Type Description
PushGitCommitsRequest

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 to which commits should be pushed. 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 to which commits should be pushed. 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(PushGitCommitsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

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

This builder for chaining.

setNameBytes(ByteString value)

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

This builder for chaining.

setRemoteBranch(String value)

public PushGitCommitsRequest.Builder setRemoteBranch(String value)

Optional. The name of the branch in the Git remote to which commits should be pushed. 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
PushGitCommitsRequest.Builder

This builder for chaining.

setRemoteBranchBytes(ByteString value)

public PushGitCommitsRequest.Builder setRemoteBranchBytes(ByteString value)

Optional. The name of the branch in the Git remote to which commits should be pushed. 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
PushGitCommitsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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