Class Version.Builder (0.87.0)

public static final class Version.Builder extends GeneratedMessage.Builder<Version.Builder> implements VersionOrBuilder

The consumer representation of a version which is a child resource under a Product with asset data.

Protobuf type google.cloud.privatecatalog.v1beta1.Version

Implements

VersionOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Version build()
Returns
Type Description
Version

buildPartial()

public Version buildPartial()
Returns
Type Description
Version

clear()

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

clearAsset()

public Version.Builder clearAsset()

Output only. The asset which has been validated and is ready to be provisioned. See [google.cloud.privatecatalogproducer.v1beta.Version.asset][] for details.

.google.protobuf.Struct asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Version.Builder

clearCreateTime()

public Version.Builder clearCreateTime()

Output only. The time when the version was created.

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

Returns
Type Description
Version.Builder

clearDescription()

public Version.Builder clearDescription()

Output only. The user-supplied description of the version. Maximum of 256 characters.

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

Returns
Type Description
Version.Builder

This builder for chaining.

clearName()

public Version.Builder clearName()

Output only. The resource name of the version, in the format catalogs/{catalog}/products/{product}/versions/a-z*[a-z0-9].

A unique identifier for the version under a product.

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

Returns
Type Description
Version.Builder

This builder for chaining.

clearUpdateTime()

public Version.Builder clearUpdateTime()

Output only. The time when the version was last updated.

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

Returns
Type Description
Version.Builder

getAsset()

public Struct getAsset()

Output only. The asset which has been validated and is ready to be provisioned. See [google.cloud.privatecatalogproducer.v1beta.Version.asset][] for details.

.google.protobuf.Struct asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Struct

The asset.

getAssetBuilder()

public Struct.Builder getAssetBuilder()

Output only. The asset which has been validated and is ready to be provisioned. See [google.cloud.privatecatalogproducer.v1beta.Version.asset][] for details.

.google.protobuf.Struct asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getAssetOrBuilder()

public StructOrBuilder getAssetOrBuilder()

Output only. The asset which has been validated and is ready to be provisioned. See [google.cloud.privatecatalogproducer.v1beta.Version.asset][] for details.

.google.protobuf.Struct asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StructOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the version was created.

.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. The time when the version was created.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the version was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Version getDefaultInstanceForType()
Returns
Type Description
Version

getDescription()

public String getDescription()

Output only. The user-supplied description of the version. Maximum of 256 characters.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. The user-supplied description of the version. Maximum of 256 characters.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getName()

public String getName()

Output only. The resource name of the version, in the format catalogs/{catalog}/products/{product}/versions/a-z*[a-z0-9].

A unique identifier for the version under a product.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the version, in the format catalogs/{catalog}/products/{product}/versions/a-z*[a-z0-9].

A unique identifier for the version under a product.

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

Returns
Type Description
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when the version was last updated.

.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. The time when the version was last updated.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the version was last updated.

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

Returns
Type Description
TimestampOrBuilder

hasAsset()

public boolean hasAsset()

Output only. The asset which has been validated and is ready to be provisioned. See [google.cloud.privatecatalogproducer.v1beta.Version.asset][] for details.

.google.protobuf.Struct asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the asset field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the version was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when the version was last updated.

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

mergeAsset(Struct value)

public Version.Builder mergeAsset(Struct value)

Output only. The asset which has been validated and is ready to be provisioned. See [google.cloud.privatecatalogproducer.v1beta.Version.asset][] for details.

.google.protobuf.Struct asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Struct
Returns
Type Description
Version.Builder

mergeCreateTime(Timestamp value)

public Version.Builder mergeCreateTime(Timestamp value)

Output only. The time when the version was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Version.Builder

mergeFrom(Version other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUpdateTime(Timestamp value)

public Version.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the version was last updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Version.Builder

setAsset(Struct value)

public Version.Builder setAsset(Struct value)

Output only. The asset which has been validated and is ready to be provisioned. See [google.cloud.privatecatalogproducer.v1beta.Version.asset][] for details.

.google.protobuf.Struct asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Struct
Returns
Type Description
Version.Builder

setAsset(Struct.Builder builderForValue)

public Version.Builder setAsset(Struct.Builder builderForValue)

Output only. The asset which has been validated and is ready to be provisioned. See [google.cloud.privatecatalogproducer.v1beta.Version.asset][] for details.

.google.protobuf.Struct asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Version.Builder

setCreateTime(Timestamp value)

public Version.Builder setCreateTime(Timestamp value)

Output only. The time when the version was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Version.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Version.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the version was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Version.Builder

setDescription(String value)

public Version.Builder setDescription(String value)

Output only. The user-supplied description of the version. Maximum of 256 characters.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Version.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Version.Builder setDescriptionBytes(ByteString value)

Output only. The user-supplied description of the version. Maximum of 256 characters.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Version.Builder

This builder for chaining.

setName(String value)

public Version.Builder setName(String value)

Output only. The resource name of the version, in the format catalogs/{catalog}/products/{product}/versions/a-z*[a-z0-9].

A unique identifier for the version under a product.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Version.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Version.Builder setNameBytes(ByteString value)

Output only. The resource name of the version, in the format catalogs/{catalog}/products/{product}/versions/a-z*[a-z0-9].

A unique identifier for the version under a product.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Version.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public Version.Builder setUpdateTime(Timestamp value)

Output only. The time when the version was last updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Version.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Version.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the version was last updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Version.Builder