Class SharedTemplate.Builder (0.3.0)

public static final class SharedTemplate.Builder extends GeneratedMessage.Builder<SharedTemplate.Builder> implements SharedTemplateOrBuilder

A read-only template that is shared with a space.

Protobuf type google.cloud.designcenter.v1.SharedTemplate

Static Methods

getDescriptor()

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

Methods

build()

public SharedTemplate build()
Returns
Type Description
SharedTemplate

buildPartial()

public SharedTemplate buildPartial()
Returns
Type Description
SharedTemplate

clear()

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

clearCreateTime()

public SharedTemplate.Builder clearCreateTime()

Output only. The shared template creation timestamp.

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

Returns
Type Description
SharedTemplate.Builder

clearDescription()

public SharedTemplate.Builder clearDescription()

Optional. The shared template description.

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

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

clearDisplayName()

public SharedTemplate.Builder clearDisplayName()

Optional. The shared template display name.

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

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

clearLatestRevisionId()

public SharedTemplate.Builder clearLatestRevisionId()

Output only. Latest revision of the shared template.

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

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

clearName()

public SharedTemplate.Builder clearName()

Identifier. The shared template name. projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate

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

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

clearOriginTemplate()

public SharedTemplate.Builder clearOriginTemplate()

Output only. The origin template of the shared template.

string origin_template = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

clearTemplateCategory()

public SharedTemplate.Builder clearTemplateCategory()

Required. The category of the template.

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

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

clearType()

public SharedTemplate.Builder clearType()

Optional. The Application Design Center assembly template type.

.google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

clearUpdateTime()

public SharedTemplate.Builder clearUpdateTime()

Output only. The shared template update timestamp.

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

Returns
Type Description
SharedTemplate.Builder

getCreateTime()

public Timestamp getCreateTime()

Output only. The shared template creation timestamp.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The shared template creation timestamp.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The shared template creation timestamp.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public SharedTemplate getDefaultInstanceForType()
Returns
Type Description
SharedTemplate

getDescription()

public String getDescription()

Optional. The shared template description.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The shared template description.

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

getDisplayName()

public String getDisplayName()

Optional. The shared template display name.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. The shared template display name.

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

Returns
Type Description
ByteString

The bytes for displayName.

getLatestRevisionId()

public String getLatestRevisionId()

Output only. Latest revision of the shared template.

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

Returns
Type Description
String

The latestRevisionId.

getLatestRevisionIdBytes()

public ByteString getLatestRevisionIdBytes()

Output only. Latest revision of the shared template.

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

Returns
Type Description
ByteString

The bytes for latestRevisionId.

getName()

public String getName()

Identifier. The shared template name. projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The shared template name. projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate

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

Returns
Type Description
ByteString

The bytes for name.

getOriginTemplate()

public String getOriginTemplate()

Output only. The origin template of the shared template.

string origin_template = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The originTemplate.

getOriginTemplateBytes()

public ByteString getOriginTemplateBytes()

Output only. The origin template of the shared template.

string origin_template = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for originTemplate.

getTemplateCategory()

public TemplateCategory getTemplateCategory()

Required. The category of the template.

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

Returns
Type Description
TemplateCategory

The templateCategory.

getTemplateCategoryValue()

public int getTemplateCategoryValue()

Required. The category of the template.

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

Returns
Type Description
int

The enum numeric value on the wire for templateCategory.

getType()

public TemplateType getType()

Optional. The Application Design Center assembly template type.

.google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TemplateType

The type.

getTypeValue()

public int getTypeValue()

Optional. The Application Design Center assembly template type.

.google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for type.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The shared template update timestamp.

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The shared template update timestamp.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The shared template update timestamp.

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

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The shared template creation timestamp.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The shared template update timestamp.

.google.protobuf.Timestamp update_time = 5 [(.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 SharedTemplate.Builder mergeCreateTime(Timestamp value)

Output only. The shared template creation timestamp.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
SharedTemplate.Builder

mergeFrom(SharedTemplate other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUpdateTime(Timestamp value)

public SharedTemplate.Builder mergeUpdateTime(Timestamp value)

Output only. The shared template update timestamp.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
SharedTemplate.Builder

setCreateTime(Timestamp value)

public SharedTemplate.Builder setCreateTime(Timestamp value)

Output only. The shared template creation timestamp.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
SharedTemplate.Builder

setCreateTime(Timestamp.Builder builderForValue)

public SharedTemplate.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The shared template creation timestamp.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SharedTemplate.Builder

setDescription(String value)

public SharedTemplate.Builder setDescription(String value)

Optional. The shared template description.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public SharedTemplate.Builder setDescriptionBytes(ByteString value)

Optional. The shared template description.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

setDisplayName(String value)

public SharedTemplate.Builder setDisplayName(String value)

Optional. The shared template display name.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public SharedTemplate.Builder setDisplayNameBytes(ByteString value)

Optional. The shared template display name.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

setLatestRevisionId(String value)

public SharedTemplate.Builder setLatestRevisionId(String value)

Output only. Latest revision of the shared template.

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

Parameter
Name Description
value String

The latestRevisionId to set.

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

setLatestRevisionIdBytes(ByteString value)

public SharedTemplate.Builder setLatestRevisionIdBytes(ByteString value)

Output only. Latest revision of the shared template.

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

Parameter
Name Description
value ByteString

The bytes for latestRevisionId to set.

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

setName(String value)

public SharedTemplate.Builder setName(String value)

Identifier. The shared template name. projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SharedTemplate.Builder setNameBytes(ByteString value)

Identifier. The shared template name. projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

setOriginTemplate(String value)

public SharedTemplate.Builder setOriginTemplate(String value)

Output only. The origin template of the shared template.

string origin_template = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The originTemplate to set.

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

setOriginTemplateBytes(ByteString value)

public SharedTemplate.Builder setOriginTemplateBytes(ByteString value)

Output only. The origin template of the shared template.

string origin_template = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for originTemplate to set.

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

setTemplateCategory(TemplateCategory value)

public SharedTemplate.Builder setTemplateCategory(TemplateCategory value)

Required. The category of the template.

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

Parameter
Name Description
value TemplateCategory

The templateCategory to set.

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

setTemplateCategoryValue(int value)

public SharedTemplate.Builder setTemplateCategoryValue(int value)

Required. The category of the template.

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

Parameter
Name Description
value int

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

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

setType(TemplateType value)

public SharedTemplate.Builder setType(TemplateType value)

Optional. The Application Design Center assembly template type.

.google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TemplateType

The type to set.

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

setTypeValue(int value)

public SharedTemplate.Builder setTypeValue(int value)

Optional. The Application Design Center assembly template type.

.google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
SharedTemplate.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public SharedTemplate.Builder setUpdateTime(Timestamp value)

Output only. The shared template update timestamp.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
SharedTemplate.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public SharedTemplate.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The shared template update timestamp.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SharedTemplate.Builder