Package com.google.cloud.chronicle.v1
Class FeaturedContentMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FeaturedContentMetadata.Builder>
com.google.cloud.chronicle.v1.FeaturedContentMetadata.Builder
- All Implemented Interfaces:
FeaturedContentMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FeaturedContentMetadata
public static final class FeaturedContentMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FeaturedContentMetadata.Builder>
implements FeaturedContentMetadataOrBuilder
FeaturedContentMetadata holds metadata about the Featured Content.Protobuf type
google.cloud.chronicle.v1.FeaturedContentMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddAllCategories(Iterable<String> values) Output only.addCategories(String value) Output only.addCategoriesBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.Output only.Output only.Output only.Output only.Output only.clearId()Required.Output only.Output only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.getCategories(int index) Output only.com.google.protobuf.ByteStringgetCategoriesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.booleanOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.getId()Required.com.google.protobuf.ByteStringRequired.Output only.intOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(FeaturedContentMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.Output only.setAuthorBytes(com.google.protobuf.ByteString value) Output only.setCategories(int index, String value) Output only.setCertified(boolean value) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDescription(String value) Output only.setDescriptionBytes(com.google.protobuf.ByteString value) Output only.setDisplayName(String value) Output only.setDisplayNameBytes(com.google.protobuf.ByteString value) Output only.Required.setIdBytes(com.google.protobuf.ByteString value) Required.Output only.setSourceTypeValue(int value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setVerified(boolean value) Output only.setVersion(String value) Output only.setVersionBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FeaturedContentMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<FeaturedContentMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<FeaturedContentMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FeaturedContentMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FeaturedContentMetadata.Builder>
-
mergeFrom
public FeaturedContentMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FeaturedContentMetadata.Builder>- Throws:
IOException
-
getId
Required. Unique identifier of the featured content.
string id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIdin interfaceFeaturedContentMetadataOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Required. Unique identifier of the featured content.
string id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIdBytesin interfaceFeaturedContentMetadataOrBuilder- Returns:
- The bytes for id.
-
setId
Required. Unique identifier of the featured content.
string id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Required. Unique identifier of the featured content.
string id = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setIdBytes
Required. Unique identifier of the featured content.
string id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getDisplayName
Output only. The display name of the featured content.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDisplayNamein interfaceFeaturedContentMetadataOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Output only. The display name of the featured content.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDisplayNameBytesin interfaceFeaturedContentMetadataOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Output only. The display name of the featured content.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Output only. The display name of the featured content.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Output only. The display name of the featured content.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasCreateTimein interfaceFeaturedContentMetadataOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Timestamp indicating when the item was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceFeaturedContentMetadataOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Timestamp indicating when the item was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
public FeaturedContentMetadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. Timestamp indicating when the item was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Timestamp indicating when the item was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Timestamp indicating when the item was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Timestamp indicating when the item was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Timestamp indicating when the item was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceFeaturedContentMetadataOrBuilder
-
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];- Specified by:
hasUpdateTimein interfaceFeaturedContentMetadataOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Timestamp indicating when the item was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceFeaturedContentMetadataOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. Timestamp indicating when the item was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
public FeaturedContentMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. Timestamp indicating when the item was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. Timestamp indicating when the item was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. Timestamp indicating when the item was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. Timestamp indicating when the item was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Timestamp indicating when the item was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceFeaturedContentMetadataOrBuilder
-
getAuthor
Output only. Content item author full name.
string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAuthorin interfaceFeaturedContentMetadataOrBuilder- Returns:
- The author.
-
getAuthorBytes
public com.google.protobuf.ByteString getAuthorBytes()Output only. Content item author full name.
string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAuthorBytesin interfaceFeaturedContentMetadataOrBuilder- Returns:
- The bytes for author.
-
setAuthor
Output only. Content item author full name.
string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The author to set.- Returns:
- This builder for chaining.
-
clearAuthor
Output only. Content item author full name.
string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setAuthorBytes
Output only. Content item author full name.
string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for author to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getCertifiedin interfaceFeaturedContentMetadataOrBuilder- Returns:
- The certified.
-
setCertified
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];- Parameters:
value- The certified to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getDescription
Output only. The description of the content item.
string description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDescriptionin interfaceFeaturedContentMetadataOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Output only. The description of the content item.
string description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDescriptionBytesin interfaceFeaturedContentMetadataOrBuilder- Returns:
- The bytes for description.
-
setDescription
Output only. The description of the content item.
string description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Output only. The description of the content item.
string description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setDescriptionBytes
Output only. The description of the content item.
string description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getCategoriesList
public com.google.protobuf.ProtocolStringList getCategoriesList()Output only. Categories the content is associated with.
repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCategoriesListin interfaceFeaturedContentMetadataOrBuilder- Returns:
- A list containing the categories.
-
getCategoriesCount
public int getCategoriesCount()Output only. Categories the content is associated with.
repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCategoriesCountin interfaceFeaturedContentMetadataOrBuilder- Returns:
- The count of categories.
-
getCategories
Output only. Categories the content is associated with.
repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCategoriesin interfaceFeaturedContentMetadataOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The categories at the given index.
-
getCategoriesBytes
public com.google.protobuf.ByteString getCategoriesBytes(int index) Output only. Categories the content is associated with.
repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCategoriesBytesin interfaceFeaturedContentMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the categories at the given index.
-
setCategories
Output only. Categories the content is associated with.
repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The categories to set.- Returns:
- This builder for chaining.
-
addCategories
Output only. Categories the content is associated with.
repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The categories to add.- Returns:
- This builder for chaining.
-
addAllCategories
Output only. Categories the content is associated with.
repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The categories to add.- Returns:
- This builder for chaining.
-
clearCategories
Output only. Categories the content is associated with.
repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addCategoriesBytes
Output only. Categories the content is associated with.
repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the categories to add.- Returns:
- This builder for chaining.
-
getVersion
Output only. Featured content version (Major.Minor.Patch).
string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVersionin interfaceFeaturedContentMetadataOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()Output only. Featured content version (Major.Minor.Patch).
string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVersionBytesin interfaceFeaturedContentMetadataOrBuilder- Returns:
- The bytes for version.
-
setVersion
Output only. Featured content version (Major.Minor.Patch).
string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
Output only. Featured content version (Major.Minor.Patch).
string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setVersionBytes
Output only. Featured content version (Major.Minor.Patch).
string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasVerifiedin interfaceFeaturedContentMetadataOrBuilder- Returns:
- Whether the verified field is set.
-
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];- Specified by:
getVerifiedin interfaceFeaturedContentMetadataOrBuilder- Returns:
- The verified.
-
setVerified
Output only. Whether the content is verified by Google (applicable for 3rd party content).
optional bool verified = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The verified to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
getSourceTypeValuein interfaceFeaturedContentMetadataOrBuilder- Returns:
- The enum numeric value on the wire for sourceType.
-
setSourceTypeValue
Output only. The source type of the content.
.google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType source_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for sourceType to set.- Returns:
- This builder for chaining.
-
getSourceType
Output only. The source type of the content.
.google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType source_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceTypein interfaceFeaturedContentMetadataOrBuilder- Returns:
- The sourceType.
-
setSourceType
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];- Parameters:
value- The sourceType to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-