Class Version.Builder (0.9.0)

public static final class Version.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Version.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Version.Builder
Overrides

build()

public Version build()
Returns
TypeDescription
Version

buildPartial()

public Version buildPartial()
Returns
TypeDescription
Version

clear()

public Version.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Version.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Version.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Version.Builder
Overrides

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Version.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Version.Builder
Overrides

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

clone()

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

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

getDefaultInstanceForType()

public Version getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

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

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Version.Builder

mergeFrom(Version other)

public Version.Builder mergeFrom(Version other)
Parameter
NameDescription
otherVersion
Returns
TypeDescription
Version.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Version.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Version.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Version.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Version.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Version.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

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

The bytes for description to set.

Returns
TypeDescription
Version.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Version.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Version.Builder
Overrides

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

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
Version.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Version.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Version.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Version.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Version.Builder
Overrides

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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Version.Builder