Class SCMCommit (0.60.0)

public final class SCMCommit extends GeneratedMessage implements SCMCommitOrBuilder

SCMCommit represents commit metadata.

Protobuf type google.cloud.developerconnect.v1.SCMCommit

Implements

SCMCommitOrBuilder

Static Fields

AUTHOR_EMAIL_FIELD_NUMBER

public static final int AUTHOR_EMAIL_FIELD_NUMBER
Field Value
Type Description
int

AUTHOR_FIELD_NUMBER

public static final int AUTHOR_FIELD_NUMBER
Field Value
Type Description
int

COMMIT_TIME_FIELD_NUMBER

public static final int COMMIT_TIME_FIELD_NUMBER
Field Value
Type Description
int

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

SHA_FIELD_NUMBER

public static final int SHA_FIELD_NUMBER
Field Value
Type Description
int

URL_FIELD_NUMBER

public static final int URL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SCMCommit getDefaultInstance()
Returns
Type Description
SCMCommit

getDescriptor()

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

newBuilder()

public static SCMCommit.Builder newBuilder()
Returns
Type Description
SCMCommit.Builder

newBuilder(SCMCommit prototype)

public static SCMCommit.Builder newBuilder(SCMCommit prototype)
Parameter
Name Description
prototype SCMCommit
Returns
Type Description
SCMCommit.Builder

parseDelimitedFrom(InputStream input)

public static SCMCommit parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SCMCommit
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SCMCommit parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SCMCommit
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SCMCommit parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SCMCommit
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SCMCommit parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SCMCommit
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SCMCommit parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SCMCommit
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SCMCommit parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SCMCommit
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SCMCommit parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SCMCommit
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SCMCommit parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SCMCommit
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SCMCommit parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SCMCommit
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SCMCommit parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SCMCommit
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SCMCommit parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SCMCommit
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SCMCommit parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SCMCommit
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SCMCommit> parser()
Returns
Type Description
Parser<SCMCommit>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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

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.

getParserForType()

public Parser<SCMCommit> getParserForType()
Returns
Type Description
Parser<SCMCommit>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SCMCommit.Builder newBuilderForType()
Returns
Type Description
SCMCommit.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected SCMCommit.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SCMCommit.Builder
Overrides

toBuilder()

public SCMCommit.Builder toBuilder()
Returns
Type Description
SCMCommit.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException