Class PushGitCommitsRequest.Builder (0.2.1)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PushGitCommitsRequest build()
Returns
TypeDescription
PushGitCommitsRequest

buildPartial()

public PushGitCommitsRequest buildPartial()
Returns
TypeDescription
PushGitCommitsRequest

clear()

public PushGitCommitsRequest.Builder clear()
Returns
TypeDescription
PushGitCommitsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public PushGitCommitsRequest.Builder clone()
Returns
TypeDescription
PushGitCommitsRequest.Builder
Overrides

getDefaultInstanceForType()

public PushGitCommitsRequest getDefaultInstanceForType()
Returns
TypeDescription
PushGitCommitsRequest

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

The bytes for remoteBranch.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PushGitCommitsRequest other)

public PushGitCommitsRequest.Builder mergeFrom(PushGitCommitsRequest other)
Parameter
NameDescription
otherPushGitCommitsRequest
Returns
TypeDescription
PushGitCommitsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PushGitCommitsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PushGitCommitsRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

The remoteBranch to set.

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

The bytes for remoteBranch to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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