Class Repository.Builder (0.3.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
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

clearCreateTime()

public Repository.Builder clearCreateTime()

Output only. Create timestamp.

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

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

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

clearInstance()

public Repository.Builder clearInstance()

Output only. The name of the instance in which the repository is hosted, formatted as projects/{project_number}/locations/{location_id}/instances/{instance_id}

string instance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

clearUid()

public Repository.Builder clearUid()

Output only. Unique identifier of the repository.

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

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

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. Create timestamp.

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

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

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create timestamp.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Repository getDefaultInstanceForType()
Returns
TypeDescription
Repository

getDescription()

public String getDescription()

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

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

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

The bytes for description.

getDescriptorForType()

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

getInstance()

public String getInstance()

Output only. The name of the instance in which the repository is hosted, formatted as projects/{project_number}/locations/{location_id}/instances/{instance_id}

string instance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

Output only. The name of the instance in which the repository is hosted, formatted as projects/{project_number}/locations/{location_id}/instances/{instance_id}

string instance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. Unique identifier of the repository.

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

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

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update timestamp.

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

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

hasCreateTime()

public boolean hasCreateTime()

Output only. Create timestamp.

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

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

Whether the uris field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
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

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

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueRepository.URIs
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

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

The bytes for description to set.

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

The etag to set.

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

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
NameDescription
valueRepository.InitialConfig
Returns
TypeDescription
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
NameDescription
builderForValueRepository.InitialConfig.Builder
Returns
TypeDescription
Repository.Builder

setInstance(String value)

public Repository.Builder setInstance(String value)

Output only. The name of the instance in which the repository is hosted, formatted as projects/{project_number}/locations/{location_id}/instances/{instance_id}

string instance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The instance to set.

Returns
TypeDescription
Repository.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public Repository.Builder setInstanceBytes(ByteString value)

Output only. The name of the instance in which the repository is hosted, formatted as projects/{project_number}/locations/{location_id}/instances/{instance_id}

string instance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for instance to set.

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

The name to set.

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

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

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

The uid to set.

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

The bytes for uid to set.

Returns
TypeDescription
Repository.Builder

This builder for chaining.

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

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

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueRepository.URIs
Returns
TypeDescription
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
NameDescription
builderForValueRepository.URIs.Builder
Returns
TypeDescription
Repository.Builder