Class Repository.Builder (0.24.0)

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

Metadata of a Secure Source Manager repository.

Protobuf type google.cloud.securesourcemanager.v1.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

clearCreateTime()

public Repository.Builder clearCreateTime()

Output only. Create timestamp.

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

Returns
Type Description
Repository.Builder

clearDescription()

public Repository.Builder clearDescription()

Optional. Description of the repository, which cannot exceed 500 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.Builder

This builder for chaining.

clearEtag()

public Repository.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 = 8 [(.google.api.field_behavior) = OPTIONAL];

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

clearInitialConfig()

public Repository.Builder clearInitialConfig()

Input only. Initial configurations for the repository.

.google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Repository.Builder

clearInstance()

public Repository.Builder clearInstance()

Optional. The name of the instance in which the repository is hosted, formatted as projects/{project_number}/locations/{location_id}/instances/{instance_id} When creating repository via securesourcemanager.googleapis.com (Control Plane API), this field is used as input. When creating repository via *.sourcemanager.dev (Data Plane API), this field is output only.

string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
Repository.Builder

This builder for chaining.

clearName()

public Repository.Builder clearName()

Optional. A unique identifier for a repository. The name should be of the format: projects/{project}/locations/{location_id}/repositories/{repository_id}

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

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

clearUid()

public Repository.Builder clearUid()

Output only. Unique identifier of the repository.

string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Repository.Builder

This builder for chaining.

clearUpdateTime()

public Repository.Builder clearUpdateTime()

Output only. Update timestamp.

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

Returns
Type Description
Repository.Builder

clearUris()

public Repository.Builder clearUris()

Output only. URIs for the repository.

.google.cloud.securesourcemanager.v1.Repository.URIs uris = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Repository.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. Create timestamp.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create timestamp.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create timestamp.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Repository getDefaultInstanceForType()
Returns
Type Description
Repository

getDescription()

public String getDescription()

Optional. Description of the repository, which cannot exceed 500 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the repository, which cannot exceed 500 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getEtag()

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 = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The etag.

getEtagBytes()

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 = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for etag.

getInitialConfig()

public Repository.InitialConfig getInitialConfig()

Input only. Initial configurations for the repository.

.google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Repository.InitialConfig

The initialConfig.

getInitialConfigBuilder()

public Repository.InitialConfig.Builder getInitialConfigBuilder()

Input only. Initial configurations for the repository.

.google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Repository.InitialConfig.Builder

getInitialConfigOrBuilder()

public Repository.InitialConfigOrBuilder getInitialConfigOrBuilder()

Input only. Initial configurations for the repository.

.google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Repository.InitialConfigOrBuilder

getInstance()

public String getInstance()

Optional. The name of the instance in which the repository is hosted, formatted as projects/{project_number}/locations/{location_id}/instances/{instance_id} When creating repository via securesourcemanager.googleapis.com (Control Plane API), this field is used as input. When creating repository via *.sourcemanager.dev (Data Plane API), this field is output only.

string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

Optional. The name of the instance in which the repository is hosted, formatted as projects/{project_number}/locations/{location_id}/instances/{instance_id} When creating repository via securesourcemanager.googleapis.com (Control Plane API), this field is used as input. When creating repository via *.sourcemanager.dev (Data Plane API), this field is output only.

string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for instance.

getName()

public String getName()

Optional. A unique identifier for a repository. The name should be of the format: projects/{project}/locations/{location_id}/repositories/{repository_id}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. A unique identifier for a repository. The name should be of the format: projects/{project}/locations/{location_id}/repositories/{repository_id}

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

Returns
Type Description
ByteString

The bytes for name.

getUid()

public String getUid()

Output only. Unique identifier of the repository.

string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. Unique identifier of the repository.

string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Update timestamp.

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Update timestamp.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update timestamp.

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

Returns
Type Description
TimestampOrBuilder

getUris()

public Repository.URIs getUris()

Output only. URIs for the repository.

.google.cloud.securesourcemanager.v1.Repository.URIs uris = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Repository.URIs

The uris.

getUrisBuilder()

public Repository.URIs.Builder getUrisBuilder()

Output only. URIs for the repository.

.google.cloud.securesourcemanager.v1.Repository.URIs uris = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Repository.URIs.Builder

getUrisOrBuilder()

public Repository.URIsOrBuilder getUrisOrBuilder()

Output only. URIs for the repository.

