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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FeaturedContentMetadata.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<FeaturedContentMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FeaturedContentMetadata.Builder>
    • getDefaultInstanceForType

      public FeaturedContentMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public FeaturedContentMetadata build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public FeaturedContentMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public FeaturedContentMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FeaturedContentMetadata.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FeaturedContentMetadata.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       Required. Unique identifier of the featured content.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getId in interface FeaturedContentMetadataOrBuilder
      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:
      getIdBytes in interface FeaturedContentMetadataOrBuilder
      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

      public FeaturedContentMetadata.Builder setIdBytes(com.google.protobuf.ByteString value)
       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

      public String getDisplayName()
       Output only. The display name of the featured content.
       
      string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisplayName in interface FeaturedContentMetadataOrBuilder
      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:
      getDisplayNameBytes in interface FeaturedContentMetadataOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      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];
      Parameters:
      value - The displayName to set.
      Returns:
      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:
      This builder for chaining.
    • setDisplayNameBytes

      public FeaturedContentMetadata.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       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:
      hasCreateTime in interface FeaturedContentMetadataOrBuilder
      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:
      getCreateTime in interface FeaturedContentMetadataOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public FeaturedContentMetadata.Builder setCreateTime(com.google.protobuf.Timestamp value)
       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

      public FeaturedContentMetadata.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp indicating when the item was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • 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:
      getCreateTimeOrBuilder in interface FeaturedContentMetadataOrBuilder
    • 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:
      hasUpdateTime in interface FeaturedContentMetadataOrBuilder
      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:
      getUpdateTime in interface FeaturedContentMetadataOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public FeaturedContentMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       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

      public FeaturedContentMetadata.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp indicating when the item was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • 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:
      getUpdateTimeOrBuilder in interface FeaturedContentMetadataOrBuilder
    • getAuthor

      public String getAuthor()
       Output only. Content item author full name.
       
      string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAuthor in interface FeaturedContentMetadataOrBuilder
      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:
      getAuthorBytes in interface FeaturedContentMetadataOrBuilder
      Returns:
      The bytes for author.
    • setAuthor

      public FeaturedContentMetadata.Builder setAuthor(String value)
       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

      public FeaturedContentMetadata.Builder clearAuthor()
       Output only. Content item author full name.
       
      string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setAuthorBytes

      public FeaturedContentMetadata.Builder setAuthorBytes(com.google.protobuf.ByteString value)
       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:
      getCertified in interface FeaturedContentMetadataOrBuilder
      Returns:
      The certified.
    • setCertified

      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];
      Parameters:
      value - The certified to set.
      Returns:
      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:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Output only. The description of the content item.
       
      string description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDescription in interface FeaturedContentMetadataOrBuilder
      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:
      getDescriptionBytes in interface FeaturedContentMetadataOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public FeaturedContentMetadata.Builder setDescription(String value)
       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

      public FeaturedContentMetadata.Builder clearDescription()
       Output only. The description of the content item.
       
      string description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public FeaturedContentMetadata.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       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:
      getCategoriesList in interface FeaturedContentMetadataOrBuilder
      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:
      getCategoriesCount in interface FeaturedContentMetadataOrBuilder
      Returns:
      The count of categories.
    • getCategories

      public String getCategories(int index)
       Output only. Categories the content is associated with.
       
      repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCategories in interface FeaturedContentMetadataOrBuilder
      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:
      getCategoriesBytes in interface FeaturedContentMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the categories at the given index.
    • setCategories

      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:
      index - The index to set the value at.
      value - The categories to set.
      Returns:
      This builder for chaining.
    • addCategories

      public FeaturedContentMetadata.Builder addCategories(String value)
       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

      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];
      Parameters:
      values - The categories to add.
      Returns:
      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:
      This builder for chaining.
    • addCategoriesBytes

      public FeaturedContentMetadata.Builder addCategoriesBytes(com.google.protobuf.ByteString value)
       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

      public String getVersion()
       Output only. Featured content version (Major.Minor.Patch).
       
      string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getVersion in interface FeaturedContentMetadataOrBuilder
      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:
      getVersionBytes in interface FeaturedContentMetadataOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public FeaturedContentMetadata.Builder setVersion(String value)
       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

      public FeaturedContentMetadata.Builder clearVersion()
       Output only. Featured content version (Major.Minor.Patch).
       
      string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setVersionBytes

      public FeaturedContentMetadata.Builder setVersionBytes(com.google.protobuf.ByteString value)
       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:
      hasVerified in interface FeaturedContentMetadataOrBuilder
      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:
      getVerified in interface FeaturedContentMetadataOrBuilder
      Returns:
      The verified.
    • setVerified

      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];
      Parameters:
      value - The verified to set.
      Returns:
      This builder for chaining.
    • 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:
      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:
      getSourceTypeValue in interface FeaturedContentMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for sourceType.
    • setSourceTypeValue

      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];
      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:
      getSourceType in interface FeaturedContentMetadataOrBuilder
      Returns:
      The sourceType.
    • setSourceType

       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

      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:
      This builder for chaining.