Class FeaturedContentMetadata

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.chronicle.v1.FeaturedContentMetadata
All Implemented Interfaces:
FeaturedContentMetadataOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class FeaturedContentMetadata extends com.google.protobuf.GeneratedMessage implements FeaturedContentMetadataOrBuilder
 FeaturedContentMetadata holds metadata about the Featured Content.
 
Protobuf type google.cloud.chronicle.v1.FeaturedContentMetadata
See Also:
  • Field Details

  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static FeaturedContentMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FeaturedContentMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FeaturedContentMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FeaturedContentMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FeaturedContentMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FeaturedContentMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FeaturedContentMetadata parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FeaturedContentMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FeaturedContentMetadata parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FeaturedContentMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FeaturedContentMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FeaturedContentMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static FeaturedContentMetadata.Builder newBuilder()
    • newBuilder

      public static FeaturedContentMetadata.Builder newBuilder(FeaturedContentMetadata prototype)
    • toBuilder

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

      protected FeaturedContentMetadata.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static FeaturedContentMetadata getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<FeaturedContentMetadata> parser()
    • getParserForType

      public com.google.protobuf.Parser<FeaturedContentMetadata> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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