Class Feed

  • All Implemented Interfaces:
    FeedOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Feed
    extends com.google.protobuf.GeneratedMessageV3
    implements FeedOrBuilder
     An asset feed used to export asset updates to a destinations.
     An asset feed filter controls what updates are exported.
     The asset feed must be created within a project, organization, or
     folder. Supported destinations are:
     Cloud Pub/Sub topics.
     
    Protobuf type google.cloud.asset.v1p2beta1.Feed
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Feed.Builder
      An asset feed used to export asset updates to a destinations.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      String getAssetNames​(int index)
      A list of the full names of the assets to receive updates.
      com.google.protobuf.ByteString getAssetNamesBytes​(int index)
      A list of the full names of the assets to receive updates.
      int getAssetNamesCount()
      A list of the full names of the assets to receive updates.
      com.google.protobuf.ProtocolStringList getAssetNamesList()
      A list of the full names of the assets to receive updates.
      String getAssetTypes​(int index)
      A list of types of the assets to receive updates.
      com.google.protobuf.ByteString getAssetTypesBytes​(int index)
      A list of types of the assets to receive updates.
      int getAssetTypesCount()
      A list of types of the assets to receive updates.
      com.google.protobuf.ProtocolStringList getAssetTypesList()
      A list of types of the assets to receive updates.
      ContentType getContentType()
      Asset content type.
      int getContentTypeValue()
      Asset content type.
      static Feed getDefaultInstance()  
      Feed getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      FeedOutputConfig getFeedOutputConfig()
      Required.
      FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder()
      Required.
      String getName()
      Required.
      com.google.protobuf.ByteString getNameBytes()
      Required.
      com.google.protobuf.Parser<Feed> getParserForType()  
      int getSerializedSize()  
      boolean hasFeedOutputConfig()
      Required.
      int hashCode()  
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static Feed.Builder newBuilder()  
      static Feed.Builder newBuilder​(Feed prototype)  
      Feed.Builder newBuilderForType()  
      protected Feed.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static Feed parseDelimitedFrom​(InputStream input)  
      static Feed parseDelimitedFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Feed parseFrom​(byte[] data)  
      static Feed parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Feed parseFrom​(com.google.protobuf.ByteString data)  
      static Feed parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Feed parseFrom​(com.google.protobuf.CodedInputStream input)  
      static Feed parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Feed parseFrom​(InputStream input)  
      static Feed parseFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Feed parseFrom​(ByteBuffer data)  
      static Feed parseFrom​(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<Feed> parser()  
      Feed.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getName

        public String getName()
         Required. The format will be
         projects/{project_number}/feeds/{client-assigned_feed_identifier} or
         folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
         organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
        
         The client-assigned feed identifier must be unique within the parent
         project/folder/organization.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getName in interface FeedOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The format will be
         projects/{project_number}/feeds/{client-assigned_feed_identifier} or
         folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
         organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
        
         The client-assigned feed identifier must be unique within the parent
         project/folder/organization.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNameBytes in interface FeedOrBuilder
        Returns:
        The bytes for name.
      • getAssetNamesList

        public com.google.protobuf.ProtocolStringList getAssetNamesList()
         A list of the full names of the assets to receive updates. You must specify
         either or both of asset_names and asset_types. Only asset updates matching
         specified asset_names and asset_types are exported to the feed. For
         example:
         `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
         See [Resource
         Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
         for more info.
         
        repeated string asset_names = 2;
        Specified by:
        getAssetNamesList in interface FeedOrBuilder
        Returns:
        A list containing the assetNames.
      • getAssetNamesCount

        public int getAssetNamesCount()
         A list of the full names of the assets to receive updates. You must specify
         either or both of asset_names and asset_types. Only asset updates matching
         specified asset_names and asset_types are exported to the feed. For
         example:
         `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
         See [Resource
         Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
         for more info.
         
        repeated string asset_names = 2;
        Specified by:
        getAssetNamesCount in interface FeedOrBuilder
        Returns:
        The count of assetNames.
      • getAssetNames

        public String getAssetNames​(int index)
         A list of the full names of the assets to receive updates. You must specify
         either or both of asset_names and asset_types. Only asset updates matching
         specified asset_names and asset_types are exported to the feed. For
         example:
         `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
         See [Resource
         Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
         for more info.
         
        repeated string asset_names = 2;
        Specified by:
        getAssetNames in interface FeedOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The assetNames at the given index.
      • getAssetNamesBytes

        public com.google.protobuf.ByteString getAssetNamesBytes​(int index)
         A list of the full names of the assets to receive updates. You must specify
         either or both of asset_names and asset_types. Only asset updates matching
         specified asset_names and asset_types are exported to the feed. For
         example:
         `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
         See [Resource
         Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
         for more info.
         
        repeated string asset_names = 2;
        Specified by:
        getAssetNamesBytes in interface FeedOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the assetNames at the given index.
      • getAssetTypesList

        public com.google.protobuf.ProtocolStringList getAssetTypesList()
         A list of types of the assets to receive updates. You must specify either
         or both of asset_names and asset_types. Only asset updates matching
         specified asset_names and asset_types are exported to the feed.
         For example:
         "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
         Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
         for all supported asset types.
         
        repeated string asset_types = 3;
        Specified by:
        getAssetTypesList in interface FeedOrBuilder
        Returns:
        A list containing the assetTypes.
      • getAssetTypesCount

        public int getAssetTypesCount()
         A list of types of the assets to receive updates. You must specify either
         or both of asset_names and asset_types. Only asset updates matching
         specified asset_names and asset_types are exported to the feed.
         For example:
         "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
         Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
         for all supported asset types.
         
        repeated string asset_types = 3;
        Specified by:
        getAssetTypesCount in interface FeedOrBuilder
        Returns:
        The count of assetTypes.
      • getAssetTypes

        public String getAssetTypes​(int index)
         A list of types of the assets to receive updates. You must specify either
         or both of asset_names and asset_types. Only asset updates matching
         specified asset_names and asset_types are exported to the feed.
         For example:
         "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
         Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
         for all supported asset types.
         
        repeated string asset_types = 3;
        Specified by:
        getAssetTypes in interface FeedOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The assetTypes at the given index.
      • getAssetTypesBytes

        public com.google.protobuf.ByteString getAssetTypesBytes​(int index)
         A list of types of the assets to receive updates. You must specify either
         or both of asset_names and asset_types. Only asset updates matching
         specified asset_names and asset_types are exported to the feed.
         For example:
         "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
         Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
         for all supported asset types.
         
        repeated string asset_types = 3;
        Specified by:
        getAssetTypesBytes in interface FeedOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the assetTypes at the given index.
      • getContentTypeValue

        public int getContentTypeValue()
         Asset content type. If not specified, no content but the asset name and
         type will be returned.
         
        .google.cloud.asset.v1p2beta1.ContentType content_type = 4;
        Specified by:
        getContentTypeValue in interface FeedOrBuilder
        Returns:
        The enum numeric value on the wire for contentType.
      • getContentType

        public ContentType getContentType()
         Asset content type. If not specified, no content but the asset name and
         type will be returned.
         
        .google.cloud.asset.v1p2beta1.ContentType content_type = 4;
        Specified by:
        getContentType in interface FeedOrBuilder
        Returns:
        The contentType.
      • hasFeedOutputConfig

        public boolean hasFeedOutputConfig()
         Required. Feed output configuration defining where the asset updates are
         published to.
         
        .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasFeedOutputConfig in interface FeedOrBuilder
        Returns:
        Whether the feedOutputConfig field is set.
      • getFeedOutputConfig

        public FeedOutputConfig getFeedOutputConfig()
         Required. Feed output configuration defining where the asset updates are
         published to.
         
        .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getFeedOutputConfig in interface FeedOrBuilder
        Returns:
        The feedOutputConfig.
      • getFeedOutputConfigOrBuilder

        public FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder()
         Required. Feed output configuration defining where the asset updates are
         published to.
         
        .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getFeedOutputConfigOrBuilder in interface FeedOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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 Feed parseFrom​(ByteBuffer data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        protected Feed.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Feed getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<Feed> 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.GeneratedMessageV3
      • getDefaultInstanceForType

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