Class CommitMetadata.Builder (0.34.0)

public static final class CommitMetadata.Builder extends GeneratedMessageV3.Builder<CommitMetadata.Builder> implements CommitMetadataOrBuilder

Represents a Dataform Git commit.

Protobuf type google.cloud.dataform.v1beta1.CommitMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CommitMetadata build()
Returns
Type Description
CommitMetadata

buildPartial()

public CommitMetadata buildPartial()
Returns
Type Description
CommitMetadata

clear()

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

clearAuthor()

public CommitMetadata.Builder clearAuthor()

Required. The commit's author.

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

Returns
Type Description
CommitMetadata.Builder

clearCommitMessage()

public CommitMetadata.Builder clearCommitMessage()

Optional. The commit's message.

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

Returns
Type Description
CommitMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAuthor()

public CommitAuthor getAuthor()

Required. The commit's author.

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

Returns
Type Description
CommitAuthor

The author.

getAuthorBuilder()

public CommitAuthor.Builder getAuthorBuilder()

Required. The commit's author.

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

Returns
Type Description
CommitAuthor.Builder

getAuthorOrBuilder()

public CommitAuthorOrBuilder getAuthorOrBuilder()

Required. The commit's author.

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

Returns
Type Description
CommitAuthorOrBuilder

getCommitMessage()

public String getCommitMessage()

Optional. The commit's message.

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

Returns
Type Description
String

The commitMessage.

getCommitMessageBytes()

public ByteString getCommitMessageBytes()

Optional. The commit's message.

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

Returns
Type Description
ByteString

The bytes for commitMessage.

getDefaultInstanceForType()

public CommitMetadata getDefaultInstanceForType()
Returns
Type Description
CommitMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

hasAuthor()

public boolean hasAuthor()

Required. The commit's author.

.google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.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 CommitMetadata.Builder mergeAuthor(CommitAuthor value)

Required. The commit's author.

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

Parameter
Name Description
value CommitAuthor
Returns
Type Description
CommitMetadata.Builder

mergeFrom(CommitMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAuthor(CommitAuthor value)

public CommitMetadata.Builder setAuthor(CommitAuthor value)

Required. The commit's author.

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

Parameter
Name Description
value CommitAuthor
Returns
Type Description
CommitMetadata.Builder

setAuthor(CommitAuthor.Builder builderForValue)

public CommitMetadata.Builder setAuthor(CommitAuthor.Builder builderForValue)

Required. The commit's author.

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

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

setCommitMessage(String value)

public CommitMetadata.Builder setCommitMessage(String value)

Optional. The commit's message.

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

Parameter
Name Description
value String

The commitMessage to set.

Returns
Type Description
CommitMetadata.Builder

This builder for chaining.

setCommitMessageBytes(ByteString value)

public CommitMetadata.Builder setCommitMessageBytes(ByteString value)

Optional. The commit's message.

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

Parameter
Name Description
value ByteString

The bytes for commitMessage to set.

Returns
Type Description
CommitMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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