Class CatalogTemplateRevisionMetadata.Builder (0.3.0)

public static final class CatalogTemplateRevisionMetadata.Builder extends GeneratedMessage.Builder<CatalogTemplateRevisionMetadata.Builder> implements CatalogTemplateRevisionMetadataOrBuilder

Represents metadata of a catalog template revision in the management context.

Protobuf type google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata

Static Methods

getDescriptor()

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

Methods

build()

public CatalogTemplateRevisionMetadata build()
Returns
Type Description
CatalogTemplateRevisionMetadata

buildPartial()

public CatalogTemplateRevisionMetadata buildPartial()
Returns
Type Description
CatalogTemplateRevisionMetadata

clear()

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

clearCreateTime()

public CatalogTemplateRevisionMetadata.Builder clearCreateTime()

Output only. The catalog template creation timestamp.

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

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

clearDescription()

public CatalogTemplateRevisionMetadata.Builder clearDescription()

Optional. The catalog template description.

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

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

clearDisplayName()

public CatalogTemplateRevisionMetadata.Builder clearDisplayName()

Optional. The display name of the catalog template.

string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

clearGitSourceUri()

public CatalogTemplateRevisionMetadata.Builder clearGitSourceUri()

Optional. The Git source URI where the template repository is hosted.

string git_source_uri = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

clearLatestRevisionId()

public CatalogTemplateRevisionMetadata.Builder clearLatestRevisionId()

Output only. Latest revision of the template.

string latest_revision_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

clearName()

public CatalogTemplateRevisionMetadata.Builder clearName()

Output only. The catalog template name in following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template

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

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

clearTemplateCategory()

public CatalogTemplateRevisionMetadata.Builder clearTemplateCategory()

Required. The category of the catalog template.

.google.cloud.designcenter.v1.TemplateCategory template_category = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

clearUpdateTime()

public CatalogTemplateRevisionMetadata.Builder clearUpdateTime()

Output only. The catalog template update timestamp.

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

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

clearUuid()

public CatalogTemplateRevisionMetadata.Builder clearUuid()

Output only. The template revisions UUID.

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

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

getCreateTime()

public Timestamp getCreateTime()

Output only. The catalog template creation timestamp.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The catalog template creation timestamp.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The catalog template creation timestamp.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public CatalogTemplateRevisionMetadata getDefaultInstanceForType()
Returns
Type Description
CatalogTemplateRevisionMetadata

getDescription()

public String getDescription()

Optional. The catalog template description.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The catalog template description.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Optional. The display name of the catalog template.

string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. The display name of the catalog template.

string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getGitSourceUri()

public String getGitSourceUri()

Optional. The Git source URI where the template repository is hosted.

string git_source_uri = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The gitSourceUri.

getGitSourceUriBytes()

public ByteString getGitSourceUriBytes()

Optional. The Git source URI where the template repository is hosted.

string git_source_uri = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for gitSourceUri.

getLatestRevisionId()

public String getLatestRevisionId()

Output only. Latest revision of the template.

string latest_revision_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The latestRevisionId.

getLatestRevisionIdBytes()

public ByteString getLatestRevisionIdBytes()

Output only. Latest revision of the template.

string latest_revision_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for latestRevisionId.

getName()

public String getName()

Output only. The catalog template name in following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The catalog template name in following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template

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

Returns
Type Description
ByteString

The bytes for name.

getTemplateCategory()

public TemplateCategory getTemplateCategory()

Required. The category of the catalog template.

.google.cloud.designcenter.v1.TemplateCategory template_category = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TemplateCategory

The templateCategory.

getTemplateCategoryValue()

public int getTemplateCategoryValue()

Required. The category of the catalog template.

.google.cloud.designcenter.v1.TemplateCategory template_category = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for templateCategory.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The catalog template update timestamp.

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The catalog template update timestamp.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The catalog template update timestamp.

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

Returns
Type Description
TimestampOrBuilder

getUuid()

public String getUuid()

Output only. The template revisions UUID.

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

Returns
Type Description
String

The uuid.

