Class Repository.Builder (3.50.0)

public static final class Repository.Builder extends GeneratedMessageV3.Builder<Repository.Builder> implements RepositoryOrBuilder

A repository associated to a parent connection.

Protobuf type google.devtools.cloudbuild.v2.Repository

Implements

RepositoryOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Repository.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Repository.Builder
Overrides

build()

public Repository build()
Returns
Type Description
Repository

buildPartial()

public Repository buildPartial()
Returns
Type Description
Repository

clear()

public Repository.Builder clear()
Returns
Type Description
Repository.Builder
Overrides

clearAnnotations()

public Repository.Builder clearAnnotations()
Returns
Type Description
Repository.Builder

clearCreateTime()

public Repository.Builder clearCreateTime()

Output only. Server assigned timestamp for when the connection was created.

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

Returns
Type Description
Repository.Builder

clearEtag()

public Repository.Builder clearEtag()

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;

Returns
Type Description
Repository.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Repository.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Repository.Builder
Overrides

clearName()

public Repository.Builder clearName()

Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.

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

Returns
Type Description
Repository.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRemoteUri()

public Repository.Builder clearRemoteUri()

Required. Git Clone HTTPS URI.

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

Returns
Type Description
Repository.Builder

This builder for chaining.

clearUpdateTime()

public Repository.Builder clearUpdateTime()

Output only. Server assigned timestamp for when the connection was updated.

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

Returns
Type Description
Repository.Builder

clearWebhookId()

public Repository.Builder clearWebhookId()

Output only. External ID of the webhook created for the repository.

string webhook_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Repository.Builder

This builder for chaining.

clone()

public Repository.Builder clone()
Returns
Type Description
Repository.Builder
Overrides

containsAnnotations(String key)

public boolean containsAnnotations(String key)

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 6;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAnnotations() (deprecated)

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
Type Description
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 6;

Returns
Type Description
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 6;

Returns
Type Description
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 6;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 6;

Parameter
Name Description
key String
Returns
Type Description
String

getCreateTime()

public Timestamp getCreateTime()

Output only. Server assigned timestamp for when the connection was created.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Server assigned timestamp for when the connection was created.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Server assigned timestamp for when the connection was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Repository getDefaultInstanceForType()
Returns
Type Description
Repository

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEtag()

public String getEtag()

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;

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

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;

Returns
Type Description
ByteString

The bytes for etag.

getMutableAnnotations() (deprecated)

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.

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

Returns
Type Description
ByteString

The bytes for name.

getRemoteUri()

public String getRemoteUri()

Required. Git Clone HTTPS URI.

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

Returns
Type Description
String

The remoteUri.

getRemoteUriBytes()

public ByteString getRemoteUriBytes()

Required. Git Clone HTTPS URI.

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

Returns
Type Description
ByteString

The bytes for remoteUri.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Server assigned timestamp for when the connection was updated.

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Server assigned timestamp for when the connection was updated.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Server assigned timestamp for when the connection was updated.

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

Returns
Type Description
TimestampOrBuilder

getWebhookId()

public String getWebhookId()

Output only. External ID of the webhook created for the repository.

string webhook_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The webhookId.

getWebhookIdBytes()

public ByteString getWebhookIdBytes()

Output only. External ID of the webhook created for the repository.

string webhook_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for webhookId.

hasCreateTime()

public boolean hasCreateTime()

Output only. Server assigned timestamp for when the connection was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Server assigned timestamp for when the connection was updated.

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

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

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)

internalGetMutableMapFieldReflection(int number)

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)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Repository.Builder mergeCreateTime(Timestamp value)

Output only. Server assigned timestamp for when the connection was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Repository.Builder

mergeFrom(Repository other)

public Repository.Builder mergeFrom(Repository other)
Parameter
Name Description
other Repository
Returns
Type Description
Repository.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Repository.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Repository.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Repository.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Repository.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Repository.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Repository.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Repository.Builder mergeUpdateTime(Timestamp value)

Output only. Server assigned timestamp for when the connection was updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Repository.Builder

putAllAnnotations(Map<String,String> values)

public Repository.Builder putAllAnnotations(Map<String,String> values)

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 6;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Repository.Builder

putAnnotations(String key, String value)

public Repository.Builder putAnnotations(String key, String value)

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 6;

Parameters
Name Description
key String
value String
Returns
Type Description
Repository.Builder

removeAnnotations(String key)

public Repository.Builder removeAnnotations(String key)

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 6;

Parameter
Name Description
key String
Returns
Type Description
Repository.Builder

setCreateTime(Timestamp value)

public Repository.Builder setCreateTime(Timestamp value)

Output only. Server assigned timestamp for when the connection was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Repository.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Repository.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Server assigned timestamp for when the connection was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Repository.Builder

setEtag(String value)

public Repository.Builder setEtag(String value)

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;

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Repository.Builder setEtagBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Repository.Builder setName(String value)

Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Repository.Builder setNameBytes(ByteString value)

Immutable. Resource name of the repository, in the format projects/*/locations/*/connections/*/repositories/*.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setRemoteUri(String value)

public Repository.Builder setRemoteUri(String value)

Required. Git Clone HTTPS URI.

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

Parameter
Name Description
value String

The remoteUri to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setRemoteUriBytes(ByteString value)

public Repository.Builder setRemoteUriBytes(ByteString value)

Required. Git Clone HTTPS URI.

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

Parameter
Name Description
value ByteString

The bytes for remoteUri to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Repository.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Repository.Builder
Overrides

setUpdateTime(Timestamp value)

public Repository.Builder setUpdateTime(Timestamp value)

Output only. Server assigned timestamp for when the connection was updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Repository.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Repository.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Server assigned timestamp for when the connection was updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Repository.Builder

setWebhookId(String value)

public Repository.Builder setWebhookId(String value)

Output only. External ID of the webhook created for the repository.

string webhook_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The webhookId to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setWebhookIdBytes(ByteString value)

public Repository.Builder setWebhookIdBytes(ByteString value)

Output only. External ID of the webhook created for the repository.

string webhook_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for webhookId to set.

Returns
Type Description
Repository.Builder

This builder for chaining.