Class AppVersion.Builder (0.1.0)

public static final class AppVersion.Builder extends GeneratedMessage.Builder<AppVersion.Builder> implements AppVersionOrBuilder

In Customer Engagement Suite (CES), an app version is a snapshot of the app at a specific point in time. It is immutable and cannot be modified once created.

Protobuf type google.cloud.ces.v1.AppVersion

Implements

AppVersionOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public AppVersion build()
Returns
Type Description
AppVersion

buildPartial()

public AppVersion buildPartial()
Returns
Type Description
AppVersion

clear()

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

clearCreateTime()

public AppVersion.Builder clearCreateTime()

Output only. Timestamp when the app version was created.

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

Returns
Type Description
AppVersion.Builder

clearCreator()

public AppVersion.Builder clearCreator()

Output only. Email of the user who created the app version.

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

Returns
Type Description
AppVersion.Builder

This builder for chaining.

clearDescription()

public AppVersion.Builder clearDescription()

Optional. The description of the app version.

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

Returns
Type Description
AppVersion.Builder

This builder for chaining.

clearDisplayName()

public AppVersion.Builder clearDisplayName()

Optional. The display name of the app version.

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

Returns
Type Description
AppVersion.Builder

This builder for chaining.

clearEtag()

public AppVersion.Builder clearEtag()

Output only. Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.

string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AppVersion.Builder

This builder for chaining.

clearName()

public AppVersion.Builder clearName()

Identifier. The unique identifier of the app version. Format: projects/{project}/locations/{location}/apps/{app}/versions/{version}

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

Returns
Type Description
AppVersion.Builder

This builder for chaining.

clearSnapshot()

public AppVersion.Builder clearSnapshot()

Output only. The snapshot of the app when the version is created.

.google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AppVersion.Builder

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when the app 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. Timestamp when the app 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. Timestamp when the app version was created.

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

Returns
Type Description
TimestampOrBuilder

getCreator()

public String getCreator()

Output only. Email of the user who created the app version.

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

Returns
Type Description
String

The creator.

getCreatorBytes()

public ByteString getCreatorBytes()

Output only. Email of the user who created the app version.

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

Returns
Type Description
ByteString

The bytes for creator.

getDefaultInstanceForType()

public AppVersion getDefaultInstanceForType()
Returns
Type Description
AppVersion

getDescription()

public String getDescription()

Optional. The description of the app version.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The description of the app version.

string description = 3 [(.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 app version.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. The display name of the app version.

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

Returns
Type Description
ByteString

The bytes for displayName.

getEtag()

public String getEtag()

Output only. Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.

string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Output only. Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.

string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for etag.

getName()

public String getName()

Identifier. The unique identifier of the app version. Format: projects/{project}/locations/{location}/apps/{app}/versions/{version}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The unique identifier of the app version. Format: projects/{project}/locations/{location}/apps/{app}/versions/{version}

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

Returns
Type Description
ByteString

The bytes for name.

getSnapshot()

public AppSnapshot getSnapshot()

Output only. The snapshot of the app when the version is created.

.google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AppSnapshot

The snapshot.

getSnapshotBuilder()

public AppSnapshot.Builder getSnapshotBuilder()

Output only. The snapshot of the app when the version is created.

.google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AppSnapshot.Builder

getSnapshotOrBuilder()

public AppSnapshotOrBuilder getSnapshotOrBuilder()

Output only. The snapshot of the app when the version is created.

.google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AppSnapshotOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp when the app 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.

hasSnapshot()

public boolean hasSnapshot()

Output only. The snapshot of the app when the version is created.

.google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the snapshot 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 AppVersion.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp when the app version was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
AppVersion.Builder

mergeFrom(AppVersion other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSnapshot(AppSnapshot value)

public AppVersion.Builder mergeSnapshot(AppSnapshot value)

Output only. The snapshot of the app when the version is created.

.google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AppSnapshot
Returns
Type Description
AppVersion.Builder

setCreateTime(Timestamp value)

public AppVersion.Builder setCreateTime(Timestamp value)

Output only. Timestamp when the app version was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
AppVersion.Builder

setCreateTime(Timestamp.Builder builderForValue)

public AppVersion.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when the app version was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AppVersion.Builder

setCreator(String value)

public AppVersion.Builder setCreator(String value)

Output only. Email of the user who created the app version.

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

Parameter
Name Description
value String

The creator to set.

Returns
Type Description
AppVersion.Builder

This builder for chaining.

setCreatorBytes(ByteString value)

public AppVersion.Builder setCreatorBytes(ByteString value)

Output only. Email of the user who created the app version.

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

Parameter
Name Description
value ByteString

The bytes for creator to set.

Returns
Type Description
AppVersion.Builder

This builder for chaining.

setDescription(String value)

public AppVersion.Builder setDescription(String value)

Optional. The description of the app version.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
AppVersion.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public AppVersion.Builder setDescriptionBytes(ByteString value)

Optional. The description of the app version.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
AppVersion.Builder

This builder for chaining.

setDisplayName(String value)

public AppVersion.Builder setDisplayName(String value)

Optional. The display name of the app version.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
AppVersion.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public AppVersion.Builder setDisplayNameBytes(ByteString value)

Optional. The display name of the app version.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
AppVersion.Builder

This builder for chaining.

setEtag(String value)

public AppVersion.Builder setEtag(String value)

Output only. Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.

string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
AppVersion.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public AppVersion.Builder setEtagBytes(ByteString value)

Output only. Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.

string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
AppVersion.Builder

This builder for chaining.

setName(String value)

public AppVersion.Builder setName(String value)

Identifier. The unique identifier of the app version. Format: projects/{project}/locations/{location}/apps/{app}/versions/{version}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AppVersion.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AppVersion.Builder setNameBytes(ByteString value)

Identifier. The unique identifier of the app version. Format: projects/{project}/locations/{location}/apps/{app}/versions/{version}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AppVersion.Builder

This builder for chaining.

setSnapshot(AppSnapshot value)

public AppVersion.Builder setSnapshot(AppSnapshot value)

Output only. The snapshot of the app when the version is created.

.google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AppSnapshot
Returns
Type Description
AppVersion.Builder

setSnapshot(AppSnapshot.Builder builderForValue)

public AppVersion.Builder setSnapshot(AppSnapshot.Builder builderForValue)

Output only. The snapshot of the app when the version is created.

.google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue AppSnapshot.Builder
Returns
Type Description
AppVersion.Builder