public static final class SCMCommit.Builder extends GeneratedMessage.Builder<SCMCommit.Builder> implements SCMCommitOrBuilderSCMCommit represents commit metadata.
Protobuf type google.cloud.developerconnect.v1.SCMCommit
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SCMCommit.BuilderImplements
SCMCommitOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SCMCommit build()| Returns | |
|---|---|
| Type | Description |
SCMCommit |
|
buildPartial()
public SCMCommit buildPartial()| Returns | |
|---|---|
| Type | Description |
SCMCommit |
|
clear()
public SCMCommit.Builder clear()| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
|
clearAuthor()
public SCMCommit.Builder clearAuthor()The author's display name.
string author = 3;
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
This builder for chaining. |
clearAuthorEmail()
public SCMCommit.Builder clearAuthorEmail()The author's email address.
string author_email = 4;
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
This builder for chaining. |
clearCommitTime()
public SCMCommit.Builder clearCommitTime()Timestamp when the commit was authored.
.google.protobuf.Timestamp commit_time = 5;
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
|
clearMessage()
public SCMCommit.Builder clearMessage()Commit message text.
string message = 2;
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
This builder for chaining. |
clearSha()
public SCMCommit.Builder clearSha()Full 40-character SCM commit SHA.
string sha = 1;
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
This builder for chaining. |
clearUrl()
public SCMCommit.Builder clearUrl()The SCM provider's HTML URL link for this commit.
string url = 6;
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
This builder for chaining. |
getAuthor()
public String getAuthor()The author's display name.
string author = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The author. |
getAuthorBytes()
public ByteString getAuthorBytes()The author's display name.
string author = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for author. |
getAuthorEmail()
public String getAuthorEmail()The author's email address.
string author_email = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The authorEmail. |
getAuthorEmailBytes()
public ByteString getAuthorEmailBytes()The author's email address.
string author_email = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for authorEmail. |
getCommitTime()
public Timestamp getCommitTime()Timestamp when the commit was authored.
.google.protobuf.Timestamp commit_time = 5;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The commitTime. |
getCommitTimeBuilder()
public Timestamp.Builder getCommitTimeBuilder()Timestamp when the commit was authored.
.google.protobuf.Timestamp commit_time = 5;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCommitTimeOrBuilder()
public TimestampOrBuilder getCommitTimeOrBuilder()Timestamp when the commit was authored.
.google.protobuf.Timestamp commit_time = 5;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public SCMCommit getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SCMCommit |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMessage()
public String getMessage()Commit message text.
string message = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The message. |
getMessageBytes()
public ByteString getMessageBytes()Commit message text.
string message = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for message. |
getSha()
public String getSha()Full 40-character SCM commit SHA.
string sha = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The sha. |
getShaBytes()
public ByteString getShaBytes()Full 40-character SCM commit SHA.
string sha = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for sha. |
getUrl()
public String getUrl()The SCM provider's HTML URL link for this commit.
string url = 6;
| Returns | |
|---|---|
| Type | Description |
String |
The url. |
getUrlBytes()
public ByteString getUrlBytes()The SCM provider's HTML URL link for this commit.
string url = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for url. |
hasCommitTime()
public boolean hasCommitTime()Timestamp when the commit was authored.
.google.protobuf.Timestamp commit_time = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the commitTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCommitTime(Timestamp value)
public SCMCommit.Builder mergeCommitTime(Timestamp value)Timestamp when the commit was authored.
.google.protobuf.Timestamp commit_time = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
|
mergeFrom(SCMCommit other)
public SCMCommit.Builder mergeFrom(SCMCommit other)| Parameter | |
|---|---|
| Name | Description |
other |
SCMCommit |
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SCMCommit.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SCMCommit.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
|
setAuthor(String value)
public SCMCommit.Builder setAuthor(String value)The author's display name.
string author = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe author to set. |
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
This builder for chaining. |
setAuthorBytes(ByteString value)
public SCMCommit.Builder setAuthorBytes(ByteString value)The author's display name.
string author = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for author to set. |
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
This builder for chaining. |
setAuthorEmail(String value)
public SCMCommit.Builder setAuthorEmail(String value)The author's email address.
string author_email = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe authorEmail to set. |
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
This builder for chaining. |
setAuthorEmailBytes(ByteString value)
public SCMCommit.Builder setAuthorEmailBytes(ByteString value)The author's email address.
string author_email = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for authorEmail to set. |
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
This builder for chaining. |
setCommitTime(Timestamp value)
public SCMCommit.Builder setCommitTime(Timestamp value)Timestamp when the commit was authored.
.google.protobuf.Timestamp commit_time = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
|
setCommitTime(Timestamp.Builder builderForValue)
public SCMCommit.Builder setCommitTime(Timestamp.Builder builderForValue)Timestamp when the commit was authored.
.google.protobuf.Timestamp commit_time = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
|
setMessage(String value)
public SCMCommit.Builder setMessage(String value)Commit message text.
string message = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe message to set. |
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
This builder for chaining. |
setMessageBytes(ByteString value)
public SCMCommit.Builder setMessageBytes(ByteString value)Commit message text.
string message = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for message to set. |
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
This builder for chaining. |
setSha(String value)
public SCMCommit.Builder setSha(String value)Full 40-character SCM commit SHA.
string sha = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sha to set. |
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
This builder for chaining. |
setShaBytes(ByteString value)
public SCMCommit.Builder setShaBytes(ByteString value)Full 40-character SCM commit SHA.
string sha = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sha to set. |
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
This builder for chaining. |
setUrl(String value)
public SCMCommit.Builder setUrl(String value)The SCM provider's HTML URL link for this commit.
string url = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe url to set. |
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
This builder for chaining. |
setUrlBytes(ByteString value)
public SCMCommit.Builder setUrlBytes(ByteString value)The SCM provider's HTML URL link for this commit.
string url = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for url to set. |
| Returns | |
|---|---|
| Type | Description |
SCMCommit.Builder |
This builder for chaining. |