.google.cloud.securesourcemanager.v1.Repository.URIs uris = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Repository.URIsOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Create timestamp.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasInitialConfig()

public boolean hasInitialConfig()

Input only. Initial configurations for the repository.

.google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

Whether the initialConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Update timestamp.

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

Returns
Type Description
boolean

Whether the updateTime field is set.

hasUris()

public boolean hasUris()

Output only. URIs for the repository.

.google.cloud.securesourcemanager.v1.Repository.URIs uris = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the uris field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Repository.Builder mergeCreateTime(Timestamp value)

Output only. Create timestamp.

.google.protobuf.Timestamp create_time = 5 [(.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

mergeInitialConfig(Repository.InitialConfig value)

public Repository.Builder mergeInitialConfig(Repository.InitialConfig value)

Input only. Initial configurations for the repository.

.google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value Repository.InitialConfig
Returns
Type Description
Repository.Builder

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. Update timestamp.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Repository.Builder

mergeUris(Repository.URIs value)

public Repository.Builder mergeUris(Repository.URIs value)

Output only. URIs for the repository.

.google.cloud.securesourcemanager.v1.Repository.URIs uris = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Repository.URIs
Returns
Type Description
Repository.Builder

setCreateTime(Timestamp value)

public Repository.Builder setCreateTime(Timestamp value)

Output only. Create timestamp.

.google.protobuf.Timestamp create_time = 5 [(.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. Create timestamp.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Repository.Builder

setDescription(String value)

public Repository.Builder setDescription(String value)

Optional. Description of the repository, which cannot exceed 500 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Repository.Builder setDescriptionBytes(ByteString value)

Optional. Description of the repository, which cannot exceed 500 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setEtag(String value)

public Repository.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 = 8 [(.google.api.field_behavior) = OPTIONAL];

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)

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 = 8 [(.google.api.field_behavior) = OPTIONAL];

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

setInitialConfig(Repository.InitialConfig value)

public Repository.Builder setInitialConfig(Repository.InitialConfig value)

Input only. Initial configurations for the repository.

.google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value Repository.InitialConfig
Returns
Type Description
Repository.Builder

setInitialConfig(Repository.InitialConfig.Builder builderForValue)

public Repository.Builder setInitialConfig(Repository.InitialConfig.Builder builderForValue)

Input only. Initial configurations for the repository.

.google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
builderForValue Repository.InitialConfig.Builder
Returns
Type Description
Repository.Builder

setInstance(String value)

public Repository.Builder setInstance(String value)

Optional. The name of the instance in which the repository is hosted, formatted as projects/{project_number}/locations/{location_id}/instances/{instance_id} When creating repository via securesourcemanager.googleapis.com (Control Plane API), this field is used as input. When creating repository via *.sourcemanager.dev (Data Plane API), this field is output only.

string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public Repository.Builder setInstanceBytes(ByteString value)

Optional. The name of the instance in which the repository is hosted, formatted as projects/{project_number}/locations/{location_id}/instances/{instance_id} When creating repository via securesourcemanager.googleapis.com (Control Plane API), this field is used as input. When creating repository via *.sourcemanager.dev (Data Plane API), this field is output only.

string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setName(String value)

public Repository.Builder setName(String value)

Optional. A unique identifier for a repository. The name should be of the format: projects/{project}/locations/{location_id}/repositories/{repository_id}

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

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)

Optional. A unique identifier for a repository. The name should be of the format: projects/{project}/locations/{location_id}/repositories/{repository_id}

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

Parameter
Name Description
value ByteString

The bytes for name 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

setUid(String value)

public Repository.Builder setUid(String value)

Output only. Unique identifier of the repository.

string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Repository.Builder setUidBytes(ByteString value)

Output only. Unique identifier of the repository.

string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

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. Update timestamp.

.google.protobuf.Timestamp update_time = 6 [(.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. Update timestamp.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Repository.Builder

setUris(Repository.URIs value)

public Repository.Builder setUris(Repository.URIs value)

Output only. URIs for the repository.

.google.cloud.securesourcemanager.v1.Repository.URIs uris = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Repository.URIs
Returns
Type Description
Repository.Builder

setUris(Repository.URIs.Builder builderForValue)

public Repository.Builder setUris(Repository.URIs.Builder builderForValue)

Output only. URIs for the repository.

.google.cloud.securesourcemanager.v1.Repository.URIs uris = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Repository.URIs.Builder
Returns
Type Description
Repository.Builder