public static final class Ref.Builder extends GeneratedMessage.Builder<Ref.Builder> implements RefOrBuilderRef represents a git reference within a repository.
Protobuf type google.cloud.securesourcemanager.v1.Ref
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Ref.BuilderImplements
RefOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Ref build()| Returns | |
|---|---|
| Type | Description |
Ref |
|
buildPartial()
public Ref buildPartial()| Returns | |
|---|---|
| Type | Description |
Ref |
|
clear()
public Ref.Builder clear()| Returns | |
|---|---|
| Type | Description |
Ref.Builder |
|
clearName()
public Ref.Builder clearName()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 |
Ref.Builder |
This builder for chaining. |
clearTarget()
public Ref.Builder clearTarget()Output only. The target of the reference, which is a commit SHA.
string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Ref.Builder |
This builder for chaining. |
clearType()
public Ref.Builder clearType()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.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Ref getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Ref |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Ref other)
public Ref.Builder mergeFrom(Ref other)| Parameter | |
|---|---|
| Name | Description |
other |
Ref |
| Returns | |
|---|---|
| Type | Description |
Ref.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Ref.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Ref.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Ref.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Ref.Builder |
|
setName(String value)
public Ref.Builder setName(String value)Identifier. Name of the git reference (e.g., 'refs/heads/foo' or 'refs/tags/v1.0').
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Ref.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Ref.Builder setNameBytes(ByteString value)Identifier. Name of the git reference (e.g., 'refs/heads/foo' or 'refs/tags/v1.0').
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Ref.Builder |
This builder for chaining. |
setTarget(String value)
public Ref.Builder setTarget(String value)Output only. The target of the reference, which is a commit SHA.
string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe target to set. |
| Returns | |
|---|---|
| Type | Description |
Ref.Builder |
This builder for chaining. |
setTargetBytes(ByteString value)
public Ref.Builder setTargetBytes(ByteString value)Output only. The target of the reference, which is a commit SHA.
string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for target to set. |
| Returns | |
|---|---|
| Type | Description |
Ref.Builder |
This builder for chaining. |
setType(Ref.RefType value)
public Ref.Builder setType(Ref.RefType value)Output only. The type of the reference.
.google.cloud.securesourcemanager.v1.Ref.RefType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Ref.RefTypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
Ref.Builder |
This builder for chaining. |
setTypeValue(int value)
public Ref.Builder setTypeValue(int value)Output only. The type of the reference.
.google.cloud.securesourcemanager.v1.Ref.RefType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
Ref.Builder |
This builder for chaining. |