Class Ref (0.69.0)

public final class Ref extends GeneratedMessage implements RefOrBuilder

Ref represents a git reference within a repository.

Protobuf type google.cloud.securesourcemanager.v1.Ref

Implements

RefOrBuilder

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

TARGET_FIELD_NUMBER

public static final int TARGET_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Ref getDefaultInstance()
Returns
Type Description
Ref

getDescriptor()

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

newBuilder()

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

newBuilder(Ref prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Ref getDefaultInstanceForType()
Returns
Type Description
Ref

getName()

public String getName()

Identifier. Name of the git reference (e.g., 'refs/heads/foo' or 'refs/tags/v1.0').

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Name of the git reference (e.g., 'refs/heads/foo' or 'refs/tags/v1.0').

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTarget()

public String getTarget()

Output only. The target of the reference, which is a commit SHA.

string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The target.

getTargetBytes()

public ByteString getTargetBytes()

Output only. The target of the reference, which is a commit SHA.

string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for target.

getType()

public Ref.RefType getType()

Output only. The type of the reference.

.google.cloud.securesourcemanager.v1.Ref.RefType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Ref.RefType

The type.

getTypeValue()

public int getTypeValue()

Output only. The type of the reference.

.google.cloud.securesourcemanager.v1.Ref.RefType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

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 Ref.Builder newBuilderForType()
Returns
Type Description
Ref.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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