Class GitRepositoryLink.Builder (0.8.0)

public static final class GitRepositoryLink.Builder extends GeneratedMessageV3.Builder<GitRepositoryLink.Builder> implements GitRepositoryLinkOrBuilder

Message describing the GitRepositoryLink object

Protobuf type google.cloud.developerconnect.v1.GitRepositoryLink

Static Methods

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

Methods

public GitRepositoryLink.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GitRepositoryLink.Builder
Overrides
public GitRepositoryLink build()
Returns
Type Description
GitRepositoryLink
public GitRepositoryLink buildPartial()
Returns
Type Description
GitRepositoryLink
public GitRepositoryLink.Builder clear()
Returns
Type Description
GitRepositoryLink.Builder
Overrides
public GitRepositoryLink.Builder clearAnnotations()
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder clearCloneUri()

Required. Git Clone URI.

string clone_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GitRepositoryLink.Builder

This builder for chaining.

public GitRepositoryLink.Builder clearCreateTime()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder clearDeleteTime()

Output only. [Output only] Delete timestamp

.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder clearEtag()

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GitRepositoryLink.Builder

This builder for chaining.

public GitRepositoryLink.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GitRepositoryLink.Builder
Overrides
public GitRepositoryLink.Builder clearLabels()
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder clearName()

Identifier. Resource name of the repository, in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

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

Returns
Type Description
GitRepositoryLink.Builder

This builder for chaining.

public GitRepositoryLink.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GitRepositoryLink.Builder
Overrides
public GitRepositoryLink.Builder clearReconciling()

Output only. Set to true when the connection is being set up or updated in the background.

bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GitRepositoryLink.Builder

This builder for chaining.

public GitRepositoryLink.Builder clearUid()

Output only. A system-assigned unique identifier for a the GitRepositoryLink.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
GitRepositoryLink.Builder

This builder for chaining.

public GitRepositoryLink.Builder clearUpdateTime()

Output only. [Output only] Update timestamp

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder clone()
Returns
Type Description
GitRepositoryLink.Builder
Overrides
public boolean containsAnnotations(String key)

Optional. Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean
public boolean containsLabels(String key)

Optional. Labels as key value pairs

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean
public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
Type Description
Map<String,String>
public int getAnnotationsCount()

Optional. Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int
public Map<String,String> getAnnotationsMap()

Optional. Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>
public String getAnnotationsOrDefault(String key, String defaultValue)

Optional. Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String
public String getAnnotationsOrThrow(String key)

Optional. Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String
public String getCloneUri()

Required. Git Clone URI.

string clone_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The cloneUri.

public ByteString getCloneUriBytes()

Required. Git Clone URI.

string clone_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for cloneUri.

public Timestamp getCreateTime()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

public Timestamp.Builder getCreateTimeBuilder()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder
public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder
public GitRepositoryLink getDefaultInstanceForType()
Returns
Type Description
GitRepositoryLink
public Timestamp getDeleteTime()

Output only. [Output only] Delete timestamp

.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The deleteTime.

public Timestamp.Builder getDeleteTimeBuilder()

Output only. [Output only] Delete timestamp

.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder
public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. [Output only] Delete timestamp

.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder
public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
public String getEtag()

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The etag.

public ByteString getEtagBytes()

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for etag.

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>
public int getLabelsCount()

Optional. Labels as key value pairs

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int
public Map<String,String> getLabelsMap()

Optional. Labels as key value pairs

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>
public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels as key value pairs

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String
public String getLabelsOrThrow(String key)

Optional. Labels as key value pairs

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String
public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>
public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>
public String getName()

Identifier. Resource name of the repository, in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

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

Returns
Type Description
String

The name.

public ByteString getNameBytes()

Identifier. Resource name of the repository, in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

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

Returns
Type Description
ByteString

The bytes for name.

public boolean getReconciling()

Output only. Set to true when the connection is being set up or updated in the background.

bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The reconciling.

public String getUid()

Output only. A system-assigned unique identifier for a the GitRepositoryLink.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
String