getUuidBytes()

public ByteString getUuidBytes()

Output only. The template revisions UUID.

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

Returns
Type Description
ByteString

The bytes for uuid.

hasCreateTime()

public boolean hasCreateTime()

Output only. The catalog template creation timestamp.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The catalog template update timestamp.

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

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public CatalogTemplateRevisionMetadata.Builder mergeCreateTime(Timestamp value)

Output only. The catalog template creation timestamp.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

mergeFrom(CatalogTemplateRevisionMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUpdateTime(Timestamp value)

public CatalogTemplateRevisionMetadata.Builder mergeUpdateTime(Timestamp value)

Output only. The catalog template update timestamp.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

setCreateTime(Timestamp value)

public CatalogTemplateRevisionMetadata.Builder setCreateTime(Timestamp value)

Output only. The catalog template creation timestamp.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

setCreateTime(Timestamp.Builder builderForValue)

public CatalogTemplateRevisionMetadata.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The catalog template creation timestamp.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

setDescription(String value)

public CatalogTemplateRevisionMetadata.Builder setDescription(String value)

Optional. The catalog template description.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public CatalogTemplateRevisionMetadata.Builder setDescriptionBytes(ByteString value)

Optional. The catalog template description.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

setDisplayName(String value)

public CatalogTemplateRevisionMetadata.Builder setDisplayName(String value)

Optional. The display name of the catalog template.

string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public CatalogTemplateRevisionMetadata.Builder setDisplayNameBytes(ByteString value)

Optional. The display name of the catalog template.

string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

setGitSourceUri(String value)

public CatalogTemplateRevisionMetadata.Builder setGitSourceUri(String value)

Optional. The Git source URI where the template repository is hosted.

string git_source_uri = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The gitSourceUri to set.

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

setGitSourceUriBytes(ByteString value)

public CatalogTemplateRevisionMetadata.Builder setGitSourceUriBytes(ByteString value)

Optional. The Git source URI where the template repository is hosted.

string git_source_uri = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for gitSourceUri to set.

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

setLatestRevisionId(String value)

public CatalogTemplateRevisionMetadata.Builder setLatestRevisionId(String value)

Output only. Latest revision of the template.

string latest_revision_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The latestRevisionId to set.

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

setLatestRevisionIdBytes(ByteString value)

public CatalogTemplateRevisionMetadata.Builder setLatestRevisionIdBytes(ByteString value)

Output only. Latest revision of the template.

string latest_revision_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for latestRevisionId to set.

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

setName(String value)

public CatalogTemplateRevisionMetadata.Builder setName(String value)

Output only. The catalog template name in following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CatalogTemplateRevisionMetadata.Builder setNameBytes(ByteString value)

Output only. The catalog template name in following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

setTemplateCategory(TemplateCategory value)

public CatalogTemplateRevisionMetadata.Builder setTemplateCategory(TemplateCategory value)

Required. The category of the catalog template.

.google.cloud.designcenter.v1.TemplateCategory template_category = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TemplateCategory

The templateCategory to set.

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

setTemplateCategoryValue(int value)

public CatalogTemplateRevisionMetadata.Builder setTemplateCategoryValue(int value)

Required. The category of the catalog template.

.google.cloud.designcenter.v1.TemplateCategory template_category = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for templateCategory to set.

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public CatalogTemplateRevisionMetadata.Builder setUpdateTime(Timestamp value)

Output only. The catalog template update timestamp.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public CatalogTemplateRevisionMetadata.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The catalog template update timestamp.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

setUuid(String value)

public CatalogTemplateRevisionMetadata.Builder setUuid(String value)

Output only. The template revisions UUID.

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

Parameter
Name Description
value String

The uuid to set.

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.

setUuidBytes(ByteString value)

public CatalogTemplateRevisionMetadata.Builder setUuidBytes(ByteString value)

Output only. The template revisions UUID.

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

Parameter
Name Description
value ByteString

The bytes for uuid to set.

Returns
Type Description
CatalogTemplateRevisionMetadata.Builder

This builder for chaining.