Class GitReference (0.3.0)

public final class GitReference extends GeneratedMessage implements GitReferenceOrBuilder

The Git reference. Can be a commit SHA, branch name, or tag name.

Protobuf type google.cloud.designcenter.v1.GitReference

Static Fields

BRANCH_FIELD_NUMBER

public static final int BRANCH_FIELD_NUMBER
Field Value
Type Description
int

COMMIT_SHA_FIELD_NUMBER

public static final int COMMIT_SHA_FIELD_NUMBER
Field Value
Type Description
int

REF_TAG_FIELD_NUMBER

public static final int REF_TAG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GitReference getDefaultInstance()
Returns
Type Description
GitReference

getDescriptor()

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

newBuilder()

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

newBuilder(GitReference prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBranch()

public String getBranch()

Optional. The name of the branch from which content should be read. For example: "main"

string branch = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The branch.

getBranchBytes()

public ByteString getBranchBytes()

Optional. The name of the branch from which content should be read. For example: "main"

string branch = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for branch.

getCommitSha()

public String getCommitSha()

Optional. The full SHA hash of a specific commit from which content should be read.

string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The commitSha.

getCommitShaBytes()

public ByteString getCommitShaBytes()

Optional. The full SHA hash of a specific commit from which content should be read.

string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for commitSha.

getDefaultInstanceForType()

public GitReference getDefaultInstanceForType()
Returns
Type Description
GitReference

getParserForType()

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

getRefTag()

public String getRefTag()

Optional. The reference tag from which content should be read. For example: "v1.2.3"

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

Returns
Type Description
String

The refTag.

getRefTagBytes()

public ByteString getRefTagBytes()

Optional. The reference tag from which content should be read. For example: "v1.2.3"

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

Returns
Type Description
ByteString

The bytes for refTag.

getReferenceCase()

public GitReference.ReferenceCase getReferenceCase()
Returns
Type Description
GitReference.ReferenceCase

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasBranch()

public boolean hasBranch()

Optional. The name of the branch from which content should be read. For example: "main"

string branch = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the branch field is set.

hasCommitSha()

public boolean hasCommitSha()

Optional. The full SHA hash of a specific commit from which content should be read.

string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the commitSha field is set.

hasRefTag()

public boolean hasRefTag()

Optional. The reference tag from which content should be read. For example: "v1.2.3"

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

Returns
Type Description
boolean

Whether the refTag 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 GitReference.Builder newBuilderForType()
Returns
Type Description
GitReference.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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