Class FeaturedContentMetadata.Builder (0.31.0)

public static final class FeaturedContentMetadata.Builder extends GeneratedMessage.Builder<FeaturedContentMetadata.Builder> implements FeaturedContentMetadataOrBuilder

FeaturedContentMetadata holds metadata about the Featured Content.

Protobuf type google.cloud.chronicle.v1.FeaturedContentMetadata

Static Methods

getDescriptor()

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

Methods

addAllCategories(Iterable<String> values)

public FeaturedContentMetadata.Builder addAllCategories(Iterable<String> values)

Output only. Categories the content is associated with.

repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The categories to add.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

addCategories(String value)

public FeaturedContentMetadata.Builder addCategories(String value)

Output only. Categories the content is associated with.

repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The categories to add.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

addCategoriesBytes(ByteString value)

public FeaturedContentMetadata.Builder addCategoriesBytes(ByteString value)

Output only. Categories the content is associated with.

repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the categories to add.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

build()

public FeaturedContentMetadata build()
Returns
Type Description
FeaturedContentMetadata

buildPartial()

public FeaturedContentMetadata buildPartial()
Returns
Type Description
FeaturedContentMetadata

clear()

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

clearAuthor()

public FeaturedContentMetadata.Builder clearAuthor()

Output only. Content item author full name.

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

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

clearCategories()

public FeaturedContentMetadata.Builder clearCategories()

Output only. Categories the content is associated with.

repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

clearCertified()

public FeaturedContentMetadata.Builder clearCertified()

Output only. Determine if this content item is officially certified by Google or created by the community.

bool certified = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

clearCreateTime()

public FeaturedContentMetadata.Builder clearCreateTime()

Output only. Timestamp indicating when the item was created.

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

Returns
Type Description
FeaturedContentMetadata.Builder

clearDescription()

public FeaturedContentMetadata.Builder clearDescription()

Output only. The description of the content item.

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

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

clearDisplayName()

public FeaturedContentMetadata.Builder clearDisplayName()

Output only. The display name of the featured content.

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

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

clearId()

public FeaturedContentMetadata.Builder clearId()

Required. Unique identifier of the featured content.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

clearSourceType()

public FeaturedContentMetadata.Builder clearSourceType()

Output only. The source type of the content.

.google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType source_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

clearUpdateTime()

public FeaturedContentMetadata.Builder clearUpdateTime()

Output only. Timestamp indicating when the item was updated.

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

Returns
Type Description
FeaturedContentMetadata.Builder

clearVerified()

public FeaturedContentMetadata.Builder clearVerified()

Output only. Whether the content is verified by Google (applicable for 3rd party content).

optional bool verified = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

clearVersion()

public FeaturedContentMetadata.Builder clearVersion()

Output only. Featured content version (Major.Minor.Patch).

string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

getAuthor()

public String getAuthor()

Output only. Content item author full name.

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

Returns
Type Description
String

The author.

getAuthorBytes()

public ByteString getAuthorBytes()

Output only. Content item author full name.

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

Returns
Type Description
ByteString

The bytes for author.

getCategories(int index)

public String getCategories(int index)

Output only. Categories the content is associated with.

repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The categories at the given index.

getCategoriesBytes(int index)

public ByteString getCategoriesBytes(int index)

Output only. Categories the content is associated with.

repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the categories at the given index.

getCategoriesCount()

public int getCategoriesCount()

Output only. Categories the content is associated with.

repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of categories.

getCategoriesList()

public ProtocolStringList getCategoriesList()

Output only. Categories the content is associated with.

repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the categories.

getCertified()

public boolean getCertified()

Output only. Determine if this content item is officially certified by Google or created by the community.

bool certified = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The certified.

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp indicating when the item was created.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp indicating when the item was created.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp indicating when the item was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public FeaturedContentMetadata getDefaultInstanceForType()
Returns
Type Description
FeaturedContentMetadata

getDescription()

public String getDescription()

Output only. The description of the content item.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. The description of the content item.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Output only. The display name of the featured content.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The display name of the featured content.

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

Returns
Type Description
ByteString

The bytes for displayName.

getId()

public String getId()

Required. Unique identifier of the featured content.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Required. Unique identifier of the featured content.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for id.

getSourceType()

public FeaturedContentMetadata.ContentSourceType getSourceType()

Output only. The source type of the content.

.google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType source_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FeaturedContentMetadata.ContentSourceType

The sourceType.

getSourceTypeValue()

public int getSourceTypeValue()

Output only. The source type of the content.

.google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType source_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for sourceType.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Timestamp indicating when the item was updated.

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Timestamp indicating when the item was updated.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp indicating when the item was updated.

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

Returns
Type Description
TimestampOrBuilder

getVerified()

public boolean getVerified()

Output only. Whether the content is verified by Google (applicable for 3rd party content).

optional bool verified = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The verified.

getVersion()

public String getVersion()

Output only. Featured content version (Major.Minor.Patch).

string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Output only. Featured content version (Major.Minor.Patch).

string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for version.

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp indicating when the item was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Timestamp indicating when the item was updated.

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

Returns
Type Description
boolean

Whether the updateTime field is set.

hasVerified()

public boolean hasVerified()

Output only. Whether the content is verified by Google (applicable for 3rd party content).

optional bool verified = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

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

Output only. Timestamp indicating when the item was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
FeaturedContentMetadata.Builder

mergeFrom(FeaturedContentMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUpdateTime(Timestamp value)

public FeaturedContentMetadata.Builder mergeUpdateTime(Timestamp value)

Output only. Timestamp indicating when the item was updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
FeaturedContentMetadata.Builder

setAuthor(String value)

public FeaturedContentMetadata.Builder setAuthor(String value)

Output only. Content item author full name.

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

Parameter
Name Description
value String

The author to set.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

setAuthorBytes(ByteString value)

public FeaturedContentMetadata.Builder setAuthorBytes(ByteString value)

Output only. Content item author full name.

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

Parameter
Name Description
value ByteString

The bytes for author to set.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

setCategories(int index, String value)

public FeaturedContentMetadata.Builder setCategories(int index, String value)

Output only. Categories the content is associated with.

repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The categories to set.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

setCertified(boolean value)

public FeaturedContentMetadata.Builder setCertified(boolean value)

Output only. Determine if this content item is officially certified by Google or created by the community.

bool certified = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The certified to set.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public FeaturedContentMetadata.Builder setCreateTime(Timestamp value)

Output only. Timestamp indicating when the item was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
FeaturedContentMetadata.Builder

setCreateTime(Timestamp.Builder builderForValue)

public FeaturedContentMetadata.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp indicating when the item was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
FeaturedContentMetadata.Builder

setDescription(String value)

public FeaturedContentMetadata.Builder setDescription(String value)

Output only. The description of the content item.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public FeaturedContentMetadata.Builder setDescriptionBytes(ByteString value)

Output only. The description of the content item.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

setDisplayName(String value)

public FeaturedContentMetadata.Builder setDisplayName(String value)

Output only. The display name of the featured content.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public FeaturedContentMetadata.Builder setDisplayNameBytes(ByteString value)

Output only. The display name of the featured content.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

setId(String value)

public FeaturedContentMetadata.Builder setId(String value)

Required. Unique identifier of the featured content.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

setIdBytes(ByteString value)

public FeaturedContentMetadata.Builder setIdBytes(ByteString value)

Required. Unique identifier of the featured content.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

setSourceType(FeaturedContentMetadata.ContentSourceType value)

public FeaturedContentMetadata.Builder setSourceType(FeaturedContentMetadata.ContentSourceType value)

Output only. The source type of the content.

.google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType source_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value FeaturedContentMetadata.ContentSourceType

The sourceType to set.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

setSourceTypeValue(int value)

public FeaturedContentMetadata.Builder setSourceTypeValue(int value)

Output only. The source type of the content.

.google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType source_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public FeaturedContentMetadata.Builder setUpdateTime(Timestamp value)

Output only. Timestamp indicating when the item was updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
FeaturedContentMetadata.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public FeaturedContentMetadata.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Timestamp indicating when the item was updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
FeaturedContentMetadata.Builder

setVerified(boolean value)

public FeaturedContentMetadata.Builder setVerified(boolean value)

Output only. Whether the content is verified by Google (applicable for 3rd party content).

optional bool verified = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The verified to set.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

setVersion(String value)

public FeaturedContentMetadata.Builder setVersion(String value)

Output only. Featured content version (Major.Minor.Patch).

string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The version to set.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public FeaturedContentMetadata.Builder setVersionBytes(ByteString value)

Output only. Featured content version (Major.Minor.Patch).

string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
FeaturedContentMetadata.Builder

This builder for chaining.