The uid.

public ByteString getUidBytes()

Output only. A system-assigned unique identifier for a the GitRepositoryLink.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for uid.

public Timestamp getUpdateTime()

Output only. [Output only] Update timestamp

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

public Timestamp.Builder getUpdateTimeBuilder()

Output only. [Output only] Update timestamp

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder
public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. [Output only] Update timestamp

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder
public boolean hasCreateTime()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

public boolean hasDeleteTime()

Output only. [Output only] Delete timestamp

.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the deleteTime field is set.

public boolean hasUpdateTime()

Output only. [Output only] Update timestamp

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public GitRepositoryLink.Builder mergeCreateTime(Timestamp value)

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder mergeDeleteTime(Timestamp value)

Output only. [Output only] Delete timestamp

.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder mergeFrom(GitRepositoryLink other)
Parameter
Name Description
other GitRepositoryLink
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitRepositoryLink.Builder
Overrides
Exceptions
Type Description
IOException
public GitRepositoryLink.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GitRepositoryLink.Builder
Overrides
public final GitRepositoryLink.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GitRepositoryLink.Builder
Overrides
public GitRepositoryLink.Builder mergeUpdateTime(Timestamp value)

Output only. [Output only] Update timestamp

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder putAllAnnotations(Map<String,String> values)

Optional. Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder putAllLabels(Map<String,String> values)

Optional. Labels as key value pairs

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder putAnnotations(String key, String value)

Optional. Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder putLabels(String key, String value)

Optional. Labels as key value pairs

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder removeAnnotations(String key)

Optional. Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder removeLabels(String key)

Optional. Labels as key value pairs

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder setCloneUri(String value)

Required. Git Clone URI.

string clone_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The cloneUri to set.

Returns
Type Description
GitRepositoryLink.Builder

This builder for chaining.

public GitRepositoryLink.Builder setCloneUriBytes(ByteString value)

Required. Git Clone URI.

string clone_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for cloneUri to set.

Returns
Type Description
GitRepositoryLink.Builder

This builder for chaining.

public GitRepositoryLink.Builder setCreateTime(Timestamp value)

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder setDeleteTime(Timestamp value)

Output only. [Output only] Delete timestamp

.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder setDeleteTime(Timestamp.Builder builderForValue)

Output only. [Output only] Delete timestamp

.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder setEtag(String value)

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
GitRepositoryLink.Builder

This builder for chaining.

public GitRepositoryLink.Builder setEtagBytes(ByteString value)

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
GitRepositoryLink.Builder

This builder for chaining.

public GitRepositoryLink.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GitRepositoryLink.Builder
Overrides
public GitRepositoryLink.Builder setName(String value)

Identifier. Resource name of the repository, in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GitRepositoryLink.Builder

This builder for chaining.

public GitRepositoryLink.Builder setNameBytes(ByteString value)

Identifier. Resource name of the repository, in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GitRepositoryLink.Builder

This builder for chaining.

public GitRepositoryLink.Builder setReconciling(boolean value)

Output only. Set to true when the connection is being set up or updated in the background.

bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The reconciling to set.

Returns
Type Description
GitRepositoryLink.Builder

This builder for chaining.

public GitRepositoryLink.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GitRepositoryLink.Builder
Overrides
public GitRepositoryLink.Builder setUid(String value)

Output only. A system-assigned unique identifier for a the GitRepositoryLink.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
GitRepositoryLink.Builder

This builder for chaining.

public GitRepositoryLink.Builder setUidBytes(ByteString value)

Output only. A system-assigned unique identifier for a the GitRepositoryLink.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
GitRepositoryLink.Builder

This builder for chaining.

public final GitRepositoryLink.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GitRepositoryLink.Builder
Overrides
public GitRepositoryLink.Builder setUpdateTime(Timestamp value)

Output only. [Output only] Update timestamp

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
GitRepositoryLink.Builder
public GitRepositoryLink.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Update timestamp

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GitRepositoryLink.Builder