Class GitSourceContext (2.1.3)

public final class GitSourceContext extends GeneratedMessageV3 implements GitSourceContextOrBuilder

A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub).

Protobuf type grafeas.v1.GitSourceContext

Fields

REVISION_ID_FIELD_NUMBER

public static final int REVISION_ID_FIELD_NUMBER
Field Value
TypeDescription
int

URL_FIELD_NUMBER

public static final int URL_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstance()

public static GitSourceContext getDefaultInstance()
Returns
TypeDescription
GitSourceContext

getDefaultInstanceForType()

public GitSourceContext getDefaultInstanceForType()
Returns
TypeDescription
GitSourceContext

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getParserForType()

public Parser<GitSourceContext> getParserForType()
Returns
TypeDescription
Parser<GitSourceContext>
Overrides

getRevisionId()

public String getRevisionId()

Git commit hash.

string revision_id = 2;

Returns
TypeDescription
String

The revisionId.

getRevisionIdBytes()

public ByteString getRevisionIdBytes()

Git commit hash.

string revision_id = 2;

Returns
TypeDescription
ByteString

The bytes for revisionId.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUrl()

public String getUrl()

Git repository URL.

string url = 1;

Returns
TypeDescription
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

Git repository URL.

string url = 1;

Returns
TypeDescription
ByteString

The bytes for url.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilder()

public static GitSourceContext.Builder newBuilder()
Returns
TypeDescription
GitSourceContext.Builder

newBuilder(GitSourceContext prototype)

public static GitSourceContext.Builder newBuilder(GitSourceContext prototype)
Parameter
NameDescription
prototypeGitSourceContext
Returns
TypeDescription
GitSourceContext.Builder

newBuilderForType()

public GitSourceContext.Builder newBuilderForType()
Returns
TypeDescription
GitSourceContext.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GitSourceContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GitSourceContext.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

parseDelimitedFrom(InputStream input)

public static GitSourceContext parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GitSourceContext
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GitSourceContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitSourceContext
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GitSourceContext parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GitSourceContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GitSourceContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitSourceContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GitSourceContext parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GitSourceContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GitSourceContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitSourceContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GitSourceContext parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GitSourceContext
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GitSourceContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitSourceContext
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GitSourceContext parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GitSourceContext
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GitSourceContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitSourceContext
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GitSourceContext parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GitSourceContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GitSourceContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitSourceContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GitSourceContext> parser()
Returns
TypeDescription
Parser<GitSourceContext>

toBuilder()

public GitSourceContext.Builder toBuilder()
Returns
TypeDescription
GitSourceContext.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException