Class FeaturedContentMetadata (0.31.0)

public final class FeaturedContentMetadata extends GeneratedMessage implements FeaturedContentMetadataOrBuilder

FeaturedContentMetadata holds metadata about the Featured Content.

Protobuf type google.cloud.chronicle.v1.FeaturedContentMetadata

Static Fields

AUTHOR_FIELD_NUMBER

public static final int AUTHOR_FIELD_NUMBER
Field Value
Type Description
int

CATEGORIES_FIELD_NUMBER

public static final int CATEGORIES_FIELD_NUMBER
Field Value
Type Description
int

CERTIFIED_FIELD_NUMBER

public static final int CERTIFIED_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_TYPE_FIELD_NUMBER

public static final int SOURCE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

VERIFIED_FIELD_NUMBER

public static final int VERIFIED_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FeaturedContentMetadata getDefaultInstance()
Returns
Type Description
FeaturedContentMetadata

getDescriptor()

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

newBuilder()

public static FeaturedContentMetadata.Builder newBuilder()
Returns
Type Description
FeaturedContentMetadata.Builder

newBuilder(FeaturedContentMetadata prototype)

public static FeaturedContentMetadata.Builder newBuilder(FeaturedContentMetadata prototype)
Parameter
Name Description
prototype FeaturedContentMetadata
Returns
Type Description
FeaturedContentMetadata.Builder

parseDelimitedFrom(InputStream input)

public static FeaturedContentMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FeaturedContentMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FeaturedContentMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FeaturedContentMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static FeaturedContentMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
FeaturedContentMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FeaturedContentMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FeaturedContentMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FeaturedContentMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FeaturedContentMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FeaturedContentMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FeaturedContentMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FeaturedContentMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FeaturedContentMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FeaturedContentMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FeaturedContentMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static FeaturedContentMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FeaturedContentMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FeaturedContentMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FeaturedContentMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static FeaturedContentMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FeaturedContentMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FeaturedContentMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FeaturedContentMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<FeaturedContentMetadata> parser()
Returns
Type Description
Parser<FeaturedContentMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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.

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.

getParserForType()

public Parser<FeaturedContentMetadata> getParserForType()
Returns
Type Description
Parser<FeaturedContentMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public FeaturedContentMetadata.Builder newBuilderForType()
Returns
Type Description
FeaturedContentMetadata.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected FeaturedContentMetadata.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FeaturedContentMetadata.Builder
Overrides

toBuilder()

public FeaturedContentMetadata.Builder toBuilder()
Returns
Type Description
FeaturedContentMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException