Class Repository (3.43.0)

publicfinalclass RepositoryextendsGeneratedMessageV3implementsRepositoryOrBuilder

A repository associated to a parent connection.

Protobuf type google.devtools.cloudbuild.v2.Repository

Implements

RepositoryOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

ANNOTATIONS_FIELD_NUMBER

publicstaticfinalintANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

publicstaticfinalintCREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

ETAG_FIELD_NUMBER

publicstaticfinalintETAG_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

REMOTE_URI_FIELD_NUMBER

publicstaticfinalintREMOTE_URI_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

publicstaticfinalintUPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

WEBHOOK_ID_FIELD_NUMBER

publicstaticfinalintWEBHOOK_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticRepositorygetDefaultInstance()
Returns
Type Description
Repository

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticRepository.BuildernewBuilder()
Returns
Type Description
Repository.Builder

newBuilder(Repository prototype)

publicstaticRepository.BuildernewBuilder(Repositoryprototype)
Parameter
Name Description
prototype Repository
Returns
Type Description
Repository.Builder

parseDelimitedFrom(InputStream input)

publicstaticRepositoryparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Repository
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticRepositoryparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Repository
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticRepositoryparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Repository
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticRepositoryparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Repository
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticRepositoryparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Repository
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticRepositoryparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Repository
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticRepositoryparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Repository
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticRepositoryparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Repository
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticRepositoryparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Repository
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticRepositoryparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Repository
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticRepositoryparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Repository
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticRepositoryparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Repository
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<Repository>parser()
Returns
Type Description
Parser<Repository>

Methods

containsAnnotations(String key)

publicbooleancontainsAnnotations(Stringkey)

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 6;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAnnotations() (deprecated)

publicMap<String,String>getAnnotations()

Use #getAnnotationsMap() instead.

Returns
Type Description
Map<String,String>

getAnnotationsCount()

publicintgetAnnotationsCount()

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 6;

Returns
Type Description
int

getAnnotationsMap()

publicMap<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)

publicStringgetAnnotationsOrDefault(Stringkey,StringdefaultValue)

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)

publicStringgetAnnotationsOrThrow(Stringkey)

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 6;

Parameter
Name Description
key String
Returns
Type Description
String

getCreateTime()

publicTimestampgetCreateTime()

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.

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

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()

publicRepositorygetDefaultInstanceForType()
Returns
Type Description
Repository

getEtag()

publicStringgetEtag()

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()

publicByteStringgetEtagBytes()

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.

getName()

publicStringgetName()

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()

publicByteStringgetNameBytes()

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.

getParserForType()

publicParser<Repository>getParserForType()
Returns
Type Description
Parser<Repository>
Overrides

getRemoteUri()

publicStringgetRemoteUri()

Required. Git Clone HTTPS URI.

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

Returns
Type Description
String

The remoteUri.

getRemoteUriBytes()

publicByteStringgetRemoteUriBytes()

Required. Git Clone HTTPS URI.

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

Returns
Type Description
ByteString

The bytes for remoteUri.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUpdateTime()

publicTimestampgetUpdateTime()

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.

getUpdateTimeOrBuilder()

publicTimestampOrBuildergetUpdateTimeOrBuilder()

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()

publicStringgetWebhookId()

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()

publicByteStringgetWebhookIdBytes()

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()

publicbooleanhasCreateTime()

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()

publicbooleanhasUpdateTime()

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.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protectedMapFieldReflectionAccessorinternalGetMapFieldReflection(intnumber)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicRepository.BuildernewBuilderForType()
Returns
Type Description
Repository.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedRepository.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Repository.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicRepository.BuildertoBuilder()
Returns
Type Description
Repository.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.