Package com.google.cloud.asset.v1
Class Feed.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>
-
- com.google.cloud.asset.v1.Feed.Builder
-
- All Implemented Interfaces:
FeedOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Feed
public static final class Feed.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder> 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: Pub/Sub topics.
Protobuf typegoogle.cloud.asset.v1.Feed
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Feed.BuilderaddAllAssetNames(Iterable<String> values)A list of the full names of the assets to receive updates.Feed.BuilderaddAllAssetTypes(Iterable<String> values)A list of types of the assets to receive updates.Feed.BuilderaddAllRelationshipTypes(Iterable<String> values)A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.Feed.BuilderaddAssetNames(String value)A list of the full names of the assets to receive updates.Feed.BuilderaddAssetNamesBytes(com.google.protobuf.ByteString value)A list of the full names of the assets to receive updates.Feed.BuilderaddAssetTypes(String value)A list of types of the assets to receive updates.Feed.BuilderaddAssetTypesBytes(com.google.protobuf.ByteString value)A list of types of the assets to receive updates.Feed.BuilderaddRelationshipTypes(String value)A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.Feed.BuilderaddRelationshipTypesBytes(com.google.protobuf.ByteString value)A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.Feed.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Feedbuild()FeedbuildPartial()Feed.Builderclear()Feed.BuilderclearAssetNames()A list of the full names of the assets to receive updates.Feed.BuilderclearAssetTypes()A list of types of the assets to receive updates.Feed.BuilderclearCondition()A condition which determines whether an asset update should be published.Feed.BuilderclearContentType()Asset content type.Feed.BuilderclearFeedOutputConfig()Required.Feed.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Feed.BuilderclearName()Required.Feed.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Feed.BuilderclearRelationshipTypes()A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.Feed.Builderclone()StringgetAssetNames(int index)A list of the full names of the assets to receive updates.com.google.protobuf.ByteStringgetAssetNamesBytes(int index)A list of the full names of the assets to receive updates.intgetAssetNamesCount()A list of the full names of the assets to receive updates.com.google.protobuf.ProtocolStringListgetAssetNamesList()A list of the full names of the assets to receive updates.StringgetAssetTypes(int index)A list of types of the assets to receive updates.com.google.protobuf.ByteStringgetAssetTypesBytes(int index)A list of types of the assets to receive updates.intgetAssetTypesCount()A list of types of the assets to receive updates.com.google.protobuf.ProtocolStringListgetAssetTypesList()A list of types of the assets to receive updates.com.google.type.ExprgetCondition()A condition which determines whether an asset update should be published.com.google.type.Expr.BuildergetConditionBuilder()A condition which determines whether an asset update should be published.com.google.type.ExprOrBuildergetConditionOrBuilder()A condition which determines whether an asset update should be published.ContentTypegetContentType()Asset content type.intgetContentTypeValue()Asset content type.FeedgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()FeedOutputConfiggetFeedOutputConfig()Required.FeedOutputConfig.BuildergetFeedOutputConfigBuilder()Required.FeedOutputConfigOrBuildergetFeedOutputConfigOrBuilder()Required.StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.StringgetRelationshipTypes(int index)A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.com.google.protobuf.ByteStringgetRelationshipTypesBytes(int index)A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.intgetRelationshipTypesCount()A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.com.google.protobuf.ProtocolStringListgetRelationshipTypesList()A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.booleanhasCondition()A condition which determines whether an asset update should be published.booleanhasFeedOutputConfig()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Feed.BuildermergeCondition(com.google.type.Expr value)A condition which determines whether an asset update should be published.Feed.BuildermergeFeedOutputConfig(FeedOutputConfig value)Required.Feed.BuildermergeFrom(Feed other)Feed.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Feed.BuildermergeFrom(com.google.protobuf.Message other)Feed.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Feed.BuildersetAssetNames(int index, String value)A list of the full names of the assets to receive updates.Feed.BuildersetAssetTypes(int index, String value)A list of types of the assets to receive updates.Feed.BuildersetCondition(com.google.type.Expr value)A condition which determines whether an asset update should be published.Feed.BuildersetCondition(com.google.type.Expr.Builder builderForValue)A condition which determines whether an asset update should be published.Feed.BuildersetContentType(ContentType value)Asset content type.Feed.BuildersetContentTypeValue(int value)Asset content type.Feed.BuildersetFeedOutputConfig(FeedOutputConfig value)Required.Feed.BuildersetFeedOutputConfig(FeedOutputConfig.Builder builderForValue)Required.Feed.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Feed.BuildersetName(String value)Required.Feed.BuildersetNameBytes(com.google.protobuf.ByteString value)Required.Feed.BuildersetRelationshipTypes(int index, String value)A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.Feed.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Feed.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>
-
clear
public Feed.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Feed.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.GeneratedMessageV3.Builder<Feed.Builder>
-
getDefaultInstanceForType
public Feed getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Feed build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Feed buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Feed.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>
-
setField
public Feed.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>
-
clearField
public Feed.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>
-
clearOneof
public Feed.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>
-
setRepeatedField
public Feed.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>
-
addRepeatedField
public Feed.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>
-
mergeFrom
public Feed.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Feed.Builder>
-
mergeFrom
public Feed.Builder mergeFrom(Feed other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>
-
mergeFrom
public Feed.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<Feed.Builder>- Throws:
IOException
-
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:
getNamein interfaceFeedOrBuilder- 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:
getNameBytesin interfaceFeedOrBuilder- Returns:
- The bytes for name.
-
setName
public Feed.Builder setName(String value)
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Feed.Builder clearName()
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];- Returns:
- This builder for chaining.
-
setNameBytes
public Feed.Builder setNameBytes(com.google.protobuf.ByteString value)
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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 or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;- Specified by:
getAssetNamesListin interfaceFeedOrBuilder- 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 or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;- Specified by:
getAssetNamesCountin interfaceFeedOrBuilder- 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 or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;- Specified by:
getAssetNamesin interfaceFeedOrBuilder- 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 or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;- Specified by:
getAssetNamesBytesin interfaceFeedOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the assetNames at the given index.
-
setAssetNames
public Feed.Builder setAssetNames(int index, String value)
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 or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;- Parameters:
index- The index to set the value at.value- The assetNames to set.- Returns:
- This builder for chaining.
-
addAssetNames
public Feed.Builder addAssetNames(String value)
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 or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;- Parameters:
value- The assetNames to add.- Returns:
- This builder for chaining.
-
addAllAssetNames
public Feed.Builder addAllAssetNames(Iterable<String> values)
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 or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;- Parameters:
values- The assetNames to add.- Returns:
- This builder for chaining.
-
clearAssetNames
public Feed.Builder clearAssetNames()
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 or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;- Returns:
- This builder for chaining.
-
addAssetNamesBytes
public Feed.Builder addAssetNamesBytes(com.google.protobuf.ByteString value)
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 or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;- Parameters:
value- The bytes of the assetNames to add.- Returns:
- This builder for chaining.
-
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 or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;- Specified by:
getAssetTypesListin interfaceFeedOrBuilder- 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 or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;- Specified by:
getAssetTypesCountin interfaceFeedOrBuilder- 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 or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;- Specified by:
getAssetTypesin interfaceFeedOrBuilder- 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 or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;- Specified by:
getAssetTypesBytesin interfaceFeedOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the assetTypes at the given index.
-
setAssetTypes
public Feed.Builder setAssetTypes(int index, String value)
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 or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;- Parameters:
index- The index to set the value at.value- The assetTypes to set.- Returns:
- This builder for chaining.
-
addAssetTypes
public Feed.Builder addAssetTypes(String value)
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 or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;- Parameters:
value- The assetTypes to add.- Returns:
- This builder for chaining.
-
addAllAssetTypes
public Feed.Builder addAllAssetTypes(Iterable<String> values)
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 or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;- Parameters:
values- The assetTypes to add.- Returns:
- This builder for chaining.
-
clearAssetTypes
public Feed.Builder clearAssetTypes()
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 or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;- Returns:
- This builder for chaining.
-
addAssetTypesBytes
public Feed.Builder addAssetTypesBytes(com.google.protobuf.ByteString value)
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 or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;- Parameters:
value- The bytes of the assetTypes to add.- Returns:
- This builder for chaining.
-
getContentTypeValue
public int getContentTypeValue()
Asset content type. If not specified, no content but the asset name and type will be returned.
.google.cloud.asset.v1.ContentType content_type = 4;- Specified by:
getContentTypeValuein interfaceFeedOrBuilder- Returns:
- The enum numeric value on the wire for contentType.
-
setContentTypeValue
public Feed.Builder setContentTypeValue(int value)
Asset content type. If not specified, no content but the asset name and type will be returned.
.google.cloud.asset.v1.ContentType content_type = 4;- Parameters:
value- The enum numeric value on the wire for contentType to set.- Returns:
- This builder for chaining.
-
getContentType
public ContentType getContentType()
Asset content type. If not specified, no content but the asset name and type will be returned.
.google.cloud.asset.v1.ContentType content_type = 4;- Specified by:
getContentTypein interfaceFeedOrBuilder- Returns:
- The contentType.
-
setContentType
public Feed.Builder setContentType(ContentType value)
Asset content type. If not specified, no content but the asset name and type will be returned.
.google.cloud.asset.v1.ContentType content_type = 4;- Parameters:
value- The contentType to set.- Returns:
- This builder for chaining.
-
clearContentType
public Feed.Builder clearContentType()
Asset content type. If not specified, no content but the asset name and type will be returned.
.google.cloud.asset.v1.ContentType content_type = 4;- Returns:
- This builder for chaining.
-
hasFeedOutputConfig
public boolean hasFeedOutputConfig()
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasFeedOutputConfigin interfaceFeedOrBuilder- 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.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFeedOutputConfigin interfaceFeedOrBuilder- Returns:
- The feedOutputConfig.
-
setFeedOutputConfig
public Feed.Builder setFeedOutputConfig(FeedOutputConfig value)
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
-
setFeedOutputConfig
public Feed.Builder setFeedOutputConfig(FeedOutputConfig.Builder builderForValue)
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
-
mergeFeedOutputConfig
public Feed.Builder mergeFeedOutputConfig(FeedOutputConfig value)
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
-
clearFeedOutputConfig
public Feed.Builder clearFeedOutputConfig()
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
-
getFeedOutputConfigBuilder
public FeedOutputConfig.Builder getFeedOutputConfigBuilder()
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
-
getFeedOutputConfigOrBuilder
public FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder()
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFeedOutputConfigOrBuilderin interfaceFeedOrBuilder
-
hasCondition
public boolean hasCondition()
A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, `expression` field in the `Expr` must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with name `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields of `Expr` are optional. See our [user guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) for detailed instructions..google.type.Expr condition = 6;- Specified by:
hasConditionin interfaceFeedOrBuilder- Returns:
- Whether the condition field is set.
-
getCondition
public com.google.type.Expr getCondition()
A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, `expression` field in the `Expr` must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with name `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields of `Expr` are optional. See our [user guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) for detailed instructions..google.type.Expr condition = 6;- Specified by:
getConditionin interfaceFeedOrBuilder- Returns:
- The condition.
-
setCondition
public Feed.Builder setCondition(com.google.type.Expr value)
A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, `expression` field in the `Expr` must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with name `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields of `Expr` are optional. See our [user guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) for detailed instructions..google.type.Expr condition = 6;
-
setCondition
public Feed.Builder setCondition(com.google.type.Expr.Builder builderForValue)
A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, `expression` field in the `Expr` must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with name `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields of `Expr` are optional. See our [user guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) for detailed instructions..google.type.Expr condition = 6;
-
mergeCondition
public Feed.Builder mergeCondition(com.google.type.Expr value)
A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, `expression` field in the `Expr` must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with name `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields of `Expr` are optional. See our [user guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) for detailed instructions..google.type.Expr condition = 6;
-
clearCondition
public Feed.Builder clearCondition()
A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, `expression` field in the `Expr` must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with name `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields of `Expr` are optional. See our [user guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) for detailed instructions..google.type.Expr condition = 6;
-
getConditionBuilder
public com.google.type.Expr.Builder getConditionBuilder()
A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, `expression` field in the `Expr` must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with name `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields of `Expr` are optional. See our [user guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) for detailed instructions..google.type.Expr condition = 6;
-
getConditionOrBuilder
public com.google.type.ExprOrBuilder getConditionOrBuilder()
A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, `expression` field in the `Expr` must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with name `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields of `Expr` are optional. See our [user guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) for detailed instructions..google.type.Expr condition = 6;- Specified by:
getConditionOrBuilderin interfaceFeedOrBuilder
-
getRelationshipTypesList
public com.google.protobuf.ProtocolStringList getRelationshipTypesList()
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;- Specified by:
getRelationshipTypesListin interfaceFeedOrBuilder- Returns:
- A list containing the relationshipTypes.
-
getRelationshipTypesCount
public int getRelationshipTypesCount()
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;- Specified by:
getRelationshipTypesCountin interfaceFeedOrBuilder- Returns:
- The count of relationshipTypes.
-
getRelationshipTypes
public String getRelationshipTypes(int index)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;- Specified by:
getRelationshipTypesin interfaceFeedOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The relationshipTypes at the given index.
-
getRelationshipTypesBytes
public com.google.protobuf.ByteString getRelationshipTypesBytes(int index)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;- Specified by:
getRelationshipTypesBytesin interfaceFeedOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the relationshipTypes at the given index.
-
setRelationshipTypes
public Feed.Builder setRelationshipTypes(int index, String value)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;- Parameters:
index- The index to set the value at.value- The relationshipTypes to set.- Returns:
- This builder for chaining.
-
addRelationshipTypes
public Feed.Builder addRelationshipTypes(String value)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;- Parameters:
value- The relationshipTypes to add.- Returns:
- This builder for chaining.
-
addAllRelationshipTypes
public Feed.Builder addAllRelationshipTypes(Iterable<String> values)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;- Parameters:
values- The relationshipTypes to add.- Returns:
- This builder for chaining.
-
clearRelationshipTypes
public Feed.Builder clearRelationshipTypes()
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;- Returns:
- This builder for chaining.
-
addRelationshipTypesBytes
public Feed.Builder addRelationshipTypesBytes(com.google.protobuf.ByteString value)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;- Parameters:
value- The bytes of the relationshipTypes to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Feed.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>
-
mergeUnknownFields
public final Feed.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>
-
-