Class Repository.Builder (3.25.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Repository.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Repository.Builder
Overrides

build()

public Repository build()
Returns
TypeDescription
Repository

buildPartial()

public Repository buildPartial()
Returns
TypeDescription
Repository

clear()

public Repository.Builder clear()
Returns
TypeDescription
Repository.Builder
Overrides

clearAnnotations()

public Repository.Builder clearAnnotations()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Repository.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Repository.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Repository.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Repository.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Repository.Builder
Overrides

clearRemoteUri()

public Repository.Builder clearRemoteUri()

Required. Git Clone HTTPS URI.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Repository.Builder

This builder for chaining.

clone()

public Repository.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations()

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 6;

Returns
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 6;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Repository getDefaultInstanceForType()
Returns
TypeDescription
Repository

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for etag.

getMutableAnnotations()

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getRemoteUri()

public String getRemoteUri()

Required. Git Clone HTTPS URI.

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

Returns
TypeDescription
String

The remoteUri.

getRemoteUriBytes()

public ByteString getRemoteUriBytes()

Required. Git Clone HTTPS URI.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Repository.Builder

mergeFrom(Repository other)

public Repository.Builder mergeFrom(Repository other)
Parameter
NameDescription
otherRepository
Returns
TypeDescription
Repository.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Repository.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Repository.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Repository.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Repository.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Repository.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The etag to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
Repository.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Repository.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The remoteUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for remoteUri to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Repository.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Repository.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The webhookId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for webhookId to set.

Returns
TypeDescription
Repository.Builder

This builder for chaining.